[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200803170124.231110-6-paul@crapouillou.net>
Date: Mon, 3 Aug 2020 19:01:16 +0200
From: Paul Cercueil <paul@...pouillou.net>
To: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Cc: Paul Burton <paulburton@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
周琰杰 <zhouyanjie@...yeetech.com>,
od@...c.me, linux-kernel@...r.kernel.org,
linux-mips@...r.kernel.org, Paul Cercueil <paul@...pouillou.net>
Subject: [PATCH 05/13] MIPS: machine: Add get_system_type callback
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@...pouillou.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
Powered by blists - more mailing lists