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.
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 <plat-omap/dma-omap.h>
15 #include "../plat-omap/common.h"
17 #include "omap_hwmod.h"
20 #include "omap_hwmod_common_data.h"
25 static struct omap_hwmod_class_sysconfig omap2_uart_sysc = {
29 .sysc_flags = (SYSC_HAS_SIDLEMODE |
30 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
31 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
32 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
33 .sysc_fields = &omap_hwmod_sysc_type1,
36 struct omap_hwmod_class omap2_uart_class = {
38 .sysc = &omap2_uart_sysc,
46 static struct omap_hwmod_class_sysconfig omap2_dss_sysc = {
50 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
51 SYSS_HAS_RESET_STATUS),
52 .sysc_fields = &omap_hwmod_sysc_type1,
55 struct omap_hwmod_class omap2_dss_hwmod_class = {
57 .sysc = &omap2_dss_sysc,
58 .reset = omap_dss_reset,
63 * remote frame buffer interface
66 static struct omap_hwmod_class_sysconfig omap2_rfbi_sysc = {
70 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
72 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
73 .sysc_fields = &omap_hwmod_sysc_type1,
76 struct omap_hwmod_class omap2_rfbi_hwmod_class = {
78 .sysc = &omap2_rfbi_sysc,
86 struct omap_hwmod_class omap2_venc_hwmod_class = {
91 /* Common DMA request line data */
92 struct omap_hwmod_dma_info omap2_uart1_sdma_reqs[] = {
93 { .name = "rx", .dma_req = OMAP24XX_DMA_UART1_RX, },
94 { .name = "tx", .dma_req = OMAP24XX_DMA_UART1_TX, },
98 struct omap_hwmod_dma_info omap2_uart2_sdma_reqs[] = {
99 { .name = "rx", .dma_req = OMAP24XX_DMA_UART2_RX, },
100 { .name = "tx", .dma_req = OMAP24XX_DMA_UART2_TX, },
104 struct omap_hwmod_dma_info omap2_uart3_sdma_reqs[] = {
105 { .name = "rx", .dma_req = OMAP24XX_DMA_UART3_RX, },
106 { .name = "tx", .dma_req = OMAP24XX_DMA_UART3_TX, },
110 struct omap_hwmod_dma_info omap2_i2c1_sdma_reqs[] = {
111 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C1_TX },
112 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C1_RX },
116 struct omap_hwmod_dma_info omap2_i2c2_sdma_reqs[] = {
117 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C2_TX },
118 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C2_RX },
122 struct omap_hwmod_dma_info omap2_mcspi1_sdma_reqs[] = {
123 { .name = "tx0", .dma_req = 35 }, /* DMA_SPI1_TX0 */
124 { .name = "rx0", .dma_req = 36 }, /* DMA_SPI1_RX0 */
125 { .name = "tx1", .dma_req = 37 }, /* DMA_SPI1_TX1 */
126 { .name = "rx1", .dma_req = 38 }, /* DMA_SPI1_RX1 */
127 { .name = "tx2", .dma_req = 39 }, /* DMA_SPI1_TX2 */
128 { .name = "rx2", .dma_req = 40 }, /* DMA_SPI1_RX2 */
129 { .name = "tx3", .dma_req = 41 }, /* DMA_SPI1_TX3 */
130 { .name = "rx3", .dma_req = 42 }, /* DMA_SPI1_RX3 */
134 struct omap_hwmod_dma_info omap2_mcspi2_sdma_reqs[] = {
135 { .name = "tx0", .dma_req = 43 }, /* DMA_SPI2_TX0 */
136 { .name = "rx0", .dma_req = 44 }, /* DMA_SPI2_RX0 */
137 { .name = "tx1", .dma_req = 45 }, /* DMA_SPI2_TX1 */
138 { .name = "rx1", .dma_req = 46 }, /* DMA_SPI2_RX1 */
142 struct omap_hwmod_dma_info omap2_mcbsp1_sdma_reqs[] = {
143 { .name = "rx", .dma_req = 32 },
144 { .name = "tx", .dma_req = 31 },
148 struct omap_hwmod_dma_info omap2_mcbsp2_sdma_reqs[] = {
149 { .name = "rx", .dma_req = 34 },
150 { .name = "tx", .dma_req = 33 },
154 struct omap_hwmod_dma_info omap2_mcbsp3_sdma_reqs[] = {
155 { .name = "rx", .dma_req = 18 },
156 { .name = "tx", .dma_req = 17 },
160 /* Other IP block data */
164 * omap_hwmod class data
167 struct omap_hwmod_class l3_hwmod_class = {
171 struct omap_hwmod_class l4_hwmod_class = {
175 struct omap_hwmod_class mpu_hwmod_class = {
179 struct omap_hwmod_class iva_hwmod_class = {
183 /* Common MPU IRQ line data */
185 struct omap_hwmod_irq_info omap2_timer1_mpu_irqs[] = {
186 { .irq = 37 + OMAP_INTC_START, },
190 struct omap_hwmod_irq_info omap2_timer2_mpu_irqs[] = {
191 { .irq = 38 + OMAP_INTC_START, },
195 struct omap_hwmod_irq_info omap2_timer3_mpu_irqs[] = {
196 { .irq = 39 + OMAP_INTC_START, },
200 struct omap_hwmod_irq_info omap2_timer4_mpu_irqs[] = {
201 { .irq = 40 + OMAP_INTC_START, },
205 struct omap_hwmod_irq_info omap2_timer5_mpu_irqs[] = {
206 { .irq = 41 + OMAP_INTC_START, },
210 struct omap_hwmod_irq_info omap2_timer6_mpu_irqs[] = {
211 { .irq = 42 + OMAP_INTC_START, },
215 struct omap_hwmod_irq_info omap2_timer7_mpu_irqs[] = {
216 { .irq = 43 + OMAP_INTC_START, },
220 struct omap_hwmod_irq_info omap2_timer8_mpu_irqs[] = {
221 { .irq = 44 + OMAP_INTC_START, },
225 struct omap_hwmod_irq_info omap2_timer9_mpu_irqs[] = {
226 { .irq = 45 + OMAP_INTC_START, },
230 struct omap_hwmod_irq_info omap2_timer10_mpu_irqs[] = {
231 { .irq = 46 + OMAP_INTC_START, },
235 struct omap_hwmod_irq_info omap2_timer11_mpu_irqs[] = {
236 { .irq = 47 + OMAP_INTC_START, },
240 struct omap_hwmod_irq_info omap2_uart1_mpu_irqs[] = {
241 { .irq = 72 + OMAP_INTC_START, },
245 struct omap_hwmod_irq_info omap2_uart2_mpu_irqs[] = {
246 { .irq = 73 + OMAP_INTC_START, },
250 struct omap_hwmod_irq_info omap2_uart3_mpu_irqs[] = {
251 { .irq = 74 + OMAP_INTC_START, },
255 struct omap_hwmod_irq_info omap2_dispc_irqs[] = {
256 { .irq = 25 + OMAP_INTC_START, },
260 struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs[] = {
261 { .irq = 56 + OMAP_INTC_START, },
265 struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs[] = {
266 { .irq = 57 + OMAP_INTC_START, },
270 struct omap_hwmod_irq_info omap2_gpio1_irqs[] = {
271 { .irq = 29 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK1 */
275 struct omap_hwmod_irq_info omap2_gpio2_irqs[] = {
276 { .irq = 30 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK2 */
280 struct omap_hwmod_irq_info omap2_gpio3_irqs[] = {
281 { .irq = 31 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK3 */
285 struct omap_hwmod_irq_info omap2_gpio4_irqs[] = {
286 { .irq = 32 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK4 */
290 struct omap_hwmod_irq_info omap2_dma_system_irqs[] = {
291 { .name = "0", .irq = 12 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ0 */
292 { .name = "1", .irq = 13 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ1 */
293 { .name = "2", .irq = 14 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ2 */
294 { .name = "3", .irq = 15 + OMAP_INTC_START, }, /* INT_24XX_SDMA_IRQ3 */
298 struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs[] = {
299 { .irq = 65 + OMAP_INTC_START, },
303 struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs[] = {
304 { .irq = 66 + OMAP_INTC_START, },
308 struct omap_hwmod_class_sysconfig omap2_hdq1w_sysc = {
312 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
313 SYSS_HAS_RESET_STATUS),
314 .sysc_fields = &omap_hwmod_sysc_type1,
317 struct omap_hwmod_class omap2_hdq1w_class = {
319 .sysc = &omap2_hdq1w_sysc,
320 .reset = &omap_hdq1w_reset,
323 struct omap_hwmod_irq_info omap2_hdq1w_mpu_irqs[] = {
324 { .irq = 58 + OMAP_INTC_START, },