]> git.sur5r.net Git - u-boot/blobdiff - board/shannon/shannon.c
Switch from archive libraries to partial linking
[u-boot] / board / shannon / shannon.c
index c090bde4aab5a3c9793b50395b6b962c0fd46af8..8cd1fc34c63b5f235ed34cfc25948aa039ee38ae 100644 (file)
@@ -24,8 +24,7 @@
 
 #include <common.h>
 
-/* ------------------------------------------------------------------------- */
-
+DECLARE_GLOBAL_DATA_PTR;
 
 /*
  * Miscelaneous platform dependent initialisations
@@ -33,8 +32,6 @@
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* memory and cpu-speed are setup before relocation */
        /* but if we use InfernoLoader, we must do some inits here */
 
@@ -63,7 +60,7 @@ int board_init (void)
 #endif /* CONFIG_INFERNO */
 
        /* arch number for shannon */
-       gd->bd->bi_arch_number = 97;
+       gd->bd->bi_arch_number = MACH_TYPE_SHANNON;
 
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0xc0000100;
@@ -75,7 +72,6 @@ int dram_init (void)
 {
 #if defined(PHYS_SDRAM_1) || defined(PHYS_SDRAM_2) || \
     defined(PHYS_SDRAM_3) || defined(PHYS_SDRAM_4)
-       DECLARE_GLOBAL_DATA_PTR;
        bd_t *bd = gd->bd;
 #endif