[U-Boot-Users] [Patch try 2] U-Boot-V2: Introduce CONFIG_ARCH_HAS_INIT_LOWLEVEL

Menon, Nishanth x0nishan at ti.com
Mon May 12 16:40:05 CEST 2008


Sascha,
> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net]
> On Behalf Of Menon, Nishanth
> Sent: Friday, May 09, 2008 6:49 AM
> To: Sascha Hauer
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] [Patch] U-Boot-V2: IntroduceCONFIG_ARCH_HAS_INIT_LOWLEVEL
> 
> > Moving this to the config system is generally a good idea, but
> > ARCH_HAS_INIT_LOWLEVEL should be an invisible option which gets selected
> > by architectures that actually need it.

Resending the patch with proper subject

Signed-off-by: Nishanth Menon <x0nishan at ti.com>
Index: u-boot-v2.git/arch/arm/cpu/start-arm.S
===================================================================
--- u-boot-v2.git.orig/arch/arm/cpu/start-arm.S	2008-05-12 07:21:41.000000000 -0500
+++ u-boot-v2.git/arch/arm/cpu/start-arm.S	2008-05-12 07:21:45.000000000 -0500
@@ -131,7 +131,7 @@
 	orr	r0,r0,#0xd3
 	msr	cpsr,r0
 
-#ifdef ARCH_HAS_INIT_LOWLEVEL
+#ifdef CONFIG_ARCH_HAS_INIT_LOWLEVEL
 	bl arch_init_lowlevel
 #endif
 	/*
Index: u-boot-v2.git/arch/m68k/cpu/start-mcfv4e.S
===================================================================
--- u-boot-v2.git.orig/arch/m68k/cpu/start-mcfv4e.S	2008-05-12 07:21:41.000000000 -0500
+++ u-boot-v2.git/arch/m68k/cpu/start-mcfv4e.S	2008-05-12 07:21:45.000000000 -0500
@@ -406,7 +406,7 @@
 	 * standard reset vector file, but also do some special things
 	 * required only on their specific CPU.
 	 */
-#ifdef ARCH_HAS_INIT_LOWLEVEL
+#ifdef CONFIG_ARCH_HAS_INIT_LOWLEVEL
 	bsr.l	arch_init_lowlevel
 	nop
 #endif
Index: u-boot-v2.git/common/Kconfig
===================================================================
--- u-boot-v2.git.orig/common/Kconfig	2008-05-12 07:21:42.000000000 -0500
+++ u-boot-v2.git/common/Kconfig	2008-05-12 07:21:45.000000000 -0500
@@ -77,6 +77,9 @@
 	  on many platforms. Disabling this option allows configurations to use
 	  U-boot as a second stage boot loader.
 
+config ARCH_HAS_INIT_LOWLEVEL
+	bool
+
 config PROMPT
 	string
 	prompt "U-Boot command prompt"




More information about the U-Boot mailing list