diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-09-09 14:18:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-01 22:34:08 +0200 |
commit | c123df1fc8b57b52d81cc462c084eb0fb09a0d8a (patch) | |
tree | 2a2be8e515b84d1036d4e8d8963e063c00a2189f /arch/arm/boards/module-mb7707 | |
parent | 9d7a00bd45a0d7a4fc2110251916abb3dc555fd4 (diff) | |
download | barebox-c123df1fc8b57b52d81cc462c084eb0fb09a0d8a.tar.gz barebox-c123df1fc8b57b52d81cc462c084eb0fb09a0d8a.tar.xz |
ARM: drop bultin DTB
We can build multiple DTBs into the binary and board code can select
which one to use. Drop the single builtin DTB and let the boards using
it pass the correct one.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/module-mb7707')
-rw-r--r-- | arch/arm/boards/module-mb7707/lowlevel.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/boards/module-mb7707/lowlevel.c b/arch/arm/boards/module-mb7707/lowlevel.c index 055e432c1c..fc102e26e1 100644 --- a/arch/arm/boards/module-mb7707/lowlevel.c +++ b/arch/arm/boards/module-mb7707/lowlevel.c @@ -26,9 +26,15 @@ #define MB7707_SRAM_BASE 0x40000000 #define MB7707_SRAM_SIZE SZ_128M +extern char __dtb_module_mb7707_start[]; + void __naked __bare_init barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2) { + void *fdt; + arm_cpu_lowlevel_init(); - barebox_arm_entry(MB7707_SRAM_BASE, MB7707_SRAM_SIZE, 0); + fdt = __dtb_module_mb7707_start + get_runtime_offset(); + + barebox_arm_entry(MB7707_SRAM_BASE, MB7707_SRAM_SIZE, fdt); } |