]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: dwc3: omap: initialize the register offset values for omap5 and AM437x
authorGeorge Cherian <george.cherian@ti.com>
Wed, 12 Jun 2013 09:23:46 +0000 (14:53 +0530)
committerFelipe Balbi <balbi@ti.com>
Wed, 12 Jun 2013 20:57:13 +0000 (23:57 +0300)
commitff7307b534258c8864c356d15c52a84d0a5fbb35
tree999253ddfa2d02226c76f9153191244740c16ab9
parent1e2a064c7fa19ec6a9bfbe11cdc9bec34c7834a1
usb: dwc3: omap: initialize the register offset values for omap5 and AM437x

This patch Initializes the register offset values depending
on the X_MAJOR of USBOTGSS_REVISION register. Also adds register
offset defines and new debug register defines.

X_MAJOR is 2 for both OMAP5 and AM437x. But both have different
glue register layout. Differentiate AM437x using dt compatible.

Register offsets are cached in dwc3_omap struct for reg reads
and writes.

Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-omap.c