diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2011-07-13 11:29:16 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-09-10 23:03:13 +0200 |
commit | e7da859e424ccc30d2ef87dbabf655ad3d59f291 (patch) | |
tree | e59f994cbaa45322bef762014190160b28f23e77 /arch/arm/mach-at91 | |
parent | 0af4316babb64c6703c113a89462ff7843767f24 (diff) | |
download | blackbird-op-linux-e7da859e424ccc30d2ef87dbabf655ad3d59f291.tar.gz blackbird-op-linux-e7da859e424ccc30d2ef87dbabf655ad3d59f291.zip |
at91: ohci-at91: add vbus_pin_inverted platform attribute
The existing OHCI AT91 driver made the assumption that the enable
input of the USB power switch was active low. However, some USB power
switches such as the Micrel MIC2026-1 [1] have an active high input to
enable the power. A new vbus_pin_inverted attribute is added to the
at91_usbh_data structure so that board files can tell the OHCI driver
if the vbus pin logic is active low or active high.
[1] http://www.micrel.com/page.do?page=product-info/products/mic2026.shtml
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r-- | arch/arm/mach-at91/include/mach/board.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/board.h b/arch/arm/mach-at91/include/mach/board.h index ed544a0d5a1d..61d52dc05051 100644 --- a/arch/arm/mach-at91/include/mach/board.h +++ b/arch/arm/mach-at91/include/mach/board.h @@ -98,6 +98,7 @@ extern void __init at91_add_device_eth(struct at91_eth_data *data); struct at91_usbh_data { u8 ports; /* number of ports on root hub */ u8 vbus_pin[2]; /* port power-control pin */ + u8 vbus_pin_inverted; }; extern void __init at91_add_device_usbh(struct at91_usbh_data *data); extern void __init at91_add_device_usbh_ohci(struct at91_usbh_data *data); |