summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/raspberry-pi
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-11-27 20:35:40 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-04 15:52:39 +0100
commitaf7e02951eb4dfb46659a1ea6de683f247f0f1ec (patch)
treebb9fd55fb1bd0441da04b0cb5f6b0b46fd2f7898 /arch/arm/boards/raspberry-pi
parent560c141935e32c2df81e86d91ecd50e7cc09ca5a (diff)
downloadbarebox-af7e02951eb4dfb46659a1ea6de683f247f0f1ec.tar.gz
barebox-af7e02951eb4dfb46659a1ea6de683f247f0f1ec.tar.xz
ARM raspberrypi: switch to barebox_arm_entry
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/raspberry-pi')
-rw-r--r--arch/arm/boards/raspberry-pi/Makefile2
-rw-r--r--arch/arm/boards/raspberry-pi/lowlevel.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/boards/raspberry-pi/Makefile b/arch/arm/boards/raspberry-pi/Makefile
index 6ce5edeb27..825b30b3cb 100644
--- a/arch/arm/boards/raspberry-pi/Makefile
+++ b/arch/arm/boards/raspberry-pi/Makefile
@@ -1 +1,3 @@
obj-$(CONFIG_MACH_RPI) += rpi.o
+obj-y += lowlevel.o
+pbl-y += lowlevel.o
diff --git a/arch/arm/boards/raspberry-pi/lowlevel.c b/arch/arm/boards/raspberry-pi/lowlevel.c
new file mode 100644
index 0000000000..7a09eedf32
--- /dev/null
+++ b/arch/arm/boards/raspberry-pi/lowlevel.c
@@ -0,0 +1,11 @@
+#include <common.h>
+#include <sizes.h>
+#include <asm/barebox-arm.h>
+#include <asm/barebox-arm-head.h>
+#include <mach/platform.h>
+
+void __naked reset(void)
+{
+ common_reset();
+ barebox_arm_entry(BCM2835_SDRAM_BASE, SZ_128M, 0);
+}