Make sure that argv[] argument pointers are not modified.
[oweals/u-boot.git] / board / pxa255_idp / pxa_idp.c
index b0aa8dda8895335c0c783b8587b6b4876716f6d5..a54a95dca907677a4ae0f3d5f0f88edb3cfcfd36 100644 (file)
@@ -31,6 +31,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <command.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -121,15 +122,26 @@ void blink_c(void)
        GPCR0 = led_bit;
 }
 
-int do_idpcmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+int do_idpcmd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        printf("IDPCMD started\n");
        return 0;
 }
 
 U_BOOT_CMD(idpcmd, CONFIG_SYS_MAXARGS, 0, do_idpcmd,
-          "idpcmd    - custom IDP command\n",
-          "no args at this time\n"
+          "custom IDP command",
+          "no args at this time"
 );
 
 #endif
+
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC91111
+       rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
+#endif
+       return rc;
+}
+#endif