]> git.sur5r.net Git - u-boot/commitdiff
OMAP3 Move declaration of gpmc_cfg.
authorTom Rix <Tom.Rix@windriver.com>
Wed, 27 Jan 2010 16:11:55 +0000 (11:11 -0500)
committerTom Rix <Tom.Rix@windriver.com>
Fri, 12 Feb 2010 18:31:53 +0000 (12:31 -0600)
Every omap3 board config file declared the global variable gpmc_cfg.
This changes moves the declaration to a better location in the
arch dependent header file cpu.h.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
include/asm-arm/arch-omap3/cpu.h
include/configs/devkit8000.h
include/configs/omap3_beagle.h
include/configs/omap3_evm.h
include/configs/omap3_overo.h
include/configs/omap3_pandora.h
include/configs/omap3_sdp3430.h
include/configs/omap3_zoom1.h
include/configs/omap3_zoom2.h

index e51c4f3293d1c1a315eb74a20c879f9bb75e83e4..aa8de324506b960e61a2b9cfdd9478bebc7d90ee 100644 (file)
@@ -136,6 +136,10 @@ struct gpmc {
        u32 ecc8_result;        /* 0x21C */
        u32 ecc9_result;        /* 0x220 */
 };
+
+/* Used for board specific gpmc initialization */
+extern struct gpmc *gpmc_cfg;
+
 #else /* __ASSEMBLY__ */
 #define GPMC_CONFIG1           0x00
 #define GPMC_CONFIG2           0x04
index e81da677f4726061d6c2d7e8e3f1bb3244888cb0..7d1332f62c7046b9a1557dce833875cdb0228bfc 100644 (file)
 #define CONFIG_ENV_OFFSET              boot_flash_off
 
 #ifndef __ASSEMBLY__
-extern struct gpmc *gpmc_cfg;
 extern unsigned int boot_flash_base;
 extern volatile unsigned int boot_flash_env_addr;
 extern unsigned int boot_flash_off;
index a8abb0e140caa896686ef63916d3daeb740438cb..08d79aca39440ff822801a592454964f5726ef80 100644 (file)
 #define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 #ifndef __ASSEMBLY__
-extern struct gpmc *gpmc_cfg;
 extern unsigned int boot_flash_base;
 extern volatile unsigned int boot_flash_env_addr;
 extern unsigned int boot_flash_off;
index a8d4105fbdcc70b6e9de128509c7c2bc60457586..0d99f7df0cde150749a27ef8dec76380abb8bf93 100644 (file)
 #define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 #ifndef __ASSEMBLY__
-extern struct gpmc *gpmc_cfg;
 extern unsigned int boot_flash_base;
 extern volatile unsigned int boot_flash_env_addr;
 extern unsigned int boot_flash_off;
index c72fb9d8efd1a3a6548626796b59a75e80455268..a43500b5f1042a91489f83b25863dfd6613daa2b 100644 (file)
 #define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 #ifndef __ASSEMBLY__
-extern struct gpmc *gpmc_cfg;
 extern unsigned int boot_flash_base;
 extern volatile unsigned int boot_flash_env_addr;
 extern unsigned int boot_flash_off;
index f22fab579623ad0e4b393a9be98c5be6c96fdc8f..945c053ab3bf18b3123d95047cf0326596211693 100644 (file)
 #define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 #ifndef __ASSEMBLY__
-extern struct gpmc *gpmc_cfg;
 extern unsigned int boot_flash_base;
 extern volatile unsigned int boot_flash_env_addr;
 extern unsigned int boot_flash_off;
index 4d01933883137871e170363bdb906489537a6b8e..b4919db08726d3914f141972cfea0444ee7bb5da 100644 (file)
 /*--------------------------------------------------------------------------*/
 
 #ifndef __ASSEMBLY__
-extern struct gpmc *gpmc_cfg;
 extern unsigned int boot_flash_base;
 extern volatile unsigned int boot_flash_env_addr;
 extern unsigned int boot_flash_off;
index cdf95c0447d05f905bbd50ecf21b72944bc6920e..ae7ebf9eadcd22fadadda759d6d42a1c79306e64 100644 (file)
 #define CONFIG_SYS_JFFS2_NUM_BANKS     1
 
 #ifndef __ASSEMBLY__
-extern struct gpmc *gpmc_cfg;
 extern unsigned int boot_flash_base;
 extern volatile unsigned int boot_flash_env_addr;
 extern unsigned int boot_flash_off;
index 7a8beb8505d1d966426d110eeed438c1525b81f1..c88c732a6094a83d38a462a2dd233704ab15aa19 100644 (file)
 #define CONFIG_SYS_FLASH_WRITE_TOUT    (100 * CONFIG_SYS_HZ)
 
 #ifndef __ASSEMBLY__
-extern struct gpmc *gpmc_cfg;
 extern unsigned int boot_flash_base;
 extern volatile unsigned int boot_flash_env_addr;
 extern unsigned int boot_flash_off;