summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx/lowlevel_init.S
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-14 22:24:12 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-04 15:52:39 +0100
commitb7e7def62319d617a06addea382d709978ab8c4f (patch)
treedb7a081e73ad8241573638b969a8653b4b414b57 /arch/arm/mach-ep93xx/lowlevel_init.S
parentbf61adb050a1285ef312aea2f6043215c06127c6 (diff)
downloadbarebox-b7e7def62319d617a06addea382d709978ab8c4f.tar.gz
barebox-b7e7def62319d617a06addea382d709978ab8c4f.tar.xz
ARM ep93xx boards: switch to barebox_arm_entry
This architecture is a bit strange. It has up to four SDRAM banks, but all have a quite limited size. The SDRAM size for the different boards currently is unknown as it's configurable with Kconfig. We use a SDRAM size based on the value of the only board we have in the defconfigs: edb9301. This likely breaks other ep93xx boards. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-ep93xx/lowlevel_init.S')
-rw-r--r--arch/arm/mach-ep93xx/lowlevel_init.S11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-ep93xx/lowlevel_init.S b/arch/arm/mach-ep93xx/lowlevel_init.S
index 6de53dd2f5..154d38d2d1 100644
--- a/arch/arm/mach-ep93xx/lowlevel_init.S
+++ b/arch/arm/mach-ep93xx/lowlevel_init.S
@@ -20,6 +20,7 @@
*
*/
+#include <sizes.h>
#include <mach/ep93xx-regs.h>
#include <asm/barebox-arm-head.h>
@@ -52,4 +53,12 @@ reset:
orr r0, r0, #0xc0000000
mcr p15, 0, r0, c1, c0, 0
- b board_init_lowlevel_return
+ /*
+ * FIXME: This is suitable for the edb9301, the
+ * only ep93xx board we have in our defconfigs.
+ * Other boards need different values here.
+ */
+ mov r0, #0x05000000
+ mov r1, #SZ_8M
+ mov r2, #0
+ b barebox_arm_entry