diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-12-13 16:06:13 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-14 12:41:15 +0100 |
commit | bd96e890992de183c0c2e5397ba11333950371b6 (patch) | |
tree | 767b73c6dfd5296430b9ccfbe5e02cf7bdabfdb3 /arch/arm/mach-at91/include | |
parent | 6ceded213b6c3e3aa68df3dadbd6660e67f09846 (diff) | |
download | barebox-bd96e890992de183c0c2e5397ba11333950371b6.tar.gz barebox-bd96e890992de183c0c2e5397ba11333950371b6.tar.xz |
at91: add udc usb device controller support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91/include')
-rw-r--r-- | arch/arm/mach-at91/include/mach/board.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h index 5e23688c33..e84637c041 100644 --- a/arch/arm/mach-at91/include/mach/board.h +++ b/arch/arm/mach-at91/include/mach/board.h @@ -34,6 +34,16 @@ extern void __init at91_add_device_usbh_ohci(struct at91_usbh_data *data); void atmel_nand_load_image(void *dest, int size, int pagesize, int blocksize); + /* USB Device */ +struct at91_udc_data { + int vbus_pin; /* high == host powering us */ + u8 vbus_active_low; /* vbus polarity */ + u8 vbus_polled; /* Use polling, not interrupt */ + int pullup_pin; /* active == D+ pulled up */ + u8 pullup_active_low; /* true == pullup_pin is active low */ +}; +extern void __init at91_add_device_udc(struct at91_udc_data *data); + /* NAND / SmartMedia */ struct atmel_nand_data { u8 enable_pin; /* chip enable */ |