Merge branch 'master' of rsync://rsync.denx.de/git/u-boot
[platform/kernel/u-boot.git] / board / lart / lart.c
index 20f22ea..8d534c8 100644 (file)
@@ -24,6 +24,8 @@
 
 #include <common.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /* ------------------------------------------------------------------------- */
 
 
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* memory and cpu-speed are setup before relocation */
        /* so we do _nothing_ here */
 
        /* arch number of LART-Board */
-       gd->bd->bi_arch_number = 27;
+       gd->bd->bi_arch_number = MACH_TYPE_LART;
 
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0xc0000100;
@@ -49,7 +49,6 @@ int board_init (void)
 
 int dram_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        bd_t *bd = gd->bd;
 
        bd->bi_dram[0].start = PHYS_SDRAM_1;