diff options
| author | SRICHARAN R <r.sricharan@ti.com> | 2013-04-24 00:41:25 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-05-10 08:25:56 -0400 | 
| commit | 47c6ea076eb51e624f8744d93db5cd70b97dc25d (patch) | |
| tree | a9be7392d700598960e4da68199d1c726e246ba0 /arch/arm/cpu | |
| parent | 4a0eb75752167bef51993307a10677295cef315b (diff) | |
| download | olio-uboot-2014.01-47c6ea076eb51e624f8744d93db5cd70b97dc25d.tar.xz olio-uboot-2014.01-47c6ea076eb51e624f8744d93db5cd70b97dc25d.zip | |
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/cpu')
| -rw-r--r-- | arch/arm/cpu/armv7/omap-common/hwinit-common.c | 11 | 
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 c7107847c..1645120de 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 |