diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2019-05-23 17:39:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-27 10:07:00 +0200 |
commit | 55a676bf2a8430a3abb0225cb2d5102b777e24be (patch) | |
tree | 7028e8d594a3b615ab2a3a5770b6a71cd363f2de /arch/arm/boards/sama5d4_xplained | |
parent | cdab4dd1fde9a6b870daf75b5922220bc39fe709 (diff) | |
download | barebox-55a676bf2a8430a3abb0225cb2d5102b777e24be.tar.gz barebox-55a676bf2a8430a3abb0225cb2d5102b777e24be.tar.xz |
arm: sama5d4: fix stack setup
The code that configure the stack uses sama5d3 constants.
Fix this to use the proper sama5d4 constants.
Boot tested on sama5d4_xplained.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/sama5d4_xplained')
-rw-r--r-- | arch/arm/boards/sama5d4_xplained/lowlevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/sama5d4_xplained/lowlevel.c b/arch/arm/boards/sama5d4_xplained/lowlevel.c index 0e25270142..8ae4e6e0d2 100644 --- a/arch/arm/boards/sama5d4_xplained/lowlevel.c +++ b/arch/arm/boards/sama5d4_xplained/lowlevel.c @@ -17,7 +17,7 @@ void __naked __bare_init barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint { arm_cpu_lowlevel_init(); - arm_setup_stack(SAMA5D3_SRAM_BASE + SAMA5D3_SRAM_SIZE - 16); + arm_setup_stack(SAMA5D4_SRAM_BASE + SAMA5D4_SRAM_SIZE - 16); barebox_arm_entry(SAMA5_DDRCS, at91sama5_get_ddram_size(), NULL); } |