Messages in this thread Patch in this message | | | From | Paul Cercueil <> | Subject | [PATCH 05/13] MIPS: machine: Add get_system_type callback | Date | Mon, 3 Aug 2020 19:01:16 +0200 |
| |
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(+)
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; -- 2.27.0
| |