diff options
author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-05-19 20:23:46 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-21 19:48:17 +0200 |
commit | 7286acab6715691c1262b320e9d22a480804ba49 (patch) | |
tree | 3c3a62ff3a2338c7b3696ac4090c7fb094b2b8c1 /arch/arm/boards/solidrun-cubox | |
parent | df8d29462bc0bdd13571a5ae8daf6ee6c6999ffd (diff) | |
download | barebox-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/solidrun-cubox')
-rw-r--r-- | arch/arm/boards/solidrun-cubox/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/boards/solidrun-cubox/board.c (renamed from arch/arm/boards/solidrun-cubox/solidrun-cubox.c) | 14 | ||||
-rw-r--r-- | arch/arm/boards/solidrun-cubox/lowlevel.c | 26 |
3 files changed, 4 insertions, 39 deletions
diff --git a/arch/arm/boards/solidrun-cubox/Makefile b/arch/arm/boards/solidrun-cubox/Makefile index 6dfe2c8eca..9320510bab 100644 --- a/arch/arm/boards/solidrun-cubox/Makefile +++ b/arch/arm/boards/solidrun-cubox/Makefile @@ -1,2 +1 @@ -obj-y = solidrun-cubox.o -lwl-y += lowlevel.o +obj-y += board.c diff --git a/arch/arm/boards/solidrun-cubox/solidrun-cubox.c b/arch/arm/boards/solidrun-cubox/board.c index 1abce2f353..a28f4197df 100644 --- a/arch/arm/boards/solidrun-cubox/solidrun-cubox.c +++ b/arch/arm/boards/solidrun-cubox/board.c @@ -1,6 +1,6 @@ /* - * Copyright - * (C) 2013 Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> + * Copyright (C) 2013 + * 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 @@ -14,12 +14,4 @@ * */ -#include <common.h> -#include <init.h> -#include <mach/dove.h> - -static int solidrun_cubox_console_init(void) -{ - return dove_add_uart(0); -} -console_initcall(solidrun_cubox_console_init); +/* empty */ diff --git a/arch/arm/boards/solidrun-cubox/lowlevel.c b/arch/arm/boards/solidrun-cubox/lowlevel.c deleted file mode 100644 index 8a06cbc7e1..0000000000 --- a/arch/arm/boards/solidrun-cubox/lowlevel.c +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright - * (C) 2013 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 <mach/dove.h> -#include <asm/barebox-arm.h> -#include <asm/barebox-arm-head.h> - -void __naked barebox_arm_reset_vector(void) -{ - arm_cpu_lowlevel_init(); - dove_barebox_entry(); -} |