usb: gadget: m66592-udc: add function for external controller
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 7 Jul 2011 00:58:43 +0000 (09:58 +0900)
committerFelipe Balbi <balbi@ti.com>
Fri, 8 Jul 2011 22:08:39 +0000 (01:08 +0300)
commitbb59dbff4e5fb0ac14e3ee47d3f688490f128155
tree1bf92ae02fd2e0b9a29c09a1229216285a6415b1
parent8ca137562a79f573f822f5a84a4e56a0d8cc6792
usb: gadget: m66592-udc: add function for external controller

M66592 has the pin of WR0 and WR1. So, if one write-pin of CPU
connects to the pins, we have to change the setting of FIFOSEL
register in the controller. If we don't change the setting,
the controller cannot send the data of odd length.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/m66592-udc.c
drivers/usb/gadget/m66592-udc.h
include/linux/usb/m66592.h