]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/omap730p2/omap730p2.c
Merge branch 'mpc86xx'
[karo-tx-uboot.git] / board / omap730p2 / omap730p2.c
index 256c6a665d8eb41a2c36b9c16f9b21f75696778d..309d667585abfd3cadc0559b6d0d0ca8a79f9aa1 100644 (file)
@@ -34,6 +34,8 @@
 #include <./configs/omap730.h>
 #endif
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int test_boot_mode(void);
 void spin_up_leds(void);
 void flash__init (void);
@@ -84,8 +86,6 @@ void toggle_backup_led(void)
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* arch number of OMAP 730 P2 Board - Same as the Innovator! */
        gd->bd->bi_arch_number = MACH_TYPE_OMAP_PERSEUS2;
 
@@ -180,8 +180,6 @@ void ether__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;