]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ms7720se/ms7720se.c
OMAP3: igep00x0: add SPL support for IGEP-based boards
[karo-tx-uboot.git] / board / ms7720se / ms7720se.c
index f83c1208a7257c80f06984a81ac0a78a79dcc93f..ab7c338e07ef406df0637f42efbc333bf152d45c 100644 (file)
@@ -30,6 +30,8 @@
 #include <asm/io.h>
 #include <asm/processor.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #define LED_BASE       0xB0800000
 
 int checkboard(void)
@@ -45,8 +47,6 @@ int board_init(void)
 
 int dram_init(void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
        gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
        printf("DRAM:  %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));