summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/usi-topkick
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2014-04-10 17:48:09 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-24 08:25:43 +0200
commitf73625b6a1a635aa99bb162c97cf453f8a816f06 (patch)
tree6304642b5d83434e31a029ecae7a2c35c22820d3 /arch/arm/boards/usi-topkick
parent9fe5cd5e290263b9defb14366a07b6ae6a8c7d0e (diff)
downloadbarebox-f73625b6a1a635aa99bb162c97cf453f8a816f06.tar.gz
barebox-f73625b6a1a635aa99bb162c97cf453f8a816f06.tar.xz
ARM: mvebu: convert USI Topkick to PBL_MULTI_IMAGES
This converts Marvell Kirkwood based USI Topkick to PBL_MULTI_IMAGES. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Diffstat (limited to 'arch/arm/boards/usi-topkick')
-rw-r--r--arch/arm/boards/usi-topkick/Makefile1
-rw-r--r--arch/arm/boards/usi-topkick/lowlevel.c34
2 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/boards/usi-topkick/Makefile b/arch/arm/boards/usi-topkick/Makefile
index dcfc2937d3..01c7a259e9 100644
--- a/arch/arm/boards/usi-topkick/Makefile
+++ b/arch/arm/boards/usi-topkick/Makefile
@@ -1 +1,2 @@
obj-y += board.o
+lwl-y += lowlevel.o
diff --git a/arch/arm/boards/usi-topkick/lowlevel.c b/arch/arm/boards/usi-topkick/lowlevel.c
new file mode 100644
index 0000000000..df661564da
--- /dev/null
+++ b/arch/arm/boards/usi-topkick/lowlevel.c
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2014
+ * Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <common.h>
+#include <sizes.h>
+#include <asm/barebox-arm.h>
+#include <asm/barebox-arm-head.h>
+#include <mach/lowlevel.h>
+
+extern char __dtb_kirkwood_topkick_bb_start[];
+
+ENTRY_FUNCTION(start_usi_topkick, r0, r1, r2)
+{
+ void *fdt;
+
+ arm_cpu_lowlevel_init();
+
+ fdt = __dtb_kirkwood_topkick_bb_start - get_runtime_offset();
+
+ mvebu_barebox_entry(fdt);
+}