diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2015-01-06 08:46:59 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-12 13:13:29 -0500 |
commit | 258e2ddd634c20065d1c41290d10d2e5cf2f56e2 (patch) | |
tree | 92fe7b3861717a0696c185a9c8c661b1bea52e2f /drivers/usb/gadget/udc/atmel_usba_udc.h | |
parent | 3280e67536f8a4d4adf8dcde10cb4c4b577c34f4 (diff) |
usb: atmel_usba_udc: Add at91sam9g45 and at91sam9x5 errata handling
at91sam9g45 and at91sam9x5 SoCs have an hardware bug forcing us to
generate a pulse on the BIAS signal on "USB end of reset” and
“USB end of resume" events.
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Reported-by: Patrice VILCHEZ <patrice.vilchez@atmel.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/atmel_usba_udc.h')
-rw-r--r-- | drivers/usb/gadget/udc/atmel_usba_udc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.h b/drivers/usb/gadget/udc/atmel_usba_udc.h index 456899e9ee62..72b3537f56ce 100644 --- a/drivers/usb/gadget/udc/atmel_usba_udc.h +++ b/drivers/usb/gadget/udc/atmel_usba_udc.h | |||
@@ -306,6 +306,7 @@ struct usba_request { | |||
306 | 306 | ||
307 | struct usba_udc_errata { | 307 | struct usba_udc_errata { |
308 | void (*toggle_bias)(struct usba_udc *udc, int is_on); | 308 | void (*toggle_bias)(struct usba_udc *udc, int is_on); |
309 | void (*pulse_bias)(struct usba_udc *udc); | ||
309 | }; | 310 | }; |
310 | 311 | ||
311 | struct usba_udc { | 312 | struct usba_udc { |
@@ -326,6 +327,7 @@ struct usba_udc { | |||
326 | struct clk *pclk; | 327 | struct clk *pclk; |
327 | struct clk *hclk; | 328 | struct clk *hclk; |
328 | struct usba_ep *usba_ep; | 329 | struct usba_ep *usba_ep; |
330 | bool bias_pulse_needed; | ||
329 | 331 | ||
330 | u16 devstatus; | 332 | u16 devstatus; |
331 | 333 | ||