summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/sama5d4_xplained
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2018-01-06 22:11:10 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-09 11:34:31 +0100
commit3b7de0a1a5e2f2f6cfb210c4f5b2c72a1a45e131 (patch)
tree8b7bb6df424f27444bd61726fd8d0f9ef159797a /arch/arm/boards/sama5d4_xplained
parent2e628d2595c86b278462aa9cc1bff2b8a7b124fd (diff)
downloadbarebox-3b7de0a1a5e2f2f6cfb210c4f5b2c72a1a45e131.tar.gz
barebox-3b7de0a1a5e2f2f6cfb210c4f5b2c72a1a45e131.tar.xz
sama5d{3, 4}{xek, xplained}: move reset vector to board code
Include deletion of now unused CONFIG symbols Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Andrey Smirnov <andrew.smirnov@gmail.com> 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/Makefile1
-rw-r--r--arch/arm/boards/sama5d4_xplained/lowlevel.c23
2 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/boards/sama5d4_xplained/Makefile b/arch/arm/boards/sama5d4_xplained/Makefile
index 44550f5288..8873dfc22c 100644
--- a/arch/arm/boards/sama5d4_xplained/Makefile
+++ b/arch/arm/boards/sama5d4_xplained/Makefile
@@ -1 +1,2 @@
obj-y += sama5d4_xplained.o
+lwl-y += lowlevel.o
diff --git a/arch/arm/boards/sama5d4_xplained/lowlevel.c b/arch/arm/boards/sama5d4_xplained/lowlevel.c
new file mode 100644
index 0000000000..b791f2a03c
--- /dev/null
+++ b/arch/arm/boards/sama5d4_xplained/lowlevel.c
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2009-2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+ *
+ * Under GPLv2
+ */
+
+#include <common.h>
+#include <init.h>
+
+#include <asm/barebox-arm-head.h>
+#include <asm/barebox-arm.h>
+
+#include <mach/at91sam9_ddrsdr.h>
+#include <mach/hardware.h>
+
+void __naked __bare_init barebox_arm_reset_vector(void)
+{
+ arm_cpu_lowlevel_init();
+
+ arm_setup_stack(SAMA5D3_SRAM_BASE + SAMA5D3_SRAM_SIZE - 16);
+
+ barebox_arm_entry(SAMA5_DDRCS, at91sama5_get_ddram_size(), NULL);
+}