usb/isp1760: Allow to optionally trigger low-level chip reset via GPIOLIB.
authorJoachim Foerster <joachim.foerster@missinglinkelectronics.com>
Wed, 19 Oct 2011 12:18:41 +0000 (14:18 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Oct 2011 20:29:06 +0000 (13:29 -0700)
commit3a7655fcb210b349111251689d0a56b7250885ea
treeb909f3f73d89d1af8807036a3922a19aca41b514
parent0f8fd43c42f2cc249943be76a4db0d058c16b6dc
usb/isp1760: Allow to optionally trigger low-level chip reset via GPIOLIB.

Properly triggering the reset wire is necessary with the ISP1761 used
on Terasic DE4 Altera-FPGA boards using a NIOS2 processor, for example.

This is an optional implementation for the OF binding only. The other
bindings just pass an invalid GPIO to the isp1760_register() routine.

Example, usage in DTS:
        gpios = <&pio_isp1761rst_0 0 1>;
to point to a GPIO controller from within the ISP1761 node: GPIO 0, active low.

Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1760-hcd.c
drivers/usb/host/isp1760-hcd.h
drivers/usb/host/isp1760-if.c