usb: ohci-da8xx: add vbus and overcurrent gpios
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 11 Feb 2019 10:36:59 +0000 (11:36 +0100)
committerSekhar Nori <nsekhar@ti.com>
Tue, 12 Feb 2019 08:18:51 +0000 (13:48 +0530)
commitd193abf1c91307d8a2d5a3b984ddcf66f5dcfbea
tree5b71978ebf3bed2ab7188a3faccd338f7ac04597
parent1703cf5d4fc064852d09a877ef71befb6ba386e6
usb: ohci-da8xx: add vbus and overcurrent gpios

There are two users upstream which register external callbacks for
switching the port power on/off and overcurrent protection. Both
users only use two GPIOs for that. Instead of having that functionality
in the board files, move the logic into the OHCI driver - including
the interrupt handler for overcurrent detection.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/usb/host/ohci-da8xx.c