]> 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)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 7 Sep 2011 15:15:18 +0000 (17:15 +0200)
commit53df3e18c7837035cf249beaa9c298725719b48c
tree49d1fa597066dd5f45cda897def70af6e4e96059
parent5d6463e800df4b90afec1e1948eaed9a3d0bc676
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