]> git.sur5r.net Git - u-boot/blobdiff - board/esd/canbt/canbt.c
Merge with /home/wd/git/u-boot/testing-NAND/ to add new NAND handling.
[u-boot] / board / esd / canbt / canbt.c
index bc7f0c70f0c6d7349b044e5dd756ab1410f3ad45..2ced6cb17f282767fbf8aad2a658a165da19f2aa 100644 (file)
 #include "canbt.h"
 #include <asm/processor.h>
 #include <command.h>
-#include <cmd_boot.h>
+
+
+/*cmd_boot.c*/
+extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
+
 
 /* ------------------------------------------------------------------------- */
 
@@ -44,7 +48,7 @@ const unsigned char fpgadata[] = {
 #include "../common/fpga.c"
 
 
-int board_pre_init (void)
+int board_early_init_f (void)
 {
        DECLARE_GLOBAL_DATA_PTR;
 
@@ -114,9 +118,9 @@ int board_pre_init (void)
        /*
         * Setup port pins for normal operation
         */
-       out32 (IBM405GP_GPIO0_ODR, 0x00000000); /* no open drain pins */
-       out32 (IBM405GP_GPIO0_TCR, 0x07038100); /* setup for output */
-       out32 (IBM405GP_GPIO0_OR, 0x07030100);  /* set output pins to high (default) */
+       out32 (GPIO0_ODR, 0x00000000);  /* no open drain pins */
+       out32 (GPIO0_TCR, 0x07038100);  /* setup for output */
+       out32 (GPIO0_OR, 0x07030100);   /* set output pins to high (default) */
 
        /*
         * IRQ 0-15  405GP internally generated; active high; level sensitive
@@ -152,7 +156,7 @@ int checkboard (void)
 {
        int index;
        int len;
-       unsigned char str[64];
+       char str[64];
        int i = getenv_r ("serial#", str, sizeof (str));
 
        puts ("Board: ");