2 * omap_hwmod_2xxx_3xxx_ipblock_data.c - common IP block data for OMAP2/3
4 * Copyright (C) 2011 Nokia Corporation
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 #include <plat/omap_hwmod.h>
12 #include <plat/serial.h>
15 #include <mach/irqs.h>
17 #include "omap_hwmod_common_data.h"
21 static struct omap_hwmod_class_sysconfig omap2_uart_sysc
= {
25 .sysc_flags
= (SYSC_HAS_SIDLEMODE
|
26 SYSC_HAS_ENAWAKEUP
| SYSC_HAS_SOFTRESET
|
27 SYSC_HAS_AUTOIDLE
| SYSS_HAS_RESET_STATUS
),
28 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
29 .sysc_fields
= &omap_hwmod_sysc_type1
,
32 struct omap_hwmod_class omap2_uart_class
= {
34 .sysc
= &omap2_uart_sysc
,
42 static struct omap_hwmod_class_sysconfig omap2_dss_sysc
= {
46 .sysc_flags
= (SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
47 .sysc_fields
= &omap_hwmod_sysc_type1
,
50 struct omap_hwmod_class omap2_dss_hwmod_class
= {
52 .sysc
= &omap2_dss_sysc
,
60 static struct omap_hwmod_class_sysconfig omap2_dispc_sysc
= {
64 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_MIDLEMODE
|
65 SYSC_HAS_SOFTRESET
| SYSC_HAS_AUTOIDLE
),
66 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
|
67 MSTANDBY_FORCE
| MSTANDBY_NO
| MSTANDBY_SMART
),
68 .sysc_fields
= &omap_hwmod_sysc_type1
,
71 struct omap_hwmod_class omap2_dispc_hwmod_class
= {
73 .sysc
= &omap2_dispc_sysc
,
78 * remote frame buffer interface
81 static struct omap_hwmod_class_sysconfig omap2_rfbi_sysc
= {
85 .sysc_flags
= (SYSC_HAS_SIDLEMODE
| SYSC_HAS_SOFTRESET
|
87 .idlemodes
= (SIDLE_FORCE
| SIDLE_NO
| SIDLE_SMART
),
88 .sysc_fields
= &omap_hwmod_sysc_type1
,
91 struct omap_hwmod_class omap2_rfbi_hwmod_class
= {
93 .sysc
= &omap2_rfbi_sysc
,
101 struct omap_hwmod_class omap2_venc_hwmod_class
= {
106 /* Common DMA request line data */
107 struct omap_hwmod_dma_info omap2_uart1_sdma_reqs
[] = {
108 { .name
= "rx", .dma_req
= OMAP24XX_DMA_UART1_RX
, },
109 { .name
= "tx", .dma_req
= OMAP24XX_DMA_UART1_TX
, },
113 struct omap_hwmod_dma_info omap2_uart2_sdma_reqs
[] = {
114 { .name
= "rx", .dma_req
= OMAP24XX_DMA_UART2_RX
, },
115 { .name
= "tx", .dma_req
= OMAP24XX_DMA_UART2_TX
, },
119 struct omap_hwmod_dma_info omap2_uart3_sdma_reqs
[] = {
120 { .name
= "rx", .dma_req
= OMAP24XX_DMA_UART3_RX
, },
121 { .name
= "tx", .dma_req
= OMAP24XX_DMA_UART3_TX
, },
125 struct omap_hwmod_dma_info omap2_i2c1_sdma_reqs
[] = {
126 { .name
= "tx", .dma_req
= OMAP24XX_DMA_I2C1_TX
},
127 { .name
= "rx", .dma_req
= OMAP24XX_DMA_I2C1_RX
},
131 struct omap_hwmod_dma_info omap2_i2c2_sdma_reqs
[] = {
132 { .name
= "tx", .dma_req
= OMAP24XX_DMA_I2C2_TX
},
133 { .name
= "rx", .dma_req
= OMAP24XX_DMA_I2C2_RX
},
137 struct omap_hwmod_dma_info omap2_mcspi1_sdma_reqs
[] = {
138 { .name
= "tx0", .dma_req
= 35 }, /* DMA_SPI1_TX0 */
139 { .name
= "rx0", .dma_req
= 36 }, /* DMA_SPI1_RX0 */
140 { .name
= "tx1", .dma_req
= 37 }, /* DMA_SPI1_TX1 */
141 { .name
= "rx1", .dma_req
= 38 }, /* DMA_SPI1_RX1 */
142 { .name
= "tx2", .dma_req
= 39 }, /* DMA_SPI1_TX2 */
143 { .name
= "rx2", .dma_req
= 40 }, /* DMA_SPI1_RX2 */
144 { .name
= "tx3", .dma_req
= 41 }, /* DMA_SPI1_TX3 */
145 { .name
= "rx3", .dma_req
= 42 }, /* DMA_SPI1_RX3 */
149 struct omap_hwmod_dma_info omap2_mcspi2_sdma_reqs
[] = {
150 { .name
= "tx0", .dma_req
= 43 }, /* DMA_SPI2_TX0 */
151 { .name
= "rx0", .dma_req
= 44 }, /* DMA_SPI2_RX0 */
152 { .name
= "tx1", .dma_req
= 45 }, /* DMA_SPI2_TX1 */
153 { .name
= "rx1", .dma_req
= 46 }, /* DMA_SPI2_RX1 */
157 struct omap_hwmod_dma_info omap2_mcbsp1_sdma_reqs
[] = {
158 { .name
= "rx", .dma_req
= 32 },
159 { .name
= "tx", .dma_req
= 31 },
163 struct omap_hwmod_dma_info omap2_mcbsp2_sdma_reqs
[] = {
164 { .name
= "rx", .dma_req
= 34 },
165 { .name
= "tx", .dma_req
= 33 },
169 struct omap_hwmod_dma_info omap2_mcbsp3_sdma_reqs
[] = {
170 { .name
= "rx", .dma_req
= 18 },
171 { .name
= "tx", .dma_req
= 17 },
175 /* Other IP block data */
179 * omap_hwmod class data
182 struct omap_hwmod_class l3_hwmod_class
= {
186 struct omap_hwmod_class l4_hwmod_class
= {
190 struct omap_hwmod_class mpu_hwmod_class
= {
194 struct omap_hwmod_class iva_hwmod_class
= {
198 /* Common MPU IRQ line data */
200 struct omap_hwmod_irq_info omap2_timer1_mpu_irqs
[] = {
205 struct omap_hwmod_irq_info omap2_timer2_mpu_irqs
[] = {
210 struct omap_hwmod_irq_info omap2_timer3_mpu_irqs
[] = {
215 struct omap_hwmod_irq_info omap2_timer4_mpu_irqs
[] = {
220 struct omap_hwmod_irq_info omap2_timer5_mpu_irqs
[] = {
225 struct omap_hwmod_irq_info omap2_timer6_mpu_irqs
[] = {
230 struct omap_hwmod_irq_info omap2_timer7_mpu_irqs
[] = {
235 struct omap_hwmod_irq_info omap2_timer8_mpu_irqs
[] = {
240 struct omap_hwmod_irq_info omap2_timer9_mpu_irqs
[] = {
245 struct omap_hwmod_irq_info omap2_timer10_mpu_irqs
[] = {
250 struct omap_hwmod_irq_info omap2_timer11_mpu_irqs
[] = {
255 struct omap_hwmod_irq_info omap2_uart1_mpu_irqs
[] = {
256 { .irq
= INT_24XX_UART1_IRQ
, },
260 struct omap_hwmod_irq_info omap2_uart2_mpu_irqs
[] = {
261 { .irq
= INT_24XX_UART2_IRQ
, },
265 struct omap_hwmod_irq_info omap2_uart3_mpu_irqs
[] = {
266 { .irq
= INT_24XX_UART3_IRQ
, },
270 struct omap_hwmod_irq_info omap2_dispc_irqs
[] = {
275 struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs
[] = {
276 { .irq
= INT_24XX_I2C1_IRQ
, },
280 struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs
[] = {
281 { .irq
= INT_24XX_I2C2_IRQ
, },
285 struct omap_hwmod_irq_info omap2_gpio1_irqs
[] = {
286 { .irq
= 29 }, /* INT_24XX_GPIO_BANK1 */
290 struct omap_hwmod_irq_info omap2_gpio2_irqs
[] = {
291 { .irq
= 30 }, /* INT_24XX_GPIO_BANK2 */
295 struct omap_hwmod_irq_info omap2_gpio3_irqs
[] = {
296 { .irq
= 31 }, /* INT_24XX_GPIO_BANK3 */
300 struct omap_hwmod_irq_info omap2_gpio4_irqs
[] = {
301 { .irq
= 32 }, /* INT_24XX_GPIO_BANK4 */
305 struct omap_hwmod_irq_info omap2_dma_system_irqs
[] = {
306 { .name
= "0", .irq
= 12 }, /* INT_24XX_SDMA_IRQ0 */
307 { .name
= "1", .irq
= 13 }, /* INT_24XX_SDMA_IRQ1 */
308 { .name
= "2", .irq
= 14 }, /* INT_24XX_SDMA_IRQ2 */
309 { .name
= "3", .irq
= 15 }, /* INT_24XX_SDMA_IRQ3 */
313 struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs
[] = {
318 struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs
[] = {