Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
omap_hwmod_2xxx_3xxx_ipblock_data.c
Go to the documentation of this file.
1 /*
2  * omap_hwmod_2xxx_3xxx_ipblock_data.c - common IP block data for OMAP2/3
3  *
4  * Copyright (C) 2011 Nokia Corporation
5  * Copyright (C) 2012 Texas Instruments, Inc.
6  * Paul Walmsley
7  *
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.
11  */
12 #include <plat/omap_hwmod.h>
13 #include <plat/serial.h>
14 #include <plat/dma.h>
15 #include <plat/common.h>
16 #include "hdq1w.h"
17 
18 #include "omap_hwmod_common_data.h"
19 
20 /* UART */
21 
22 static struct omap_hwmod_class_sysconfig omap2_uart_sysc = {
23  .rev_offs = 0x50,
24  .sysc_offs = 0x54,
25  .syss_offs = 0x58,
26  .sysc_flags = (SYSC_HAS_SIDLEMODE |
30  .sysc_fields = &omap_hwmod_sysc_type1,
31 };
32 
34  .name = "uart",
35  .sysc = &omap2_uart_sysc,
36 };
37 
38 /*
39  * 'dss' class
40  * display sub-system
41  */
42 
43 static struct omap_hwmod_class_sysconfig omap2_dss_sysc = {
44  .rev_offs = 0x0000,
45  .sysc_offs = 0x0010,
46  .syss_offs = 0x0014,
47  .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
50 };
51 
53  .name = "dss",
54  .sysc = &omap2_dss_sysc,
55  .reset = omap_dss_reset,
56 };
57 
58 /*
59  * 'rfbi' class
60  * remote frame buffer interface
61  */
62 
63 static struct omap_hwmod_class_sysconfig omap2_rfbi_sysc = {
64  .rev_offs = 0x0000,
65  .sysc_offs = 0x0010,
66  .syss_offs = 0x0014,
67  .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
70  .sysc_fields = &omap_hwmod_sysc_type1,
71 };
72 
74  .name = "rfbi",
75  .sysc = &omap2_rfbi_sysc,
76 };
77 
78 /*
79  * 'venc' class
80  * video encoder
81  */
82 
84  .name = "venc",
85 };
86 
87 
88 /* Common DMA request line data */
90  { .name = "rx", .dma_req = OMAP24XX_DMA_UART1_RX, },
91  { .name = "tx", .dma_req = OMAP24XX_DMA_UART1_TX, },
92  { .dma_req = -1 }
93 };
94 
96  { .name = "rx", .dma_req = OMAP24XX_DMA_UART2_RX, },
97  { .name = "tx", .dma_req = OMAP24XX_DMA_UART2_TX, },
98  { .dma_req = -1 }
99 };
100 
102  { .name = "rx", .dma_req = OMAP24XX_DMA_UART3_RX, },
103  { .name = "tx", .dma_req = OMAP24XX_DMA_UART3_TX, },
104  { .dma_req = -1 }
105 };
106 
108  { .name = "tx", .dma_req = OMAP24XX_DMA_I2C1_TX },
109  { .name = "rx", .dma_req = OMAP24XX_DMA_I2C1_RX },
110  { .dma_req = -1 }
111 };
112 
114  { .name = "tx", .dma_req = OMAP24XX_DMA_I2C2_TX },
115  { .name = "rx", .dma_req = OMAP24XX_DMA_I2C2_RX },
116  { .dma_req = -1 }
117 };
118 
120  { .name = "tx0", .dma_req = 35 }, /* DMA_SPI1_TX0 */
121  { .name = "rx0", .dma_req = 36 }, /* DMA_SPI1_RX0 */
122  { .name = "tx1", .dma_req = 37 }, /* DMA_SPI1_TX1 */
123  { .name = "rx1", .dma_req = 38 }, /* DMA_SPI1_RX1 */
124  { .name = "tx2", .dma_req = 39 }, /* DMA_SPI1_TX2 */
125  { .name = "rx2", .dma_req = 40 }, /* DMA_SPI1_RX2 */
126  { .name = "tx3", .dma_req = 41 }, /* DMA_SPI1_TX3 */
127  { .name = "rx3", .dma_req = 42 }, /* DMA_SPI1_RX3 */
128  { .dma_req = -1 }
129 };
130 
132  { .name = "tx0", .dma_req = 43 }, /* DMA_SPI2_TX0 */
133  { .name = "rx0", .dma_req = 44 }, /* DMA_SPI2_RX0 */
134  { .name = "tx1", .dma_req = 45 }, /* DMA_SPI2_TX1 */
135  { .name = "rx1", .dma_req = 46 }, /* DMA_SPI2_RX1 */
136  { .dma_req = -1 }
137 };
138 
140  { .name = "rx", .dma_req = 32 },
141  { .name = "tx", .dma_req = 31 },
142  { .dma_req = -1 }
143 };
144 
146  { .name = "rx", .dma_req = 34 },
147  { .name = "tx", .dma_req = 33 },
148  { .dma_req = -1 }
149 };
150 
152  { .name = "rx", .dma_req = 18 },
153  { .name = "tx", .dma_req = 17 },
154  { .dma_req = -1 }
155 };
156 
157 /* Other IP block data */
158 
159 
160 /*
161  * omap_hwmod class data
162  */
163 
165  .name = "l3"
166 };
167 
169  .name = "l4"
170 };
171 
173  .name = "mpu"
174 };
175 
177  .name = "iva"
178 };
179 
180 /* Common MPU IRQ line data */
181 
183  { .irq = 37 + OMAP_INTC_START, },
184  { .irq = -1 },
185 };
186 
188  { .irq = 38 + OMAP_INTC_START, },
189  { .irq = -1 },
190 };
191 
193  { .irq = 39 + OMAP_INTC_START, },
194  { .irq = -1 },
195 };
196 
198  { .irq = 40 + OMAP_INTC_START, },
199  { .irq = -1 },
200 };
201 
203  { .irq = 41 + OMAP_INTC_START, },
204  { .irq = -1 },
205 };
206 
208  { .irq = 42 + OMAP_INTC_START, },
209  { .irq = -1 },
210 };
211 
213  { .irq = 43 + OMAP_INTC_START, },
214  { .irq = -1 },
215 };
216 
218  { .irq = 44 + OMAP_INTC_START, },
219  { .irq = -1 },
220 };
221 
223  { .irq = 45 + OMAP_INTC_START, },
224  { .irq = -1 },
225 };
226 
228  { .irq = 46 + OMAP_INTC_START, },
229  { .irq = -1 },
230 };
231 
233  { .irq = 47 + OMAP_INTC_START, },
234  { .irq = -1 },
235 };
236 
238  { .irq = 72 + OMAP_INTC_START, },
239  { .irq = -1 },
240 };
241 
243  { .irq = 73 + OMAP_INTC_START, },
244  { .irq = -1 },
245 };
246 
248  { .irq = 74 + OMAP_INTC_START, },
249  { .irq = -1 },
250 };
251 
253  { .irq = 25 + OMAP_INTC_START, },
254  { .irq = -1 },
255 };
256 
258  { .irq = 56 + OMAP_INTC_START, },
259  { .irq = -1 },
260 };
261 
263  { .irq = 57 + OMAP_INTC_START, },
264  { .irq = -1 },
265 };
266 
268  { .irq = 29 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK1 */
269  { .irq = -1 },
270 };
271 
273  { .irq = 30 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK2 */
274  { .irq = -1 },
275 };
276 
278  { .irq = 31 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK3 */
279  { .irq = -1 },
280 };
281 
283  { .irq = 32 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK4 */
284  { .irq = -1 },
285 };
286 
288  { .name = "0", .irq = 12 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ0 */
289  { .name = "1", .irq = 13 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ1 */
290  { .name = "2", .irq = 14 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ2 */
291  { .name = "3", .irq = 15 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ3 */
292  { .irq = -1 },
293 };
294 
296  { .irq = 65 + OMAP_INTC_START, },
297  { .irq = -1 },
298 };
299 
301  { .irq = 66 + OMAP_INTC_START, },
302  { .irq = -1 },
303 };
304 
306  .rev_offs = 0x0,
307  .sysc_offs = 0x14,
308  .syss_offs = 0x18,
309  .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
312 };
313 
315  .name = "hdq1w",
316  .sysc = &omap2_hdq1w_sysc,
317  .reset = &omap_hdq1w_reset,
318 };
319 
321  { .irq = 58 + OMAP_INTC_START, },
322  { .irq = -1 },
323 };
324