]> git.sur5r.net Git - u-boot/commitdiff
ARM: OMAP: Add arch_cpu_init function
authorSRICHARAN R <r.sricharan@ti.com>
Wed, 24 Apr 2013 00:41:25 +0000 (00:41 +0000)
committerTom Rini <trini@ti.com>
Fri, 10 May 2013 12:25:56 +0000 (08:25 -0400)
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>
arch/arm/cpu/armv7/omap-common/hwinit-common.c
include/configs/am335x_evm.h
include/configs/igep0033.h
include/configs/omap4_common.h
include/configs/omap5_common.h
include/configs/pcm051.h
include/configs/ti814x_evm.h

index c7107847c4fd8ce9028c9d9b19958f03c5865ff4..1645120de7af3587d75052da82095b0937e9698d 100644 (file)
@@ -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
index 941054d70a0513d13f05d96a8310271169d14681..f019134216a314fac5faf618be44be04223dcb66 100644 (file)
 #define CONFIG_SYS_BAUDRATE_TABLE      { 110, 300, 600, 1200, 2400, \
 4800, 9600, 14400, 19200, 28800, 38400, 56000, 57600, 115200 }
 
+/* CPU */
+#define CONFIG_ARCH_CPU_INIT
+
 #define CONFIG_ENV_OVERWRITE           1
 #define CONFIG_SYS_CONSOLE_INFO_QUIET
 
index 14063a83e6a93c2c63fbc74a7474a62d39d6007b..1912d7df3762c3761e32f8a97c2ec76fb5d95695 100644 (file)
 #define CONFIG_CONS_INDEX              1
 #define CONFIG_BAUDRATE                        115200
 
+/* CPU */
+#define CONFIG_ARCH_CPU_INIT
+
 #define CONFIG_ENV_OVERWRITE           1
 #define CONFIG_SYS_CONSOLE_INFO_QUIET
 
index 68faecacecf8a907297e003c7cb6ffd71ebbb646..d6448b0529eb4ce596faa8095aab33543bf513be 100644 (file)
 #define CONFIG_BAUDRATE                        115200
 #define CONFIG_SYS_BAUDRATE_TABLE      {4800, 9600, 19200, 38400, 57600,\
                                        115200}
+
+/* CPU */
+#define CONFIG_ARCH_CPU_INIT
+
 /* I2C  */
 #define CONFIG_HARD_I2C                        1
 #define CONFIG_SYS_I2C_SPEED           100000
index 7528f4c0b1603309abe02b380b58f9d441d94902..deb5e9fd5e6a23c9f9e38b1ac79b129a942f9a71 100644 (file)
@@ -86,6 +86,9 @@
 
 #define CONFIG_BAUDRATE                        115200
 
+/* CPU */
+#define CONFIG_ARCH_CPU_INIT
+
 /* I2C  */
 #define CONFIG_HARD_I2C
 #define CONFIG_SYS_I2C_SPEED           100000
index cc8d3171998bdb7f5d6f0c1e883c57838a12f29a..478f805b7c5ece05a45b4c72f1c179428348cae5 100644 (file)
 #define CONFIG_SYS_BAUDRATE_TABLE      { 110, 300, 600, 1200, 2400, \
 4800, 9600, 14400, 19200, 28800, 38400, 56000, 57600, 115200 }
 
+/* CPU */
+#define CONFIG_ARCH_CPU_INIT
+
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_SYS_CONSOLE_INFO_QUIET
 
index 6c423df372e9c24a369f76339e4343839f9171c0..eac5ad02434af3cc99b5cabff17bb22284a20aad 100644 (file)
 
 #define CONFIG_BAUDRATE                        115200
 
+/* CPU */
+#define CONFIG_ARCH_CPU_INIT
+
 #define CONFIG_ENV_OVERWRITE
 #define CONFIG_CONS_INDEX              1
 #define CONFIG_SYS_CONSOLE_INFO_QUIET