summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2014-10-18 03:52:36 +0200
committerMarek Vasut <[email protected]>2014-10-27 02:26:24 +0100
commitfc520894d426aae5dc0b87aa012520fc18231e1e (patch)
tree1ca7b7c3718a20a5f70d4e3ac407efe02ac021fe
parent5b3ee386fde82a1ba42ff09b95247842c9a1585e (diff)
arm: socfpga: Move code from misc_init_r() to arch_early_init_r()
Move this initialization code to proper place. The misc_init_r() function is called way too late and the platform initialization code should be executed much earlier. Signed-off-by: Marek Vasut <[email protected]> Cc: Chin Liang See <[email protected]> Cc: Dinh Nguyen <[email protected]> Cc: Vince Bridgers <[email protected]> Cc: Albert Aribaud <[email protected]> Acked-by: Pavel Machek <[email protected]>
-rw-r--r--arch/arm/cpu/armv7/socfpga/misc.c2
-rw-r--r--include/configs/socfpga_common.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/socfpga/misc.c b/arch/arm/cpu/armv7/socfpga/misc.c
index 0eab264668c..8c3e5f7cd42 100644
--- a/arch/arm/cpu/armv7/socfpga/misc.c
+++ b/arch/arm/cpu/armv7/socfpga/misc.c
@@ -176,7 +176,7 @@ static void socfpga_nic301_slave_ns(void)
static uint32_t iswgrp_handoff[8];
-int misc_init_r(void)
+int arch_early_init_r(void)
{
int i;
for (i = 0; i < 8; i++) /* Cache initial SW setting regs */
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 49504dcafbc..69527985e28 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -22,7 +22,7 @@
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
#define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_MISC_INIT_R
+#define CONFIG_ARCH_EARLY_INIT_R
#define CONFIG_SYS_NO_FLASH
#define CONFIG_CLOCKS