]> git.karo-electronics.de Git - karo-tx-linux.git/commit
at91: ohci-at91: add vbus_pin_inverted platform attribute
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 13 Jul 2011 09:29:16 +0000 (11:29 +0200)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sat, 15 Oct 2011 15:37:18 +0000 (23:37 +0800)
commitd8be695381e87f7740d8e9bd98b494e9d6c37121
tree49d1fa597066dd5f45cda897def70af6e4e96059
parent8dd1f50c8cec630bab7d1c64fb1cb4343354ec33
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>
arch/arm/mach-at91/include/mach/board.h
drivers/usb/host/ohci-at91.c