summaryrefslogtreecommitdiff
path: root/arch/mips/cpu
diff options
context:
space:
mode:
authorStefan Roese <[email protected]>2020-06-30 12:33:16 +0200
committerDaniel Schwierzeck <[email protected]>2020-07-18 14:23:25 +0200
commitde34a61642eda0b64b34dd4d9eeda57eb01f76bc (patch)
treeccddd25d8ea1740a6b068ecee71bacf26ea83343 /arch/mips/cpu
parent81d4b14f7e7e4492d99af96c42be7fd8b26eb4d7 (diff)
mips: Add CONFIG_MIPS_MACH_EARLY_INIT for very early mach init code
This patch adds the optional call to mips_mach_early_init() to start.S at a very early stage. Its disabled per default. It can be used for very early machine / platform specific init code. Its called very early and at this stage the PC is allowed to differ from the linking address (CONFIG_TEXT_BASE) as no absolute jump has been performed until this call. It will be used by thje Octeon platform. Signed-off-by: Stefan Roese <[email protected]> Reviewed-by: Daniel Schwierzeck <[email protected]>
Diffstat (limited to 'arch/mips/cpu')
-rw-r--r--arch/mips/cpu/start.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/cpu/start.S b/arch/mips/cpu/start.S
index e22771715c1..d0c412236dd 100644
--- a/arch/mips/cpu/start.S
+++ b/arch/mips/cpu/start.S
@@ -236,6 +236,11 @@ wr_done:
# endif
#endif
+#ifdef CONFIG_MIPS_MACH_EARLY_INIT
+ bal mips_mach_early_init
+ nop
+#endif
+
#ifdef CONFIG_MIPS_CACHE_SETUP
/* Initialize caches... */
PTR_LA t9, mips_cache_reset