]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/arm/mach-omap2/omap_hwmod_2430_data.c
audio : AM3517 : Adding i2c info for AIC23 codec
[mirror_ubuntu-bionic-kernel.git] / arch / arm / mach-omap2 / omap_hwmod_2430_data.c
CommitLineData
02bfc030 1/*
7359154e 2 * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips
02bfc030 3 *
7359154e 4 * Copyright (C) 2009-2010 Nokia Corporation
02bfc030
PW
5 * Paul Walmsley
6 *
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.
10 *
11 * XXX handle crossbar/shared link difference for L3?
7359154e 12 * XXX these should be marked initdata for multi-OMAP kernels
02bfc030 13 */
ce491cf8 14#include <plat/omap_hwmod.h>
02bfc030 15#include <mach/irqs.h>
ce491cf8
TL
16#include <plat/cpu.h>
17#include <plat/dma.h>
046465b7 18#include <plat/serial.h>
2004290f 19#include <plat/i2c.h>
aeac0e44 20#include <plat/gpio.h>
37801b3d 21#include <plat/mcbsp.h>
7f904c78 22#include <plat/mcspi.h>
b6b58229 23#include <plat/dmtimer.h>
6ab8946f 24#include <plat/mmc.h>
de56dbb6 25#include <plat/l3_2xxx.h>
02bfc030 26
43b40992
PW
27#include "omap_hwmod_common_data.h"
28
02bfc030 29#include "prm-regbits-24xx.h"
165e2161 30#include "cm-regbits-24xx.h"
ff2516fb 31#include "wd_timer.h"
02bfc030 32
7359154e
PW
33/*
34 * OMAP2430 hardware module integration data
35 *
36 * ALl of the data in this section should be autogeneratable from the
37 * TI hardware database or other technical documentation. Data that
38 * is driver-specific or driver-kernel integration-specific belongs
39 * elsewhere.
40 */
41
02bfc030 42static struct omap_hwmod omap2430_mpu_hwmod;
08072acf 43static struct omap_hwmod omap2430_iva_hwmod;
4a7cf90a 44static struct omap_hwmod omap2430_l3_main_hwmod;
02bfc030 45static struct omap_hwmod omap2430_l4_core_hwmod;
de56dbb6
SG
46static struct omap_hwmod omap2430_dss_core_hwmod;
47static struct omap_hwmod omap2430_dss_dispc_hwmod;
48static struct omap_hwmod omap2430_dss_rfbi_hwmod;
49static struct omap_hwmod omap2430_dss_venc_hwmod;
165e2161 50static struct omap_hwmod omap2430_wd_timer2_hwmod;
aeac0e44
VC
51static struct omap_hwmod omap2430_gpio1_hwmod;
52static struct omap_hwmod omap2430_gpio2_hwmod;
53static struct omap_hwmod omap2430_gpio3_hwmod;
54static struct omap_hwmod omap2430_gpio4_hwmod;
55static struct omap_hwmod omap2430_gpio5_hwmod;
82cbd1ae 56static struct omap_hwmod omap2430_dma_system_hwmod;
37801b3d
C
57static struct omap_hwmod omap2430_mcbsp1_hwmod;
58static struct omap_hwmod omap2430_mcbsp2_hwmod;
59static struct omap_hwmod omap2430_mcbsp3_hwmod;
60static struct omap_hwmod omap2430_mcbsp4_hwmod;
61static struct omap_hwmod omap2430_mcbsp5_hwmod;
7f904c78
C
62static struct omap_hwmod omap2430_mcspi1_hwmod;
63static struct omap_hwmod omap2430_mcspi2_hwmod;
64static struct omap_hwmod omap2430_mcspi3_hwmod;
bce06f37
PW
65static struct omap_hwmod omap2430_mmc1_hwmod;
66static struct omap_hwmod omap2430_mmc2_hwmod;
02bfc030
PW
67
68/* L3 -> L4_CORE interface */
4a7cf90a
KH
69static struct omap_hwmod_ocp_if omap2430_l3_main__l4_core = {
70 .master = &omap2430_l3_main_hwmod,
02bfc030
PW
71 .slave = &omap2430_l4_core_hwmod,
72 .user = OCP_USER_MPU | OCP_USER_SDMA,
73};
74
75/* MPU -> L3 interface */
4a7cf90a 76static struct omap_hwmod_ocp_if omap2430_mpu__l3_main = {
02bfc030 77 .master = &omap2430_mpu_hwmod,
4a7cf90a 78 .slave = &omap2430_l3_main_hwmod,
02bfc030
PW
79 .user = OCP_USER_MPU,
80};
81
82/* Slave interfaces on the L3 interconnect */
4a7cf90a
KH
83static struct omap_hwmod_ocp_if *omap2430_l3_main_slaves[] = {
84 &omap2430_mpu__l3_main,
02bfc030
PW
85};
86
de56dbb6
SG
87/* DSS -> l3 */
88static struct omap_hwmod_ocp_if omap2430_dss__l3 = {
89 .master = &omap2430_dss_core_hwmod,
90 .slave = &omap2430_l3_main_hwmod,
91 .fw = {
92 .omap2 = {
93 .l3_perm_bit = OMAP2_L3_CORE_FW_CONNID_DSS,
94 .flags = OMAP_FIREWALL_L3,
95 }
96 },
97 .user = OCP_USER_MPU | OCP_USER_SDMA,
98};
99
02bfc030 100/* Master interfaces on the L3 interconnect */
4a7cf90a
KH
101static struct omap_hwmod_ocp_if *omap2430_l3_main_masters[] = {
102 &omap2430_l3_main__l4_core,
02bfc030
PW
103};
104
105/* L3 */
4a7cf90a 106static struct omap_hwmod omap2430_l3_main_hwmod = {
fa98347e 107 .name = "l3_main",
43b40992 108 .class = &l3_hwmod_class,
4a7cf90a
KH
109 .masters = omap2430_l3_main_masters,
110 .masters_cnt = ARRAY_SIZE(omap2430_l3_main_masters),
111 .slaves = omap2430_l3_main_slaves,
112 .slaves_cnt = ARRAY_SIZE(omap2430_l3_main_slaves),
2eb1875d
KH
113 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
114 .flags = HWMOD_NO_IDLEST,
02bfc030
PW
115};
116
117static struct omap_hwmod omap2430_l4_wkup_hwmod;
046465b7
KH
118static struct omap_hwmod omap2430_uart1_hwmod;
119static struct omap_hwmod omap2430_uart2_hwmod;
120static struct omap_hwmod omap2430_uart3_hwmod;
2004290f
PW
121static struct omap_hwmod omap2430_i2c1_hwmod;
122static struct omap_hwmod omap2430_i2c2_hwmod;
123
44d02acf
HH
124static struct omap_hwmod omap2430_usbhsotg_hwmod;
125
126/* l3_core -> usbhsotg interface */
127static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = {
128 .master = &omap2430_usbhsotg_hwmod,
129 .slave = &omap2430_l3_main_hwmod,
130 .clk = "core_l3_ck",
131 .user = OCP_USER_MPU,
132};
133
2004290f
PW
134/* I2C IP block address space length (in bytes) */
135#define OMAP2_I2C_AS_LEN 128
136
137/* L4 CORE -> I2C1 interface */
138static struct omap_hwmod_addr_space omap2430_i2c1_addr_space[] = {
139 {
140 .pa_start = 0x48070000,
141 .pa_end = 0x48070000 + OMAP2_I2C_AS_LEN - 1,
142 .flags = ADDR_TYPE_RT,
143 },
144};
145
146static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
147 .master = &omap2430_l4_core_hwmod,
148 .slave = &omap2430_i2c1_hwmod,
149 .clk = "i2c1_ick",
150 .addr = omap2430_i2c1_addr_space,
151 .addr_cnt = ARRAY_SIZE(omap2430_i2c1_addr_space),
152 .user = OCP_USER_MPU | OCP_USER_SDMA,
153};
154
155/* L4 CORE -> I2C2 interface */
156static struct omap_hwmod_addr_space omap2430_i2c2_addr_space[] = {
157 {
158 .pa_start = 0x48072000,
159 .pa_end = 0x48072000 + OMAP2_I2C_AS_LEN - 1,
160 .flags = ADDR_TYPE_RT,
161 },
162};
163
164static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
165 .master = &omap2430_l4_core_hwmod,
166 .slave = &omap2430_i2c2_hwmod,
167 .clk = "i2c2_ick",
168 .addr = omap2430_i2c2_addr_space,
169 .addr_cnt = ARRAY_SIZE(omap2430_i2c2_addr_space),
170 .user = OCP_USER_MPU | OCP_USER_SDMA,
171};
02bfc030
PW
172
173/* L4_CORE -> L4_WKUP interface */
174static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
175 .master = &omap2430_l4_core_hwmod,
176 .slave = &omap2430_l4_wkup_hwmod,
177 .user = OCP_USER_MPU | OCP_USER_SDMA,
178};
179
046465b7
KH
180/* L4 CORE -> UART1 interface */
181static struct omap_hwmod_addr_space omap2430_uart1_addr_space[] = {
182 {
183 .pa_start = OMAP2_UART1_BASE,
184 .pa_end = OMAP2_UART1_BASE + SZ_8K - 1,
185 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
186 },
187};
188
189static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
190 .master = &omap2430_l4_core_hwmod,
191 .slave = &omap2430_uart1_hwmod,
192 .clk = "uart1_ick",
193 .addr = omap2430_uart1_addr_space,
194 .addr_cnt = ARRAY_SIZE(omap2430_uart1_addr_space),
195 .user = OCP_USER_MPU | OCP_USER_SDMA,
196};
197
198/* L4 CORE -> UART2 interface */
199static struct omap_hwmod_addr_space omap2430_uart2_addr_space[] = {
200 {
201 .pa_start = OMAP2_UART2_BASE,
202 .pa_end = OMAP2_UART2_BASE + SZ_1K - 1,
203 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
204 },
205};
206
207static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
208 .master = &omap2430_l4_core_hwmod,
209 .slave = &omap2430_uart2_hwmod,
210 .clk = "uart2_ick",
211 .addr = omap2430_uart2_addr_space,
212 .addr_cnt = ARRAY_SIZE(omap2430_uart2_addr_space),
213 .user = OCP_USER_MPU | OCP_USER_SDMA,
214};
215
216/* L4 PER -> UART3 interface */
217static struct omap_hwmod_addr_space omap2430_uart3_addr_space[] = {
218 {
219 .pa_start = OMAP2_UART3_BASE,
220 .pa_end = OMAP2_UART3_BASE + SZ_1K - 1,
221 .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT,
222 },
223};
224
225static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
226 .master = &omap2430_l4_core_hwmod,
227 .slave = &omap2430_uart3_hwmod,
228 .clk = "uart3_ick",
229 .addr = omap2430_uart3_addr_space,
230 .addr_cnt = ARRAY_SIZE(omap2430_uart3_addr_space),
231 .user = OCP_USER_MPU | OCP_USER_SDMA,
232};
233
44d02acf
HH
234/*
235* usbhsotg interface data
236*/
237static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
238 {
239 .pa_start = OMAP243X_HS_BASE,
240 .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
241 .flags = ADDR_TYPE_RT
242 },
243};
244
245/* l4_core ->usbhsotg interface */
246static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
247 .master = &omap2430_l4_core_hwmod,
248 .slave = &omap2430_usbhsotg_hwmod,
249 .clk = "usb_l4_ick",
250 .addr = omap2430_usbhsotg_addrs,
251 .addr_cnt = ARRAY_SIZE(omap2430_usbhsotg_addrs),
252 .user = OCP_USER_MPU,
253};
254
255static struct omap_hwmod_ocp_if *omap2430_usbhsotg_masters[] = {
256 &omap2430_usbhsotg__l3,
257};
258
259static struct omap_hwmod_ocp_if *omap2430_usbhsotg_slaves[] = {
260 &omap2430_l4_core__usbhsotg,
261};
262
bce06f37
PW
263/* L4 CORE -> MMC1 interface */
264static struct omap_hwmod_addr_space omap2430_mmc1_addr_space[] = {
265 {
266 .pa_start = 0x4809c000,
267 .pa_end = 0x4809c1ff,
268 .flags = ADDR_TYPE_RT,
269 },
270};
271
272static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = {
273 .master = &omap2430_l4_core_hwmod,
274 .slave = &omap2430_mmc1_hwmod,
275 .clk = "mmchs1_ick",
276 .addr = omap2430_mmc1_addr_space,
277 .addr_cnt = ARRAY_SIZE(omap2430_mmc1_addr_space),
278 .user = OCP_USER_MPU | OCP_USER_SDMA,
279};
280
281/* L4 CORE -> MMC2 interface */
282static struct omap_hwmod_addr_space omap2430_mmc2_addr_space[] = {
283 {
284 .pa_start = 0x480b4000,
285 .pa_end = 0x480b41ff,
286 .flags = ADDR_TYPE_RT,
287 },
288};
289
290static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
291 .master = &omap2430_l4_core_hwmod,
292 .slave = &omap2430_mmc2_hwmod,
293 .addr = omap2430_mmc2_addr_space,
294 .clk = "mmchs2_ick",
295 .addr_cnt = ARRAY_SIZE(omap2430_mmc2_addr_space),
296 .user = OCP_USER_MPU | OCP_USER_SDMA,
297};
298
02bfc030
PW
299/* Slave interfaces on the L4_CORE interconnect */
300static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
4a7cf90a 301 &omap2430_l3_main__l4_core,
02bfc030
PW
302};
303
304/* Master interfaces on the L4_CORE interconnect */
305static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
306 &omap2430_l4_core__l4_wkup,
bce06f37
PW
307 &omap2430_l4_core__mmc1,
308 &omap2430_l4_core__mmc2,
02bfc030
PW
309};
310
311/* L4 CORE */
312static struct omap_hwmod omap2430_l4_core_hwmod = {
fa98347e 313 .name = "l4_core",
43b40992 314 .class = &l4_hwmod_class,
02bfc030
PW
315 .masters = omap2430_l4_core_masters,
316 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
317 .slaves = omap2430_l4_core_slaves,
318 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
2eb1875d
KH
319 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
320 .flags = HWMOD_NO_IDLEST,
02bfc030
PW
321};
322
323/* Slave interfaces on the L4_WKUP interconnect */
324static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
325 &omap2430_l4_core__l4_wkup,
046465b7
KH
326 &omap2_l4_core__uart1,
327 &omap2_l4_core__uart2,
328 &omap2_l4_core__uart3,
02bfc030
PW
329};
330
331/* Master interfaces on the L4_WKUP interconnect */
332static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
333};
334
7f904c78
C
335/* l4 core -> mcspi1 interface */
336static struct omap_hwmod_addr_space omap2430_mcspi1_addr_space[] = {
337 {
338 .pa_start = 0x48098000,
339 .pa_end = 0x480980ff,
340 .flags = ADDR_TYPE_RT,
341 },
342};
343
344static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
345 .master = &omap2430_l4_core_hwmod,
346 .slave = &omap2430_mcspi1_hwmod,
347 .clk = "mcspi1_ick",
348 .addr = omap2430_mcspi1_addr_space,
349 .addr_cnt = ARRAY_SIZE(omap2430_mcspi1_addr_space),
350 .user = OCP_USER_MPU | OCP_USER_SDMA,
351};
352
353/* l4 core -> mcspi2 interface */
354static struct omap_hwmod_addr_space omap2430_mcspi2_addr_space[] = {
355 {
356 .pa_start = 0x4809a000,
357 .pa_end = 0x4809a0ff,
358 .flags = ADDR_TYPE_RT,
359 },
360};
361
362static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
363 .master = &omap2430_l4_core_hwmod,
364 .slave = &omap2430_mcspi2_hwmod,
365 .clk = "mcspi2_ick",
366 .addr = omap2430_mcspi2_addr_space,
367 .addr_cnt = ARRAY_SIZE(omap2430_mcspi2_addr_space),
368 .user = OCP_USER_MPU | OCP_USER_SDMA,
369};
370
371/* l4 core -> mcspi3 interface */
372static struct omap_hwmod_addr_space omap2430_mcspi3_addr_space[] = {
373 {
374 .pa_start = 0x480b8000,
375 .pa_end = 0x480b80ff,
376 .flags = ADDR_TYPE_RT,
377 },
378};
379
380static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
381 .master = &omap2430_l4_core_hwmod,
382 .slave = &omap2430_mcspi3_hwmod,
383 .clk = "mcspi3_ick",
384 .addr = omap2430_mcspi3_addr_space,
385 .addr_cnt = ARRAY_SIZE(omap2430_mcspi3_addr_space),
386 .user = OCP_USER_MPU | OCP_USER_SDMA,
387};
388
02bfc030
PW
389/* L4 WKUP */
390static struct omap_hwmod omap2430_l4_wkup_hwmod = {
fa98347e 391 .name = "l4_wkup",
43b40992 392 .class = &l4_hwmod_class,
02bfc030
PW
393 .masters = omap2430_l4_wkup_masters,
394 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
395 .slaves = omap2430_l4_wkup_slaves,
396 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
2eb1875d
KH
397 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
398 .flags = HWMOD_NO_IDLEST,
02bfc030
PW
399};
400
401/* Master interfaces on the MPU device */
402static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
4a7cf90a 403 &omap2430_mpu__l3_main,
02bfc030
PW
404};
405
406/* MPU */
407static struct omap_hwmod omap2430_mpu_hwmod = {
5c2c0296 408 .name = "mpu",
43b40992 409 .class = &mpu_hwmod_class,
50ebdac2 410 .main_clk = "mpu_ck",
02bfc030
PW
411 .masters = omap2430_mpu_masters,
412 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
413 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
414};
415
08072acf
PW
416/*
417 * IVA2_1 interface data
418 */
419
420/* IVA2 <- L3 interface */
421static struct omap_hwmod_ocp_if omap2430_l3__iva = {
422 .master = &omap2430_l3_main_hwmod,
423 .slave = &omap2430_iva_hwmod,
424 .clk = "dsp_fck",
425 .user = OCP_USER_MPU | OCP_USER_SDMA,
426};
427
428static struct omap_hwmod_ocp_if *omap2430_iva_masters[] = {
429 &omap2430_l3__iva,
430};
431
432/*
433 * IVA2 (IVA2)
434 */
435
436static struct omap_hwmod omap2430_iva_hwmod = {
437 .name = "iva",
438 .class = &iva_hwmod_class,
439 .masters = omap2430_iva_masters,
440 .masters_cnt = ARRAY_SIZE(omap2430_iva_masters),
441 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
442};
443
b6b58229
TG
444/* Timer Common */
445static struct omap_hwmod_class_sysconfig omap2430_timer_sysc = {
446 .rev_offs = 0x0000,
447 .sysc_offs = 0x0010,
448 .syss_offs = 0x0014,
449 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
450 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
451 SYSC_HAS_AUTOIDLE),
452 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
453 .sysc_fields = &omap_hwmod_sysc_type1,
454};
455
456static struct omap_hwmod_class omap2430_timer_hwmod_class = {
457 .name = "timer",
458 .sysc = &omap2430_timer_sysc,
459 .rev = OMAP_TIMER_IP_VERSION_1,
460};
461
462/* timer1 */
463static struct omap_hwmod omap2430_timer1_hwmod;
464static struct omap_hwmod_irq_info omap2430_timer1_mpu_irqs[] = {
465 { .irq = 37, },
466};
467
468static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
469 {
470 .pa_start = 0x49018000,
471 .pa_end = 0x49018000 + SZ_1K - 1,
472 .flags = ADDR_TYPE_RT
473 },
474};
475
476/* l4_wkup -> timer1 */
477static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
478 .master = &omap2430_l4_wkup_hwmod,
479 .slave = &omap2430_timer1_hwmod,
480 .clk = "gpt1_ick",
481 .addr = omap2430_timer1_addrs,
482 .addr_cnt = ARRAY_SIZE(omap2430_timer1_addrs),
483 .user = OCP_USER_MPU | OCP_USER_SDMA,
484};
485
486/* timer1 slave port */
487static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
488 &omap2430_l4_wkup__timer1,
489};
490
491/* timer1 hwmod */
492static struct omap_hwmod omap2430_timer1_hwmod = {
493 .name = "timer1",
494 .mpu_irqs = omap2430_timer1_mpu_irqs,
495 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer1_mpu_irqs),
496 .main_clk = "gpt1_fck",
497 .prcm = {
498 .omap2 = {
499 .prcm_reg_id = 1,
500 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
501 .module_offs = WKUP_MOD,
502 .idlest_reg_id = 1,
503 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
504 },
505 },
506 .slaves = omap2430_timer1_slaves,
507 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
508 .class = &omap2430_timer_hwmod_class,
509 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
510};
511
512/* timer2 */
513static struct omap_hwmod omap2430_timer2_hwmod;
514static struct omap_hwmod_irq_info omap2430_timer2_mpu_irqs[] = {
515 { .irq = 38, },
516};
517
518static struct omap_hwmod_addr_space omap2430_timer2_addrs[] = {
519 {
520 .pa_start = 0x4802a000,
521 .pa_end = 0x4802a000 + SZ_1K - 1,
522 .flags = ADDR_TYPE_RT
523 },
524};
525
526/* l4_core -> timer2 */
527static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
528 .master = &omap2430_l4_core_hwmod,
529 .slave = &omap2430_timer2_hwmod,
530 .clk = "gpt2_ick",
531 .addr = omap2430_timer2_addrs,
532 .addr_cnt = ARRAY_SIZE(omap2430_timer2_addrs),
533 .user = OCP_USER_MPU | OCP_USER_SDMA,
534};
535
536/* timer2 slave port */
537static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
538 &omap2430_l4_core__timer2,
539};
540
541/* timer2 hwmod */
542static struct omap_hwmod omap2430_timer2_hwmod = {
543 .name = "timer2",
544 .mpu_irqs = omap2430_timer2_mpu_irqs,
545 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer2_mpu_irqs),
546 .main_clk = "gpt2_fck",
547 .prcm = {
548 .omap2 = {
549 .prcm_reg_id = 1,
550 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
551 .module_offs = CORE_MOD,
552 .idlest_reg_id = 1,
553 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
554 },
555 },
556 .slaves = omap2430_timer2_slaves,
557 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
558 .class = &omap2430_timer_hwmod_class,
559 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
560};
561
562/* timer3 */
563static struct omap_hwmod omap2430_timer3_hwmod;
564static struct omap_hwmod_irq_info omap2430_timer3_mpu_irqs[] = {
565 { .irq = 39, },
566};
567
568static struct omap_hwmod_addr_space omap2430_timer3_addrs[] = {
569 {
570 .pa_start = 0x48078000,
571 .pa_end = 0x48078000 + SZ_1K - 1,
572 .flags = ADDR_TYPE_RT
573 },
574};
575
576/* l4_core -> timer3 */
577static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
578 .master = &omap2430_l4_core_hwmod,
579 .slave = &omap2430_timer3_hwmod,
580 .clk = "gpt3_ick",
581 .addr = omap2430_timer3_addrs,
582 .addr_cnt = ARRAY_SIZE(omap2430_timer3_addrs),
583 .user = OCP_USER_MPU | OCP_USER_SDMA,
584};
585
586/* timer3 slave port */
587static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
588 &omap2430_l4_core__timer3,
589};
590
591/* timer3 hwmod */
592static struct omap_hwmod omap2430_timer3_hwmod = {
593 .name = "timer3",
594 .mpu_irqs = omap2430_timer3_mpu_irqs,
595 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer3_mpu_irqs),
596 .main_clk = "gpt3_fck",
597 .prcm = {
598 .omap2 = {
599 .prcm_reg_id = 1,
600 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
601 .module_offs = CORE_MOD,
602 .idlest_reg_id = 1,
603 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
604 },
605 },
606 .slaves = omap2430_timer3_slaves,
607 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
608 .class = &omap2430_timer_hwmod_class,
609 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
610};
611
612/* timer4 */
613static struct omap_hwmod omap2430_timer4_hwmod;
614static struct omap_hwmod_irq_info omap2430_timer4_mpu_irqs[] = {
615 { .irq = 40, },
616};
617
618static struct omap_hwmod_addr_space omap2430_timer4_addrs[] = {
619 {
620 .pa_start = 0x4807a000,
621 .pa_end = 0x4807a000 + SZ_1K - 1,
622 .flags = ADDR_TYPE_RT
623 },
624};
625
626/* l4_core -> timer4 */
627static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
628 .master = &omap2430_l4_core_hwmod,
629 .slave = &omap2430_timer4_hwmod,
630 .clk = "gpt4_ick",
631 .addr = omap2430_timer4_addrs,
632 .addr_cnt = ARRAY_SIZE(omap2430_timer4_addrs),
633 .user = OCP_USER_MPU | OCP_USER_SDMA,
634};
635
636/* timer4 slave port */
637static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
638 &omap2430_l4_core__timer4,
639};
640
641/* timer4 hwmod */
642static struct omap_hwmod omap2430_timer4_hwmod = {
643 .name = "timer4",
644 .mpu_irqs = omap2430_timer4_mpu_irqs,
645 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer4_mpu_irqs),
646 .main_clk = "gpt4_fck",
647 .prcm = {
648 .omap2 = {
649 .prcm_reg_id = 1,
650 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
651 .module_offs = CORE_MOD,
652 .idlest_reg_id = 1,
653 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
654 },
655 },
656 .slaves = omap2430_timer4_slaves,
657 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
658 .class = &omap2430_timer_hwmod_class,
659 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
660};
661
662/* timer5 */
663static struct omap_hwmod omap2430_timer5_hwmod;
664static struct omap_hwmod_irq_info omap2430_timer5_mpu_irqs[] = {
665 { .irq = 41, },
666};
667
668static struct omap_hwmod_addr_space omap2430_timer5_addrs[] = {
669 {
670 .pa_start = 0x4807c000,
671 .pa_end = 0x4807c000 + SZ_1K - 1,
672 .flags = ADDR_TYPE_RT
673 },
674};
675
676/* l4_core -> timer5 */
677static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
678 .master = &omap2430_l4_core_hwmod,
679 .slave = &omap2430_timer5_hwmod,
680 .clk = "gpt5_ick",
681 .addr = omap2430_timer5_addrs,
682 .addr_cnt = ARRAY_SIZE(omap2430_timer5_addrs),
683 .user = OCP_USER_MPU | OCP_USER_SDMA,
684};
685
686/* timer5 slave port */
687static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
688 &omap2430_l4_core__timer5,
689};
690
691/* timer5 hwmod */
692static struct omap_hwmod omap2430_timer5_hwmod = {
693 .name = "timer5",
694 .mpu_irqs = omap2430_timer5_mpu_irqs,
695 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer5_mpu_irqs),
696 .main_clk = "gpt5_fck",
697 .prcm = {
698 .omap2 = {
699 .prcm_reg_id = 1,
700 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
701 .module_offs = CORE_MOD,
702 .idlest_reg_id = 1,
703 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
704 },
705 },
706 .slaves = omap2430_timer5_slaves,
707 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
708 .class = &omap2430_timer_hwmod_class,
709 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
710};
711
712/* timer6 */
713static struct omap_hwmod omap2430_timer6_hwmod;
714static struct omap_hwmod_irq_info omap2430_timer6_mpu_irqs[] = {
715 { .irq = 42, },
716};
717
718static struct omap_hwmod_addr_space omap2430_timer6_addrs[] = {
719 {
720 .pa_start = 0x4807e000,
721 .pa_end = 0x4807e000 + SZ_1K - 1,
722 .flags = ADDR_TYPE_RT
723 },
724};
725
726/* l4_core -> timer6 */
727static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
728 .master = &omap2430_l4_core_hwmod,
729 .slave = &omap2430_timer6_hwmod,
730 .clk = "gpt6_ick",
731 .addr = omap2430_timer6_addrs,
732 .addr_cnt = ARRAY_SIZE(omap2430_timer6_addrs),
733 .user = OCP_USER_MPU | OCP_USER_SDMA,
734};
735
736/* timer6 slave port */
737static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
738 &omap2430_l4_core__timer6,
739};
740
741/* timer6 hwmod */
742static struct omap_hwmod omap2430_timer6_hwmod = {
743 .name = "timer6",
744 .mpu_irqs = omap2430_timer6_mpu_irqs,
745 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer6_mpu_irqs),
746 .main_clk = "gpt6_fck",
747 .prcm = {
748 .omap2 = {
749 .prcm_reg_id = 1,
750 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
751 .module_offs = CORE_MOD,
752 .idlest_reg_id = 1,
753 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
754 },
755 },
756 .slaves = omap2430_timer6_slaves,
757 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
758 .class = &omap2430_timer_hwmod_class,
759 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
760};
761
762/* timer7 */
763static struct omap_hwmod omap2430_timer7_hwmod;
764static struct omap_hwmod_irq_info omap2430_timer7_mpu_irqs[] = {
765 { .irq = 43, },
766};
767
768static struct omap_hwmod_addr_space omap2430_timer7_addrs[] = {
769 {
770 .pa_start = 0x48080000,
771 .pa_end = 0x48080000 + SZ_1K - 1,
772 .flags = ADDR_TYPE_RT
773 },
774};
775
776/* l4_core -> timer7 */
777static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
778 .master = &omap2430_l4_core_hwmod,
779 .slave = &omap2430_timer7_hwmod,
780 .clk = "gpt7_ick",
781 .addr = omap2430_timer7_addrs,
782 .addr_cnt = ARRAY_SIZE(omap2430_timer7_addrs),
783 .user = OCP_USER_MPU | OCP_USER_SDMA,
784};
785
786/* timer7 slave port */
787static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
788 &omap2430_l4_core__timer7,
789};
790
791/* timer7 hwmod */
792static struct omap_hwmod omap2430_timer7_hwmod = {
793 .name = "timer7",
794 .mpu_irqs = omap2430_timer7_mpu_irqs,
795 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer7_mpu_irqs),
796 .main_clk = "gpt7_fck",
797 .prcm = {
798 .omap2 = {
799 .prcm_reg_id = 1,
800 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
801 .module_offs = CORE_MOD,
802 .idlest_reg_id = 1,
803 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
804 },
805 },
806 .slaves = omap2430_timer7_slaves,
807 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
808 .class = &omap2430_timer_hwmod_class,
809 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
810};
811
812/* timer8 */
813static struct omap_hwmod omap2430_timer8_hwmod;
814static struct omap_hwmod_irq_info omap2430_timer8_mpu_irqs[] = {
815 { .irq = 44, },
816};
817
818static struct omap_hwmod_addr_space omap2430_timer8_addrs[] = {
819 {
820 .pa_start = 0x48082000,
821 .pa_end = 0x48082000 + SZ_1K - 1,
822 .flags = ADDR_TYPE_RT
823 },
824};
825
826/* l4_core -> timer8 */
827static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
828 .master = &omap2430_l4_core_hwmod,
829 .slave = &omap2430_timer8_hwmod,
830 .clk = "gpt8_ick",
831 .addr = omap2430_timer8_addrs,
832 .addr_cnt = ARRAY_SIZE(omap2430_timer8_addrs),
833 .user = OCP_USER_MPU | OCP_USER_SDMA,
834};
835
836/* timer8 slave port */
837static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
838 &omap2430_l4_core__timer8,
839};
840
841/* timer8 hwmod */
842static struct omap_hwmod omap2430_timer8_hwmod = {
843 .name = "timer8",
844 .mpu_irqs = omap2430_timer8_mpu_irqs,
845 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer8_mpu_irqs),
846 .main_clk = "gpt8_fck",
847 .prcm = {
848 .omap2 = {
849 .prcm_reg_id = 1,
850 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
851 .module_offs = CORE_MOD,
852 .idlest_reg_id = 1,
853 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
854 },
855 },
856 .slaves = omap2430_timer8_slaves,
857 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
858 .class = &omap2430_timer_hwmod_class,
859 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
860};
861
862/* timer9 */
863static struct omap_hwmod omap2430_timer9_hwmod;
864static struct omap_hwmod_irq_info omap2430_timer9_mpu_irqs[] = {
865 { .irq = 45, },
866};
867
868static struct omap_hwmod_addr_space omap2430_timer9_addrs[] = {
869 {
870 .pa_start = 0x48084000,
871 .pa_end = 0x48084000 + SZ_1K - 1,
872 .flags = ADDR_TYPE_RT
873 },
874};
875
876/* l4_core -> timer9 */
877static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
878 .master = &omap2430_l4_core_hwmod,
879 .slave = &omap2430_timer9_hwmod,
880 .clk = "gpt9_ick",
881 .addr = omap2430_timer9_addrs,
882 .addr_cnt = ARRAY_SIZE(omap2430_timer9_addrs),
883 .user = OCP_USER_MPU | OCP_USER_SDMA,
884};
885
886/* timer9 slave port */
887static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
888 &omap2430_l4_core__timer9,
889};
890
891/* timer9 hwmod */
892static struct omap_hwmod omap2430_timer9_hwmod = {
893 .name = "timer9",
894 .mpu_irqs = omap2430_timer9_mpu_irqs,
895 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer9_mpu_irqs),
896 .main_clk = "gpt9_fck",
897 .prcm = {
898 .omap2 = {
899 .prcm_reg_id = 1,
900 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
901 .module_offs = CORE_MOD,
902 .idlest_reg_id = 1,
903 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
904 },
905 },
906 .slaves = omap2430_timer9_slaves,
907 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
908 .class = &omap2430_timer_hwmod_class,
909 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
910};
911
912/* timer10 */
913static struct omap_hwmod omap2430_timer10_hwmod;
914static struct omap_hwmod_irq_info omap2430_timer10_mpu_irqs[] = {
915 { .irq = 46, },
916};
917
918static struct omap_hwmod_addr_space omap2430_timer10_addrs[] = {
919 {
920 .pa_start = 0x48086000,
921 .pa_end = 0x48086000 + SZ_1K - 1,
922 .flags = ADDR_TYPE_RT
923 },
924};
925
926/* l4_core -> timer10 */
927static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
928 .master = &omap2430_l4_core_hwmod,
929 .slave = &omap2430_timer10_hwmod,
930 .clk = "gpt10_ick",
931 .addr = omap2430_timer10_addrs,
932 .addr_cnt = ARRAY_SIZE(omap2430_timer10_addrs),
933 .user = OCP_USER_MPU | OCP_USER_SDMA,
934};
935
936/* timer10 slave port */
937static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
938 &omap2430_l4_core__timer10,
939};
940
941/* timer10 hwmod */
942static struct omap_hwmod omap2430_timer10_hwmod = {
943 .name = "timer10",
944 .mpu_irqs = omap2430_timer10_mpu_irqs,
945 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer10_mpu_irqs),
946 .main_clk = "gpt10_fck",
947 .prcm = {
948 .omap2 = {
949 .prcm_reg_id = 1,
950 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
951 .module_offs = CORE_MOD,
952 .idlest_reg_id = 1,
953 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
954 },
955 },
956 .slaves = omap2430_timer10_slaves,
957 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
958 .class = &omap2430_timer_hwmod_class,
959 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
960};
961
962/* timer11 */
963static struct omap_hwmod omap2430_timer11_hwmod;
964static struct omap_hwmod_irq_info omap2430_timer11_mpu_irqs[] = {
965 { .irq = 47, },
966};
967
968static struct omap_hwmod_addr_space omap2430_timer11_addrs[] = {
969 {
970 .pa_start = 0x48088000,
971 .pa_end = 0x48088000 + SZ_1K - 1,
972 .flags = ADDR_TYPE_RT
973 },
974};
975
976/* l4_core -> timer11 */
977static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
978 .master = &omap2430_l4_core_hwmod,
979 .slave = &omap2430_timer11_hwmod,
980 .clk = "gpt11_ick",
981 .addr = omap2430_timer11_addrs,
982 .addr_cnt = ARRAY_SIZE(omap2430_timer11_addrs),
983 .user = OCP_USER_MPU | OCP_USER_SDMA,
984};
985
986/* timer11 slave port */
987static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
988 &omap2430_l4_core__timer11,
989};
990
991/* timer11 hwmod */
992static struct omap_hwmod omap2430_timer11_hwmod = {
993 .name = "timer11",
994 .mpu_irqs = omap2430_timer11_mpu_irqs,
995 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer11_mpu_irqs),
996 .main_clk = "gpt11_fck",
997 .prcm = {
998 .omap2 = {
999 .prcm_reg_id = 1,
1000 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
1001 .module_offs = CORE_MOD,
1002 .idlest_reg_id = 1,
1003 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
1004 },
1005 },
1006 .slaves = omap2430_timer11_slaves,
1007 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
1008 .class = &omap2430_timer_hwmod_class,
1009 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1010};
1011
1012/* timer12 */
1013static struct omap_hwmod omap2430_timer12_hwmod;
1014static struct omap_hwmod_irq_info omap2430_timer12_mpu_irqs[] = {
1015 { .irq = 48, },
1016};
1017
1018static struct omap_hwmod_addr_space omap2430_timer12_addrs[] = {
1019 {
1020 .pa_start = 0x4808a000,
1021 .pa_end = 0x4808a000 + SZ_1K - 1,
1022 .flags = ADDR_TYPE_RT
1023 },
1024};
1025
1026/* l4_core -> timer12 */
1027static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
1028 .master = &omap2430_l4_core_hwmod,
1029 .slave = &omap2430_timer12_hwmod,
1030 .clk = "gpt12_ick",
1031 .addr = omap2430_timer12_addrs,
1032 .addr_cnt = ARRAY_SIZE(omap2430_timer12_addrs),
1033 .user = OCP_USER_MPU | OCP_USER_SDMA,
1034};
1035
1036/* timer12 slave port */
1037static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
1038 &omap2430_l4_core__timer12,
1039};
1040
1041/* timer12 hwmod */
1042static struct omap_hwmod omap2430_timer12_hwmod = {
1043 .name = "timer12",
1044 .mpu_irqs = omap2430_timer12_mpu_irqs,
1045 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_timer12_mpu_irqs),
1046 .main_clk = "gpt12_fck",
1047 .prcm = {
1048 .omap2 = {
1049 .prcm_reg_id = 1,
1050 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
1051 .module_offs = CORE_MOD,
1052 .idlest_reg_id = 1,
1053 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
1054 },
1055 },
1056 .slaves = omap2430_timer12_slaves,
1057 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
1058 .class = &omap2430_timer_hwmod_class,
1059 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1060};
1061
165e2161
VC
1062/* l4_wkup -> wd_timer2 */
1063static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
1064 {
1065 .pa_start = 0x49016000,
1066 .pa_end = 0x4901607f,
1067 .flags = ADDR_TYPE_RT
1068 },
1069};
1070
1071static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
1072 .master = &omap2430_l4_wkup_hwmod,
1073 .slave = &omap2430_wd_timer2_hwmod,
1074 .clk = "mpu_wdt_ick",
1075 .addr = omap2430_wd_timer2_addrs,
1076 .addr_cnt = ARRAY_SIZE(omap2430_wd_timer2_addrs),
1077 .user = OCP_USER_MPU | OCP_USER_SDMA,
1078};
1079
1080/*
1081 * 'wd_timer' class
1082 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1083 * overflow condition
1084 */
1085
1086static struct omap_hwmod_class_sysconfig omap2430_wd_timer_sysc = {
1087 .rev_offs = 0x0,
1088 .sysc_offs = 0x0010,
1089 .syss_offs = 0x0014,
1090 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET |
1091 SYSC_HAS_AUTOIDLE),
1092 .sysc_fields = &omap_hwmod_sysc_type1,
1093};
1094
1095static struct omap_hwmod_class omap2430_wd_timer_hwmod_class = {
ff2516fb
PW
1096 .name = "wd_timer",
1097 .sysc = &omap2430_wd_timer_sysc,
1098 .pre_shutdown = &omap2_wd_timer_disable
165e2161
VC
1099};
1100
1101/* wd_timer2 */
1102static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
1103 &omap2430_l4_wkup__wd_timer2,
1104};
1105
1106static struct omap_hwmod omap2430_wd_timer2_hwmod = {
1107 .name = "wd_timer2",
1108 .class = &omap2430_wd_timer_hwmod_class,
1109 .main_clk = "mpu_wdt_fck",
1110 .prcm = {
1111 .omap2 = {
1112 .prcm_reg_id = 1,
1113 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
1114 .module_offs = WKUP_MOD,
1115 .idlest_reg_id = 1,
1116 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
1117 },
1118 },
1119 .slaves = omap2430_wd_timer2_slaves,
1120 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
1121 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1122};
1123
046465b7
KH
1124/* UART */
1125
1126static struct omap_hwmod_class_sysconfig uart_sysc = {
1127 .rev_offs = 0x50,
1128 .sysc_offs = 0x54,
1129 .syss_offs = 0x58,
1130 .sysc_flags = (SYSC_HAS_SIDLEMODE |
1131 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1132 SYSC_HAS_AUTOIDLE),
1133 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1134 .sysc_fields = &omap_hwmod_sysc_type1,
1135};
1136
1137static struct omap_hwmod_class uart_class = {
1138 .name = "uart",
1139 .sysc = &uart_sysc,
1140};
1141
1142/* UART1 */
1143
1144static struct omap_hwmod_irq_info uart1_mpu_irqs[] = {
1145 { .irq = INT_24XX_UART1_IRQ, },
1146};
1147
1148static struct omap_hwmod_dma_info uart1_sdma_reqs[] = {
1149 { .name = "rx", .dma_req = OMAP24XX_DMA_UART1_RX, },
1150 { .name = "tx", .dma_req = OMAP24XX_DMA_UART1_TX, },
1151};
1152
1153static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
1154 &omap2_l4_core__uart1,
1155};
1156
1157static struct omap_hwmod omap2430_uart1_hwmod = {
1158 .name = "uart1",
1159 .mpu_irqs = uart1_mpu_irqs,
1160 .mpu_irqs_cnt = ARRAY_SIZE(uart1_mpu_irqs),
1161 .sdma_reqs = uart1_sdma_reqs,
1162 .sdma_reqs_cnt = ARRAY_SIZE(uart1_sdma_reqs),
1163 .main_clk = "uart1_fck",
1164 .prcm = {
1165 .omap2 = {
1166 .module_offs = CORE_MOD,
1167 .prcm_reg_id = 1,
1168 .module_bit = OMAP24XX_EN_UART1_SHIFT,
1169 .idlest_reg_id = 1,
1170 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
1171 },
1172 },
1173 .slaves = omap2430_uart1_slaves,
1174 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
1175 .class = &uart_class,
1176 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1177};
1178
1179/* UART2 */
1180
1181static struct omap_hwmod_irq_info uart2_mpu_irqs[] = {
1182 { .irq = INT_24XX_UART2_IRQ, },
1183};
1184
1185static struct omap_hwmod_dma_info uart2_sdma_reqs[] = {
1186 { .name = "rx", .dma_req = OMAP24XX_DMA_UART2_RX, },
1187 { .name = "tx", .dma_req = OMAP24XX_DMA_UART2_TX, },
1188};
1189
1190static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
1191 &omap2_l4_core__uart2,
1192};
1193
1194static struct omap_hwmod omap2430_uart2_hwmod = {
1195 .name = "uart2",
1196 .mpu_irqs = uart2_mpu_irqs,
1197 .mpu_irqs_cnt = ARRAY_SIZE(uart2_mpu_irqs),
1198 .sdma_reqs = uart2_sdma_reqs,
1199 .sdma_reqs_cnt = ARRAY_SIZE(uart2_sdma_reqs),
1200 .main_clk = "uart2_fck",
1201 .prcm = {
1202 .omap2 = {
1203 .module_offs = CORE_MOD,
1204 .prcm_reg_id = 1,
1205 .module_bit = OMAP24XX_EN_UART2_SHIFT,
1206 .idlest_reg_id = 1,
1207 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
1208 },
1209 },
1210 .slaves = omap2430_uart2_slaves,
1211 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
1212 .class = &uart_class,
1213 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1214};
1215
1216/* UART3 */
1217
1218static struct omap_hwmod_irq_info uart3_mpu_irqs[] = {
1219 { .irq = INT_24XX_UART3_IRQ, },
1220};
1221
1222static struct omap_hwmod_dma_info uart3_sdma_reqs[] = {
1223 { .name = "rx", .dma_req = OMAP24XX_DMA_UART3_RX, },
1224 { .name = "tx", .dma_req = OMAP24XX_DMA_UART3_TX, },
1225};
1226
1227static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
1228 &omap2_l4_core__uart3,
1229};
1230
1231static struct omap_hwmod omap2430_uart3_hwmod = {
1232 .name = "uart3",
1233 .mpu_irqs = uart3_mpu_irqs,
1234 .mpu_irqs_cnt = ARRAY_SIZE(uart3_mpu_irqs),
1235 .sdma_reqs = uart3_sdma_reqs,
1236 .sdma_reqs_cnt = ARRAY_SIZE(uart3_sdma_reqs),
1237 .main_clk = "uart3_fck",
1238 .prcm = {
1239 .omap2 = {
1240 .module_offs = CORE_MOD,
1241 .prcm_reg_id = 2,
1242 .module_bit = OMAP24XX_EN_UART3_SHIFT,
1243 .idlest_reg_id = 2,
1244 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
1245 },
1246 },
1247 .slaves = omap2430_uart3_slaves,
1248 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
1249 .class = &uart_class,
1250 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1251};
1252
de56dbb6
SG
1253/*
1254 * 'dss' class
1255 * display sub-system
1256 */
1257
1258static struct omap_hwmod_class_sysconfig omap2430_dss_sysc = {
1259 .rev_offs = 0x0000,
1260 .sysc_offs = 0x0010,
1261 .syss_offs = 0x0014,
1262 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1263 .sysc_fields = &omap_hwmod_sysc_type1,
1264};
1265
1266static struct omap_hwmod_class omap2430_dss_hwmod_class = {
1267 .name = "dss",
1268 .sysc = &omap2430_dss_sysc,
1269};
1270
1271/* dss */
1272static struct omap_hwmod_irq_info omap2430_dss_irqs[] = {
1273 { .irq = 25 },
1274};
1275static struct omap_hwmod_dma_info omap2430_dss_sdma_chs[] = {
1276 { .name = "dispc", .dma_req = 5 },
1277};
1278
1279/* dss */
1280/* dss master ports */
1281static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
1282 &omap2430_dss__l3,
1283};
1284
1285static struct omap_hwmod_addr_space omap2430_dss_addrs[] = {
1286 {
1287 .pa_start = 0x48050000,
1288 .pa_end = 0x480503FF,
1289 .flags = ADDR_TYPE_RT
1290 },
1291};
1292
1293/* l4_core -> dss */
1294static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
1295 .master = &omap2430_l4_core_hwmod,
1296 .slave = &omap2430_dss_core_hwmod,
1297 .clk = "dss_ick",
1298 .addr = omap2430_dss_addrs,
1299 .addr_cnt = ARRAY_SIZE(omap2430_dss_addrs),
1300 .user = OCP_USER_MPU | OCP_USER_SDMA,
1301};
1302
1303/* dss slave ports */
1304static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
1305 &omap2430_l4_core__dss,
1306};
1307
1308static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1309 { .role = "tv_clk", .clk = "dss_54m_fck" },
1310 { .role = "sys_clk", .clk = "dss2_fck" },
1311};
1312
1313static struct omap_hwmod omap2430_dss_core_hwmod = {
1314 .name = "dss_core",
1315 .class = &omap2430_dss_hwmod_class,
1316 .main_clk = "dss1_fck", /* instead of dss_fck */
1317 .mpu_irqs = omap2430_dss_irqs,
1318 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_dss_irqs),
1319 .sdma_reqs = omap2430_dss_sdma_chs,
1320 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_dss_sdma_chs),
1321 .prcm = {
1322 .omap2 = {
1323 .prcm_reg_id = 1,
1324 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1325 .module_offs = CORE_MOD,
1326 .idlest_reg_id = 1,
1327 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1328 },
1329 },
1330 .opt_clks = dss_opt_clks,
1331 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1332 .slaves = omap2430_dss_slaves,
1333 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
1334 .masters = omap2430_dss_masters,
1335 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
1336 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1337 .flags = HWMOD_NO_IDLEST,
1338};
1339
1340/*
1341 * 'dispc' class
1342 * display controller
1343 */
1344
1345static struct omap_hwmod_class_sysconfig omap2430_dispc_sysc = {
1346 .rev_offs = 0x0000,
1347 .sysc_offs = 0x0010,
1348 .syss_offs = 0x0014,
1349 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
1350 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1351 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1352 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1353 .sysc_fields = &omap_hwmod_sysc_type1,
1354};
1355
1356static struct omap_hwmod_class omap2430_dispc_hwmod_class = {
1357 .name = "dispc",
1358 .sysc = &omap2430_dispc_sysc,
1359};
1360
1361static struct omap_hwmod_addr_space omap2430_dss_dispc_addrs[] = {
1362 {
1363 .pa_start = 0x48050400,
1364 .pa_end = 0x480507FF,
1365 .flags = ADDR_TYPE_RT
1366 },
1367};
1368
1369/* l4_core -> dss_dispc */
1370static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
1371 .master = &omap2430_l4_core_hwmod,
1372 .slave = &omap2430_dss_dispc_hwmod,
1373 .clk = "dss_ick",
1374 .addr = omap2430_dss_dispc_addrs,
1375 .addr_cnt = ARRAY_SIZE(omap2430_dss_dispc_addrs),
1376 .user = OCP_USER_MPU | OCP_USER_SDMA,
1377};
1378
1379/* dss_dispc slave ports */
1380static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
1381 &omap2430_l4_core__dss_dispc,
1382};
1383
1384static struct omap_hwmod omap2430_dss_dispc_hwmod = {
1385 .name = "dss_dispc",
1386 .class = &omap2430_dispc_hwmod_class,
1387 .main_clk = "dss1_fck",
1388 .prcm = {
1389 .omap2 = {
1390 .prcm_reg_id = 1,
1391 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1392 .module_offs = CORE_MOD,
1393 .idlest_reg_id = 1,
1394 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1395 },
1396 },
1397 .slaves = omap2430_dss_dispc_slaves,
1398 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
1399 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1400 .flags = HWMOD_NO_IDLEST,
1401};
1402
1403/*
1404 * 'rfbi' class
1405 * remote frame buffer interface
1406 */
1407
1408static struct omap_hwmod_class_sysconfig omap2430_rfbi_sysc = {
1409 .rev_offs = 0x0000,
1410 .sysc_offs = 0x0010,
1411 .syss_offs = 0x0014,
1412 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1413 SYSC_HAS_AUTOIDLE),
1414 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1415 .sysc_fields = &omap_hwmod_sysc_type1,
1416};
1417
1418static struct omap_hwmod_class omap2430_rfbi_hwmod_class = {
1419 .name = "rfbi",
1420 .sysc = &omap2430_rfbi_sysc,
1421};
1422
1423static struct omap_hwmod_addr_space omap2430_dss_rfbi_addrs[] = {
1424 {
1425 .pa_start = 0x48050800,
1426 .pa_end = 0x48050BFF,
1427 .flags = ADDR_TYPE_RT
1428 },
1429};
1430
1431/* l4_core -> dss_rfbi */
1432static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
1433 .master = &omap2430_l4_core_hwmod,
1434 .slave = &omap2430_dss_rfbi_hwmod,
1435 .clk = "dss_ick",
1436 .addr = omap2430_dss_rfbi_addrs,
1437 .addr_cnt = ARRAY_SIZE(omap2430_dss_rfbi_addrs),
1438 .user = OCP_USER_MPU | OCP_USER_SDMA,
1439};
1440
1441/* dss_rfbi slave ports */
1442static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1443 &omap2430_l4_core__dss_rfbi,
1444};
1445
1446static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1447 .name = "dss_rfbi",
1448 .class = &omap2430_rfbi_hwmod_class,
1449 .main_clk = "dss1_fck",
1450 .prcm = {
1451 .omap2 = {
1452 .prcm_reg_id = 1,
1453 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1454 .module_offs = CORE_MOD,
1455 },
1456 },
1457 .slaves = omap2430_dss_rfbi_slaves,
1458 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1459 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1460 .flags = HWMOD_NO_IDLEST,
1461};
1462
1463/*
1464 * 'venc' class
1465 * video encoder
1466 */
1467
1468static struct omap_hwmod_class omap2430_venc_hwmod_class = {
1469 .name = "venc",
1470};
1471
1472/* dss_venc */
1473static struct omap_hwmod_addr_space omap2430_dss_venc_addrs[] = {
1474 {
1475 .pa_start = 0x48050C00,
1476 .pa_end = 0x48050FFF,
1477 .flags = ADDR_TYPE_RT
1478 },
1479};
1480
1481/* l4_core -> dss_venc */
1482static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1483 .master = &omap2430_l4_core_hwmod,
1484 .slave = &omap2430_dss_venc_hwmod,
1485 .clk = "dss_54m_fck",
1486 .addr = omap2430_dss_venc_addrs,
1487 .addr_cnt = ARRAY_SIZE(omap2430_dss_venc_addrs),
1488 .user = OCP_USER_MPU | OCP_USER_SDMA,
1489};
1490
1491/* dss_venc slave ports */
1492static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1493 &omap2430_l4_core__dss_venc,
1494};
1495
1496static struct omap_hwmod omap2430_dss_venc_hwmod = {
1497 .name = "dss_venc",
1498 .class = &omap2430_venc_hwmod_class,
1499 .main_clk = "dss1_fck",
1500 .prcm = {
1501 .omap2 = {
1502 .prcm_reg_id = 1,
1503 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1504 .module_offs = CORE_MOD,
1505 },
1506 },
1507 .slaves = omap2430_dss_venc_slaves,
1508 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1509 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1510 .flags = HWMOD_NO_IDLEST,
1511};
1512
2004290f
PW
1513/* I2C common */
1514static struct omap_hwmod_class_sysconfig i2c_sysc = {
1515 .rev_offs = 0x00,
1516 .sysc_offs = 0x20,
1517 .syss_offs = 0x10,
1518 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1519 .sysc_fields = &omap_hwmod_sysc_type1,
1520};
1521
1522static struct omap_hwmod_class i2c_class = {
1523 .name = "i2c",
1524 .sysc = &i2c_sysc,
1525};
1526
50ebb777 1527static struct omap_i2c_dev_attr i2c_dev_attr = {
2004290f
PW
1528 .fifo_depth = 8, /* bytes */
1529};
1530
50ebb777
BC
1531/* I2C1 */
1532
2004290f
PW
1533static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = {
1534 { .irq = INT_24XX_I2C1_IRQ, },
1535};
1536
1537static struct omap_hwmod_dma_info i2c1_sdma_reqs[] = {
1538 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C1_TX },
1539 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C1_RX },
1540};
1541
1542static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1543 &omap2430_l4_core__i2c1,
1544};
1545
1546static struct omap_hwmod omap2430_i2c1_hwmod = {
1547 .name = "i2c1",
1548 .mpu_irqs = i2c1_mpu_irqs,
1549 .mpu_irqs_cnt = ARRAY_SIZE(i2c1_mpu_irqs),
1550 .sdma_reqs = i2c1_sdma_reqs,
1551 .sdma_reqs_cnt = ARRAY_SIZE(i2c1_sdma_reqs),
1552 .main_clk = "i2chs1_fck",
1553 .prcm = {
1554 .omap2 = {
1555 /*
1556 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1557 * I2CHS IP's do not follow the usual pattern.
1558 * prcm_reg_id alone cannot be used to program
1559 * the iclk and fclk. Needs to be handled using
1560 * additonal flags when clk handling is moved
1561 * to hwmod framework.
1562 */
1563 .module_offs = CORE_MOD,
1564 .prcm_reg_id = 1,
1565 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1566 .idlest_reg_id = 1,
1567 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1568 },
1569 },
1570 .slaves = omap2430_i2c1_slaves,
1571 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1572 .class = &i2c_class,
50ebb777 1573 .dev_attr = &i2c_dev_attr,
2004290f
PW
1574 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1575};
1576
1577/* I2C2 */
1578
2004290f
PW
1579static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = {
1580 { .irq = INT_24XX_I2C2_IRQ, },
1581};
1582
1583static struct omap_hwmod_dma_info i2c2_sdma_reqs[] = {
1584 { .name = "tx", .dma_req = OMAP24XX_DMA_I2C2_TX },
1585 { .name = "rx", .dma_req = OMAP24XX_DMA_I2C2_RX },
1586};
1587
1588static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1589 &omap2430_l4_core__i2c2,
1590};
1591
1592static struct omap_hwmod omap2430_i2c2_hwmod = {
1593 .name = "i2c2",
1594 .mpu_irqs = i2c2_mpu_irqs,
1595 .mpu_irqs_cnt = ARRAY_SIZE(i2c2_mpu_irqs),
1596 .sdma_reqs = i2c2_sdma_reqs,
1597 .sdma_reqs_cnt = ARRAY_SIZE(i2c2_sdma_reqs),
1598 .main_clk = "i2chs2_fck",
1599 .prcm = {
1600 .omap2 = {
1601 .module_offs = CORE_MOD,
1602 .prcm_reg_id = 1,
1603 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1604 .idlest_reg_id = 1,
1605 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1606 },
1607 },
1608 .slaves = omap2430_i2c2_slaves,
1609 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1610 .class = &i2c_class,
50ebb777 1611 .dev_attr = &i2c_dev_attr,
2004290f
PW
1612 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1613};
1614
aeac0e44
VC
1615/* l4_wkup -> gpio1 */
1616static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1617 {
1618 .pa_start = 0x4900C000,
1619 .pa_end = 0x4900C1ff,
1620 .flags = ADDR_TYPE_RT
1621 },
1622};
1623
1624static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1625 .master = &omap2430_l4_wkup_hwmod,
1626 .slave = &omap2430_gpio1_hwmod,
1627 .clk = "gpios_ick",
1628 .addr = omap2430_gpio1_addr_space,
1629 .addr_cnt = ARRAY_SIZE(omap2430_gpio1_addr_space),
1630 .user = OCP_USER_MPU | OCP_USER_SDMA,
1631};
1632
1633/* l4_wkup -> gpio2 */
1634static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1635 {
1636 .pa_start = 0x4900E000,
1637 .pa_end = 0x4900E1ff,
1638 .flags = ADDR_TYPE_RT
1639 },
1640};
1641
1642static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1643 .master = &omap2430_l4_wkup_hwmod,
1644 .slave = &omap2430_gpio2_hwmod,
1645 .clk = "gpios_ick",
1646 .addr = omap2430_gpio2_addr_space,
1647 .addr_cnt = ARRAY_SIZE(omap2430_gpio2_addr_space),
1648 .user = OCP_USER_MPU | OCP_USER_SDMA,
1649};
1650
1651/* l4_wkup -> gpio3 */
1652static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1653 {
1654 .pa_start = 0x49010000,
1655 .pa_end = 0x490101ff,
1656 .flags = ADDR_TYPE_RT
1657 },
1658};
1659
1660static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1661 .master = &omap2430_l4_wkup_hwmod,
1662 .slave = &omap2430_gpio3_hwmod,
1663 .clk = "gpios_ick",
1664 .addr = omap2430_gpio3_addr_space,
1665 .addr_cnt = ARRAY_SIZE(omap2430_gpio3_addr_space),
1666 .user = OCP_USER_MPU | OCP_USER_SDMA,
1667};
1668
1669/* l4_wkup -> gpio4 */
1670static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1671 {
1672 .pa_start = 0x49012000,
1673 .pa_end = 0x490121ff,
1674 .flags = ADDR_TYPE_RT
1675 },
1676};
1677
1678static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1679 .master = &omap2430_l4_wkup_hwmod,
1680 .slave = &omap2430_gpio4_hwmod,
1681 .clk = "gpios_ick",
1682 .addr = omap2430_gpio4_addr_space,
1683 .addr_cnt = ARRAY_SIZE(omap2430_gpio4_addr_space),
1684 .user = OCP_USER_MPU | OCP_USER_SDMA,
1685};
1686
1687/* l4_core -> gpio5 */
1688static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1689 {
1690 .pa_start = 0x480B6000,
1691 .pa_end = 0x480B61ff,
1692 .flags = ADDR_TYPE_RT
1693 },
1694};
1695
1696static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1697 .master = &omap2430_l4_core_hwmod,
1698 .slave = &omap2430_gpio5_hwmod,
1699 .clk = "gpio5_ick",
1700 .addr = omap2430_gpio5_addr_space,
1701 .addr_cnt = ARRAY_SIZE(omap2430_gpio5_addr_space),
1702 .user = OCP_USER_MPU | OCP_USER_SDMA,
1703};
1704
1705/* gpio dev_attr */
1706static struct omap_gpio_dev_attr gpio_dev_attr = {
1707 .bank_width = 32,
1708 .dbck_flag = false,
1709};
1710
1711static struct omap_hwmod_class_sysconfig omap243x_gpio_sysc = {
1712 .rev_offs = 0x0000,
1713 .sysc_offs = 0x0010,
1714 .syss_offs = 0x0014,
1715 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1716 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1717 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1718 .sysc_fields = &omap_hwmod_sysc_type1,
1719};
1720
1721/*
1722 * 'gpio' class
1723 * general purpose io module
1724 */
1725static struct omap_hwmod_class omap243x_gpio_hwmod_class = {
1726 .name = "gpio",
1727 .sysc = &omap243x_gpio_sysc,
1728 .rev = 0,
1729};
1730
1731/* gpio1 */
1732static struct omap_hwmod_irq_info omap243x_gpio1_irqs[] = {
1733 { .irq = 29 }, /* INT_24XX_GPIO_BANK1 */
1734};
1735
1736static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1737 &omap2430_l4_wkup__gpio1,
1738};
1739
1740static struct omap_hwmod omap2430_gpio1_hwmod = {
1741 .name = "gpio1",
1742 .mpu_irqs = omap243x_gpio1_irqs,
1743 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio1_irqs),
1744 .main_clk = "gpios_fck",
1745 .prcm = {
1746 .omap2 = {
1747 .prcm_reg_id = 1,
1748 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1749 .module_offs = WKUP_MOD,
1750 .idlest_reg_id = 1,
1751 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1752 },
1753 },
1754 .slaves = omap2430_gpio1_slaves,
1755 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
1756 .class = &omap243x_gpio_hwmod_class,
1757 .dev_attr = &gpio_dev_attr,
1758 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1759};
1760
1761/* gpio2 */
1762static struct omap_hwmod_irq_info omap243x_gpio2_irqs[] = {
1763 { .irq = 30 }, /* INT_24XX_GPIO_BANK2 */
1764};
1765
1766static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1767 &omap2430_l4_wkup__gpio2,
1768};
1769
1770static struct omap_hwmod omap2430_gpio2_hwmod = {
1771 .name = "gpio2",
1772 .mpu_irqs = omap243x_gpio2_irqs,
1773 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio2_irqs),
1774 .main_clk = "gpios_fck",
1775 .prcm = {
1776 .omap2 = {
1777 .prcm_reg_id = 1,
1778 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1779 .module_offs = WKUP_MOD,
1780 .idlest_reg_id = 1,
1781 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1782 },
1783 },
1784 .slaves = omap2430_gpio2_slaves,
1785 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
1786 .class = &omap243x_gpio_hwmod_class,
1787 .dev_attr = &gpio_dev_attr,
1788 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1789};
1790
1791/* gpio3 */
1792static struct omap_hwmod_irq_info omap243x_gpio3_irqs[] = {
1793 { .irq = 31 }, /* INT_24XX_GPIO_BANK3 */
1794};
1795
1796static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1797 &omap2430_l4_wkup__gpio3,
1798};
1799
1800static struct omap_hwmod omap2430_gpio3_hwmod = {
1801 .name = "gpio3",
1802 .mpu_irqs = omap243x_gpio3_irqs,
1803 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio3_irqs),
1804 .main_clk = "gpios_fck",
1805 .prcm = {
1806 .omap2 = {
1807 .prcm_reg_id = 1,
1808 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1809 .module_offs = WKUP_MOD,
1810 .idlest_reg_id = 1,
1811 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1812 },
1813 },
1814 .slaves = omap2430_gpio3_slaves,
1815 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
1816 .class = &omap243x_gpio_hwmod_class,
1817 .dev_attr = &gpio_dev_attr,
1818 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1819};
1820
1821/* gpio4 */
1822static struct omap_hwmod_irq_info omap243x_gpio4_irqs[] = {
1823 { .irq = 32 }, /* INT_24XX_GPIO_BANK4 */
1824};
1825
1826static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1827 &omap2430_l4_wkup__gpio4,
1828};
1829
1830static struct omap_hwmod omap2430_gpio4_hwmod = {
1831 .name = "gpio4",
1832 .mpu_irqs = omap243x_gpio4_irqs,
1833 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio4_irqs),
1834 .main_clk = "gpios_fck",
1835 .prcm = {
1836 .omap2 = {
1837 .prcm_reg_id = 1,
1838 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1839 .module_offs = WKUP_MOD,
1840 .idlest_reg_id = 1,
1841 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1842 },
1843 },
1844 .slaves = omap2430_gpio4_slaves,
1845 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
1846 .class = &omap243x_gpio_hwmod_class,
1847 .dev_attr = &gpio_dev_attr,
1848 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1849};
1850
1851/* gpio5 */
1852static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1853 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
1854};
1855
1856static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1857 &omap2430_l4_core__gpio5,
1858};
1859
1860static struct omap_hwmod omap2430_gpio5_hwmod = {
1861 .name = "gpio5",
1862 .mpu_irqs = omap243x_gpio5_irqs,
1863 .mpu_irqs_cnt = ARRAY_SIZE(omap243x_gpio5_irqs),
1864 .main_clk = "gpio5_fck",
1865 .prcm = {
1866 .omap2 = {
1867 .prcm_reg_id = 2,
1868 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1869 .module_offs = CORE_MOD,
1870 .idlest_reg_id = 2,
1871 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1872 },
1873 },
1874 .slaves = omap2430_gpio5_slaves,
1875 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
1876 .class = &omap243x_gpio_hwmod_class,
1877 .dev_attr = &gpio_dev_attr,
1878 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1879};
1880
82cbd1ae
MK
1881/* dma_system */
1882static struct omap_hwmod_class_sysconfig omap2430_dma_sysc = {
1883 .rev_offs = 0x0000,
1884 .sysc_offs = 0x002c,
1885 .syss_offs = 0x0028,
1886 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE |
1887 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE |
1888 SYSC_HAS_AUTOIDLE),
1889 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1890 .sysc_fields = &omap_hwmod_sysc_type1,
1891};
1892
1893static struct omap_hwmod_class omap2430_dma_hwmod_class = {
1894 .name = "dma",
1895 .sysc = &omap2430_dma_sysc,
1896};
1897
1898/* dma attributes */
1899static struct omap_dma_dev_attr dma_dev_attr = {
1900 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1901 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1902 .lch_count = 32,
1903};
1904
1905static struct omap_hwmod_irq_info omap2430_dma_system_irqs[] = {
1906 { .name = "0", .irq = 12 }, /* INT_24XX_SDMA_IRQ0 */
1907 { .name = "1", .irq = 13 }, /* INT_24XX_SDMA_IRQ1 */
1908 { .name = "2", .irq = 14 }, /* INT_24XX_SDMA_IRQ2 */
1909 { .name = "3", .irq = 15 }, /* INT_24XX_SDMA_IRQ3 */
1910};
1911
1912static struct omap_hwmod_addr_space omap2430_dma_system_addrs[] = {
1913 {
1914 .pa_start = 0x48056000,
1915 .pa_end = 0x4a0560ff,
1916 .flags = ADDR_TYPE_RT
1917 },
1918};
1919
1920/* dma_system -> L3 */
1921static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1922 .master = &omap2430_dma_system_hwmod,
1923 .slave = &omap2430_l3_main_hwmod,
1924 .clk = "core_l3_ck",
1925 .user = OCP_USER_MPU | OCP_USER_SDMA,
1926};
1927
1928/* dma_system master ports */
1929static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1930 &omap2430_dma_system__l3,
1931};
1932
1933/* l4_core -> dma_system */
1934static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1935 .master = &omap2430_l4_core_hwmod,
1936 .slave = &omap2430_dma_system_hwmod,
1937 .clk = "sdma_ick",
1938 .addr = omap2430_dma_system_addrs,
1939 .addr_cnt = ARRAY_SIZE(omap2430_dma_system_addrs),
1940 .user = OCP_USER_MPU | OCP_USER_SDMA,
1941};
1942
1943/* dma_system slave ports */
1944static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1945 &omap2430_l4_core__dma_system,
1946};
1947
1948static struct omap_hwmod omap2430_dma_system_hwmod = {
1949 .name = "dma",
1950 .class = &omap2430_dma_hwmod_class,
1951 .mpu_irqs = omap2430_dma_system_irqs,
1952 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_dma_system_irqs),
1953 .main_clk = "core_l3_ck",
1954 .slaves = omap2430_dma_system_slaves,
1955 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1956 .masters = omap2430_dma_system_masters,
1957 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1958 .dev_attr = &dma_dev_attr,
1959 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1960 .flags = HWMOD_NO_IDLEST,
1961};
1962
fca1ab55
ORL
1963/*
1964 * 'mailbox' class
1965 * mailbox module allowing communication between the on-chip processors
1966 * using a queued mailbox-interrupt mechanism.
1967 */
1968
1969static struct omap_hwmod_class_sysconfig omap2430_mailbox_sysc = {
1970 .rev_offs = 0x000,
1971 .sysc_offs = 0x010,
1972 .syss_offs = 0x014,
1973 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1974 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1975 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1976 .sysc_fields = &omap_hwmod_sysc_type1,
1977};
1978
1979static struct omap_hwmod_class omap2430_mailbox_hwmod_class = {
1980 .name = "mailbox",
1981 .sysc = &omap2430_mailbox_sysc,
1982};
1983
1984/* mailbox */
1985static struct omap_hwmod omap2430_mailbox_hwmod;
1986static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1987 { .irq = 26 },
1988};
1989
1990static struct omap_hwmod_addr_space omap2430_mailbox_addrs[] = {
1991 {
1992 .pa_start = 0x48094000,
1993 .pa_end = 0x480941ff,
1994 .flags = ADDR_TYPE_RT,
1995 },
1996};
1997
1998/* l4_core -> mailbox */
1999static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
2000 .master = &omap2430_l4_core_hwmod,
2001 .slave = &omap2430_mailbox_hwmod,
2002 .addr = omap2430_mailbox_addrs,
2003 .addr_cnt = ARRAY_SIZE(omap2430_mailbox_addrs),
2004 .user = OCP_USER_MPU | OCP_USER_SDMA,
2005};
2006
2007/* mailbox slave ports */
2008static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
2009 &omap2430_l4_core__mailbox,
2010};
2011
2012static struct omap_hwmod omap2430_mailbox_hwmod = {
2013 .name = "mailbox",
2014 .class = &omap2430_mailbox_hwmod_class,
2015 .mpu_irqs = omap2430_mailbox_irqs,
2016 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mailbox_irqs),
2017 .main_clk = "mailboxes_ick",
2018 .prcm = {
2019 .omap2 = {
2020 .prcm_reg_id = 1,
2021 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
2022 .module_offs = CORE_MOD,
2023 .idlest_reg_id = 1,
2024 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
2025 },
2026 },
2027 .slaves = omap2430_mailbox_slaves,
2028 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
2029 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2030};
2031
7f904c78
C
2032/*
2033 * 'mcspi' class
2034 * multichannel serial port interface (mcspi) / master/slave synchronous serial
2035 * bus
2036 */
2037
2038static struct omap_hwmod_class_sysconfig omap2430_mcspi_sysc = {
2039 .rev_offs = 0x0000,
2040 .sysc_offs = 0x0010,
2041 .syss_offs = 0x0014,
2042 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2043 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2044 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2045 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2046 .sysc_fields = &omap_hwmod_sysc_type1,
2047};
2048
2049static struct omap_hwmod_class omap2430_mcspi_class = {
2050 .name = "mcspi",
2051 .sysc = &omap2430_mcspi_sysc,
2052 .rev = OMAP2_MCSPI_REV,
2053};
2054
2055/* mcspi1 */
2056static struct omap_hwmod_irq_info omap2430_mcspi1_mpu_irqs[] = {
2057 { .irq = 65 },
2058};
2059
2060static struct omap_hwmod_dma_info omap2430_mcspi1_sdma_reqs[] = {
2061 { .name = "tx0", .dma_req = 35 }, /* DMA_SPI1_TX0 */
2062 { .name = "rx0", .dma_req = 36 }, /* DMA_SPI1_RX0 */
2063 { .name = "tx1", .dma_req = 37 }, /* DMA_SPI1_TX1 */
2064 { .name = "rx1", .dma_req = 38 }, /* DMA_SPI1_RX1 */
2065 { .name = "tx2", .dma_req = 39 }, /* DMA_SPI1_TX2 */
2066 { .name = "rx2", .dma_req = 40 }, /* DMA_SPI1_RX2 */
2067 { .name = "tx3", .dma_req = 41 }, /* DMA_SPI1_TX3 */
2068 { .name = "rx3", .dma_req = 42 }, /* DMA_SPI1_RX3 */
2069};
2070
2071static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
2072 &omap2430_l4_core__mcspi1,
2073};
2074
2075static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
2076 .num_chipselect = 4,
2077};
2078
2079static struct omap_hwmod omap2430_mcspi1_hwmod = {
2080 .name = "mcspi1_hwmod",
2081 .mpu_irqs = omap2430_mcspi1_mpu_irqs,
2082 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi1_mpu_irqs),
2083 .sdma_reqs = omap2430_mcspi1_sdma_reqs,
2084 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi1_sdma_reqs),
2085 .main_clk = "mcspi1_fck",
2086 .prcm = {
2087 .omap2 = {
2088 .module_offs = CORE_MOD,
2089 .prcm_reg_id = 1,
2090 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
2091 .idlest_reg_id = 1,
2092 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
2093 },
2094 },
2095 .slaves = omap2430_mcspi1_slaves,
2096 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
2097 .class = &omap2430_mcspi_class,
2098 .dev_attr = &omap_mcspi1_dev_attr,
2099 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2100};
2101
2102/* mcspi2 */
2103static struct omap_hwmod_irq_info omap2430_mcspi2_mpu_irqs[] = {
2104 { .irq = 66 },
2105};
2106
2107static struct omap_hwmod_dma_info omap2430_mcspi2_sdma_reqs[] = {
2108 { .name = "tx0", .dma_req = 43 }, /* DMA_SPI2_TX0 */
2109 { .name = "rx0", .dma_req = 44 }, /* DMA_SPI2_RX0 */
2110 { .name = "tx1", .dma_req = 45 }, /* DMA_SPI2_TX1 */
2111 { .name = "rx1", .dma_req = 46 }, /* DMA_SPI2_RX1 */
2112};
2113
2114static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
2115 &omap2430_l4_core__mcspi2,
2116};
2117
2118static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
2119 .num_chipselect = 2,
2120};
2121
2122static struct omap_hwmod omap2430_mcspi2_hwmod = {
2123 .name = "mcspi2_hwmod",
2124 .mpu_irqs = omap2430_mcspi2_mpu_irqs,
2125 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi2_mpu_irqs),
2126 .sdma_reqs = omap2430_mcspi2_sdma_reqs,
2127 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi2_sdma_reqs),
2128 .main_clk = "mcspi2_fck",
2129 .prcm = {
2130 .omap2 = {
2131 .module_offs = CORE_MOD,
2132 .prcm_reg_id = 1,
2133 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
2134 .idlest_reg_id = 1,
2135 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
2136 },
2137 },
2138 .slaves = omap2430_mcspi2_slaves,
2139 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
2140 .class = &omap2430_mcspi_class,
2141 .dev_attr = &omap_mcspi2_dev_attr,
2142 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2143};
2144
2145/* mcspi3 */
2146static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
2147 { .irq = 91 },
2148};
2149
2150static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
2151 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
2152 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
2153 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
2154 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
2155};
2156
2157static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
2158 &omap2430_l4_core__mcspi3,
2159};
2160
2161static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
2162 .num_chipselect = 2,
2163};
2164
2165static struct omap_hwmod omap2430_mcspi3_hwmod = {
2166 .name = "mcspi3_hwmod",
2167 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
2168 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcspi3_mpu_irqs),
2169 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
2170 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcspi3_sdma_reqs),
2171 .main_clk = "mcspi3_fck",
2172 .prcm = {
2173 .omap2 = {
2174 .module_offs = CORE_MOD,
2175 .prcm_reg_id = 2,
2176 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
2177 .idlest_reg_id = 2,
2178 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
2179 },
2180 },
2181 .slaves = omap2430_mcspi3_slaves,
2182 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
2183 .class = &omap2430_mcspi_class,
2184 .dev_attr = &omap_mcspi3_dev_attr,
2185 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2186};
2187
44d02acf
HH
2188/*
2189 * usbhsotg
2190 */
2191static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
2192 .rev_offs = 0x0400,
2193 .sysc_offs = 0x0404,
2194 .syss_offs = 0x0408,
2195 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
2196 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2197 SYSC_HAS_AUTOIDLE),
2198 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2199 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
2200 .sysc_fields = &omap_hwmod_sysc_type1,
2201};
2202
2203static struct omap_hwmod_class usbotg_class = {
2204 .name = "usbotg",
2205 .sysc = &omap2430_usbhsotg_sysc,
2206};
2207
2208/* usb_otg_hs */
2209static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
2210
2211 { .name = "mc", .irq = 92 },
2212 { .name = "dma", .irq = 93 },
2213};
2214
2215static struct omap_hwmod omap2430_usbhsotg_hwmod = {
2216 .name = "usb_otg_hs",
2217 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
2218 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_usbhsotg_mpu_irqs),
2219 .main_clk = "usbhs_ick",
2220 .prcm = {
2221 .omap2 = {
2222 .prcm_reg_id = 1,
2223 .module_bit = OMAP2430_EN_USBHS_MASK,
2224 .module_offs = CORE_MOD,
2225 .idlest_reg_id = 1,
2226 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
2227 },
2228 },
2229 .masters = omap2430_usbhsotg_masters,
2230 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
2231 .slaves = omap2430_usbhsotg_slaves,
2232 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
2233 .class = &usbotg_class,
2234 /*
2235 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
2236 * broken when autoidle is enabled
2237 * workaround is to disable the autoidle bit at module level.
2238 */
2239 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
2240 | HWMOD_SWSUP_MSTANDBY,
2241 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
2242};
2243
37801b3d
C
2244/*
2245 * 'mcbsp' class
2246 * multi channel buffered serial port controller
2247 */
2248
2249static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
2250 .rev_offs = 0x007C,
2251 .sysc_offs = 0x008C,
2252 .sysc_flags = (SYSC_HAS_SOFTRESET),
2253 .sysc_fields = &omap_hwmod_sysc_type1,
2254};
2255
2256static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
2257 .name = "mcbsp",
2258 .sysc = &omap2430_mcbsp_sysc,
2259 .rev = MCBSP_CONFIG_TYPE2,
2260};
04aa67de 2261
37801b3d
C
2262/* mcbsp1 */
2263static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
2264 { .name = "tx", .irq = 59 },
2265 { .name = "rx", .irq = 60 },
2266 { .name = "ovr", .irq = 61 },
2267 { .name = "common", .irq = 64 },
2268};
2269
2270static struct omap_hwmod_dma_info omap2430_mcbsp1_sdma_chs[] = {
2271 { .name = "rx", .dma_req = 32 },
2272 { .name = "tx", .dma_req = 31 },
2273};
2274
2275static struct omap_hwmod_addr_space omap2430_mcbsp1_addrs[] = {
2276 {
2277 .name = "mpu",
2278 .pa_start = 0x48074000,
2279 .pa_end = 0x480740ff,
2280 .flags = ADDR_TYPE_RT
2281 },
2282};
2283
2284/* l4_core -> mcbsp1 */
2285static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
2286 .master = &omap2430_l4_core_hwmod,
2287 .slave = &omap2430_mcbsp1_hwmod,
2288 .clk = "mcbsp1_ick",
2289 .addr = omap2430_mcbsp1_addrs,
2290 .addr_cnt = ARRAY_SIZE(omap2430_mcbsp1_addrs),
2291 .user = OCP_USER_MPU | OCP_USER_SDMA,
2292};
2293
2294/* mcbsp1 slave ports */
2295static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
2296 &omap2430_l4_core__mcbsp1,
2297};
2298
2299static struct omap_hwmod omap2430_mcbsp1_hwmod = {
2300 .name = "mcbsp1",
2301 .class = &omap2430_mcbsp_hwmod_class,
2302 .mpu_irqs = omap2430_mcbsp1_irqs,
2303 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp1_irqs),
2304 .sdma_reqs = omap2430_mcbsp1_sdma_chs,
2305 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp1_sdma_chs),
2306 .main_clk = "mcbsp1_fck",
2307 .prcm = {
2308 .omap2 = {
2309 .prcm_reg_id = 1,
2310 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
2311 .module_offs = CORE_MOD,
2312 .idlest_reg_id = 1,
2313 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
2314 },
2315 },
2316 .slaves = omap2430_mcbsp1_slaves,
2317 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
2318 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2319};
2320
2321/* mcbsp2 */
2322static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
2323 { .name = "tx", .irq = 62 },
2324 { .name = "rx", .irq = 63 },
2325 { .name = "common", .irq = 16 },
2326};
2327
2328static struct omap_hwmod_dma_info omap2430_mcbsp2_sdma_chs[] = {
2329 { .name = "rx", .dma_req = 34 },
2330 { .name = "tx", .dma_req = 33 },
2331};
2332
2333static struct omap_hwmod_addr_space omap2430_mcbsp2_addrs[] = {
2334 {
2335 .name = "mpu",
2336 .pa_start = 0x48076000,
2337 .pa_end = 0x480760ff,
2338 .flags = ADDR_TYPE_RT
2339 },
2340};
2341
2342/* l4_core -> mcbsp2 */
2343static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
2344 .master = &omap2430_l4_core_hwmod,
2345 .slave = &omap2430_mcbsp2_hwmod,
2346 .clk = "mcbsp2_ick",
2347 .addr = omap2430_mcbsp2_addrs,
2348 .addr_cnt = ARRAY_SIZE(omap2430_mcbsp2_addrs),
2349 .user = OCP_USER_MPU | OCP_USER_SDMA,
2350};
2351
2352/* mcbsp2 slave ports */
2353static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
2354 &omap2430_l4_core__mcbsp2,
2355};
2356
2357static struct omap_hwmod omap2430_mcbsp2_hwmod = {
2358 .name = "mcbsp2",
2359 .class = &omap2430_mcbsp_hwmod_class,
2360 .mpu_irqs = omap2430_mcbsp2_irqs,
2361 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp2_irqs),
2362 .sdma_reqs = omap2430_mcbsp2_sdma_chs,
2363 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp2_sdma_chs),
2364 .main_clk = "mcbsp2_fck",
2365 .prcm = {
2366 .omap2 = {
2367 .prcm_reg_id = 1,
2368 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
2369 .module_offs = CORE_MOD,
2370 .idlest_reg_id = 1,
2371 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
2372 },
2373 },
2374 .slaves = omap2430_mcbsp2_slaves,
2375 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
2376 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2377};
2378
2379/* mcbsp3 */
2380static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
2381 { .name = "tx", .irq = 89 },
2382 { .name = "rx", .irq = 90 },
2383 { .name = "common", .irq = 17 },
2384};
2385
2386static struct omap_hwmod_dma_info omap2430_mcbsp3_sdma_chs[] = {
2387 { .name = "rx", .dma_req = 18 },
2388 { .name = "tx", .dma_req = 17 },
2389};
2390
2391static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
2392 {
2393 .name = "mpu",
2394 .pa_start = 0x4808C000,
2395 .pa_end = 0x4808C0ff,
2396 .flags = ADDR_TYPE_RT
2397 },
2398};
04aa67de 2399
37801b3d
C
2400/* l4_core -> mcbsp3 */
2401static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
2402 .master = &omap2430_l4_core_hwmod,
2403 .slave = &omap2430_mcbsp3_hwmod,
2404 .clk = "mcbsp3_ick",
2405 .addr = omap2430_mcbsp3_addrs,
2406 .addr_cnt = ARRAY_SIZE(omap2430_mcbsp3_addrs),
2407 .user = OCP_USER_MPU | OCP_USER_SDMA,
2408};
2409
2410/* mcbsp3 slave ports */
2411static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
2412 &omap2430_l4_core__mcbsp3,
2413};
2414
2415static struct omap_hwmod omap2430_mcbsp3_hwmod = {
2416 .name = "mcbsp3",
2417 .class = &omap2430_mcbsp_hwmod_class,
2418 .mpu_irqs = omap2430_mcbsp3_irqs,
2419 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp3_irqs),
2420 .sdma_reqs = omap2430_mcbsp3_sdma_chs,
2421 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp3_sdma_chs),
2422 .main_clk = "mcbsp3_fck",
2423 .prcm = {
2424 .omap2 = {
2425 .prcm_reg_id = 1,
2426 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
2427 .module_offs = CORE_MOD,
2428 .idlest_reg_id = 2,
2429 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
2430 },
2431 },
2432 .slaves = omap2430_mcbsp3_slaves,
2433 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
2434 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2435};
2436
2437/* mcbsp4 */
2438static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
2439 { .name = "tx", .irq = 54 },
2440 { .name = "rx", .irq = 55 },
2441 { .name = "common", .irq = 18 },
2442};
2443
2444static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
2445 { .name = "rx", .dma_req = 20 },
2446 { .name = "tx", .dma_req = 19 },
2447};
2448
2449static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
2450 {
2451 .name = "mpu",
2452 .pa_start = 0x4808E000,
2453 .pa_end = 0x4808E0ff,
2454 .flags = ADDR_TYPE_RT
2455 },
2456};
2457
2458/* l4_core -> mcbsp4 */
2459static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
2460 .master = &omap2430_l4_core_hwmod,
2461 .slave = &omap2430_mcbsp4_hwmod,
2462 .clk = "mcbsp4_ick",
2463 .addr = omap2430_mcbsp4_addrs,
2464 .addr_cnt = ARRAY_SIZE(omap2430_mcbsp4_addrs),
2465 .user = OCP_USER_MPU | OCP_USER_SDMA,
2466};
2467
2468/* mcbsp4 slave ports */
2469static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
2470 &omap2430_l4_core__mcbsp4,
2471};
2472
2473static struct omap_hwmod omap2430_mcbsp4_hwmod = {
2474 .name = "mcbsp4",
2475 .class = &omap2430_mcbsp_hwmod_class,
2476 .mpu_irqs = omap2430_mcbsp4_irqs,
2477 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp4_irqs),
2478 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
2479 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp4_sdma_chs),
2480 .main_clk = "mcbsp4_fck",
2481 .prcm = {
2482 .omap2 = {
2483 .prcm_reg_id = 1,
2484 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
2485 .module_offs = CORE_MOD,
2486 .idlest_reg_id = 2,
2487 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
2488 },
2489 },
2490 .slaves = omap2430_mcbsp4_slaves,
2491 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
2492 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2493};
2494
2495/* mcbsp5 */
2496static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
2497 { .name = "tx", .irq = 81 },
2498 { .name = "rx", .irq = 82 },
2499 { .name = "common", .irq = 19 },
2500};
2501
2502static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
2503 { .name = "rx", .dma_req = 22 },
2504 { .name = "tx", .dma_req = 21 },
2505};
2506
2507static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
2508 {
2509 .name = "mpu",
2510 .pa_start = 0x48096000,
2511 .pa_end = 0x480960ff,
2512 .flags = ADDR_TYPE_RT
2513 },
2514};
2515
2516/* l4_core -> mcbsp5 */
2517static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
2518 .master = &omap2430_l4_core_hwmod,
2519 .slave = &omap2430_mcbsp5_hwmod,
2520 .clk = "mcbsp5_ick",
2521 .addr = omap2430_mcbsp5_addrs,
2522 .addr_cnt = ARRAY_SIZE(omap2430_mcbsp5_addrs),
2523 .user = OCP_USER_MPU | OCP_USER_SDMA,
2524};
2525
2526/* mcbsp5 slave ports */
2527static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
2528 &omap2430_l4_core__mcbsp5,
2529};
2530
2531static struct omap_hwmod omap2430_mcbsp5_hwmod = {
2532 .name = "mcbsp5",
2533 .class = &omap2430_mcbsp_hwmod_class,
2534 .mpu_irqs = omap2430_mcbsp5_irqs,
2535 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mcbsp5_irqs),
2536 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
2537 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mcbsp5_sdma_chs),
2538 .main_clk = "mcbsp5_fck",
2539 .prcm = {
2540 .omap2 = {
2541 .prcm_reg_id = 1,
2542 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
2543 .module_offs = CORE_MOD,
2544 .idlest_reg_id = 2,
2545 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
2546 },
2547 },
2548 .slaves = omap2430_mcbsp5_slaves,
2549 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
2550 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2551};
04aa67de 2552
bce06f37 2553/* MMC/SD/SDIO common */
04aa67de 2554
bce06f37
PW
2555static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
2556 .rev_offs = 0x1fc,
2557 .sysc_offs = 0x10,
2558 .syss_offs = 0x14,
2559 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2560 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2561 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2562 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2563 .sysc_fields = &omap_hwmod_sysc_type1,
2564};
2565
2566static struct omap_hwmod_class omap2430_mmc_class = {
2567 .name = "mmc",
2568 .sysc = &omap2430_mmc_sysc,
2569};
2570
2571/* MMC/SD/SDIO1 */
2572
2573static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
2574 { .irq = 83 },
2575};
2576
2577static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
2578 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
2579 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
2580};
2581
2582static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
2583 { .role = "dbck", .clk = "mmchsdb1_fck" },
2584};
2585
2586static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
2587 &omap2430_l4_core__mmc1,
2588};
2589
6ab8946f
KK
2590static struct omap_mmc_dev_attr mmc1_dev_attr = {
2591 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2592};
2593
bce06f37
PW
2594static struct omap_hwmod omap2430_mmc1_hwmod = {
2595 .name = "mmc1",
2596 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2597 .mpu_irqs = omap2430_mmc1_mpu_irqs,
2598 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mmc1_mpu_irqs),
2599 .sdma_reqs = omap2430_mmc1_sdma_reqs,
2600 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mmc1_sdma_reqs),
2601 .opt_clks = omap2430_mmc1_opt_clks,
2602 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
2603 .main_clk = "mmchs1_fck",
2604 .prcm = {
2605 .omap2 = {
2606 .module_offs = CORE_MOD,
2607 .prcm_reg_id = 2,
2608 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
2609 .idlest_reg_id = 2,
2610 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
2611 },
2612 },
6ab8946f 2613 .dev_attr = &mmc1_dev_attr,
bce06f37
PW
2614 .slaves = omap2430_mmc1_slaves,
2615 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
2616 .class = &omap2430_mmc_class,
2617 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2618};
2619
2620/* MMC/SD/SDIO2 */
2621
2622static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
2623 { .irq = 86 },
2624};
2625
2626static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
2627 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
2628 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
2629};
2630
2631static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
2632 { .role = "dbck", .clk = "mmchsdb2_fck" },
2633};
2634
2635static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
2636 &omap2430_l4_core__mmc2,
2637};
04aa67de 2638
bce06f37
PW
2639static struct omap_hwmod omap2430_mmc2_hwmod = {
2640 .name = "mmc2",
2641 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2642 .mpu_irqs = omap2430_mmc2_mpu_irqs,
2643 .mpu_irqs_cnt = ARRAY_SIZE(omap2430_mmc2_mpu_irqs),
2644 .sdma_reqs = omap2430_mmc2_sdma_reqs,
2645 .sdma_reqs_cnt = ARRAY_SIZE(omap2430_mmc2_sdma_reqs),
2646 .opt_clks = omap2430_mmc2_opt_clks,
2647 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
2648 .main_clk = "mmchs2_fck",
2649 .prcm = {
2650 .omap2 = {
2651 .module_offs = CORE_MOD,
2652 .prcm_reg_id = 2,
2653 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
2654 .idlest_reg_id = 2,
2655 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
2656 },
2657 },
2658 .slaves = omap2430_mmc2_slaves,
2659 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
2660 .class = &omap2430_mmc_class,
2661 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2662};
04aa67de 2663
02bfc030 2664static __initdata struct omap_hwmod *omap2430_hwmods[] = {
4a7cf90a 2665 &omap2430_l3_main_hwmod,
02bfc030
PW
2666 &omap2430_l4_core_hwmod,
2667 &omap2430_l4_wkup_hwmod,
2668 &omap2430_mpu_hwmod,
08072acf 2669 &omap2430_iva_hwmod,
b6b58229
TG
2670
2671 &omap2430_timer1_hwmod,
2672 &omap2430_timer2_hwmod,
2673 &omap2430_timer3_hwmod,
2674 &omap2430_timer4_hwmod,
2675 &omap2430_timer5_hwmod,
2676 &omap2430_timer6_hwmod,
2677 &omap2430_timer7_hwmod,
2678 &omap2430_timer8_hwmod,
2679 &omap2430_timer9_hwmod,
2680 &omap2430_timer10_hwmod,
2681 &omap2430_timer11_hwmod,
2682 &omap2430_timer12_hwmod,
2683
165e2161 2684 &omap2430_wd_timer2_hwmod,
046465b7
KH
2685 &omap2430_uart1_hwmod,
2686 &omap2430_uart2_hwmod,
2687 &omap2430_uart3_hwmod,
de56dbb6
SG
2688 /* dss class */
2689 &omap2430_dss_core_hwmod,
2690 &omap2430_dss_dispc_hwmod,
2691 &omap2430_dss_rfbi_hwmod,
2692 &omap2430_dss_venc_hwmod,
2693 /* i2c class */
2004290f
PW
2694 &omap2430_i2c1_hwmod,
2695 &omap2430_i2c2_hwmod,
bce06f37
PW
2696 &omap2430_mmc1_hwmod,
2697 &omap2430_mmc2_hwmod,
aeac0e44
VC
2698
2699 /* gpio class */
2700 &omap2430_gpio1_hwmod,
2701 &omap2430_gpio2_hwmod,
2702 &omap2430_gpio3_hwmod,
2703 &omap2430_gpio4_hwmod,
2704 &omap2430_gpio5_hwmod,
82cbd1ae
MK
2705
2706 /* dma_system class*/
2707 &omap2430_dma_system_hwmod,
7f904c78 2708
37801b3d
C
2709 /* mcbsp class */
2710 &omap2430_mcbsp1_hwmod,
2711 &omap2430_mcbsp2_hwmod,
2712 &omap2430_mcbsp3_hwmod,
2713 &omap2430_mcbsp4_hwmod,
2714 &omap2430_mcbsp5_hwmod,
2715
fca1ab55
ORL
2716 /* mailbox class */
2717 &omap2430_mailbox_hwmod,
2718
7f904c78
C
2719 /* mcspi class */
2720 &omap2430_mcspi1_hwmod,
2721 &omap2430_mcspi2_hwmod,
2722 &omap2430_mcspi3_hwmod,
04aa67de 2723
44d02acf
HH
2724 /* usbotg class*/
2725 &omap2430_usbhsotg_hwmod,
04aa67de 2726
02bfc030
PW
2727 NULL,
2728};
2729
7359154e
PW
2730int __init omap2430_hwmod_init(void)
2731{
550c8092 2732 return omap_hwmod_register(omap2430_hwmods);
7359154e 2733}