* [U-Boot] [PATCH] arm: socfpga: Move code from misc_init_r() to arch_early_init_r()
@ 2014-10-19 18:40 Marek Vasut
2014-10-20 7:31 ` Pavel Machek
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2014-10-19 18:40 UTC (permalink / raw)
To: u-boot
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 <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Vince Bridgers <vbridger@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Pavel Machek <pavel@denx.de>
---
arch/arm/cpu/armv7/socfpga/misc.c | 2 +-
include/configs/socfpga_common.h | 2 +-
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 8c26589..9b388b4 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 3b82925..1fdc043 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
--
2.1.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] arm: socfpga: Move code from misc_init_r() to arch_early_init_r()
2014-10-19 18:40 [U-Boot] [PATCH] arm: socfpga: Move code from misc_init_r() to arch_early_init_r() Marek Vasut
@ 2014-10-20 7:31 ` Pavel Machek
2014-10-22 18:11 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Machek @ 2014-10-20 7:31 UTC (permalink / raw)
To: u-boot
On Sun 2014-10-19 20:40:47, Marek Vasut wrote:
> 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 <marex@denx.de>
> Cc: Chin Liang See <clsee@altera.com>
> Cc: Dinh Nguyen <dinguyen@altera.com>
> Cc: Vince Bridgers <vbridger@altera.com>
> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Acked-by: Pavel Machek <pavel@denx.de>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] arm: socfpga: Move code from misc_init_r() to arch_early_init_r()
2014-10-20 7:31 ` Pavel Machek
@ 2014-10-22 18:11 ` Marek Vasut
0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2014-10-22 18:11 UTC (permalink / raw)
To: u-boot
On Monday, October 20, 2014 at 09:31:58 AM, Pavel Machek wrote:
> On Sun 2014-10-19 20:40:47, Marek Vasut wrote:
> > 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 <marex@denx.de>
> > Cc: Chin Liang See <clsee@altera.com>
> > Cc: Dinh Nguyen <dinguyen@altera.com>
> > Cc: Vince Bridgers <vbridger@altera.com>
> > Cc: Albert Aribaud <albert.u.boot@aribaud.net>
>
> Acked-by: Pavel Machek <pavel@denx.de>
Applied, thanks.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-22 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-19 18:40 [U-Boot] [PATCH] arm: socfpga: Move code from misc_init_r() to arch_early_init_r() Marek Vasut
2014-10-20 7:31 ` Pavel Machek
2014-10-22 18:11 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox