]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Make DECLARE_GLOBAL_DATA_PTR global for DaVinci
authorDirk Behme <dirk.behme@googlemail.com>
Sat, 15 Sep 2007 09:55:42 +0000 (11:55 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 15 Sep 2007 16:46:20 +0000 (18:46 +0200)
As discussed in [1], DECLARE_GLOBAL_DATA_PTR has to be global and not
function local.

Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
[1] http://article.gmane.org/gmane.comp.boot-loaders.u-boot/31805

board/davinci/dv-evm/dv_board.c
board/davinci/schmoogie/dv_board.c
board/davinci/sonata/dv_board.c

index 604edb56c30115b13584ec19361536042fec644e..dce821ba6a48b9146b90f2a58303003f7d7911f7 100644 (file)
@@ -31,6 +31,8 @@
 
 #define MACH_TYPE_DAVINCI_EVM          901
 
+DECLARE_GLOBAL_DATA_PTR;
+
 extern void    i2c_init(int speed, int slaveaddr);
 extern void    timer_init(void);
 extern int     eth_hw_init(void);
@@ -115,8 +117,6 @@ void dsp_on(void)
 
 int board_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* arch number of the board */
        gd->bd->bi_arch_number = MACH_TYPE_DAVINCI_EVM;
 
@@ -202,8 +202,6 @@ int misc_init_r (void)
 
 int dram_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
 
index 9f271a1666375f1946f08cc4b3556d908c363a12..0a07523b12337a0205636d5dbc05c13ac1c8f45c 100644 (file)
@@ -31,6 +31,8 @@
 
 #define MACH_TYPE_SCHMOOGIE            1255
 
+DECLARE_GLOBAL_DATA_PTR;
+
 extern void    i2c_init(int speed, int slaveaddr);
 extern void    timer_init(void);
 extern int     eth_hw_init(void);
@@ -115,8 +117,6 @@ void dsp_on(void)
 
 int board_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* arch number of the board */
        gd->bd->bi_arch_number = MACH_TYPE_SCHMOOGIE;
 
@@ -244,8 +244,6 @@ int misc_init_r (void)
 
 int dram_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
 
index 99857c4271ab3cbe0c0d5fabc8a1c997d9df93e8..cd2dac610de66289b121297bc9699581bdb3996b 100644 (file)
@@ -31,6 +31,8 @@
 
 #define MACH_TYPE_SONATA               1254
 
+DECLARE_GLOBAL_DATA_PTR;
+
 extern void    i2c_init(int speed, int slaveaddr);
 extern void    timer_init(void);
 extern int     eth_hw_init(void);
@@ -115,8 +117,6 @@ void dsp_on(void)
 
 int board_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* arch number of the board */
        gd->bd->bi_arch_number = MACH_TYPE_SONATA;
 
@@ -199,8 +199,6 @@ int misc_init_r (void)
 
 int dram_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;