summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-omap.c
diff options
context:
space:
mode:
authorGeorge Cherian2013-06-12 11:23:45 +0200
committerFelipe Balbi2013-06-12 22:57:12 +0200
commit1e2a064c7fa19ec6a9bfbe11cdc9bec34c7834a1 (patch)
treeab841897eb6984f1d730b6ba442b4ff79cb72b39 /drivers/usb/dwc3/dwc3-omap.c
parentusb: gadget: f_mass_storage: fix default product name (diff)
downloadkernel-qcow2-linux-1e2a064c7fa19ec6a9bfbe11cdc9bec34c7834a1.tar.gz
kernel-qcow2-linux-1e2a064c7fa19ec6a9bfbe11cdc9bec34c7834a1.tar.xz
kernel-qcow2-linux-1e2a064c7fa19ec6a9bfbe11cdc9bec34c7834a1.zip
usb: dwc3: omap: Adding am437x specific register map changes
AM437x and OMAP5 dwc3 subsytem have different register map. Major differences are as follows. OMAP5 has one main interrupt and one misc interrupt Aegis has four main interrupts and one misc interrupt. Miscellanous Interrupt offsets are changed. UTMI OTG Control and Status Registers offsets are changed. DEBUG Configuration and Status Registers are changed. The main intend of the patch is to re-use the same wrapper driver for both OMAP5 and AM437x, by using the x_major in revision register and adjusting the offsets. This patch adds the register map offsets and adds offset variables in struct dwc3_omap to cache the offsets Signed-off-by: George Cherian <george.cherian@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-omap.c')
-rw-r--r--drivers/usb/dwc3/dwc3-omap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
index f8f76e6b7b46..f67ff4c4eaca 100644
--- a/drivers/usb/dwc3/dwc3-omap.c
+++ b/drivers/usb/dwc3/dwc3-omap.c
@@ -122,6 +122,12 @@ struct dwc3_omap {
void __iomem *base;
u32 utmi_otg_status;
+ u32 utmi_otg_offset;
+ u32 irqmisc_offset;
+ u32 irq_eoi_offset;
+ u32 debug_offset;
+ u32 irq0_offset;
+ u32 revision;
u32 dma_status:1;
};