From: Alexandre Pereira da Silva Date: Mon, 15 Oct 2012 12:47:35 +0000 (-0300) Subject: usb: gadget: lpc32xx_udc: Fix compatibility with STOTG04 X-Git-Tag: v3.7-rc2~17^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69da85edbab5cd42909d3ba65b3dad1c1fb40206;p=pandora-kernel.git usb: gadget: lpc32xx_udc: Fix compatibility with STOTG04 The STOTG04 is an replacement for ISP1301. Most of the registers on STOTG04 are the same as on ISP1301, but the register ISP1301_I2C_OTG_CONTROL_2 (address 0x10) doesn't exist on the ST part. This is a work around for this by using the interrupt source register that should behave the same on both parts and has the needed information. Tested-by: Roland Stigge Signed-off-by: Alexandre Pereira da Silva Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed