summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorSRICHARAN R <r.sricharan@ti.com>2013-04-24 00:41:25 +0000
committerTom Rini <trini@ti.com>2013-05-10 08:25:56 -0400
commit47c6ea076eb51e624f8744d93db5cd70b97dc25d (patch)
treea9be7392d700598960e4da68199d1c726e246ba0 /arch/arm
parent4a0eb75752167bef51993307a10677295cef315b (diff)
downloadu-boot-imx-47c6ea076eb51e624f8744d93db5cd70b97dc25d.zip
u-boot-imx-47c6ea076eb51e624f8744d93db5cd70b97dc25d.tar.gz
u-boot-imx-47c6ea076eb51e624f8744d93db5cd70b97dc25d.tar.bz2
ARM: OMAP: Add arch_cpu_init function
The boot parameters passed from SPL to UBOOT must be saved as a part of uboot's gd data as early as possible, before we will inadvertently overwrite it. So adding a arch_cpu_init for the required Socs to save it. Signed-off-by: Sricharan R <r.sricharan@ti.com> [trini: Add igep0033 hunk] Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/omap-common/hwinit-common.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/hwinit-common.c b/arch/arm/cpu/armv7/omap-common/hwinit-common.c
index c710784..1645120 100644
--- a/arch/arm/cpu/armv7/omap-common/hwinit-common.c
+++ b/arch/arm/cpu/armv7/omap-common/hwinit-common.c
@@ -147,6 +147,17 @@ static void save_omap_boot_params(void)
}
}
+#ifdef CONFIG_ARCH_CPU_INIT
+/*
+ * SOC specific cpu init
+ */
+int arch_cpu_init(void)
+{
+ save_omap_boot_params();
+ return 0;
+}
+#endif /* CONFIG_ARCH_CPU_INIT */
+
/*
* Routine: s_init
* Description: Does early system init of watchdog, muxing, andclocks