summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/globalscale-mirabox
diff options
context:
space:
mode:
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>2013-05-19 20:23:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-05-21 19:48:17 +0200
commit7286acab6715691c1262b320e9d22a480804ba49 (patch)
tree3c3a62ff3a2338c7b3696ac4090c7fb094b2b8c1 /arch/arm/boards/globalscale-mirabox
parentdf8d29462bc0bdd13571a5ae8daf6ee6c6999ffd (diff)
downloadbarebox-7286acab6715691c1262b320e9d22a480804ba49.tar.gz
barebox-7286acab6715691c1262b320e9d22a480804ba49.tar.xz
arm: mvebu: introduce common lowlevel and early init
At early stage after boot, all MVEBU SoCs are similar enough to have a common lowlevel and barebox entry. We also remap the internal register base address to 0xf100000 as it gives some 512M more of contiguous address space. As we cannot determine real memory size that early, we start with a default memory size of 64M and probe correct size later in SoC init. Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/globalscale-mirabox')
-rw-r--r--arch/arm/boards/globalscale-mirabox/Makefile3
-rw-r--r--arch/arm/boards/globalscale-mirabox/board.c (renamed from arch/arm/boards/globalscale-mirabox/globalscale-mirabox.c)15
-rw-r--r--arch/arm/boards/globalscale-mirabox/lowlevel.c26
3 files changed, 4 insertions, 40 deletions
diff --git a/arch/arm/boards/globalscale-mirabox/Makefile b/arch/arm/boards/globalscale-mirabox/Makefile
index bd5d47e3c1..9320510bab 100644
--- a/arch/arm/boards/globalscale-mirabox/Makefile
+++ b/arch/arm/boards/globalscale-mirabox/Makefile
@@ -1,2 +1 @@
-obj-y = globalscale-mirabox.o
-lwl-y += lowlevel.o
+obj-y += board.c
diff --git a/arch/arm/boards/globalscale-mirabox/globalscale-mirabox.c b/arch/arm/boards/globalscale-mirabox/board.c
index b8f4bffddf..9c800c5410 100644
--- a/arch/arm/boards/globalscale-mirabox/globalscale-mirabox.c
+++ b/arch/arm/boards/globalscale-mirabox/board.c
@@ -1,5 +1,6 @@
/*
- * Copyright (C) 2013 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+ * Copyright
+ * (C) 2013 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -13,14 +14,4 @@
*
*/
-#include <common.h>
-#include <init.h>
-#include <sizes.h>
-#include <mach/mvebu.h>
-
-static int globalscale_mirabox_console_init(void)
-{
- return mvebu_add_uart0();
-}
-
-console_initcall(globalscale_mirabox_console_init);
+/* empty */
diff --git a/arch/arm/boards/globalscale-mirabox/lowlevel.c b/arch/arm/boards/globalscale-mirabox/lowlevel.c
deleted file mode 100644
index 3ca202e0a2..0000000000
--- a/arch/arm/boards/globalscale-mirabox/lowlevel.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (C) 2013 Thomas Petazzoni <thomas.petazzoni@free-electrons.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/mvebu.h>
-
-void __naked barebox_arm_reset_vector(void)
-{
- arm_cpu_lowlevel_init();
- mvebu_barebox_entry();
-}