]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/h2200/h2200.c
h2200: Add USB CDC ethernet support
[people/ms/u-boot.git] / board / h2200 / h2200.c
index 30763061c724bfa701add15fafee34419242b819..720b06e4ce8f91c4e820af304cdd1f04faecb384 100644 (file)
 #include <asm/arch/pxa.h>
 #include <asm/arch/pxa-regs.h>
 #include <asm/io.h>
+#include <usb.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
+int board_eth_init(bd_t *bis)
+{
+       usb_eth_initialize(bis);
+       return 0;
+}
+
 int board_init(void)
 {
        /* We have RAM, disable cache */
@@ -36,6 +43,10 @@ int board_init(void)
        /* adress of boot parameters */
        gd->bd->bi_boot_params = 0xa0000100;
 
+       /* Let host see that device is disconnected */
+       udc_disconnect();
+       mdelay(500);
+
        return 0;
 }