diff options
author | Michal Simek <monstr@monstr.eu> | 2007-09-24 00:04:22 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2007-09-24 00:04:22 +0200 |
commit | 6b6f287a33ae8c340f97fb08ed95b6687e2baa4b (patch) | |
tree | 57d0aa201f36c6dd5a43efd23a0ee2ded95440ba /lib_blackfin/board.c | |
parent | d45963854eff39d575124d859419bb4953ce2c87 (diff) | |
parent | 66dcad3a9a53e0766d90e0084123bd8529522fb0 (diff) | |
download | u-boot-imx-6b6f287a33ae8c340f97fb08ed95b6687e2baa4b.zip u-boot-imx-6b6f287a33ae8c340f97fb08ed95b6687e2baa4b.tar.gz u-boot-imx-6b6f287a33ae8c340f97fb08ed95b6687e2baa4b.tar.bz2 |
Merge ../u-boot
Diffstat (limited to 'lib_blackfin/board.c')
-rw-r--r-- | lib_blackfin/board.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c index 36a969e..7c9990f 100644 --- a/lib_blackfin/board.c +++ b/lib_blackfin/board.c @@ -42,6 +42,8 @@ int post_flag; #endif +DECLARE_GLOBAL_DATA_PTR; + #ifndef CFG_NO_FLASH extern flash_info_t flash_info[]; #endif @@ -126,8 +128,6 @@ static void display_flash_config(ulong size) static int init_baudrate(void) { - DECLARE_GLOBAL_DATA_PTR; - char tmp[64]; int i = getenv_r("baudrate", tmp, sizeof(tmp)); gd->bd->bi_baudrate = gd->baudrate = (i > 0) @@ -139,7 +139,6 @@ static int init_baudrate(void) #ifdef DEBUG static void display_global_data(void) { - DECLARE_GLOBAL_DATA_PTR; bd_t *bd; bd = gd->bd; printf("--flags:%x\n", gd->flags); @@ -256,7 +255,6 @@ void init_cplbtables(void) void board_init_f(ulong bootflag) { - DECLARE_GLOBAL_DATA_PTR; ulong addr; bd_t *bd; int i; @@ -325,7 +323,6 @@ static int init_func_i2c(void) void board_init_r(gd_t * id, ulong dest_addr) { - DECLARE_GLOBAL_DATA_PTR; ulong size; extern void malloc_bin_reloc(void); char *s, *e; |