[05/13] MIPS: machine: Add get_system_type callback
diff mbox series

Message ID 20200803170124.231110-6-paul@crapouillou.net
State Superseded
Headers show
Series
  • MIPS: Convert Ingenic to a generic board
Related show

Commit Message

Paul Cercueil Aug. 3, 2020, 5:01 p.m. UTC
The global get_system_type() function in arch/mips/generic/ will then be
modified in a subsequent patch to call this callback if provided.

This change will allow mips_machine implementations to override the
behaviour of the global get_system_type() function.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 arch/mips/include/asm/machine.h | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/arch/mips/include/asm/machine.h b/arch/mips/include/asm/machine.h
index 29ca344a8cab..433257e08d83 100644
--- a/arch/mips/include/asm/machine.h
+++ b/arch/mips/include/asm/machine.h
@@ -16,6 +16,7 @@  struct mips_machine {
 	bool (*detect)(void);
 	const void *(*fixup_fdt)(const void *fdt, const void *match_data);
 	unsigned int (*measure_hpt_freq)(void);
+	const char *(*get_system_type)(struct device_node *dtb);
 };
 
 extern long __mips_machines_start;