summaryrefslogtreecommitdiffstats
path: root/board/ms7720se/ms7720se.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/ms7720se/ms7720se.c')
-rw-r--r--board/ms7720se/ms7720se.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/ms7720se/ms7720se.c b/board/ms7720se/ms7720se.c
index f83c1208a7..ab7c338e07 100644
--- a/board/ms7720se/ms7720se.c
+++ b/board/ms7720se/ms7720se.c
@@ -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));
OpenPOWER on IntegriCloud