Skip to contentSkip to conversation

arm: socfpga: Move code from misc_init_r() to arch_early_init_r()

PATCH New Marek Vasut 2 participants 3 messages Oct 19, 2014 – Oct 22, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Cc Chin Liang See <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Vince Bridgers <[email protected]>
Cc Albert Aribaud <[email protected]>
Cc Pavel Machek <[email protected]>
---
 arch/arm/cpu/armv7/socfpga/misc.c | 2 +-
 include/configs/socfpga_common.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/cpu/armv7/socfpga/misc.c +1 -1
index 8c26589..9b388b4 100644
@@ -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 */
include/configs/socfpga_common.h +1 -1
index 3b82925..1fdc043 100644
@@ -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
 
Signature · 1 line
2.1.1
#1 lore raw

PATCH 1/1 arm: socfpga: Move code from misc_init_r() to arch_early_init_r()

Quoted 9 lines · Marek Vasut

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.

Cc Chin Liang See <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Vince Bridgers <[email protected]>
Cc Albert Aribaud <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
author Applied
#2 lore raw

PATCH 1/1 arm: socfpga: Move code from misc_init_r() to arch_early_init_r()

Quoted 5 lines · Pavel Machek
Quoted 4 lines · Marek Vasut

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.

Quoted 7 lines
Quoted 5 lines
Cc Chin Liang See <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Vince Bridgers <[email protected]>
Cc Albert Aribaud <[email protected]>

Applied, thanks.

Best regards,
Marek Vasut