32 #ifdef CONFIG_MACH_TX49XX
33 static inline bool txx9_dma_have_SMPCHN(
void)
37 #define TXX9_DMA_USE_SIMPLE_CHAIN
39 static inline bool txx9_dma_have_SMPCHN(
void)
45 #ifdef __LITTLE_ENDIAN
46 #ifdef CONFIG_MACH_TX49XX
47 #define CCR_LE TXX9_DMA_CCR_LE
51 #define MCR_LE TXX9_DMA_MCR_LE
63 #define TXX9_DMA_REG32(name) u32 __pad_##name; u32 name
65 #define TXX9_DMA_REG32(name) u32 name; u32 __pad_##name
70 #if defined(CONFIG_32BIT) && !defined(CONFIG_64BIT_PHYS_ADDR)
109 #define TXX9_DMA_MCR_EIS(ch) (0x10000000<<(ch))
110 #define TXX9_DMA_MCR_DIS(ch) (0x01000000<<(ch))
111 #define TXX9_DMA_MCR_RSFIF 0x00000080
112 #define TXX9_DMA_MCR_FIFUM(ch) (0x00000008<<(ch))
113 #define TXX9_DMA_MCR_LE 0x00000004
114 #define TXX9_DMA_MCR_RPRT 0x00000002
115 #define TXX9_DMA_MCR_MSTEN 0x00000001
118 #define TXX9_DMA_CCR_IMMCHN 0x20000000
119 #define TXX9_DMA_CCR_USEXFSZ 0x10000000
120 #define TXX9_DMA_CCR_LE 0x08000000
121 #define TXX9_DMA_CCR_DBINH 0x04000000
122 #define TXX9_DMA_CCR_SBINH 0x02000000
123 #define TXX9_DMA_CCR_CHRST 0x01000000
124 #define TXX9_DMA_CCR_RVBYTE 0x00800000
125 #define TXX9_DMA_CCR_ACKPOL 0x00400000
126 #define TXX9_DMA_CCR_REQPL 0x00200000
127 #define TXX9_DMA_CCR_EGREQ 0x00100000
128 #define TXX9_DMA_CCR_CHDN 0x00080000
129 #define TXX9_DMA_CCR_DNCTL 0x00060000
130 #define TXX9_DMA_CCR_EXTRQ 0x00010000
131 #define TXX9_DMA_CCR_INTRQD 0x0000e000
132 #define TXX9_DMA_CCR_INTENE 0x00001000
133 #define TXX9_DMA_CCR_INTENC 0x00000800
134 #define TXX9_DMA_CCR_INTENT 0x00000400
135 #define TXX9_DMA_CCR_CHNEN 0x00000200
136 #define TXX9_DMA_CCR_XFACT 0x00000100
137 #define TXX9_DMA_CCR_SMPCHN 0x00000020
138 #define TXX9_DMA_CCR_XFSZ(order) (((order) << 2) & 0x0000001c)
139 #define TXX9_DMA_CCR_XFSZ_1 TXX9_DMA_CCR_XFSZ(0)
140 #define TXX9_DMA_CCR_XFSZ_2 TXX9_DMA_CCR_XFSZ(1)
141 #define TXX9_DMA_CCR_XFSZ_4 TXX9_DMA_CCR_XFSZ(2)
142 #define TXX9_DMA_CCR_XFSZ_8 TXX9_DMA_CCR_XFSZ(3)
143 #define TXX9_DMA_CCR_XFSZ_X4 TXX9_DMA_CCR_XFSZ(4)
144 #define TXX9_DMA_CCR_XFSZ_X8 TXX9_DMA_CCR_XFSZ(5)
145 #define TXX9_DMA_CCR_XFSZ_X16 TXX9_DMA_CCR_XFSZ(6)
146 #define TXX9_DMA_CCR_XFSZ_X32 TXX9_DMA_CCR_XFSZ(7)
147 #define TXX9_DMA_CCR_MEMIO 0x00000002
148 #define TXX9_DMA_CCR_SNGAD 0x00000001
151 #define TXX9_DMA_CSR_CHNEN 0x00000400
152 #define TXX9_DMA_CSR_STLXFER 0x00000200
153 #define TXX9_DMA_CSR_XFACT 0x00000100
154 #define TXX9_DMA_CSR_ABCHC 0x00000080
155 #define TXX9_DMA_CSR_NCHNC 0x00000040
156 #define TXX9_DMA_CSR_NTRNFC 0x00000020
157 #define TXX9_DMA_CSR_EXTDN 0x00000010
158 #define TXX9_DMA_CSR_CFERR 0x00000008
159 #define TXX9_DMA_CSR_CHERR 0x00000004
160 #define TXX9_DMA_CSR_DESERR 0x00000002
161 #define TXX9_DMA_CSR_SORERR 0x00000001
198 return __is_dmac64(dc->
ddev);
201 #ifdef TXX9_DMA_USE_SIMPLE_CHAIN
204 #if defined(CONFIG_32BIT) && !defined(CONFIG_64BIT_PHYS_ADDR)
220 #define txx9dmac_hwdesc txx9dmac_cregs
221 #define txx9dmac_hwdesc32 txx9dmac_cregs32
238 #ifdef TXX9_DMA_USE_SIMPLE_CHAIN
250 static inline void txx9dmac_desc_set_INTENT(
struct txx9dmac_dev *ddev,
260 static inline void txx9dmac_desc_set_nosimple(
struct txx9dmac_dev *ddev,
277 static inline void txx9dmac_desc_set_INTENT(
struct txx9dmac_dev *ddev,
280 if (__is_dmac64(ddev))
290 static inline void txx9dmac_desc_set_nosimple(
struct txx9dmac_dev *ddev,
294 if (__is_dmac64(ddev)) {