summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm926ejs/spear/spear600.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2015-08-18 09:27:17 +0200
committerTom Rini <trini@konsulko.com>2015-08-28 12:33:16 -0400
commit2fbdbda1c7c48aa622812054633afc6cdff91eab (patch)
tree0664ef6869bc551a9eed337ea97be324dae75a8a /arch/arm/cpu/arm926ejs/spear/spear600.c
parent80999a52778ca6cc0452599bdc75ae4b417231be (diff)
arm: spear: Move to common SPL infrastructure
The SPL implementation for SPEAr600 is older than the common SPL infrastructure. This patch now moves the SPEAr600 SPL over to the common SPL code. Tested on the only SPEAr board that currently uses SPL in mainline U-Boot, the x600. Signed-off-by: Stefan Roese <sr@denx.de> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: Vipin Kumar <vk.vipin@gmail.com>
Diffstat (limited to 'arch/arm/cpu/arm926ejs/spear/spear600.c')
-rw-r--r--arch/arm/cpu/arm926ejs/spear/spear600.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/arch/arm/cpu/arm926ejs/spear/spear600.c b/arch/arm/cpu/arm926ejs/spear/spear600.c
index 6474e9d554..1fdf715da4 100644
--- a/arch/arm/cpu/arm926ejs/spear/spear600.c
+++ b/arch/arm/cpu/arm926ejs/spear/spear600.c
@@ -12,6 +12,21 @@
#include <asm/arch/spr_misc.h>
#include <asm/arch/spr_defs.h>
+void spear_late_init(void)
+{
+ struct misc_regs *misc_p = (struct misc_regs *)CONFIG_SPEAR_MISCBASE;
+
+ writel(0x80000007, &misc_p->arb_icm_ml1);
+ writel(0x80000007, &misc_p->arb_icm_ml2);
+ writel(0x80000007, &misc_p->arb_icm_ml3);
+ writel(0x80000007, &misc_p->arb_icm_ml4);
+ writel(0x80000007, &misc_p->arb_icm_ml5);
+ writel(0x80000007, &misc_p->arb_icm_ml6);
+ writel(0x80000007, &misc_p->arb_icm_ml7);
+ writel(0x80000007, &misc_p->arb_icm_ml8);
+ writel(0x80000007, &misc_p->arb_icm_ml9);
+}
+
static void sel_1v8(void)
{
struct misc_regs *misc_p = (struct misc_regs *)CONFIG_SPEAR_MISCBASE;
@@ -104,14 +119,6 @@ void plat_ddr_init(void)
}
/*
- * soc_init:
- */
-void soc_init(void)
-{
- /* Nothing to be done for SPEAr600 */
-}
-
-/*
* xxx_boot_selected:
*
* return true if the particular booting option is selected