ppc4xx: Fix PMC405DE support
[oweals/u-boot.git] / board / innokom / innokom.c
index ae5402e8431c9698a0fad0d1250aa1b830ff459a..c2b88ae16ad20467ee2477f78101436a8b7b8783 100644 (file)
@@ -27,6 +27,8 @@
 #include <asm/arch/pxa-regs.h>
 #include <asm/mach-types.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 #ifdef CONFIG_SHOW_BOOT_PROGRESS
 # define SHOW_BOOT_PROGRESS(arg)        show_boot_progress(arg)
 #else
@@ -70,7 +72,7 @@ int i2c_init_board(void)
 
 int misc_init_r(void)
 {
-       uchar *str;
+       char *str;
 
        /* determine if the software update key is pressed during startup   */
        if (GPLR0 & 0x00000800) {
@@ -95,8 +97,6 @@ int misc_init_r(void)
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* memory and cpu-speed are setup before relocation */
        /* so we do _nothing_ here */
 
@@ -116,8 +116,6 @@ int board_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;