summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/at91sam9g45_lowlevel_init.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-02-03 04:13:19 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-04 15:52:40 +0100
commitdf8a60545349bb40f97307435c58c2ba56ac2a19 (patch)
treed8085096d3ff52a1ec64625504f350fa11a31fef /arch/arm/mach-at91/at91sam9g45_lowlevel_init.c
parent2a1d33e4f2fb15b6d074246733664e8a77b9756c (diff)
downloadbarebox-df8a60545349bb40f97307435c58c2ba56ac2a19.tar.gz
barebox-df8a60545349bb40f97307435c58c2ba56ac2a19.tar.xz
ARM AT91: switch at91sam9g45 to barebox_arm_entry
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9g45_lowlevel_init.c')
-rw-r--r--arch/arm/mach-at91/at91sam9g45_lowlevel_init.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/at91sam9g45_lowlevel_init.c b/arch/arm/mach-at91/at91sam9g45_lowlevel_init.c
new file mode 100644
index 0000000000..689312f886
--- /dev/null
+++ b/arch/arm/mach-at91/at91sam9g45_lowlevel_init.c
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2009-2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+ *
+ * Under GPLv2
+ */
+
+#define __LOWLEVEL_INIT__
+
+#include <common.h>
+#include <asm/system.h>
+#include <asm/barebox-arm.h>
+#include <asm/barebox-arm-head.h>
+#include <mach/hardware.h>
+#include <mach/io.h>
+#include <mach/at91sam9_ddrsdr.h>
+#include <init.h>
+#include <sizes.h>
+
+void __naked __bare_init reset(void)
+{
+ common_reset();
+
+ arm_setup_stack(AT91SAM9G45_SRAM_BASE + AT91SAM9G45_SRAM_SIZE - 16);
+
+ barebox_arm_entry(AT91_CHIPSELECT_6, at91sam9g45_get_ddram_size(1), 0);
+}