diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-09-30 14:53:02 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-02 06:09:59 +0200 |
commit | 09bc528b763c7fe48aa2855f1229cff901b7f9d2 (patch) | |
tree | 66499a8199741dd72caa90b0b76459639212ab15 /arch/arm/mach-stm32mp/init.c | |
parent | 09cbc3fbdab5f3118062ceeefb0c1b043a75b3fb (diff) | |
download | barebox-09bc528b763c7fe48aa2855f1229cff901b7f9d2.tar.gz barebox-09bc528b763c7fe48aa2855f1229cff901b7f9d2.tar.xz |
ARM: stm32mp: init: set up CPU and bootsource at core init level
ARM device tree is unflattened at core init level and banner with model
extracted from device tree is printed at console init level.
The only init level between is postcore, so board code seeking to
modify the device tree machine model should run then.
On the STM32MP1, we query SoC type at postcore initcall, so we can't
have the board code fixing up the compatible on postcore as well.
Resolve this by moving stm32mp_init to core_initcall. This is allowed
as the code has no dependency that requires it to run postcore.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-stm32mp/init.c')
-rw-r--r-- | arch/arm/mach-stm32mp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/init.c b/arch/arm/mach-stm32mp/init.c index 7f687fa4f2..9f6312f52a 100644 --- a/arch/arm/mach-stm32mp/init.c +++ b/arch/arm/mach-stm32mp/init.c @@ -366,4 +366,4 @@ static int stm32mp_init(void) return 0; } -postcore_initcall(stm32mp_init); +core_initcall(stm32mp_init); |