diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-14 22:22:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-02-04 15:52:39 +0100 |
commit | 94c06f9447b2c87503abb09ec666d33adb866c11 (patch) | |
tree | 4848577f8401f4e779b4a54eefbd68926e3f79a9 /arch/arm/boards/a9m2440 | |
parent | 1c240cd2341776f2212237936c53c9448b21d834 (diff) | |
download | barebox-94c06f9447b2c87503abb09ec666d33adb866c11.tar.gz barebox-94c06f9447b2c87503abb09ec666d33adb866c11.tar.xz |
ARM Samsung boards: switch to barebox_arm_entry
All Samsung boards automatically detect their SDRAM size. The size detection
code can't be called safely from lowlevel C code, so instead the minimum SDRAM
size is guessed from the defconfig files.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/a9m2440')
-rw-r--r-- | arch/arm/boards/a9m2440/lowlevel_init.S | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/boards/a9m2440/lowlevel_init.S b/arch/arm/boards/a9m2440/lowlevel_init.S index 8f6cfcbe68..bd51717f71 100644 --- a/arch/arm/boards/a9m2440/lowlevel_init.S +++ b/arch/arm/boards/a9m2440/lowlevel_init.S @@ -3,6 +3,7 @@ */ #include <config.h> +#include <sizes.h> #include <mach/s3c-iomap.h> #include <mach/s3c24xx-gpio.h> #include <asm/barebox-arm-head.h> @@ -225,7 +226,7 @@ reset: cmp pc, #S3C_SDRAM_END bhs 1f - b board_init_lowlevel_return + b out /* we are running from NOR or NAND/SRAM memory. Do further initialisation */ 1: @@ -237,4 +238,8 @@ reset: /* up to here we are running from the internal SRAM area */ bl s3c24x0_nand_boot #endif - b board_init_lowlevel_return +out: + mov r0, #S3C_SDRAM_BASE + mov r1, #SZ_32M + mov r2, #0 + b barebox_arm_entry |