I2C: OMAP1/OMAP2+: create omap I2C functionality flags for each cpu_... test
[deliverable/linux.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 *
78183f3f 4 * Copyright (C) 2009-2011 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 134/* L4 CORE -> I2C1 interface */
2004290f
PW
135static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
136 .master = &omap2430_l4_core_hwmod,
137 .slave = &omap2430_i2c1_hwmod,
138 .clk = "i2c1_ick",
ded11383 139 .addr = omap2_i2c1_addr_space,
2004290f
PW
140 .user = OCP_USER_MPU | OCP_USER_SDMA,
141};
142
143/* L4 CORE -> I2C2 interface */
2004290f
PW
144static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
145 .master = &omap2430_l4_core_hwmod,
146 .slave = &omap2430_i2c2_hwmod,
147 .clk = "i2c2_ick",
ded11383 148 .addr = omap2_i2c2_addr_space,
2004290f
PW
149 .user = OCP_USER_MPU | OCP_USER_SDMA,
150};
02bfc030
PW
151
152/* L4_CORE -> L4_WKUP interface */
153static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
154 .master = &omap2430_l4_core_hwmod,
155 .slave = &omap2430_l4_wkup_hwmod,
156 .user = OCP_USER_MPU | OCP_USER_SDMA,
157};
158
046465b7 159/* L4 CORE -> UART1 interface */
046465b7
KH
160static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
161 .master = &omap2430_l4_core_hwmod,
162 .slave = &omap2430_uart1_hwmod,
163 .clk = "uart1_ick",
ded11383 164 .addr = omap2xxx_uart1_addr_space,
046465b7
KH
165 .user = OCP_USER_MPU | OCP_USER_SDMA,
166};
167
168/* L4 CORE -> UART2 interface */
046465b7
KH
169static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
170 .master = &omap2430_l4_core_hwmod,
171 .slave = &omap2430_uart2_hwmod,
172 .clk = "uart2_ick",
ded11383 173 .addr = omap2xxx_uart2_addr_space,
046465b7
KH
174 .user = OCP_USER_MPU | OCP_USER_SDMA,
175};
176
177/* L4 PER -> UART3 interface */
046465b7
KH
178static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
179 .master = &omap2430_l4_core_hwmod,
180 .slave = &omap2430_uart3_hwmod,
181 .clk = "uart3_ick",
ded11383 182 .addr = omap2xxx_uart3_addr_space,
046465b7
KH
183 .user = OCP_USER_MPU | OCP_USER_SDMA,
184};
185
44d02acf
HH
186/*
187* usbhsotg interface data
188*/
189static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
190 {
191 .pa_start = OMAP243X_HS_BASE,
192 .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
193 .flags = ADDR_TYPE_RT
194 },
195};
196
197/* l4_core ->usbhsotg interface */
198static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
199 .master = &omap2430_l4_core_hwmod,
200 .slave = &omap2430_usbhsotg_hwmod,
201 .clk = "usb_l4_ick",
202 .addr = omap2430_usbhsotg_addrs,
44d02acf
HH
203 .user = OCP_USER_MPU,
204};
205
206static struct omap_hwmod_ocp_if *omap2430_usbhsotg_masters[] = {
207 &omap2430_usbhsotg__l3,
208};
209
210static struct omap_hwmod_ocp_if *omap2430_usbhsotg_slaves[] = {
211 &omap2430_l4_core__usbhsotg,
212};
213
bce06f37 214/* L4 CORE -> MMC1 interface */
bce06f37
PW
215static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = {
216 .master = &omap2430_l4_core_hwmod,
217 .slave = &omap2430_mmc1_hwmod,
218 .clk = "mmchs1_ick",
219 .addr = omap2430_mmc1_addr_space,
bce06f37
PW
220 .user = OCP_USER_MPU | OCP_USER_SDMA,
221};
222
223/* L4 CORE -> MMC2 interface */
bce06f37
PW
224static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
225 .master = &omap2430_l4_core_hwmod,
226 .slave = &omap2430_mmc2_hwmod,
bce06f37 227 .clk = "mmchs2_ick",
78183f3f 228 .addr = omap2430_mmc2_addr_space,
bce06f37
PW
229 .user = OCP_USER_MPU | OCP_USER_SDMA,
230};
231
02bfc030
PW
232/* Slave interfaces on the L4_CORE interconnect */
233static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
4a7cf90a 234 &omap2430_l3_main__l4_core,
02bfc030
PW
235};
236
237/* Master interfaces on the L4_CORE interconnect */
238static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
239 &omap2430_l4_core__l4_wkup,
bce06f37
PW
240 &omap2430_l4_core__mmc1,
241 &omap2430_l4_core__mmc2,
02bfc030
PW
242};
243
244/* L4 CORE */
245static struct omap_hwmod omap2430_l4_core_hwmod = {
fa98347e 246 .name = "l4_core",
43b40992 247 .class = &l4_hwmod_class,
02bfc030
PW
248 .masters = omap2430_l4_core_masters,
249 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
250 .slaves = omap2430_l4_core_slaves,
251 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
2eb1875d
KH
252 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
253 .flags = HWMOD_NO_IDLEST,
02bfc030
PW
254};
255
256/* Slave interfaces on the L4_WKUP interconnect */
257static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
258 &omap2430_l4_core__l4_wkup,
046465b7
KH
259 &omap2_l4_core__uart1,
260 &omap2_l4_core__uart2,
261 &omap2_l4_core__uart3,
02bfc030
PW
262};
263
264/* Master interfaces on the L4_WKUP interconnect */
265static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
266};
267
7f904c78 268/* l4 core -> mcspi1 interface */
7f904c78
C
269static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
270 .master = &omap2430_l4_core_hwmod,
271 .slave = &omap2430_mcspi1_hwmod,
272 .clk = "mcspi1_ick",
ded11383 273 .addr = omap2_mcspi1_addr_space,
7f904c78
C
274 .user = OCP_USER_MPU | OCP_USER_SDMA,
275};
276
277/* l4 core -> mcspi2 interface */
7f904c78
C
278static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
279 .master = &omap2430_l4_core_hwmod,
280 .slave = &omap2430_mcspi2_hwmod,
281 .clk = "mcspi2_ick",
ded11383 282 .addr = omap2_mcspi2_addr_space,
7f904c78
C
283 .user = OCP_USER_MPU | OCP_USER_SDMA,
284};
285
286/* l4 core -> mcspi3 interface */
7f904c78
C
287static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
288 .master = &omap2430_l4_core_hwmod,
289 .slave = &omap2430_mcspi3_hwmod,
290 .clk = "mcspi3_ick",
291 .addr = omap2430_mcspi3_addr_space,
7f904c78
C
292 .user = OCP_USER_MPU | OCP_USER_SDMA,
293};
294
02bfc030
PW
295/* L4 WKUP */
296static struct omap_hwmod omap2430_l4_wkup_hwmod = {
fa98347e 297 .name = "l4_wkup",
43b40992 298 .class = &l4_hwmod_class,
02bfc030
PW
299 .masters = omap2430_l4_wkup_masters,
300 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
301 .slaves = omap2430_l4_wkup_slaves,
302 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
2eb1875d
KH
303 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
304 .flags = HWMOD_NO_IDLEST,
02bfc030
PW
305};
306
307/* Master interfaces on the MPU device */
308static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
4a7cf90a 309 &omap2430_mpu__l3_main,
02bfc030
PW
310};
311
312/* MPU */
313static struct omap_hwmod omap2430_mpu_hwmod = {
5c2c0296 314 .name = "mpu",
43b40992 315 .class = &mpu_hwmod_class,
50ebdac2 316 .main_clk = "mpu_ck",
02bfc030
PW
317 .masters = omap2430_mpu_masters,
318 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
319 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
320};
321
08072acf
PW
322/*
323 * IVA2_1 interface data
324 */
325
326/* IVA2 <- L3 interface */
327static struct omap_hwmod_ocp_if omap2430_l3__iva = {
328 .master = &omap2430_l3_main_hwmod,
329 .slave = &omap2430_iva_hwmod,
330 .clk = "dsp_fck",
331 .user = OCP_USER_MPU | OCP_USER_SDMA,
332};
333
334static struct omap_hwmod_ocp_if *omap2430_iva_masters[] = {
335 &omap2430_l3__iva,
336};
337
338/*
339 * IVA2 (IVA2)
340 */
341
342static struct omap_hwmod omap2430_iva_hwmod = {
343 .name = "iva",
344 .class = &iva_hwmod_class,
345 .masters = omap2430_iva_masters,
346 .masters_cnt = ARRAY_SIZE(omap2430_iva_masters),
347 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
348};
349
b6b58229
TG
350/* timer1 */
351static struct omap_hwmod omap2430_timer1_hwmod;
b6b58229
TG
352
353static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
354 {
355 .pa_start = 0x49018000,
356 .pa_end = 0x49018000 + SZ_1K - 1,
357 .flags = ADDR_TYPE_RT
358 },
78183f3f 359 { }
b6b58229
TG
360};
361
362/* l4_wkup -> timer1 */
363static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
364 .master = &omap2430_l4_wkup_hwmod,
365 .slave = &omap2430_timer1_hwmod,
366 .clk = "gpt1_ick",
367 .addr = omap2430_timer1_addrs,
b6b58229
TG
368 .user = OCP_USER_MPU | OCP_USER_SDMA,
369};
370
371/* timer1 slave port */
372static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
373 &omap2430_l4_wkup__timer1,
374};
375
376/* timer1 hwmod */
377static struct omap_hwmod omap2430_timer1_hwmod = {
378 .name = "timer1",
0d619a89 379 .mpu_irqs = omap2_timer1_mpu_irqs,
b6b58229
TG
380 .main_clk = "gpt1_fck",
381 .prcm = {
382 .omap2 = {
383 .prcm_reg_id = 1,
384 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
385 .module_offs = WKUP_MOD,
386 .idlest_reg_id = 1,
387 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
388 },
389 },
390 .slaves = omap2430_timer1_slaves,
391 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
273b9465 392 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
393 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
394};
395
396/* timer2 */
397static struct omap_hwmod omap2430_timer2_hwmod;
b6b58229 398
b6b58229
TG
399/* l4_core -> timer2 */
400static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
401 .master = &omap2430_l4_core_hwmod,
402 .slave = &omap2430_timer2_hwmod,
403 .clk = "gpt2_ick",
ded11383 404 .addr = omap2xxx_timer2_addrs,
b6b58229
TG
405 .user = OCP_USER_MPU | OCP_USER_SDMA,
406};
407
408/* timer2 slave port */
409static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
410 &omap2430_l4_core__timer2,
411};
412
413/* timer2 hwmod */
414static struct omap_hwmod omap2430_timer2_hwmod = {
415 .name = "timer2",
0d619a89 416 .mpu_irqs = omap2_timer2_mpu_irqs,
b6b58229
TG
417 .main_clk = "gpt2_fck",
418 .prcm = {
419 .omap2 = {
420 .prcm_reg_id = 1,
421 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
422 .module_offs = CORE_MOD,
423 .idlest_reg_id = 1,
424 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
425 },
426 },
427 .slaves = omap2430_timer2_slaves,
428 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
273b9465 429 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
430 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
431};
432
433/* timer3 */
434static struct omap_hwmod omap2430_timer3_hwmod;
b6b58229 435
b6b58229
TG
436/* l4_core -> timer3 */
437static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
438 .master = &omap2430_l4_core_hwmod,
439 .slave = &omap2430_timer3_hwmod,
440 .clk = "gpt3_ick",
ded11383 441 .addr = omap2xxx_timer3_addrs,
b6b58229
TG
442 .user = OCP_USER_MPU | OCP_USER_SDMA,
443};
444
445/* timer3 slave port */
446static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
447 &omap2430_l4_core__timer3,
448};
449
450/* timer3 hwmod */
451static struct omap_hwmod omap2430_timer3_hwmod = {
452 .name = "timer3",
0d619a89 453 .mpu_irqs = omap2_timer3_mpu_irqs,
b6b58229
TG
454 .main_clk = "gpt3_fck",
455 .prcm = {
456 .omap2 = {
457 .prcm_reg_id = 1,
458 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
459 .module_offs = CORE_MOD,
460 .idlest_reg_id = 1,
461 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
462 },
463 },
464 .slaves = omap2430_timer3_slaves,
465 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
273b9465 466 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
467 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
468};
469
470/* timer4 */
471static struct omap_hwmod omap2430_timer4_hwmod;
b6b58229 472
b6b58229
TG
473/* l4_core -> timer4 */
474static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
475 .master = &omap2430_l4_core_hwmod,
476 .slave = &omap2430_timer4_hwmod,
477 .clk = "gpt4_ick",
ded11383 478 .addr = omap2xxx_timer4_addrs,
b6b58229
TG
479 .user = OCP_USER_MPU | OCP_USER_SDMA,
480};
481
482/* timer4 slave port */
483static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
484 &omap2430_l4_core__timer4,
485};
486
487/* timer4 hwmod */
488static struct omap_hwmod omap2430_timer4_hwmod = {
489 .name = "timer4",
0d619a89 490 .mpu_irqs = omap2_timer4_mpu_irqs,
b6b58229
TG
491 .main_clk = "gpt4_fck",
492 .prcm = {
493 .omap2 = {
494 .prcm_reg_id = 1,
495 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
496 .module_offs = CORE_MOD,
497 .idlest_reg_id = 1,
498 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
499 },
500 },
501 .slaves = omap2430_timer4_slaves,
502 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
273b9465 503 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
504 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
505};
506
507/* timer5 */
508static struct omap_hwmod omap2430_timer5_hwmod;
b6b58229 509
b6b58229
TG
510/* l4_core -> timer5 */
511static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
512 .master = &omap2430_l4_core_hwmod,
513 .slave = &omap2430_timer5_hwmod,
514 .clk = "gpt5_ick",
ded11383 515 .addr = omap2xxx_timer5_addrs,
b6b58229
TG
516 .user = OCP_USER_MPU | OCP_USER_SDMA,
517};
518
519/* timer5 slave port */
520static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
521 &omap2430_l4_core__timer5,
522};
523
524/* timer5 hwmod */
525static struct omap_hwmod omap2430_timer5_hwmod = {
526 .name = "timer5",
0d619a89 527 .mpu_irqs = omap2_timer5_mpu_irqs,
b6b58229
TG
528 .main_clk = "gpt5_fck",
529 .prcm = {
530 .omap2 = {
531 .prcm_reg_id = 1,
532 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
533 .module_offs = CORE_MOD,
534 .idlest_reg_id = 1,
535 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
536 },
537 },
538 .slaves = omap2430_timer5_slaves,
539 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
273b9465 540 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
541 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
542};
543
544/* timer6 */
545static struct omap_hwmod omap2430_timer6_hwmod;
b6b58229 546
b6b58229
TG
547/* l4_core -> timer6 */
548static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
549 .master = &omap2430_l4_core_hwmod,
550 .slave = &omap2430_timer6_hwmod,
551 .clk = "gpt6_ick",
ded11383 552 .addr = omap2xxx_timer6_addrs,
b6b58229
TG
553 .user = OCP_USER_MPU | OCP_USER_SDMA,
554};
555
556/* timer6 slave port */
557static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
558 &omap2430_l4_core__timer6,
559};
560
561/* timer6 hwmod */
562static struct omap_hwmod omap2430_timer6_hwmod = {
563 .name = "timer6",
0d619a89 564 .mpu_irqs = omap2_timer6_mpu_irqs,
b6b58229
TG
565 .main_clk = "gpt6_fck",
566 .prcm = {
567 .omap2 = {
568 .prcm_reg_id = 1,
569 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
570 .module_offs = CORE_MOD,
571 .idlest_reg_id = 1,
572 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
573 },
574 },
575 .slaves = omap2430_timer6_slaves,
576 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
273b9465 577 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
578 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
579};
580
581/* timer7 */
582static struct omap_hwmod omap2430_timer7_hwmod;
b6b58229 583
b6b58229
TG
584/* l4_core -> timer7 */
585static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
586 .master = &omap2430_l4_core_hwmod,
587 .slave = &omap2430_timer7_hwmod,
588 .clk = "gpt7_ick",
ded11383 589 .addr = omap2xxx_timer7_addrs,
b6b58229
TG
590 .user = OCP_USER_MPU | OCP_USER_SDMA,
591};
592
593/* timer7 slave port */
594static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
595 &omap2430_l4_core__timer7,
596};
597
598/* timer7 hwmod */
599static struct omap_hwmod omap2430_timer7_hwmod = {
600 .name = "timer7",
0d619a89 601 .mpu_irqs = omap2_timer7_mpu_irqs,
b6b58229
TG
602 .main_clk = "gpt7_fck",
603 .prcm = {
604 .omap2 = {
605 .prcm_reg_id = 1,
606 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
607 .module_offs = CORE_MOD,
608 .idlest_reg_id = 1,
609 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
610 },
611 },
612 .slaves = omap2430_timer7_slaves,
613 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
273b9465 614 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
615 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
616};
617
618/* timer8 */
619static struct omap_hwmod omap2430_timer8_hwmod;
b6b58229 620
b6b58229
TG
621/* l4_core -> timer8 */
622static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
623 .master = &omap2430_l4_core_hwmod,
624 .slave = &omap2430_timer8_hwmod,
625 .clk = "gpt8_ick",
ded11383 626 .addr = omap2xxx_timer8_addrs,
b6b58229
TG
627 .user = OCP_USER_MPU | OCP_USER_SDMA,
628};
629
630/* timer8 slave port */
631static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
632 &omap2430_l4_core__timer8,
633};
634
635/* timer8 hwmod */
636static struct omap_hwmod omap2430_timer8_hwmod = {
637 .name = "timer8",
0d619a89 638 .mpu_irqs = omap2_timer8_mpu_irqs,
b6b58229
TG
639 .main_clk = "gpt8_fck",
640 .prcm = {
641 .omap2 = {
642 .prcm_reg_id = 1,
643 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
644 .module_offs = CORE_MOD,
645 .idlest_reg_id = 1,
646 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
647 },
648 },
649 .slaves = omap2430_timer8_slaves,
650 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
273b9465 651 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
652 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
653};
654
655/* timer9 */
656static struct omap_hwmod omap2430_timer9_hwmod;
b6b58229 657
b6b58229
TG
658/* l4_core -> timer9 */
659static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
660 .master = &omap2430_l4_core_hwmod,
661 .slave = &omap2430_timer9_hwmod,
662 .clk = "gpt9_ick",
ded11383 663 .addr = omap2xxx_timer9_addrs,
b6b58229
TG
664 .user = OCP_USER_MPU | OCP_USER_SDMA,
665};
666
667/* timer9 slave port */
668static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
669 &omap2430_l4_core__timer9,
670};
671
672/* timer9 hwmod */
673static struct omap_hwmod omap2430_timer9_hwmod = {
674 .name = "timer9",
0d619a89 675 .mpu_irqs = omap2_timer9_mpu_irqs,
b6b58229
TG
676 .main_clk = "gpt9_fck",
677 .prcm = {
678 .omap2 = {
679 .prcm_reg_id = 1,
680 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
681 .module_offs = CORE_MOD,
682 .idlest_reg_id = 1,
683 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
684 },
685 },
686 .slaves = omap2430_timer9_slaves,
687 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
273b9465 688 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
689 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
690};
691
692/* timer10 */
693static struct omap_hwmod omap2430_timer10_hwmod;
b6b58229 694
b6b58229
TG
695/* l4_core -> timer10 */
696static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
697 .master = &omap2430_l4_core_hwmod,
698 .slave = &omap2430_timer10_hwmod,
699 .clk = "gpt10_ick",
ded11383 700 .addr = omap2_timer10_addrs,
b6b58229
TG
701 .user = OCP_USER_MPU | OCP_USER_SDMA,
702};
703
704/* timer10 slave port */
705static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
706 &omap2430_l4_core__timer10,
707};
708
709/* timer10 hwmod */
710static struct omap_hwmod omap2430_timer10_hwmod = {
711 .name = "timer10",
0d619a89 712 .mpu_irqs = omap2_timer10_mpu_irqs,
b6b58229
TG
713 .main_clk = "gpt10_fck",
714 .prcm = {
715 .omap2 = {
716 .prcm_reg_id = 1,
717 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
718 .module_offs = CORE_MOD,
719 .idlest_reg_id = 1,
720 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
721 },
722 },
723 .slaves = omap2430_timer10_slaves,
724 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
273b9465 725 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
726 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
727};
728
729/* timer11 */
730static struct omap_hwmod omap2430_timer11_hwmod;
b6b58229 731
b6b58229
TG
732/* l4_core -> timer11 */
733static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
734 .master = &omap2430_l4_core_hwmod,
735 .slave = &omap2430_timer11_hwmod,
736 .clk = "gpt11_ick",
ded11383 737 .addr = omap2_timer11_addrs,
b6b58229
TG
738 .user = OCP_USER_MPU | OCP_USER_SDMA,
739};
740
741/* timer11 slave port */
742static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
743 &omap2430_l4_core__timer11,
744};
745
746/* timer11 hwmod */
747static struct omap_hwmod omap2430_timer11_hwmod = {
748 .name = "timer11",
0d619a89 749 .mpu_irqs = omap2_timer11_mpu_irqs,
b6b58229
TG
750 .main_clk = "gpt11_fck",
751 .prcm = {
752 .omap2 = {
753 .prcm_reg_id = 1,
754 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
755 .module_offs = CORE_MOD,
756 .idlest_reg_id = 1,
757 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
758 },
759 },
760 .slaves = omap2430_timer11_slaves,
761 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
273b9465 762 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
763 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
764};
765
766/* timer12 */
767static struct omap_hwmod omap2430_timer12_hwmod;
b6b58229 768
b6b58229
TG
769/* l4_core -> timer12 */
770static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
771 .master = &omap2430_l4_core_hwmod,
772 .slave = &omap2430_timer12_hwmod,
773 .clk = "gpt12_ick",
ded11383 774 .addr = omap2xxx_timer12_addrs,
b6b58229
TG
775 .user = OCP_USER_MPU | OCP_USER_SDMA,
776};
777
778/* timer12 slave port */
779static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
780 &omap2430_l4_core__timer12,
781};
782
783/* timer12 hwmod */
784static struct omap_hwmod omap2430_timer12_hwmod = {
785 .name = "timer12",
0d619a89 786 .mpu_irqs = omap2xxx_timer12_mpu_irqs,
b6b58229
TG
787 .main_clk = "gpt12_fck",
788 .prcm = {
789 .omap2 = {
790 .prcm_reg_id = 1,
791 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
792 .module_offs = CORE_MOD,
793 .idlest_reg_id = 1,
794 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
795 },
796 },
797 .slaves = omap2430_timer12_slaves,
798 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
273b9465 799 .class = &omap2xxx_timer_hwmod_class,
b6b58229
TG
800 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
801};
802
165e2161
VC
803/* l4_wkup -> wd_timer2 */
804static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
805 {
806 .pa_start = 0x49016000,
807 .pa_end = 0x4901607f,
808 .flags = ADDR_TYPE_RT
809 },
78183f3f 810 { }
165e2161
VC
811};
812
813static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
814 .master = &omap2430_l4_wkup_hwmod,
815 .slave = &omap2430_wd_timer2_hwmod,
816 .clk = "mpu_wdt_ick",
817 .addr = omap2430_wd_timer2_addrs,
165e2161
VC
818 .user = OCP_USER_MPU | OCP_USER_SDMA,
819};
820
165e2161
VC
821/* wd_timer2 */
822static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
823 &omap2430_l4_wkup__wd_timer2,
824};
825
826static struct omap_hwmod omap2430_wd_timer2_hwmod = {
827 .name = "wd_timer2",
273b9465 828 .class = &omap2xxx_wd_timer_hwmod_class,
165e2161
VC
829 .main_clk = "mpu_wdt_fck",
830 .prcm = {
831 .omap2 = {
832 .prcm_reg_id = 1,
833 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
834 .module_offs = WKUP_MOD,
835 .idlest_reg_id = 1,
836 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
837 },
838 },
839 .slaves = omap2430_wd_timer2_slaves,
840 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
841 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
842};
843
046465b7
KH
844/* UART1 */
845
046465b7
KH
846static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
847 &omap2_l4_core__uart1,
848};
849
850static struct omap_hwmod omap2430_uart1_hwmod = {
851 .name = "uart1",
0d619a89 852 .mpu_irqs = omap2_uart1_mpu_irqs,
d826ebfa 853 .sdma_reqs = omap2_uart1_sdma_reqs,
046465b7
KH
854 .main_clk = "uart1_fck",
855 .prcm = {
856 .omap2 = {
857 .module_offs = CORE_MOD,
858 .prcm_reg_id = 1,
859 .module_bit = OMAP24XX_EN_UART1_SHIFT,
860 .idlest_reg_id = 1,
861 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
862 },
863 },
864 .slaves = omap2430_uart1_slaves,
865 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
273b9465 866 .class = &omap2_uart_class,
046465b7
KH
867 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
868};
869
870/* UART2 */
871
046465b7
KH
872static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
873 &omap2_l4_core__uart2,
874};
875
876static struct omap_hwmod omap2430_uart2_hwmod = {
877 .name = "uart2",
0d619a89 878 .mpu_irqs = omap2_uart2_mpu_irqs,
d826ebfa 879 .sdma_reqs = omap2_uart2_sdma_reqs,
046465b7
KH
880 .main_clk = "uart2_fck",
881 .prcm = {
882 .omap2 = {
883 .module_offs = CORE_MOD,
884 .prcm_reg_id = 1,
885 .module_bit = OMAP24XX_EN_UART2_SHIFT,
886 .idlest_reg_id = 1,
887 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
888 },
889 },
890 .slaves = omap2430_uart2_slaves,
891 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
273b9465 892 .class = &omap2_uart_class,
046465b7
KH
893 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
894};
895
896/* UART3 */
897
046465b7
KH
898static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
899 &omap2_l4_core__uart3,
900};
901
902static struct omap_hwmod omap2430_uart3_hwmod = {
903 .name = "uart3",
0d619a89 904 .mpu_irqs = omap2_uart3_mpu_irqs,
d826ebfa 905 .sdma_reqs = omap2_uart3_sdma_reqs,
046465b7
KH
906 .main_clk = "uart3_fck",
907 .prcm = {
908 .omap2 = {
909 .module_offs = CORE_MOD,
910 .prcm_reg_id = 2,
911 .module_bit = OMAP24XX_EN_UART3_SHIFT,
912 .idlest_reg_id = 2,
913 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
914 },
915 },
916 .slaves = omap2430_uart3_slaves,
917 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
273b9465 918 .class = &omap2_uart_class,
046465b7
KH
919 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
920};
921
de56dbb6
SG
922/* dss */
923/* dss master ports */
924static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
925 &omap2430_dss__l3,
926};
927
de56dbb6
SG
928/* l4_core -> dss */
929static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
930 .master = &omap2430_l4_core_hwmod,
931 .slave = &omap2430_dss_core_hwmod,
932 .clk = "dss_ick",
ded11383 933 .addr = omap2_dss_addrs,
de56dbb6
SG
934 .user = OCP_USER_MPU | OCP_USER_SDMA,
935};
936
937/* dss slave ports */
938static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
939 &omap2430_l4_core__dss,
940};
941
942static struct omap_hwmod_opt_clk dss_opt_clks[] = {
943 { .role = "tv_clk", .clk = "dss_54m_fck" },
944 { .role = "sys_clk", .clk = "dss2_fck" },
945};
946
947static struct omap_hwmod omap2430_dss_core_hwmod = {
948 .name = "dss_core",
273b9465 949 .class = &omap2_dss_hwmod_class,
de56dbb6 950 .main_clk = "dss1_fck", /* instead of dss_fck */
d826ebfa 951 .sdma_reqs = omap2xxx_dss_sdma_chs,
de56dbb6
SG
952 .prcm = {
953 .omap2 = {
954 .prcm_reg_id = 1,
955 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
956 .module_offs = CORE_MOD,
957 .idlest_reg_id = 1,
958 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
959 },
960 },
961 .opt_clks = dss_opt_clks,
962 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
963 .slaves = omap2430_dss_slaves,
964 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
965 .masters = omap2430_dss_masters,
966 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
967 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
968 .flags = HWMOD_NO_IDLEST,
969};
970
de56dbb6
SG
971/* l4_core -> dss_dispc */
972static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
973 .master = &omap2430_l4_core_hwmod,
974 .slave = &omap2430_dss_dispc_hwmod,
975 .clk = "dss_ick",
ded11383 976 .addr = omap2_dss_dispc_addrs,
de56dbb6
SG
977 .user = OCP_USER_MPU | OCP_USER_SDMA,
978};
979
980/* dss_dispc slave ports */
981static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
982 &omap2430_l4_core__dss_dispc,
983};
984
985static struct omap_hwmod omap2430_dss_dispc_hwmod = {
986 .name = "dss_dispc",
273b9465 987 .class = &omap2_dispc_hwmod_class,
0d619a89 988 .mpu_irqs = omap2_dispc_irqs,
de56dbb6
SG
989 .main_clk = "dss1_fck",
990 .prcm = {
991 .omap2 = {
992 .prcm_reg_id = 1,
993 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
994 .module_offs = CORE_MOD,
995 .idlest_reg_id = 1,
996 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
997 },
998 },
999 .slaves = omap2430_dss_dispc_slaves,
1000 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
1001 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1002 .flags = HWMOD_NO_IDLEST,
1003};
1004
de56dbb6
SG
1005/* l4_core -> dss_rfbi */
1006static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
1007 .master = &omap2430_l4_core_hwmod,
1008 .slave = &omap2430_dss_rfbi_hwmod,
1009 .clk = "dss_ick",
ded11383 1010 .addr = omap2_dss_rfbi_addrs,
de56dbb6
SG
1011 .user = OCP_USER_MPU | OCP_USER_SDMA,
1012};
1013
1014/* dss_rfbi slave ports */
1015static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1016 &omap2430_l4_core__dss_rfbi,
1017};
1018
1019static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1020 .name = "dss_rfbi",
273b9465 1021 .class = &omap2_rfbi_hwmod_class,
de56dbb6
SG
1022 .main_clk = "dss1_fck",
1023 .prcm = {
1024 .omap2 = {
1025 .prcm_reg_id = 1,
1026 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1027 .module_offs = CORE_MOD,
1028 },
1029 },
1030 .slaves = omap2430_dss_rfbi_slaves,
1031 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1032 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1033 .flags = HWMOD_NO_IDLEST,
1034};
1035
de56dbb6
SG
1036/* l4_core -> dss_venc */
1037static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1038 .master = &omap2430_l4_core_hwmod,
1039 .slave = &omap2430_dss_venc_hwmod,
1040 .clk = "dss_54m_fck",
ded11383 1041 .addr = omap2_dss_venc_addrs,
c39bee8a 1042 .flags = OCPIF_SWSUP_IDLE,
de56dbb6
SG
1043 .user = OCP_USER_MPU | OCP_USER_SDMA,
1044};
1045
1046/* dss_venc slave ports */
1047static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1048 &omap2430_l4_core__dss_venc,
1049};
1050
1051static struct omap_hwmod omap2430_dss_venc_hwmod = {
1052 .name = "dss_venc",
273b9465 1053 .class = &omap2_venc_hwmod_class,
de56dbb6
SG
1054 .main_clk = "dss1_fck",
1055 .prcm = {
1056 .omap2 = {
1057 .prcm_reg_id = 1,
1058 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1059 .module_offs = CORE_MOD,
1060 },
1061 },
1062 .slaves = omap2430_dss_venc_slaves,
1063 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1064 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1065 .flags = HWMOD_NO_IDLEST,
1066};
1067
2004290f
PW
1068/* I2C common */
1069static struct omap_hwmod_class_sysconfig i2c_sysc = {
1070 .rev_offs = 0x00,
1071 .sysc_offs = 0x20,
1072 .syss_offs = 0x10,
2d403fe0
PW
1073 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1074 SYSS_HAS_RESET_STATUS),
2004290f
PW
1075 .sysc_fields = &omap_hwmod_sysc_type1,
1076};
1077
1078static struct omap_hwmod_class i2c_class = {
1079 .name = "i2c",
1080 .sysc = &i2c_sysc,
1081};
1082
50ebb777 1083static struct omap_i2c_dev_attr i2c_dev_attr = {
2004290f
PW
1084 .fifo_depth = 8, /* bytes */
1085};
1086
50ebb777
BC
1087/* I2C1 */
1088
2004290f
PW
1089static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1090 &omap2430_l4_core__i2c1,
1091};
1092
1093static struct omap_hwmod omap2430_i2c1_hwmod = {
1094 .name = "i2c1",
3e600522 1095 .flags = HWMOD_16BIT_REG,
0d619a89 1096 .mpu_irqs = omap2_i2c1_mpu_irqs,
d826ebfa 1097 .sdma_reqs = omap2_i2c1_sdma_reqs,
2004290f
PW
1098 .main_clk = "i2chs1_fck",
1099 .prcm = {
1100 .omap2 = {
1101 /*
1102 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1103 * I2CHS IP's do not follow the usual pattern.
1104 * prcm_reg_id alone cannot be used to program
1105 * the iclk and fclk. Needs to be handled using
25985edc 1106 * additional flags when clk handling is moved
2004290f
PW
1107 * to hwmod framework.
1108 */
1109 .module_offs = CORE_MOD,
1110 .prcm_reg_id = 1,
1111 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1112 .idlest_reg_id = 1,
1113 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1114 },
1115 },
1116 .slaves = omap2430_i2c1_slaves,
1117 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1118 .class = &i2c_class,
50ebb777 1119 .dev_attr = &i2c_dev_attr,
2004290f
PW
1120 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1121};
1122
1123/* I2C2 */
1124
2004290f
PW
1125static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1126 &omap2430_l4_core__i2c2,
1127};
1128
1129static struct omap_hwmod omap2430_i2c2_hwmod = {
1130 .name = "i2c2",
3e600522 1131 .flags = HWMOD_16BIT_REG,
0d619a89 1132 .mpu_irqs = omap2_i2c2_mpu_irqs,
d826ebfa 1133 .sdma_reqs = omap2_i2c2_sdma_reqs,
2004290f
PW
1134 .main_clk = "i2chs2_fck",
1135 .prcm = {
1136 .omap2 = {
1137 .module_offs = CORE_MOD,
1138 .prcm_reg_id = 1,
1139 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1140 .idlest_reg_id = 1,
1141 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1142 },
1143 },
1144 .slaves = omap2430_i2c2_slaves,
1145 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1146 .class = &i2c_class,
50ebb777 1147 .dev_attr = &i2c_dev_attr,
2004290f
PW
1148 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1149};
1150
aeac0e44
VC
1151/* l4_wkup -> gpio1 */
1152static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1153 {
1154 .pa_start = 0x4900C000,
1155 .pa_end = 0x4900C1ff,
1156 .flags = ADDR_TYPE_RT
1157 },
78183f3f 1158 { }
aeac0e44
VC
1159};
1160
1161static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1162 .master = &omap2430_l4_wkup_hwmod,
1163 .slave = &omap2430_gpio1_hwmod,
1164 .clk = "gpios_ick",
1165 .addr = omap2430_gpio1_addr_space,
aeac0e44
VC
1166 .user = OCP_USER_MPU | OCP_USER_SDMA,
1167};
1168
1169/* l4_wkup -> gpio2 */
1170static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1171 {
1172 .pa_start = 0x4900E000,
1173 .pa_end = 0x4900E1ff,
1174 .flags = ADDR_TYPE_RT
1175 },
78183f3f 1176 { }
aeac0e44
VC
1177};
1178
1179static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1180 .master = &omap2430_l4_wkup_hwmod,
1181 .slave = &omap2430_gpio2_hwmod,
1182 .clk = "gpios_ick",
1183 .addr = omap2430_gpio2_addr_space,
aeac0e44
VC
1184 .user = OCP_USER_MPU | OCP_USER_SDMA,
1185};
1186
1187/* l4_wkup -> gpio3 */
1188static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1189 {
1190 .pa_start = 0x49010000,
1191 .pa_end = 0x490101ff,
1192 .flags = ADDR_TYPE_RT
1193 },
78183f3f 1194 { }
aeac0e44
VC
1195};
1196
1197static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1198 .master = &omap2430_l4_wkup_hwmod,
1199 .slave = &omap2430_gpio3_hwmod,
1200 .clk = "gpios_ick",
1201 .addr = omap2430_gpio3_addr_space,
aeac0e44
VC
1202 .user = OCP_USER_MPU | OCP_USER_SDMA,
1203};
1204
1205/* l4_wkup -> gpio4 */
1206static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1207 {
1208 .pa_start = 0x49012000,
1209 .pa_end = 0x490121ff,
1210 .flags = ADDR_TYPE_RT
1211 },
78183f3f 1212 { }
aeac0e44
VC
1213};
1214
1215static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1216 .master = &omap2430_l4_wkup_hwmod,
1217 .slave = &omap2430_gpio4_hwmod,
1218 .clk = "gpios_ick",
1219 .addr = omap2430_gpio4_addr_space,
aeac0e44
VC
1220 .user = OCP_USER_MPU | OCP_USER_SDMA,
1221};
1222
1223/* l4_core -> gpio5 */
1224static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1225 {
1226 .pa_start = 0x480B6000,
1227 .pa_end = 0x480B61ff,
1228 .flags = ADDR_TYPE_RT
1229 },
78183f3f 1230 { }
aeac0e44
VC
1231};
1232
1233static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1234 .master = &omap2430_l4_core_hwmod,
1235 .slave = &omap2430_gpio5_hwmod,
1236 .clk = "gpio5_ick",
1237 .addr = omap2430_gpio5_addr_space,
aeac0e44
VC
1238 .user = OCP_USER_MPU | OCP_USER_SDMA,
1239};
1240
1241/* gpio dev_attr */
1242static struct omap_gpio_dev_attr gpio_dev_attr = {
1243 .bank_width = 32,
1244 .dbck_flag = false,
1245};
1246
aeac0e44 1247/* gpio1 */
aeac0e44
VC
1248static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1249 &omap2430_l4_wkup__gpio1,
1250};
1251
1252static struct omap_hwmod omap2430_gpio1_hwmod = {
1253 .name = "gpio1",
f95440ca 1254 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
0d619a89 1255 .mpu_irqs = omap2_gpio1_irqs,
aeac0e44
VC
1256 .main_clk = "gpios_fck",
1257 .prcm = {
1258 .omap2 = {
1259 .prcm_reg_id = 1,
1260 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1261 .module_offs = WKUP_MOD,
1262 .idlest_reg_id = 1,
1263 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1264 },
1265 },
1266 .slaves = omap2430_gpio1_slaves,
1267 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
273b9465 1268 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1269 .dev_attr = &gpio_dev_attr,
1270 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1271};
1272
1273/* gpio2 */
aeac0e44
VC
1274static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1275 &omap2430_l4_wkup__gpio2,
1276};
1277
1278static struct omap_hwmod omap2430_gpio2_hwmod = {
1279 .name = "gpio2",
f95440ca 1280 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
0d619a89 1281 .mpu_irqs = omap2_gpio2_irqs,
aeac0e44
VC
1282 .main_clk = "gpios_fck",
1283 .prcm = {
1284 .omap2 = {
1285 .prcm_reg_id = 1,
1286 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1287 .module_offs = WKUP_MOD,
1288 .idlest_reg_id = 1,
1289 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1290 },
1291 },
1292 .slaves = omap2430_gpio2_slaves,
1293 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
273b9465 1294 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1295 .dev_attr = &gpio_dev_attr,
1296 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1297};
1298
1299/* gpio3 */
aeac0e44
VC
1300static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1301 &omap2430_l4_wkup__gpio3,
1302};
1303
1304static struct omap_hwmod omap2430_gpio3_hwmod = {
1305 .name = "gpio3",
f95440ca 1306 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
0d619a89 1307 .mpu_irqs = omap2_gpio3_irqs,
aeac0e44
VC
1308 .main_clk = "gpios_fck",
1309 .prcm = {
1310 .omap2 = {
1311 .prcm_reg_id = 1,
1312 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1313 .module_offs = WKUP_MOD,
1314 .idlest_reg_id = 1,
1315 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1316 },
1317 },
1318 .slaves = omap2430_gpio3_slaves,
1319 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
273b9465 1320 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1321 .dev_attr = &gpio_dev_attr,
1322 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1323};
1324
1325/* gpio4 */
aeac0e44
VC
1326static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1327 &omap2430_l4_wkup__gpio4,
1328};
1329
1330static struct omap_hwmod omap2430_gpio4_hwmod = {
1331 .name = "gpio4",
f95440ca 1332 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
0d619a89 1333 .mpu_irqs = omap2_gpio4_irqs,
aeac0e44
VC
1334 .main_clk = "gpios_fck",
1335 .prcm = {
1336 .omap2 = {
1337 .prcm_reg_id = 1,
1338 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1339 .module_offs = WKUP_MOD,
1340 .idlest_reg_id = 1,
1341 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1342 },
1343 },
1344 .slaves = omap2430_gpio4_slaves,
1345 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
273b9465 1346 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1347 .dev_attr = &gpio_dev_attr,
1348 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1349};
1350
1351/* gpio5 */
1352static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1353 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
212738a4 1354 { .irq = -1 }
aeac0e44
VC
1355};
1356
1357static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1358 &omap2430_l4_core__gpio5,
1359};
1360
1361static struct omap_hwmod omap2430_gpio5_hwmod = {
1362 .name = "gpio5",
f95440ca 1363 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
aeac0e44 1364 .mpu_irqs = omap243x_gpio5_irqs,
aeac0e44
VC
1365 .main_clk = "gpio5_fck",
1366 .prcm = {
1367 .omap2 = {
1368 .prcm_reg_id = 2,
1369 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1370 .module_offs = CORE_MOD,
1371 .idlest_reg_id = 2,
1372 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1373 },
1374 },
1375 .slaves = omap2430_gpio5_slaves,
1376 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
273b9465 1377 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1378 .dev_attr = &gpio_dev_attr,
1379 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1380};
1381
82cbd1ae
MK
1382/* dma attributes */
1383static struct omap_dma_dev_attr dma_dev_attr = {
1384 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1385 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1386 .lch_count = 32,
1387};
1388
82cbd1ae
MK
1389/* dma_system -> L3 */
1390static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1391 .master = &omap2430_dma_system_hwmod,
1392 .slave = &omap2430_l3_main_hwmod,
1393 .clk = "core_l3_ck",
1394 .user = OCP_USER_MPU | OCP_USER_SDMA,
1395};
1396
1397/* dma_system master ports */
1398static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1399 &omap2430_dma_system__l3,
1400};
1401
1402/* l4_core -> dma_system */
1403static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1404 .master = &omap2430_l4_core_hwmod,
1405 .slave = &omap2430_dma_system_hwmod,
1406 .clk = "sdma_ick",
ded11383 1407 .addr = omap2_dma_system_addrs,
82cbd1ae
MK
1408 .user = OCP_USER_MPU | OCP_USER_SDMA,
1409};
1410
1411/* dma_system slave ports */
1412static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1413 &omap2430_l4_core__dma_system,
1414};
1415
1416static struct omap_hwmod omap2430_dma_system_hwmod = {
1417 .name = "dma",
273b9465 1418 .class = &omap2xxx_dma_hwmod_class,
0d619a89 1419 .mpu_irqs = omap2_dma_system_irqs,
82cbd1ae
MK
1420 .main_clk = "core_l3_ck",
1421 .slaves = omap2430_dma_system_slaves,
1422 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1423 .masters = omap2430_dma_system_masters,
1424 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1425 .dev_attr = &dma_dev_attr,
1426 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1427 .flags = HWMOD_NO_IDLEST,
1428};
1429
fca1ab55
ORL
1430/* mailbox */
1431static struct omap_hwmod omap2430_mailbox_hwmod;
1432static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1433 { .irq = 26 },
212738a4 1434 { .irq = -1 }
fca1ab55
ORL
1435};
1436
fca1ab55
ORL
1437/* l4_core -> mailbox */
1438static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
1439 .master = &omap2430_l4_core_hwmod,
1440 .slave = &omap2430_mailbox_hwmod,
ded11383 1441 .addr = omap2_mailbox_addrs,
fca1ab55
ORL
1442 .user = OCP_USER_MPU | OCP_USER_SDMA,
1443};
1444
1445/* mailbox slave ports */
1446static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
1447 &omap2430_l4_core__mailbox,
1448};
1449
1450static struct omap_hwmod omap2430_mailbox_hwmod = {
1451 .name = "mailbox",
273b9465 1452 .class = &omap2xxx_mailbox_hwmod_class,
fca1ab55 1453 .mpu_irqs = omap2430_mailbox_irqs,
fca1ab55
ORL
1454 .main_clk = "mailboxes_ick",
1455 .prcm = {
1456 .omap2 = {
1457 .prcm_reg_id = 1,
1458 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
1459 .module_offs = CORE_MOD,
1460 .idlest_reg_id = 1,
1461 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
1462 },
1463 },
1464 .slaves = omap2430_mailbox_slaves,
1465 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
1466 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1467};
1468
7f904c78 1469/* mcspi1 */
7f904c78
C
1470static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
1471 &omap2430_l4_core__mcspi1,
1472};
1473
1474static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1475 .num_chipselect = 4,
1476};
1477
1478static struct omap_hwmod omap2430_mcspi1_hwmod = {
1479 .name = "mcspi1_hwmod",
0d619a89 1480 .mpu_irqs = omap2_mcspi1_mpu_irqs,
d826ebfa 1481 .sdma_reqs = omap2_mcspi1_sdma_reqs,
7f904c78
C
1482 .main_clk = "mcspi1_fck",
1483 .prcm = {
1484 .omap2 = {
1485 .module_offs = CORE_MOD,
1486 .prcm_reg_id = 1,
1487 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
1488 .idlest_reg_id = 1,
1489 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
1490 },
1491 },
1492 .slaves = omap2430_mcspi1_slaves,
1493 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
273b9465
PW
1494 .class = &omap2xxx_mcspi_class,
1495 .dev_attr = &omap_mcspi1_dev_attr,
7f904c78
C
1496 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1497};
1498
1499/* mcspi2 */
7f904c78
C
1500static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
1501 &omap2430_l4_core__mcspi2,
1502};
1503
1504static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1505 .num_chipselect = 2,
1506};
1507
1508static struct omap_hwmod omap2430_mcspi2_hwmod = {
1509 .name = "mcspi2_hwmod",
0d619a89 1510 .mpu_irqs = omap2_mcspi2_mpu_irqs,
d826ebfa 1511 .sdma_reqs = omap2_mcspi2_sdma_reqs,
7f904c78
C
1512 .main_clk = "mcspi2_fck",
1513 .prcm = {
1514 .omap2 = {
1515 .module_offs = CORE_MOD,
1516 .prcm_reg_id = 1,
1517 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
1518 .idlest_reg_id = 1,
1519 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
1520 },
1521 },
1522 .slaves = omap2430_mcspi2_slaves,
1523 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
273b9465
PW
1524 .class = &omap2xxx_mcspi_class,
1525 .dev_attr = &omap_mcspi2_dev_attr,
7f904c78
C
1526 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1527};
1528
1529/* mcspi3 */
1530static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
1531 { .irq = 91 },
212738a4 1532 { .irq = -1 }
7f904c78
C
1533};
1534
1535static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
1536 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
1537 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
1538 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
1539 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
bc614958 1540 { .dma_req = -1 }
7f904c78
C
1541};
1542
1543static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
1544 &omap2430_l4_core__mcspi3,
1545};
1546
1547static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1548 .num_chipselect = 2,
1549};
1550
1551static struct omap_hwmod omap2430_mcspi3_hwmod = {
1552 .name = "mcspi3_hwmod",
1553 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
7f904c78 1554 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
7f904c78
C
1555 .main_clk = "mcspi3_fck",
1556 .prcm = {
1557 .omap2 = {
1558 .module_offs = CORE_MOD,
1559 .prcm_reg_id = 2,
1560 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
1561 .idlest_reg_id = 2,
1562 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
1563 },
1564 },
1565 .slaves = omap2430_mcspi3_slaves,
1566 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
273b9465
PW
1567 .class = &omap2xxx_mcspi_class,
1568 .dev_attr = &omap_mcspi3_dev_attr,
7f904c78
C
1569 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1570};
1571
44d02acf
HH
1572/*
1573 * usbhsotg
1574 */
1575static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
1576 .rev_offs = 0x0400,
1577 .sysc_offs = 0x0404,
1578 .syss_offs = 0x0408,
1579 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1580 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1581 SYSC_HAS_AUTOIDLE),
1582 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1583 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1584 .sysc_fields = &omap_hwmod_sysc_type1,
1585};
1586
1587static struct omap_hwmod_class usbotg_class = {
1588 .name = "usbotg",
1589 .sysc = &omap2430_usbhsotg_sysc,
1590};
1591
1592/* usb_otg_hs */
1593static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
1594
1595 { .name = "mc", .irq = 92 },
1596 { .name = "dma", .irq = 93 },
212738a4 1597 { .irq = -1 }
44d02acf
HH
1598};
1599
1600static struct omap_hwmod omap2430_usbhsotg_hwmod = {
1601 .name = "usb_otg_hs",
1602 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
44d02acf
HH
1603 .main_clk = "usbhs_ick",
1604 .prcm = {
1605 .omap2 = {
1606 .prcm_reg_id = 1,
1607 .module_bit = OMAP2430_EN_USBHS_MASK,
1608 .module_offs = CORE_MOD,
1609 .idlest_reg_id = 1,
1610 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
1611 },
1612 },
1613 .masters = omap2430_usbhsotg_masters,
1614 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
1615 .slaves = omap2430_usbhsotg_slaves,
1616 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
1617 .class = &usbotg_class,
1618 /*
1619 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1620 * broken when autoidle is enabled
1621 * workaround is to disable the autoidle bit at module level.
1622 */
1623 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
1624 | HWMOD_SWSUP_MSTANDBY,
1625 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1626};
1627
37801b3d
C
1628/*
1629 * 'mcbsp' class
1630 * multi channel buffered serial port controller
1631 */
1632
1633static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
1634 .rev_offs = 0x007C,
1635 .sysc_offs = 0x008C,
1636 .sysc_flags = (SYSC_HAS_SOFTRESET),
1637 .sysc_fields = &omap_hwmod_sysc_type1,
1638};
1639
1640static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
1641 .name = "mcbsp",
1642 .sysc = &omap2430_mcbsp_sysc,
1643 .rev = MCBSP_CONFIG_TYPE2,
1644};
04aa67de 1645
37801b3d
C
1646/* mcbsp1 */
1647static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
1648 { .name = "tx", .irq = 59 },
1649 { .name = "rx", .irq = 60 },
1650 { .name = "ovr", .irq = 61 },
1651 { .name = "common", .irq = 64 },
212738a4 1652 { .irq = -1 }
37801b3d
C
1653};
1654
37801b3d
C
1655/* l4_core -> mcbsp1 */
1656static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
1657 .master = &omap2430_l4_core_hwmod,
1658 .slave = &omap2430_mcbsp1_hwmod,
1659 .clk = "mcbsp1_ick",
ded11383 1660 .addr = omap2_mcbsp1_addrs,
37801b3d
C
1661 .user = OCP_USER_MPU | OCP_USER_SDMA,
1662};
1663
1664/* mcbsp1 slave ports */
1665static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
1666 &omap2430_l4_core__mcbsp1,
1667};
1668
1669static struct omap_hwmod omap2430_mcbsp1_hwmod = {
1670 .name = "mcbsp1",
1671 .class = &omap2430_mcbsp_hwmod_class,
1672 .mpu_irqs = omap2430_mcbsp1_irqs,
d826ebfa 1673 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
37801b3d
C
1674 .main_clk = "mcbsp1_fck",
1675 .prcm = {
1676 .omap2 = {
1677 .prcm_reg_id = 1,
1678 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
1679 .module_offs = CORE_MOD,
1680 .idlest_reg_id = 1,
1681 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
1682 },
1683 },
1684 .slaves = omap2430_mcbsp1_slaves,
1685 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
1686 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1687};
1688
1689/* mcbsp2 */
1690static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
1691 { .name = "tx", .irq = 62 },
1692 { .name = "rx", .irq = 63 },
1693 { .name = "common", .irq = 16 },
212738a4 1694 { .irq = -1 }
37801b3d
C
1695};
1696
37801b3d
C
1697/* l4_core -> mcbsp2 */
1698static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
1699 .master = &omap2430_l4_core_hwmod,
1700 .slave = &omap2430_mcbsp2_hwmod,
1701 .clk = "mcbsp2_ick",
ded11383 1702 .addr = omap2xxx_mcbsp2_addrs,
37801b3d
C
1703 .user = OCP_USER_MPU | OCP_USER_SDMA,
1704};
1705
1706/* mcbsp2 slave ports */
1707static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
1708 &omap2430_l4_core__mcbsp2,
1709};
1710
1711static struct omap_hwmod omap2430_mcbsp2_hwmod = {
1712 .name = "mcbsp2",
1713 .class = &omap2430_mcbsp_hwmod_class,
1714 .mpu_irqs = omap2430_mcbsp2_irqs,
d826ebfa 1715 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
37801b3d
C
1716 .main_clk = "mcbsp2_fck",
1717 .prcm = {
1718 .omap2 = {
1719 .prcm_reg_id = 1,
1720 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
1721 .module_offs = CORE_MOD,
1722 .idlest_reg_id = 1,
1723 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
1724 },
1725 },
1726 .slaves = omap2430_mcbsp2_slaves,
1727 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
1728 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1729};
1730
1731/* mcbsp3 */
1732static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
1733 { .name = "tx", .irq = 89 },
1734 { .name = "rx", .irq = 90 },
1735 { .name = "common", .irq = 17 },
212738a4 1736 { .irq = -1 }
37801b3d
C
1737};
1738
37801b3d
C
1739static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
1740 {
1741 .name = "mpu",
1742 .pa_start = 0x4808C000,
1743 .pa_end = 0x4808C0ff,
1744 .flags = ADDR_TYPE_RT
1745 },
78183f3f 1746 { }
37801b3d 1747};
04aa67de 1748
37801b3d
C
1749/* l4_core -> mcbsp3 */
1750static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
1751 .master = &omap2430_l4_core_hwmod,
1752 .slave = &omap2430_mcbsp3_hwmod,
1753 .clk = "mcbsp3_ick",
1754 .addr = omap2430_mcbsp3_addrs,
37801b3d
C
1755 .user = OCP_USER_MPU | OCP_USER_SDMA,
1756};
1757
1758/* mcbsp3 slave ports */
1759static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
1760 &omap2430_l4_core__mcbsp3,
1761};
1762
1763static struct omap_hwmod omap2430_mcbsp3_hwmod = {
1764 .name = "mcbsp3",
1765 .class = &omap2430_mcbsp_hwmod_class,
1766 .mpu_irqs = omap2430_mcbsp3_irqs,
d826ebfa 1767 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
37801b3d
C
1768 .main_clk = "mcbsp3_fck",
1769 .prcm = {
1770 .omap2 = {
1771 .prcm_reg_id = 1,
1772 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
1773 .module_offs = CORE_MOD,
1774 .idlest_reg_id = 2,
1775 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
1776 },
1777 },
1778 .slaves = omap2430_mcbsp3_slaves,
1779 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
1780 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1781};
1782
1783/* mcbsp4 */
1784static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
1785 { .name = "tx", .irq = 54 },
1786 { .name = "rx", .irq = 55 },
1787 { .name = "common", .irq = 18 },
212738a4 1788 { .irq = -1 }
37801b3d
C
1789};
1790
1791static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
1792 { .name = "rx", .dma_req = 20 },
1793 { .name = "tx", .dma_req = 19 },
bc614958 1794 { .dma_req = -1 }
37801b3d
C
1795};
1796
1797static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
1798 {
1799 .name = "mpu",
1800 .pa_start = 0x4808E000,
1801 .pa_end = 0x4808E0ff,
1802 .flags = ADDR_TYPE_RT
1803 },
78183f3f 1804 { }
37801b3d
C
1805};
1806
1807/* l4_core -> mcbsp4 */
1808static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
1809 .master = &omap2430_l4_core_hwmod,
1810 .slave = &omap2430_mcbsp4_hwmod,
1811 .clk = "mcbsp4_ick",
1812 .addr = omap2430_mcbsp4_addrs,
37801b3d
C
1813 .user = OCP_USER_MPU | OCP_USER_SDMA,
1814};
1815
1816/* mcbsp4 slave ports */
1817static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
1818 &omap2430_l4_core__mcbsp4,
1819};
1820
1821static struct omap_hwmod omap2430_mcbsp4_hwmod = {
1822 .name = "mcbsp4",
1823 .class = &omap2430_mcbsp_hwmod_class,
1824 .mpu_irqs = omap2430_mcbsp4_irqs,
37801b3d 1825 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
37801b3d
C
1826 .main_clk = "mcbsp4_fck",
1827 .prcm = {
1828 .omap2 = {
1829 .prcm_reg_id = 1,
1830 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
1831 .module_offs = CORE_MOD,
1832 .idlest_reg_id = 2,
1833 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
1834 },
1835 },
1836 .slaves = omap2430_mcbsp4_slaves,
1837 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
1838 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1839};
1840
1841/* mcbsp5 */
1842static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
1843 { .name = "tx", .irq = 81 },
1844 { .name = "rx", .irq = 82 },
1845 { .name = "common", .irq = 19 },
212738a4 1846 { .irq = -1 }
37801b3d
C
1847};
1848
1849static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
1850 { .name = "rx", .dma_req = 22 },
1851 { .name = "tx", .dma_req = 21 },
bc614958 1852 { .dma_req = -1 }
37801b3d
C
1853};
1854
1855static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
1856 {
1857 .name = "mpu",
1858 .pa_start = 0x48096000,
1859 .pa_end = 0x480960ff,
1860 .flags = ADDR_TYPE_RT
1861 },
78183f3f 1862 { }
37801b3d
C
1863};
1864
1865/* l4_core -> mcbsp5 */
1866static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
1867 .master = &omap2430_l4_core_hwmod,
1868 .slave = &omap2430_mcbsp5_hwmod,
1869 .clk = "mcbsp5_ick",
1870 .addr = omap2430_mcbsp5_addrs,
37801b3d
C
1871 .user = OCP_USER_MPU | OCP_USER_SDMA,
1872};
1873
1874/* mcbsp5 slave ports */
1875static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
1876 &omap2430_l4_core__mcbsp5,
1877};
1878
1879static struct omap_hwmod omap2430_mcbsp5_hwmod = {
1880 .name = "mcbsp5",
1881 .class = &omap2430_mcbsp_hwmod_class,
1882 .mpu_irqs = omap2430_mcbsp5_irqs,
37801b3d 1883 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
37801b3d
C
1884 .main_clk = "mcbsp5_fck",
1885 .prcm = {
1886 .omap2 = {
1887 .prcm_reg_id = 1,
1888 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
1889 .module_offs = CORE_MOD,
1890 .idlest_reg_id = 2,
1891 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
1892 },
1893 },
1894 .slaves = omap2430_mcbsp5_slaves,
1895 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
1896 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1897};
04aa67de 1898
bce06f37 1899/* MMC/SD/SDIO common */
04aa67de 1900
bce06f37
PW
1901static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
1902 .rev_offs = 0x1fc,
1903 .sysc_offs = 0x10,
1904 .syss_offs = 0x14,
1905 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1906 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1907 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1908 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1909 .sysc_fields = &omap_hwmod_sysc_type1,
1910};
1911
1912static struct omap_hwmod_class omap2430_mmc_class = {
1913 .name = "mmc",
1914 .sysc = &omap2430_mmc_sysc,
1915};
1916
1917/* MMC/SD/SDIO1 */
1918
1919static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
1920 { .irq = 83 },
212738a4 1921 { .irq = -1 }
bce06f37
PW
1922};
1923
1924static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
1925 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
1926 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
bc614958 1927 { .dma_req = -1 }
bce06f37
PW
1928};
1929
1930static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
1931 { .role = "dbck", .clk = "mmchsdb1_fck" },
1932};
1933
1934static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
1935 &omap2430_l4_core__mmc1,
1936};
1937
6ab8946f
KK
1938static struct omap_mmc_dev_attr mmc1_dev_attr = {
1939 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1940};
1941
bce06f37
PW
1942static struct omap_hwmod omap2430_mmc1_hwmod = {
1943 .name = "mmc1",
1944 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1945 .mpu_irqs = omap2430_mmc1_mpu_irqs,
bce06f37 1946 .sdma_reqs = omap2430_mmc1_sdma_reqs,
bce06f37
PW
1947 .opt_clks = omap2430_mmc1_opt_clks,
1948 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
1949 .main_clk = "mmchs1_fck",
1950 .prcm = {
1951 .omap2 = {
1952 .module_offs = CORE_MOD,
1953 .prcm_reg_id = 2,
1954 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
1955 .idlest_reg_id = 2,
1956 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
1957 },
1958 },
6ab8946f 1959 .dev_attr = &mmc1_dev_attr,
bce06f37
PW
1960 .slaves = omap2430_mmc1_slaves,
1961 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
1962 .class = &omap2430_mmc_class,
1963 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1964};
1965
1966/* MMC/SD/SDIO2 */
1967
1968static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
1969 { .irq = 86 },
212738a4 1970 { .irq = -1 }
bce06f37
PW
1971};
1972
1973static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
1974 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
1975 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
bc614958 1976 { .dma_req = -1 }
bce06f37
PW
1977};
1978
1979static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
1980 { .role = "dbck", .clk = "mmchsdb2_fck" },
1981};
1982
1983static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
1984 &omap2430_l4_core__mmc2,
1985};
04aa67de 1986
bce06f37
PW
1987static struct omap_hwmod omap2430_mmc2_hwmod = {
1988 .name = "mmc2",
1989 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1990 .mpu_irqs = omap2430_mmc2_mpu_irqs,
bce06f37 1991 .sdma_reqs = omap2430_mmc2_sdma_reqs,
bce06f37
PW
1992 .opt_clks = omap2430_mmc2_opt_clks,
1993 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
1994 .main_clk = "mmchs2_fck",
1995 .prcm = {
1996 .omap2 = {
1997 .module_offs = CORE_MOD,
1998 .prcm_reg_id = 2,
1999 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
2000 .idlest_reg_id = 2,
2001 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
2002 },
2003 },
2004 .slaves = omap2430_mmc2_slaves,
2005 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
2006 .class = &omap2430_mmc_class,
2007 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2008};
04aa67de 2009
02bfc030 2010static __initdata struct omap_hwmod *omap2430_hwmods[] = {
4a7cf90a 2011 &omap2430_l3_main_hwmod,
02bfc030
PW
2012 &omap2430_l4_core_hwmod,
2013 &omap2430_l4_wkup_hwmod,
2014 &omap2430_mpu_hwmod,
08072acf 2015 &omap2430_iva_hwmod,
b6b58229
TG
2016
2017 &omap2430_timer1_hwmod,
2018 &omap2430_timer2_hwmod,
2019 &omap2430_timer3_hwmod,
2020 &omap2430_timer4_hwmod,
2021 &omap2430_timer5_hwmod,
2022 &omap2430_timer6_hwmod,
2023 &omap2430_timer7_hwmod,
2024 &omap2430_timer8_hwmod,
2025 &omap2430_timer9_hwmod,
2026 &omap2430_timer10_hwmod,
2027 &omap2430_timer11_hwmod,
2028 &omap2430_timer12_hwmod,
2029
165e2161 2030 &omap2430_wd_timer2_hwmod,
046465b7
KH
2031 &omap2430_uart1_hwmod,
2032 &omap2430_uart2_hwmod,
2033 &omap2430_uart3_hwmod,
de56dbb6
SG
2034 /* dss class */
2035 &omap2430_dss_core_hwmod,
2036 &omap2430_dss_dispc_hwmod,
2037 &omap2430_dss_rfbi_hwmod,
2038 &omap2430_dss_venc_hwmod,
2039 /* i2c class */
2004290f
PW
2040 &omap2430_i2c1_hwmod,
2041 &omap2430_i2c2_hwmod,
bce06f37
PW
2042 &omap2430_mmc1_hwmod,
2043 &omap2430_mmc2_hwmod,
aeac0e44
VC
2044
2045 /* gpio class */
2046 &omap2430_gpio1_hwmod,
2047 &omap2430_gpio2_hwmod,
2048 &omap2430_gpio3_hwmod,
2049 &omap2430_gpio4_hwmod,
2050 &omap2430_gpio5_hwmod,
82cbd1ae
MK
2051
2052 /* dma_system class*/
2053 &omap2430_dma_system_hwmod,
7f904c78 2054
37801b3d
C
2055 /* mcbsp class */
2056 &omap2430_mcbsp1_hwmod,
2057 &omap2430_mcbsp2_hwmod,
2058 &omap2430_mcbsp3_hwmod,
2059 &omap2430_mcbsp4_hwmod,
2060 &omap2430_mcbsp5_hwmod,
2061
fca1ab55
ORL
2062 /* mailbox class */
2063 &omap2430_mailbox_hwmod,
2064
7f904c78
C
2065 /* mcspi class */
2066 &omap2430_mcspi1_hwmod,
2067 &omap2430_mcspi2_hwmod,
2068 &omap2430_mcspi3_hwmod,
04aa67de 2069
44d02acf
HH
2070 /* usbotg class*/
2071 &omap2430_usbhsotg_hwmod,
04aa67de 2072
02bfc030
PW
2073 NULL,
2074};
2075
7359154e
PW
2076int __init omap2430_hwmod_init(void)
2077{
550c8092 2078 return omap_hwmod_register(omap2430_hwmods);
7359154e 2079}
This page took 0.229047 seconds and 5 git commands to generate.