]> git.sur5r.net Git - u-boot/blobdiff - board/omap1510inn/omap1510innovator.c
AT91SAM9RLEK support
[u-boot] / board / omap1510inn / omap1510innovator.c
index eba010a80455edabe4023726a90674e8ef1236ce..894120951021397f61f8813d5d0f6698b1f0eb13 100644 (file)
@@ -31,6 +31,8 @@
 
 #include <common.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 static void flash__init (void);
 static void ether__init (void);
 
@@ -47,10 +49,8 @@ static inline void delay (unsigned long loops)
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* arch number of OMAP 1510-Board */
-       gd->bd->bi_arch_number = 234;
+       gd->bd->bi_arch_number = MACH_TYPE_OMAP_INNOVATOR;
 
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0x10000100;
@@ -122,8 +122,6 @@ static 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;