0001
0002 #ifndef __ASM_ARCH_PXA3xx_U2D_H
0003 #define __ASM_ARCH_PXA3xx_U2D_H
0004
0005
0006
0007
0008 #define U2DCR (0x0000)
0009 #define U2DCR_NDC (1 << 31)
0010 #define U2DCR_HSTC (0x7 << 28)
0011 #define U2DCR_SPEOREN (1 << 27)
0012 #define U2DCR_FSTC (0x7 << 24)
0013 #define U2DCR_UCLKOVR (1 << 22)
0014 #define U2DCR_ABP (1 << 21)
0015 #define U2DCR_ADD (1 << 20)
0016 #define U2DCR_CC (1 << 19)
0017 #define U2DCR_HS (1 << 18)
0018 #define U2DCR_SMAC (1 << 17)
0019 #define U2DCR_DWRE (1 << 16)
0020 #define U2DCR_ACN (0xf << 12)
0021 #define U2DCR_AIN (0xf << 8)
0022 #define U2DCR_AAISN (0xf << 4)
0023 #define U2DCR_EMCE (1 << 3)
0024 #define U2DCR_UDR (1 << 2)
0025 #define U2DCR_UDA (1 << 1)
0026 #define U2DCR_UDE (1 << 0)
0027
0028 #define U2DICR (0x0004)
0029 #define U2DISR (0x000C)
0030 #define U2DINT_CC (1 << 31)
0031 #define U2DINT_SOF (1 << 30)
0032 #define U2DINT_USOF (1 << 29)
0033 #define U2DINT_RU (1 << 28)
0034 #define U2DINT_SU (1 << 27)
0035 #define U2DINT_RS (1 << 26)
0036 #define U2DINT_DPE (1 << 25)
0037 #define U2DINT_FIFOERR (0x4)
0038 #define U2DINT_PACKETCMP (0x2)
0039 #define U2DINT_SPACKETCMP (0x1)
0040
0041 #define U2DFNR (0x0014)
0042
0043 #define U2DINT(n, intr) (((intr) & 0x07) << (((n) & 0x07) * 3))
0044 #define U2DICR2 (0x0008)
0045 #define U2DISR2 (0x0010)
0046
0047 #define U2DOTGCR (0x0020)
0048 #define U2DOTGCR_OTGEN (1 << 31)
0049 #define U2DOTGCR_AALTHNP (1 << 30)
0050 #define U2DOTGCR_AHNP (1 << 29)
0051 #define U2DOTGCR_BHNP (1 << 28)
0052
0053 #ifdef CONFIG_CPU_PXA930
0054 #define U2DOTGCR_LPA (1 << 15)
0055 #define U2DOTGCR_IESI (1 << 13)
0056 #define U2DOTGCR_ISSI (1 << 12)
0057 #endif
0058
0059 #define U2DOTGCR_CKAF (1 << 5)
0060 #define U2DOTGCR_UTMID (1 << 4)
0061 #define U2DOTGCR_ULAF (1 << 3)
0062 #define U2DOTGCR_SMAF (1 << 2)
0063 #define U2DOTGCR_RTSM (1 << 1)
0064 #define U2DOTGCR_ULE (1 << 0)
0065
0066 #define U2DOTGICR (0x0024)
0067 #define U2DOTGISR (0x0028)
0068
0069 #define U2DOTGINT_SF (1 << 17)
0070 #define U2DOTGINT_SI (1 << 16)
0071 #define U2DOTGINT_RLS1 (1 << 14)
0072 #define U2DOTGINT_RLS0 (1 << 13)
0073 #define U2DOTGINT_RID (1 << 12)
0074 #define U2DOTGINT_RSE (1 << 11)
0075 #define U2DOTGINT_RSV (1 << 10)
0076 #define U2DOTGINT_RVV (1 << 9)
0077 #define U2DOTGINT_RCK (1 << 8)
0078 #define U2DOTGINT_FLS1 (1 << 6)
0079 #define U2DOTGINT_FLS0 (1 << 5)
0080 #define U2DOTGINT_FID (1 << 4)
0081 #define U2DOTGINT_FSE (1 << 3)
0082 #define U2DOTGINT_FSV (1 << 2)
0083 #define U2DOTGINT_FVV (1 << 1)
0084 #define U2DOTGINT_FCK (1 << 0)
0085
0086 #define U2DOTGUSR (0x002C)
0087 #define U2DOTGUSR_LPA (1 << 31)
0088 #define U2DOTGUSR_S6A (1 << 30)
0089 #define U2DOTGUSR_S3A (1 << 29)
0090 #define U2DOTGUSR_CKA (1 << 28)
0091 #define U2DOTGUSR_LS1 (1 << 6)
0092 #define U2DOTGUSR_LS0 (1 << 5)
0093 #define U2DOTGUSR_ID (1 << 4)
0094 #define U2DOTGUSR_SE (1 << 3)
0095 #define U2DOTGUSR_SV (1 << 2)
0096 #define U2DOTGUSR_VV (1 << 1)
0097 #define U2DOTGUSR_CK (1 << 0)
0098
0099 #define U2DOTGUCR (0x0030)
0100 #define U2DOTGUCR_RUN (1 << 25)
0101 #define U2DOTGUCR_RNW (1 << 24)
0102 #define U2DOTGUCR_ADDR (0x3f << 16)
0103 #define U2DOTGUCR_WDATA (0xff << 8)
0104 #define U2DOTGUCR_RDATA (0xff << 0)
0105
0106 #define U2DP3CR (0x0034)
0107 #define U2DP3CR_P2SS (0x3 << 8)
0108 #define U2DP3CR_P3SS (0x7 << 4)
0109 #define U2DP3CR_VPVMBEN (0x1 << 2)
0110 #define U2DP3CR_CFG (0x3 << 0)
0111
0112 #define U2DCSR0 (0x0100)
0113 #define U2DCSR0_IPA (1 << 8)
0114 #define U2DCSR0_SA (1 << 7)
0115 #define U2DCSR0_RNE (1 << 6)
0116 #define U2DCSR0_FST (1 << 5)
0117 #define U2DCSR0_SST (1 << 4)
0118 #define U2DCSR0_DME (1 << 3)
0119 #define U2DCSR0_FTF (1 << 2)
0120 #define U2DCSR0_IPR (1 << 1)
0121 #define U2DCSR0_OPC (1 << 0)
0122
0123 #define U2DCSR(x) (0x0100 + ((x) << 2))
0124 #define U2DCSR_BF (1 << 10)
0125 #define U2DCSR_BE (1 << 10)
0126 #define U2DCSR_DPE (1 << 9)
0127 #define U2DCSR_FEF (1 << 8)
0128 #define U2DCSR_SP (1 << 7)
0129 #define U2DCSR_BNE (1 << 6)
0130 #define U2DCSR_BNF (1 << 6)
0131 #define U2DCSR_FST (1 << 5)
0132 #define U2DCSR_SST (1 << 4)
0133 #define U2DCSR_DME (1 << 3)
0134 #define U2DCSR_TRN (1 << 2)
0135 #define U2DCSR_PC (1 << 1)
0136 #define U2DCSR_FS (1 << 0)
0137
0138 #define U2DBCR0 (0x0200)
0139 #define U2DBCR(x) (0x0200 + ((x) << 2))
0140
0141 #define U2DDR0 (0x0300)
0142
0143 #define U2DEPCR(x) (0x0400 + ((x) << 2))
0144 #define U2DEPCR_EE (1 << 0)
0145 #define U2DEPCR_BS_MASK (0x3FE)
0146
0147 #define U2DSCA (0x0500)
0148 #define U2DSCA_VALUE (0x0120)
0149
0150 #define U2DEN0 (0x0504)
0151 #define U2DEN(x) (0x0504 + ((x) << 2))
0152
0153
0154 #define U2DMACSR0 (0x1000)
0155 #define U2DMACSR(x) (0x1000 + ((x) << 2))
0156 #define U2DMACSR_RUN (1 << 31)
0157 #define U2DMACSR_STOPIRQEN (1 << 29)
0158 #define U2DMACSR_EORIRQEN (1 << 28)
0159 #define U2DMACSR_EORJMPEN (1 << 27)
0160 #define U2DMACSR_EORSTOPEN (1 << 26)
0161 #define U2DMACSR_RASIRQEN (1 << 23)
0162 #define U2DMACSR_MASKRUN (1 << 22)
0163 #define U2DMACSR_SCEMC (3 << 18)
0164 #define U2DMACSR_SCEMI (0x1f << 13)
0165 #define U2DMACSR_BUSERRTYPE (7 << 10)
0166 #define U2DMACSR_EORINTR (1 << 9)
0167 #define U2DMACSR_REQPEND (1 << 8)
0168 #define U2DMACSR_RASINTR (1 << 4)
0169 #define U2DMACSR_STOPINTR (1 << 3)
0170 #define U2DMACSR_ENDINTR (1 << 2)
0171 #define U2DMACSR_STARTINTR (1 << 1)
0172 #define U2DMACSR_BUSERRINTR (1 << 0)
0173
0174 #define U2DMACR (0x1080)
0175 #define U2DMAINT (0x10F0)
0176
0177 #define U2DMABR0 (0x1100)
0178 #define U2DMABR(x) (0x1100 + (x) << 2)
0179
0180 #define U2DMADADR0 (0x1200)
0181 #define U2DMADADR(x) (0x1200 + (x) * 0x10)
0182
0183 #define U2DMADADR_STOP (1U << 0)
0184
0185 #define U2DMASADR0 (0x1204)
0186 #define U2DMASADR(x) (0x1204 + (x) * 0x10)
0187 #define U2DMATADR0 (0x1208)
0188 #define U2DMATADR(x) (0x1208 + (x) * 0x10)
0189
0190 #define U2DMACMDR0 (0x120C)
0191 #define U2DMACMDR(x) (0x120C + (x) * 0x10)
0192
0193 #define U2DMACMDR_XFRDIS (1 << 31)
0194 #define U2DMACMDR_STARTIRQEN (1 << 22)
0195 #define U2DMACMDR_ENDIRQEN (1 << 21)
0196 #define U2DMACMDR_PACKCOMP (1 << 13)
0197 #define U2DMACMDR_LEN (0x07ff)
0198
0199 #endif