]> git.sur5r.net Git - u-boot/blobdiff - board/esd/pci405/cmd_pci405.c
ppc4xx: Big cleanup of PPC4xx defines
[u-boot] / board / esd / pci405 / cmd_pci405.c
index dfc5dd0c1b89bb355fc65c4e5632e9dfab40208b..1d14611293e9c7dbc93abd72e2006f8be3cb2819 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * (C) Copyright 2002
+ * (C) Copyright 2002-2004
  * Stefan Roese, esd gmbh germany, stefan.roese@esd-electronics.com
  *
  * See file CREDITS for list of people who contributed to this
 #include <net.h>
 #include <asm/io.h>
 #include <pci.h>
-#include <405gp_pci.h>
+#include <asm/4xx_pci.h>
+#include <asm/processor.h>
 
 #include "pci405.h"
 
-
-#if (CONFIG_COMMANDS & CFG_CMD_BSP)
+#if defined(CONFIG_CMD_BSP)
 
 extern int do_bootm (cmd_tbl_t *, int, int, char *[]);
 
-
 /*
  * Command loadpci: wait for signal from host and boot image.
  */
@@ -88,16 +87,16 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        pci_read_config_dword(PCIDEVID_405GP, i, ptr++);
                }
                ptr = (unsigned int *)PCI_REGS_ADDR;
-               *ptr = crc32(0, (char *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4);
+               *ptr = crc32(0, (uchar *)PCI_REGS_ADDR+4, PCI_REGS_LEN-4);
 
                printf("\nStoring PCI Configuration Regs...\n");
        } else {
                sprintf(addr, "%08x", *ptr);
 
                /*
-                * Boot image
+                * Boot image via bootm
                 */
-               printf("\nBooting image at addr 0x%s ...\n", addr);
+               printf("\nBooting Image at addr 0x%s ...\n", addr);
                setenv("loadaddr", addr);
 
                local_args[0] = argv[0];
@@ -109,8 +108,7 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 U_BOOT_CMD(
        loadpci,        1,      1,      do_loadpci,
-       "loadpci - Wait for pci-image and boot it\n",
-       NULL
+       "Wait for pci-image and boot it",
+       ""
 );
-
 #endif