blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / arm / mach-omap2 / omap_hwmod_2xxx_3xxx_ipblock_data.c
blobc6c6384de8678f2fb8dd58a996499afdc47fa709
1 /*
2 * omap_hwmod_2xxx_3xxx_ipblock_data.c - common IP block data for OMAP2/3
4 * Copyright (C) 2011 Nokia Corporation
5 * Copyright (C) 2012 Texas Instruments, Inc.
6 * Paul Walmsley
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include <linux/dmaengine.h>
14 #include <linux/omap-dma.h>
16 #include "omap_hwmod.h"
17 #include "hdq1w.h"
19 #include "omap_hwmod_common_data.h"
21 /* UART */
23 static struct omap_hwmod_class_sysconfig omap2_uart_sysc = {
24 .rev_offs = 0x50,
25 .sysc_offs = 0x54,
26 .syss_offs = 0x58,
27 .sysc_flags = (SYSC_HAS_SIDLEMODE |
28 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
29 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
30 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
31 .sysc_fields = &omap_hwmod_sysc_type1,
34 struct omap_hwmod_class omap2_uart_class = {
35 .name = "uart",
36 .sysc = &omap2_uart_sysc,
40 * 'venc' class
41 * video encoder
44 struct omap_hwmod_class omap2_venc_hwmod_class = {
45 .name = "venc",
49 /* Common DMA request line data */
50 struct omap_hwmod_dma_info omap2_uart1_sdma_reqs[] = {
51 { .name = "rx", .dma_req = 50, },
52 { .name = "tx", .dma_req = 49, },
53 { .dma_req = -1 }
56 struct omap_hwmod_dma_info omap2_uart2_sdma_reqs[] = {
57 { .name = "rx", .dma_req = 52, },
58 { .name = "tx", .dma_req = 51, },
59 { .dma_req = -1 }
62 struct omap_hwmod_dma_info omap2_uart3_sdma_reqs[] = {
63 { .name = "rx", .dma_req = 54, },
64 { .name = "tx", .dma_req = 53, },
65 { .dma_req = -1 }
68 struct omap_hwmod_dma_info omap2_i2c1_sdma_reqs[] = {
69 { .name = "tx", .dma_req = 27 },
70 { .name = "rx", .dma_req = 28 },
71 { .dma_req = -1 }
74 struct omap_hwmod_dma_info omap2_i2c2_sdma_reqs[] = {
75 { .name = "tx", .dma_req = 29 },
76 { .name = "rx", .dma_req = 30 },
77 { .dma_req = -1 }
80 struct omap_hwmod_dma_info omap2_mcspi1_sdma_reqs[] = {
81 { .name = "tx0", .dma_req = 35 }, /* DMA_SPI1_TX0 */
82 { .name = "rx0", .dma_req = 36 }, /* DMA_SPI1_RX0 */
83 { .name = "tx1", .dma_req = 37 }, /* DMA_SPI1_TX1 */
84 { .name = "rx1", .dma_req = 38 }, /* DMA_SPI1_RX1 */
85 { .name = "tx2", .dma_req = 39 }, /* DMA_SPI1_TX2 */
86 { .name = "rx2", .dma_req = 40 }, /* DMA_SPI1_RX2 */
87 { .name = "tx3", .dma_req = 41 }, /* DMA_SPI1_TX3 */
88 { .name = "rx3", .dma_req = 42 }, /* DMA_SPI1_RX3 */
89 { .dma_req = -1 }
92 struct omap_hwmod_dma_info omap2_mcspi2_sdma_reqs[] = {
93 { .name = "tx0", .dma_req = 43 }, /* DMA_SPI2_TX0 */
94 { .name = "rx0", .dma_req = 44 }, /* DMA_SPI2_RX0 */
95 { .name = "tx1", .dma_req = 45 }, /* DMA_SPI2_TX1 */
96 { .name = "rx1", .dma_req = 46 }, /* DMA_SPI2_RX1 */
97 { .dma_req = -1 }
100 struct omap_hwmod_dma_info omap2_mcbsp1_sdma_reqs[] = {
101 { .name = "rx", .dma_req = 32 },
102 { .name = "tx", .dma_req = 31 },
103 { .dma_req = -1 }
106 struct omap_hwmod_dma_info omap2_mcbsp2_sdma_reqs[] = {
107 { .name = "rx", .dma_req = 34 },
108 { .name = "tx", .dma_req = 33 },
109 { .dma_req = -1 }
112 struct omap_hwmod_dma_info omap2_mcbsp3_sdma_reqs[] = {
113 { .name = "rx", .dma_req = 18 },
114 { .name = "tx", .dma_req = 17 },
115 { .dma_req = -1 }
118 /* Other IP block data */
122 * omap_hwmod class data
125 struct omap_hwmod_class l3_hwmod_class = {
126 .name = "l3"
129 struct omap_hwmod_class l4_hwmod_class = {
130 .name = "l4"
133 struct omap_hwmod_class mpu_hwmod_class = {
134 .name = "mpu"
137 struct omap_hwmod_class iva_hwmod_class = {
138 .name = "iva"
141 /* Common MPU IRQ line data */
143 struct omap_hwmod_irq_info omap2_timer1_mpu_irqs[] = {
144 { .irq = 37 + OMAP_INTC_START, },
145 { .irq = -1 },
148 struct omap_hwmod_irq_info omap2_timer2_mpu_irqs[] = {
149 { .irq = 38 + OMAP_INTC_START, },
150 { .irq = -1 },
153 struct omap_hwmod_irq_info omap2_timer3_mpu_irqs[] = {
154 { .irq = 39 + OMAP_INTC_START, },
155 { .irq = -1 },
158 struct omap_hwmod_irq_info omap2_timer4_mpu_irqs[] = {
159 { .irq = 40 + OMAP_INTC_START, },
160 { .irq = -1 },
163 struct omap_hwmod_irq_info omap2_timer5_mpu_irqs[] = {
164 { .irq = 41 + OMAP_INTC_START, },
165 { .irq = -1 },
168 struct omap_hwmod_irq_info omap2_timer6_mpu_irqs[] = {
169 { .irq = 42 + OMAP_INTC_START, },
170 { .irq = -1 },
173 struct omap_hwmod_irq_info omap2_timer7_mpu_irqs[] = {
174 { .irq = 43 + OMAP_INTC_START, },
175 { .irq = -1 },
178 struct omap_hwmod_irq_info omap2_timer8_mpu_irqs[] = {
179 { .irq = 44 + OMAP_INTC_START, },
180 { .irq = -1 },
183 struct omap_hwmod_irq_info omap2_timer9_mpu_irqs[] = {
184 { .irq = 45 + OMAP_INTC_START, },
185 { .irq = -1 },
188 struct omap_hwmod_irq_info omap2_timer10_mpu_irqs[] = {
189 { .irq = 46 + OMAP_INTC_START, },
190 { .irq = -1 },
193 struct omap_hwmod_irq_info omap2_timer11_mpu_irqs[] = {
194 { .irq = 47 + OMAP_INTC_START, },
195 { .irq = -1 },
198 struct omap_hwmod_irq_info omap2_uart1_mpu_irqs[] = {
199 { .irq = 72 + OMAP_INTC_START, },
200 { .irq = -1 },
203 struct omap_hwmod_irq_info omap2_uart2_mpu_irqs[] = {
204 { .irq = 73 + OMAP_INTC_START, },
205 { .irq = -1 },
208 struct omap_hwmod_irq_info omap2_uart3_mpu_irqs[] = {
209 { .irq = 74 + OMAP_INTC_START, },
210 { .irq = -1 },
213 struct omap_hwmod_irq_info omap2_dispc_irqs[] = {
214 { .irq = 25 + OMAP_INTC_START, },
215 { .irq = -1 },
218 struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs[] = {
219 { .irq = 56 + OMAP_INTC_START, },
220 { .irq = -1 },
223 struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs[] = {
224 { .irq = 57 + OMAP_INTC_START, },
225 { .irq = -1 },
228 struct omap_hwmod_irq_info omap2_gpio1_irqs[] = {
229 { .irq = 29 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK1 */
230 { .irq = -1 },
233 struct omap_hwmod_irq_info omap2_gpio2_irqs[] = {
234 { .irq = 30 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK2 */
235 { .irq = -1 },
238 struct omap_hwmod_irq_info omap2_gpio3_irqs[] = {
239 { .irq = 31 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK3 */
240 { .irq = -1 },
243 struct omap_hwmod_irq_info omap2_gpio4_irqs[] = {
244 { .irq = 32 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK4 */
245 { .irq = -1 },
248 struct omap_hwmod_irq_info omap2_dma_system_irqs[] = {
249 { .name = "0", .irq = 12 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ0 */
250 { .name = "1", .irq = 13 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ1 */
251 { .name = "2", .irq = 14 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ2 */
252 { .name = "3", .irq = 15 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ3 */
253 { .irq = -1 },
256 struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs[] = {
257 { .irq = 65 + OMAP_INTC_START, },
258 { .irq = -1 },
261 struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs[] = {
262 { .irq = 66 + OMAP_INTC_START, },
263 { .irq = -1 },
266 struct omap_hwmod_class_sysconfig omap2_hdq1w_sysc = {
267 .rev_offs = 0x0,
268 .sysc_offs = 0x14,
269 .syss_offs = 0x18,
270 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
271 SYSS_HAS_RESET_STATUS),
272 .sysc_fields = &omap_hwmod_sysc_type1,
275 struct omap_hwmod_class omap2_hdq1w_class = {
276 .name = "hdq1w",
277 .sysc = &omap2_hdq1w_sysc,
278 .reset = &omap_hdq1w_reset,
281 struct omap_hwmod_irq_info omap2_hdq1w_mpu_irqs[] = {
282 { .irq = 58 + OMAP_INTC_START, },
283 { .irq = -1 },