diff options
author | Lukasz Dalek <luk0104@gmail.com> | 2012-11-29 15:55:16 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2012-12-17 15:38:14 +0100 |
commit | a33fada1c029f37f8c4670bfb536007066694f2e (patch) | |
tree | e27a92429558a59ed42704af5ccdfd1e4c9e0a8f /include | |
parent | 27460be60d5fca8c6a4029387ee5209825c6544f (diff) | |
download | u-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 'include')
-rw-r--r-- | include/configs/h2200.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/configs/h2200.h b/include/configs/h2200.h index ef14dd3..516a26e 100644 --- a/include/configs/h2200.h +++ b/include/configs/h2200.h @@ -154,4 +154,29 @@ #define CONFIG_BOOTARGS "root=/dev/ram0 ro console=ttyS0,115200n8" +#define CONFIG_SYS_CONSOLE_IS_IN_ENV +#define CONFIG_USB_DEV_PULLUP_GPIO 33 +/* USB VBUS GPIO 3 */ + +#define CONFIG_CMD_NET +#define CONFIG_CMD_PING + +#define CONFIG_BOOTDELAY 2 +#define CONFIG_BOOTCOMMAND \ + "setenv downloaded 0 ; while test $downloaded -eq 0 ; do " \ + "if bootp ; then setenv downloaded 1 ; fi ; done ; " \ + "source :script ; " \ + "bootm ; " + +#define CONFIG_USB_GADGET_PXA2XX +#define CONFIG_USB_ETHER +#define CONFIG_USB_ETH_SUBSET + +#define CONFIG_USBNET_DEV_ADDR "de:ad:be:ef:00:01" +#define CONFIG_USBNET_HOST_ADDR "de:ad:be:ef:00:02" +#define CONFIG_EXTRA_ENV_SETTINGS \ + "stdin=serial\0" \ + "stdout=serial\0" \ + "stderr=serial\0" + #endif /* __CONFIG_H */ |