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 SYSS_HAS_RESET_STATUS),
48 .sysc_fields = &omap_hwmod_sysc_type1,
51 struct omap_hwmod_class omap2_dss_hwmod_class = {
53 .sysc = &omap2_dss_sysc,
61 static struct omap_hwmod_class_sysconfig omap2_dispc_sysc = {
65 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
66 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
67 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
68 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
69 .sysc_fields = &omap_hwmod_sysc_type1,
72 struct omap_hwmod_class omap2_dispc_hwmod_class = {
74 .sysc = &omap2_dispc_sysc,
79 * remote frame buffer interface
82 static struct omap_hwmod_class_sysconfig omap2_rfbi_sysc = {
86 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
88 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
89 .sysc_fields = &omap_hwmod_sysc_type1,
92 struct omap_hwmod_class omap2_rfbi_hwmod_class = {
94 .sysc = &omap2_rfbi_sysc,
102 struct omap_hwmod_class omap2_venc_hwmod_class = {
107 /* Common DMA request line data */
108 struct omap_hwmod_dma_info omap2_uart1_sdma_reqs[] = {
109 { .name = "rx", .dma_req = OMAP24XX_DMA_UART1_RX, },
110 { .name = "tx", .dma_req = OMAP24XX_DMA_UART1_TX, },
114 struct omap_hwmod_dma_info omap2_uart2_sdma_reqs[] = {
115 { .name = "rx", .dma_req = OMAP24XX_DMA_UART2_RX, },
116 { .name = "tx", .dma_req = OMAP24XX_DMA_UART2_TX, },
120 struct omap_hwmod_dma_info omap2_uart3_sdma_reqs[] = {
121 { .name = "rx", .dma_req = OMAP24XX_DMA_UART3_RX, },
122 { .name = "tx", .dma_req = OMAP24XX_DMA_UART3_TX, },
126 struct omap_hwmod_dma_info omap2_i2c1_sdma_reqs[] = {
127 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C1_TX },
128 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C1_RX },
132 struct omap_hwmod_dma_info omap2_i2c2_sdma_reqs[] = {
133 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C2_TX },
134 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C2_RX },
138 struct omap_hwmod_dma_info omap2_mcspi1_sdma_reqs[] = {
139 { .name = "tx0", .dma_req = 35 }, /* DMA_SPI1_TX0 */
140 { .name = "rx0", .dma_req = 36 }, /* DMA_SPI1_RX0 */
141 { .name = "tx1", .dma_req = 37 }, /* DMA_SPI1_TX1 */
142 { .name = "rx1", .dma_req = 38 }, /* DMA_SPI1_RX1 */
143 { .name = "tx2", .dma_req = 39 }, /* DMA_SPI1_TX2 */
144 { .name = "rx2", .dma_req = 40 }, /* DMA_SPI1_RX2 */
145 { .name = "tx3", .dma_req = 41 }, /* DMA_SPI1_TX3 */
146 { .name = "rx3", .dma_req = 42 }, /* DMA_SPI1_RX3 */
150 struct omap_hwmod_dma_info omap2_mcspi2_sdma_reqs[] = {
151 { .name = "tx0", .dma_req = 43 }, /* DMA_SPI2_TX0 */
152 { .name = "rx0", .dma_req = 44 }, /* DMA_SPI2_RX0 */
153 { .name = "tx1", .dma_req = 45 }, /* DMA_SPI2_TX1 */
154 { .name = "rx1", .dma_req = 46 }, /* DMA_SPI2_RX1 */
158 struct omap_hwmod_dma_info omap2_mcbsp1_sdma_reqs[] = {
159 { .name = "rx", .dma_req = 32 },
160 { .name = "tx", .dma_req = 31 },
164 struct omap_hwmod_dma_info omap2_mcbsp2_sdma_reqs[] = {
165 { .name = "rx", .dma_req = 34 },
166 { .name = "tx", .dma_req = 33 },
170 struct omap_hwmod_dma_info omap2_mcbsp3_sdma_reqs[] = {
171 { .name = "rx", .dma_req = 18 },
172 { .name = "tx", .dma_req = 17 },
176 /* Other IP block data */
180 * omap_hwmod class data
183 struct omap_hwmod_class l3_hwmod_class = {
187 struct omap_hwmod_class l4_hwmod_class = {
191 struct omap_hwmod_class mpu_hwmod_class = {
195 struct omap_hwmod_class iva_hwmod_class = {
199 /* Common MPU IRQ line data */
201 struct omap_hwmod_irq_info omap2_timer1_mpu_irqs[] = {
206 struct omap_hwmod_irq_info omap2_timer2_mpu_irqs[] = {
211 struct omap_hwmod_irq_info omap2_timer3_mpu_irqs[] = {
216 struct omap_hwmod_irq_info omap2_timer4_mpu_irqs[] = {
221 struct omap_hwmod_irq_info omap2_timer5_mpu_irqs[] = {
226 struct omap_hwmod_irq_info omap2_timer6_mpu_irqs[] = {
231 struct omap_hwmod_irq_info omap2_timer7_mpu_irqs[] = {
236 struct omap_hwmod_irq_info omap2_timer8_mpu_irqs[] = {
241 struct omap_hwmod_irq_info omap2_timer9_mpu_irqs[] = {
246 struct omap_hwmod_irq_info omap2_timer10_mpu_irqs[] = {
251 struct omap_hwmod_irq_info omap2_timer11_mpu_irqs[] = {
256 struct omap_hwmod_irq_info omap2_uart1_mpu_irqs[] = {
257 { .irq = INT_24XX_UART1_IRQ, },
261 struct omap_hwmod_irq_info omap2_uart2_mpu_irqs[] = {
262 { .irq = INT_24XX_UART2_IRQ, },
266 struct omap_hwmod_irq_info omap2_uart3_mpu_irqs[] = {
267 { .irq = INT_24XX_UART3_IRQ, },
271 struct omap_hwmod_irq_info omap2_dispc_irqs[] = {
276 struct omap_hwmod_irq_info omap2_i2c1_mpu_irqs[] = {
277 { .irq = INT_24XX_I2C1_IRQ, },
281 struct omap_hwmod_irq_info omap2_i2c2_mpu_irqs[] = {
282 { .irq = INT_24XX_I2C2_IRQ, },
286 struct omap_hwmod_irq_info omap2_gpio1_irqs[] = {
287 { .irq = 29 }, /* INT_24XX_GPIO_BANK1 */
291 struct omap_hwmod_irq_info omap2_gpio2_irqs[] = {
292 { .irq = 30 }, /* INT_24XX_GPIO_BANK2 */
296 struct omap_hwmod_irq_info omap2_gpio3_irqs[] = {
297 { .irq = 31 }, /* INT_24XX_GPIO_BANK3 */
301 struct omap_hwmod_irq_info omap2_gpio4_irqs[] = {
302 { .irq = 32 }, /* INT_24XX_GPIO_BANK4 */
306 struct omap_hwmod_irq_info omap2_dma_system_irqs[] = {
307 { .name = "0", .irq = 12 }, /* INT_24XX_SDMA_IRQ0 */
308 { .name = "1", .irq = 13 }, /* INT_24XX_SDMA_IRQ1 */
309 { .name = "2", .irq = 14 }, /* INT_24XX_SDMA_IRQ2 */
310 { .name = "3", .irq = 15 }, /* INT_24XX_SDMA_IRQ3 */
314 struct omap_hwmod_irq_info omap2_mcspi1_mpu_irqs[] = {
319 struct omap_hwmod_irq_info omap2_mcspi2_mpu_irqs[] = {