]> git.sur5r.net Git - u-boot/blobdiff - board/xsengine/xsengine.c
[new uImage] Rename and move print_image_hdr() routine
[u-boot] / board / xsengine / xsengine.c
index a9919dbaa651b6ccdea677c6d06344e6262bff0b..65923e92c591051ab1a5b65a9173a3f983128e27 100644 (file)
 
 #include <common.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /*
  * Miscelaneous platform dependent initialisations
  */
 
 int board_init (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
-
        /* memory and cpu-speed are setup before relocation */
        /* so we do _nothing_ here */
 
@@ -47,7 +47,7 @@ int board_init (void)
        return 0;
 }
 
-int board_post_init (void)
+int board_late_init (void)
 {
        setenv ("stdout", "serial");
        setenv ("stderr", "serial");
@@ -56,8 +56,6 @@ int board_post_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;