aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-pxa
diff options
context:
space:
mode:
authoreric miao <eric.miao@marvell.com>2007-12-24 21:34:33 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-01-26 10:07:53 -0500
commit88d456386c2b3ac96e7170f5bc555b3c43f5a951 (patch)
tree152d448c0572eaf0a820fcd608cc6734951e73f0 /include/asm-arm/arch-pxa
parentf92a629cf75b4f1df46fd8bc0a345ea3d3246281 (diff)
[ARM] pxa: make OHCI register definitions available to both pxa27x and pxa3xx
Signed-off-by: eric miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-pxa')
-rw-r--r--include/asm-arm/arch-pxa/pxa-regs.h139
1 files changed, 71 insertions, 68 deletions
diff --git a/include/asm-arm/arch-pxa/pxa-regs.h b/include/asm-arm/arch-pxa/pxa-regs.h
index dd014712dfa5..f7809ea77396 100644
--- a/include/asm-arm/arch-pxa/pxa-regs.h
+++ b/include/asm-arm/arch-pxa/pxa-regs.h
@@ -1969,74 +1969,6 @@
1969#define KPAS_SO (0x1 << 31) 1969#define KPAS_SO (0x1 << 31)
1970#define KPASMKPx_SO (0x1 << 31) 1970#define KPASMKPx_SO (0x1 << 31)
1971 1971
1972/*
1973 * UHC: USB Host Controller (OHCI-like) register definitions
1974 */
1975#define UHC_BASE_PHYS (0x4C000000)
1976#define UHCREV __REG(0x4C000000) /* UHC HCI Spec Revision */
1977#define UHCHCON __REG(0x4C000004) /* UHC Host Control Register */
1978#define UHCCOMS __REG(0x4C000008) /* UHC Command Status Register */
1979#define UHCINTS __REG(0x4C00000C) /* UHC Interrupt Status Register */
1980#define UHCINTE __REG(0x4C000010) /* UHC Interrupt Enable */
1981#define UHCINTD __REG(0x4C000014) /* UHC Interrupt Disable */
1982#define UHCHCCA __REG(0x4C000018) /* UHC Host Controller Comm. Area */
1983#define UHCPCED __REG(0x4C00001C) /* UHC Period Current Endpt Descr */
1984#define UHCCHED __REG(0x4C000020) /* UHC Control Head Endpt Descr */
1985#define UHCCCED __REG(0x4C000024) /* UHC Control Current Endpt Descr */
1986#define UHCBHED __REG(0x4C000028) /* UHC Bulk Head Endpt Descr */
1987#define UHCBCED __REG(0x4C00002C) /* UHC Bulk Current Endpt Descr */
1988#define UHCDHEAD __REG(0x4C000030) /* UHC Done Head */
1989#define UHCFMI __REG(0x4C000034) /* UHC Frame Interval */
1990#define UHCFMR __REG(0x4C000038) /* UHC Frame Remaining */
1991#define UHCFMN __REG(0x4C00003C) /* UHC Frame Number */
1992#define UHCPERS __REG(0x4C000040) /* UHC Periodic Start */
1993#define UHCLS __REG(0x4C000044) /* UHC Low Speed Threshold */
1994
1995#define UHCRHDA __REG(0x4C000048) /* UHC Root Hub Descriptor A */
1996#define UHCRHDA_NOCP (1 << 12) /* No over current protection */
1997
1998#define UHCRHDB __REG(0x4C00004C) /* UHC Root Hub Descriptor B */
1999#define UHCRHS __REG(0x4C000050) /* UHC Root Hub Status */
2000#define UHCRHPS1 __REG(0x4C000054) /* UHC Root Hub Port 1 Status */
2001#define UHCRHPS2 __REG(0x4C000058) /* UHC Root Hub Port 2 Status */
2002#define UHCRHPS3 __REG(0x4C00005C) /* UHC Root Hub Port 3 Status */
2003
2004#define UHCSTAT __REG(0x4C000060) /* UHC Status Register */
2005#define UHCSTAT_UPS3 (1 << 16) /* USB Power Sense Port3 */
2006#define UHCSTAT_SBMAI (1 << 15) /* System Bus Master Abort Interrupt*/
2007#define UHCSTAT_SBTAI (1 << 14) /* System Bus Target Abort Interrupt*/
2008#define UHCSTAT_UPRI (1 << 13) /* USB Port Resume Interrupt */
2009#define UHCSTAT_UPS2 (1 << 12) /* USB Power Sense Port 2 */
2010#define UHCSTAT_UPS1 (1 << 11) /* USB Power Sense Port 1 */
2011#define UHCSTAT_HTA (1 << 10) /* HCI Target Abort */
2012#define UHCSTAT_HBA (1 << 8) /* HCI Buffer Active */
2013#define UHCSTAT_RWUE (1 << 7) /* HCI Remote Wake Up Event */
2014
2015#define UHCHR __REG(0x4C000064) /* UHC Reset Register */
2016#define UHCHR_SSEP3 (1 << 11) /* Sleep Standby Enable for Port3 */
2017#define UHCHR_SSEP2 (1 << 10) /* Sleep Standby Enable for Port2 */
2018#define UHCHR_SSEP1 (1 << 9) /* Sleep Standby Enable for Port1 */
2019#define UHCHR_PCPL (1 << 7) /* Power control polarity low */
2020#define UHCHR_PSPL (1 << 6) /* Power sense polarity low */
2021#define UHCHR_SSE (1 << 5) /* Sleep Standby Enable */
2022#define UHCHR_UIT (1 << 4) /* USB Interrupt Test */
2023#define UHCHR_SSDC (1 << 3) /* Simulation Scale Down Clock */
2024#define UHCHR_CGR (1 << 2) /* Clock Generation Reset */
2025#define UHCHR_FHR (1 << 1) /* Force Host Controller Reset */
2026#define UHCHR_FSBIR (1 << 0) /* Force System Bus Iface Reset */
2027
2028#define UHCHIE __REG(0x4C000068) /* UHC Interrupt Enable Register*/
2029#define UHCHIE_UPS3IE (1 << 14) /* Power Sense Port3 IntEn */
2030#define UHCHIE_UPRIE (1 << 13) /* Port Resume IntEn */
2031#define UHCHIE_UPS2IE (1 << 12) /* Power Sense Port2 IntEn */
2032#define UHCHIE_UPS1IE (1 << 11) /* Power Sense Port1 IntEn */
2033#define UHCHIE_TAIE (1 << 10) /* HCI Interface Transfer Abort
2034 Interrupt Enable*/
2035#define UHCHIE_HBAIE (1 << 8) /* HCI Buffer Active IntEn */
2036#define UHCHIE_RWIE (1 << 7) /* Remote Wake-up IntEn */
2037
2038#define UHCHIT __REG(0x4C00006C) /* UHC Interrupt Test register */
2039
2040/* Camera Interface */ 1972/* Camera Interface */
2041#define CICR0 __REG(0x50000000) 1973#define CICR0 __REG(0x50000000)
2042#define CICR1 __REG(0x50000004) 1974#define CICR1 __REG(0x50000004)
@@ -2184,6 +2116,77 @@
2184 2116
2185#endif 2117#endif
2186 2118
2119#if defined(CONFIG_PXA27x) || defined(CONFIG_PXA3xx)
2120/*
2121 * UHC: USB Host Controller (OHCI-like) register definitions
2122 */
2123#define UHC_BASE_PHYS (0x4C000000)
2124#define UHCREV __REG(0x4C000000) /* UHC HCI Spec Revision */
2125#define UHCHCON __REG(0x4C000004) /* UHC Host Control Register */
2126#define UHCCOMS __REG(0x4C000008) /* UHC Command Status Register */
2127#define UHCINTS __REG(0x4C00000C) /* UHC Interrupt Status Register */
2128#define UHCINTE __REG(0x4C000010) /* UHC Interrupt Enable */
2129#define UHCINTD __REG(0x4C000014) /* UHC Interrupt Disable */
2130#define UHCHCCA __REG(0x4C000018) /* UHC Host Controller Comm. Area */
2131#define UHCPCED __REG(0x4C00001C) /* UHC Period Current Endpt Descr */
2132#define UHCCHED __REG(0x4C000020) /* UHC Control Head Endpt Descr */
2133#define UHCCCED __REG(0x4C000024) /* UHC Control Current Endpt Descr */
2134#define UHCBHED __REG(0x4C000028) /* UHC Bulk Head Endpt Descr */
2135#define UHCBCED __REG(0x4C00002C) /* UHC Bulk Current Endpt Descr */
2136#define UHCDHEAD __REG(0x4C000030) /* UHC Done Head */
2137#define UHCFMI __REG(0x4C000034) /* UHC Frame Interval */
2138#define UHCFMR __REG(0x4C000038) /* UHC Frame Remaining */
2139#define UHCFMN __REG(0x4C00003C) /* UHC Frame Number */
2140#define UHCPERS __REG(0x4C000040) /* UHC Periodic Start */
2141#define UHCLS __REG(0x4C000044) /* UHC Low Speed Threshold */
2142
2143#define UHCRHDA __REG(0x4C000048) /* UHC Root Hub Descriptor A */
2144#define UHCRHDA_NOCP (1 << 12) /* No over current protection */
2145
2146#define UHCRHDB __REG(0x4C00004C) /* UHC Root Hub Descriptor B */
2147#define UHCRHS __REG(0x4C000050) /* UHC Root Hub Status */
2148#define UHCRHPS1 __REG(0x4C000054) /* UHC Root Hub Port 1 Status */
2149#define UHCRHPS2 __REG(0x4C000058) /* UHC Root Hub Port 2 Status */
2150#define UHCRHPS3 __REG(0x4C00005C) /* UHC Root Hub Port 3 Status */
2151
2152#define UHCSTAT __REG(0x4C000060) /* UHC Status Register */
2153#define UHCSTAT_UPS3 (1 << 16) /* USB Power Sense Port3 */
2154#define UHCSTAT_SBMAI (1 << 15) /* System Bus Master Abort Interrupt*/
2155#define UHCSTAT_SBTAI (1 << 14) /* System Bus Target Abort Interrupt*/
2156#define UHCSTAT_UPRI (1 << 13) /* USB Port Resume Interrupt */
2157#define UHCSTAT_UPS2 (1 << 12) /* USB Power Sense Port 2 */
2158#define UHCSTAT_UPS1 (1 << 11) /* USB Power Sense Port 1 */
2159#define UHCSTAT_HTA (1 << 10) /* HCI Target Abort */
2160#define UHCSTAT_HBA (1 << 8) /* HCI Buffer Active */
2161#define UHCSTAT_RWUE (1 << 7) /* HCI Remote Wake Up Event */
2162
2163#define UHCHR __REG(0x4C000064) /* UHC Reset Register */
2164#define UHCHR_SSEP3 (1 << 11) /* Sleep Standby Enable for Port3 */
2165#define UHCHR_SSEP2 (1 << 10) /* Sleep Standby Enable for Port2 */
2166#define UHCHR_SSEP1 (1 << 9) /* Sleep Standby Enable for Port1 */
2167#define UHCHR_PCPL (1 << 7) /* Power control polarity low */
2168#define UHCHR_PSPL (1 << 6) /* Power sense polarity low */
2169#define UHCHR_SSE (1 << 5) /* Sleep Standby Enable */
2170#define UHCHR_UIT (1 << 4) /* USB Interrupt Test */
2171#define UHCHR_SSDC (1 << 3) /* Simulation Scale Down Clock */
2172#define UHCHR_CGR (1 << 2) /* Clock Generation Reset */
2173#define UHCHR_FHR (1 << 1) /* Force Host Controller Reset */
2174#define UHCHR_FSBIR (1 << 0) /* Force System Bus Iface Reset */
2175
2176#define UHCHIE __REG(0x4C000068) /* UHC Interrupt Enable Register*/
2177#define UHCHIE_UPS3IE (1 << 14) /* Power Sense Port3 IntEn */
2178#define UHCHIE_UPRIE (1 << 13) /* Port Resume IntEn */
2179#define UHCHIE_UPS2IE (1 << 12) /* Power Sense Port2 IntEn */
2180#define UHCHIE_UPS1IE (1 << 11) /* Power Sense Port1 IntEn */
2181#define UHCHIE_TAIE (1 << 10) /* HCI Interface Transfer Abort
2182 Interrupt Enable*/
2183#define UHCHIE_HBAIE (1 << 8) /* HCI Buffer Active IntEn */
2184#define UHCHIE_RWIE (1 << 7) /* Remote Wake-up IntEn */
2185
2186#define UHCHIT __REG(0x4C00006C) /* UHC Interrupt Test register */
2187
2188#endif /* CONFIG_PXA27x || CONFIG_PXA3xx */
2189
2187/* PWRMODE register M field values */ 2190/* PWRMODE register M field values */
2188 2191
2189#define PWRMODE_IDLE 0x1 2192#define PWRMODE_IDLE 0x1