]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/delta/delta.c
* Add support for ymodem protocol download
[people/ms/u-boot.git] / board / delta / delta.c
index d00d72d8db48098b1a4d1b2f6d666454737a6819..b7671dd3b70420a5720ad6da9ac2c1704f0d92d7 100644 (file)
@@ -30,6 +30,8 @@
 #include <da9030.h>
 #include <asm/arch/pxa-regs.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* ------------------------------------------------------------------------- */
 
 static void init_DA9030(void);
@@ -40,8 +42,6 @@ static void init_DA9030(void);
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* memory and cpu-speed are setup before relocation */
        /* so we do _nothing_ here */
 
@@ -65,8 +65,6 @@ int board_late_init(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;
        gd->bd->bi_dram[1].start = PHYS_SDRAM_2;