usb: gadget: udc: lpc32xx: add support for stotg04 phy
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 9 Apr 2019 12:09:07 +0000 (14:09 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 3 May 2019 06:13:48 +0000 (09:13 +0300)
commit2a60f5eafa74727f083ce7732d5296bf3e0638b6
treeb8e2891b9da7e9808ec303839c68e7fec2f7eaae
parentf584fa8c1fdc289f23f4948bd58f4e2281fb5ad5
usb: gadget: udc: lpc32xx: add support for stotg04 phy

The STOTG04 phy is used as a drop-in replacement of the ISP1301 but some
bits doesn't have exactly the same meaning and this can lead to issues.
Detect the phy dynamically and avoid writing to reserved bits.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/lpc32xx_udc.c