summaryrefslogtreecommitdiff
path: root/board/h2200
diff options
context:
space:
mode:
authorLukasz Dalek <luk0104@gmail.com>2012-11-29 15:55:16 +0100
committerMarek Vasut <marex@denx.de>2012-12-17 15:38:14 +0100
commita33fada1c029f37f8c4670bfb536007066694f2e (patch)
treee27a92429558a59ed42704af5ccdfd1e4c9e0a8f /board/h2200
parent27460be60d5fca8c6a4029387ee5209825c6544f (diff)
downloadu-boot-imx-a33fada1c029f37f8c4670bfb536007066694f2e.zip
u-boot-imx-a33fada1c029f37f8c4670bfb536007066694f2e.tar.gz
u-boot-imx-a33fada1c029f37f8c4670bfb536007066694f2e.tar.bz2
h2200: Add USB CDC ethernet support
Add support for ethernet over USB which can be used for e.g. booting process. It works with tftp and dhcp clients code. Signed-off-by: Lukasz Dalek <luk0104@gmail.com>
Diffstat (limited to 'board/h2200')
-rw-r--r--board/h2200/h2200.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/h2200/h2200.c b/board/h2200/h2200.c
index 3076306..720b06e 100644
--- a/board/h2200/h2200.c
+++ b/board/h2200/h2200.c
@@ -22,9 +22,16 @@
#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;
}