OMAP4: hwmod data: Change DSS main_clk scheme
[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",
0d619a89 1095 .mpu_irqs = omap2_i2c1_mpu_irqs,
d826ebfa 1096 .sdma_reqs = omap2_i2c1_sdma_reqs,
2004290f
PW
1097 .main_clk = "i2chs1_fck",
1098 .prcm = {
1099 .omap2 = {
1100 /*
1101 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1102 * I2CHS IP's do not follow the usual pattern.
1103 * prcm_reg_id alone cannot be used to program
1104 * the iclk and fclk. Needs to be handled using
25985edc 1105 * additional flags when clk handling is moved
2004290f
PW
1106 * to hwmod framework.
1107 */
1108 .module_offs = CORE_MOD,
1109 .prcm_reg_id = 1,
1110 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1111 .idlest_reg_id = 1,
1112 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1113 },
1114 },
1115 .slaves = omap2430_i2c1_slaves,
1116 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1117 .class = &i2c_class,
50ebb777 1118 .dev_attr = &i2c_dev_attr,
2004290f
PW
1119 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1120};
1121
1122/* I2C2 */
1123
2004290f
PW
1124static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1125 &omap2430_l4_core__i2c2,
1126};
1127
1128static struct omap_hwmod omap2430_i2c2_hwmod = {
1129 .name = "i2c2",
0d619a89 1130 .mpu_irqs = omap2_i2c2_mpu_irqs,
d826ebfa 1131 .sdma_reqs = omap2_i2c2_sdma_reqs,
2004290f
PW
1132 .main_clk = "i2chs2_fck",
1133 .prcm = {
1134 .omap2 = {
1135 .module_offs = CORE_MOD,
1136 .prcm_reg_id = 1,
1137 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1138 .idlest_reg_id = 1,
1139 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1140 },
1141 },
1142 .slaves = omap2430_i2c2_slaves,
1143 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1144 .class = &i2c_class,
50ebb777 1145 .dev_attr = &i2c_dev_attr,
2004290f
PW
1146 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1147};
1148
aeac0e44
VC
1149/* l4_wkup -> gpio1 */
1150static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1151 {
1152 .pa_start = 0x4900C000,
1153 .pa_end = 0x4900C1ff,
1154 .flags = ADDR_TYPE_RT
1155 },
78183f3f 1156 { }
aeac0e44
VC
1157};
1158
1159static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1160 .master = &omap2430_l4_wkup_hwmod,
1161 .slave = &omap2430_gpio1_hwmod,
1162 .clk = "gpios_ick",
1163 .addr = omap2430_gpio1_addr_space,
aeac0e44
VC
1164 .user = OCP_USER_MPU | OCP_USER_SDMA,
1165};
1166
1167/* l4_wkup -> gpio2 */
1168static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1169 {
1170 .pa_start = 0x4900E000,
1171 .pa_end = 0x4900E1ff,
1172 .flags = ADDR_TYPE_RT
1173 },
78183f3f 1174 { }
aeac0e44
VC
1175};
1176
1177static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1178 .master = &omap2430_l4_wkup_hwmod,
1179 .slave = &omap2430_gpio2_hwmod,
1180 .clk = "gpios_ick",
1181 .addr = omap2430_gpio2_addr_space,
aeac0e44
VC
1182 .user = OCP_USER_MPU | OCP_USER_SDMA,
1183};
1184
1185/* l4_wkup -> gpio3 */
1186static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1187 {
1188 .pa_start = 0x49010000,
1189 .pa_end = 0x490101ff,
1190 .flags = ADDR_TYPE_RT
1191 },
78183f3f 1192 { }
aeac0e44
VC
1193};
1194
1195static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1196 .master = &omap2430_l4_wkup_hwmod,
1197 .slave = &omap2430_gpio3_hwmod,
1198 .clk = "gpios_ick",
1199 .addr = omap2430_gpio3_addr_space,
aeac0e44
VC
1200 .user = OCP_USER_MPU | OCP_USER_SDMA,
1201};
1202
1203/* l4_wkup -> gpio4 */
1204static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1205 {
1206 .pa_start = 0x49012000,
1207 .pa_end = 0x490121ff,
1208 .flags = ADDR_TYPE_RT
1209 },
78183f3f 1210 { }
aeac0e44
VC
1211};
1212
1213static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1214 .master = &omap2430_l4_wkup_hwmod,
1215 .slave = &omap2430_gpio4_hwmod,
1216 .clk = "gpios_ick",
1217 .addr = omap2430_gpio4_addr_space,
aeac0e44
VC
1218 .user = OCP_USER_MPU | OCP_USER_SDMA,
1219};
1220
1221/* l4_core -> gpio5 */
1222static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1223 {
1224 .pa_start = 0x480B6000,
1225 .pa_end = 0x480B61ff,
1226 .flags = ADDR_TYPE_RT
1227 },
78183f3f 1228 { }
aeac0e44
VC
1229};
1230
1231static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1232 .master = &omap2430_l4_core_hwmod,
1233 .slave = &omap2430_gpio5_hwmod,
1234 .clk = "gpio5_ick",
1235 .addr = omap2430_gpio5_addr_space,
aeac0e44
VC
1236 .user = OCP_USER_MPU | OCP_USER_SDMA,
1237};
1238
1239/* gpio dev_attr */
1240static struct omap_gpio_dev_attr gpio_dev_attr = {
1241 .bank_width = 32,
1242 .dbck_flag = false,
1243};
1244
aeac0e44 1245/* gpio1 */
aeac0e44
VC
1246static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1247 &omap2430_l4_wkup__gpio1,
1248};
1249
1250static struct omap_hwmod omap2430_gpio1_hwmod = {
1251 .name = "gpio1",
f95440ca 1252 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
0d619a89 1253 .mpu_irqs = omap2_gpio1_irqs,
aeac0e44
VC
1254 .main_clk = "gpios_fck",
1255 .prcm = {
1256 .omap2 = {
1257 .prcm_reg_id = 1,
1258 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1259 .module_offs = WKUP_MOD,
1260 .idlest_reg_id = 1,
1261 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1262 },
1263 },
1264 .slaves = omap2430_gpio1_slaves,
1265 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
273b9465 1266 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1267 .dev_attr = &gpio_dev_attr,
1268 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1269};
1270
1271/* gpio2 */
aeac0e44
VC
1272static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1273 &omap2430_l4_wkup__gpio2,
1274};
1275
1276static struct omap_hwmod omap2430_gpio2_hwmod = {
1277 .name = "gpio2",
f95440ca 1278 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
0d619a89 1279 .mpu_irqs = omap2_gpio2_irqs,
aeac0e44
VC
1280 .main_clk = "gpios_fck",
1281 .prcm = {
1282 .omap2 = {
1283 .prcm_reg_id = 1,
1284 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1285 .module_offs = WKUP_MOD,
1286 .idlest_reg_id = 1,
1287 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1288 },
1289 },
1290 .slaves = omap2430_gpio2_slaves,
1291 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
273b9465 1292 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1293 .dev_attr = &gpio_dev_attr,
1294 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1295};
1296
1297/* gpio3 */
aeac0e44
VC
1298static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1299 &omap2430_l4_wkup__gpio3,
1300};
1301
1302static struct omap_hwmod omap2430_gpio3_hwmod = {
1303 .name = "gpio3",
f95440ca 1304 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
0d619a89 1305 .mpu_irqs = omap2_gpio3_irqs,
aeac0e44
VC
1306 .main_clk = "gpios_fck",
1307 .prcm = {
1308 .omap2 = {
1309 .prcm_reg_id = 1,
1310 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1311 .module_offs = WKUP_MOD,
1312 .idlest_reg_id = 1,
1313 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1314 },
1315 },
1316 .slaves = omap2430_gpio3_slaves,
1317 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
273b9465 1318 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1319 .dev_attr = &gpio_dev_attr,
1320 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1321};
1322
1323/* gpio4 */
aeac0e44
VC
1324static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1325 &omap2430_l4_wkup__gpio4,
1326};
1327
1328static struct omap_hwmod omap2430_gpio4_hwmod = {
1329 .name = "gpio4",
f95440ca 1330 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
0d619a89 1331 .mpu_irqs = omap2_gpio4_irqs,
aeac0e44
VC
1332 .main_clk = "gpios_fck",
1333 .prcm = {
1334 .omap2 = {
1335 .prcm_reg_id = 1,
1336 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1337 .module_offs = WKUP_MOD,
1338 .idlest_reg_id = 1,
1339 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1340 },
1341 },
1342 .slaves = omap2430_gpio4_slaves,
1343 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
273b9465 1344 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1345 .dev_attr = &gpio_dev_attr,
1346 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1347};
1348
1349/* gpio5 */
1350static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1351 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
212738a4 1352 { .irq = -1 }
aeac0e44
VC
1353};
1354
1355static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1356 &omap2430_l4_core__gpio5,
1357};
1358
1359static struct omap_hwmod omap2430_gpio5_hwmod = {
1360 .name = "gpio5",
f95440ca 1361 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
aeac0e44 1362 .mpu_irqs = omap243x_gpio5_irqs,
aeac0e44
VC
1363 .main_clk = "gpio5_fck",
1364 .prcm = {
1365 .omap2 = {
1366 .prcm_reg_id = 2,
1367 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1368 .module_offs = CORE_MOD,
1369 .idlest_reg_id = 2,
1370 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1371 },
1372 },
1373 .slaves = omap2430_gpio5_slaves,
1374 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
273b9465 1375 .class = &omap2xxx_gpio_hwmod_class,
aeac0e44
VC
1376 .dev_attr = &gpio_dev_attr,
1377 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1378};
1379
82cbd1ae
MK
1380/* dma attributes */
1381static struct omap_dma_dev_attr dma_dev_attr = {
1382 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1383 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1384 .lch_count = 32,
1385};
1386
82cbd1ae
MK
1387/* dma_system -> L3 */
1388static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1389 .master = &omap2430_dma_system_hwmod,
1390 .slave = &omap2430_l3_main_hwmod,
1391 .clk = "core_l3_ck",
1392 .user = OCP_USER_MPU | OCP_USER_SDMA,
1393};
1394
1395/* dma_system master ports */
1396static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1397 &omap2430_dma_system__l3,
1398};
1399
1400/* l4_core -> dma_system */
1401static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1402 .master = &omap2430_l4_core_hwmod,
1403 .slave = &omap2430_dma_system_hwmod,
1404 .clk = "sdma_ick",
ded11383 1405 .addr = omap2_dma_system_addrs,
82cbd1ae
MK
1406 .user = OCP_USER_MPU | OCP_USER_SDMA,
1407};
1408
1409/* dma_system slave ports */
1410static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1411 &omap2430_l4_core__dma_system,
1412};
1413
1414static struct omap_hwmod omap2430_dma_system_hwmod = {
1415 .name = "dma",
273b9465 1416 .class = &omap2xxx_dma_hwmod_class,
0d619a89 1417 .mpu_irqs = omap2_dma_system_irqs,
82cbd1ae
MK
1418 .main_clk = "core_l3_ck",
1419 .slaves = omap2430_dma_system_slaves,
1420 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1421 .masters = omap2430_dma_system_masters,
1422 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1423 .dev_attr = &dma_dev_attr,
1424 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1425 .flags = HWMOD_NO_IDLEST,
1426};
1427
fca1ab55
ORL
1428/* mailbox */
1429static struct omap_hwmod omap2430_mailbox_hwmod;
1430static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1431 { .irq = 26 },
212738a4 1432 { .irq = -1 }
fca1ab55
ORL
1433};
1434
fca1ab55
ORL
1435/* l4_core -> mailbox */
1436static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
1437 .master = &omap2430_l4_core_hwmod,
1438 .slave = &omap2430_mailbox_hwmod,
ded11383 1439 .addr = omap2_mailbox_addrs,
fca1ab55
ORL
1440 .user = OCP_USER_MPU | OCP_USER_SDMA,
1441};
1442
1443/* mailbox slave ports */
1444static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
1445 &omap2430_l4_core__mailbox,
1446};
1447
1448static struct omap_hwmod omap2430_mailbox_hwmod = {
1449 .name = "mailbox",
273b9465 1450 .class = &omap2xxx_mailbox_hwmod_class,
fca1ab55 1451 .mpu_irqs = omap2430_mailbox_irqs,
fca1ab55
ORL
1452 .main_clk = "mailboxes_ick",
1453 .prcm = {
1454 .omap2 = {
1455 .prcm_reg_id = 1,
1456 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
1457 .module_offs = CORE_MOD,
1458 .idlest_reg_id = 1,
1459 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
1460 },
1461 },
1462 .slaves = omap2430_mailbox_slaves,
1463 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
1464 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1465};
1466
7f904c78 1467/* mcspi1 */
7f904c78
C
1468static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
1469 &omap2430_l4_core__mcspi1,
1470};
1471
1472static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1473 .num_chipselect = 4,
1474};
1475
1476static struct omap_hwmod omap2430_mcspi1_hwmod = {
1477 .name = "mcspi1_hwmod",
0d619a89 1478 .mpu_irqs = omap2_mcspi1_mpu_irqs,
d826ebfa 1479 .sdma_reqs = omap2_mcspi1_sdma_reqs,
7f904c78
C
1480 .main_clk = "mcspi1_fck",
1481 .prcm = {
1482 .omap2 = {
1483 .module_offs = CORE_MOD,
1484 .prcm_reg_id = 1,
1485 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
1486 .idlest_reg_id = 1,
1487 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
1488 },
1489 },
1490 .slaves = omap2430_mcspi1_slaves,
1491 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
273b9465
PW
1492 .class = &omap2xxx_mcspi_class,
1493 .dev_attr = &omap_mcspi1_dev_attr,
7f904c78
C
1494 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1495};
1496
1497/* mcspi2 */
7f904c78
C
1498static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
1499 &omap2430_l4_core__mcspi2,
1500};
1501
1502static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1503 .num_chipselect = 2,
1504};
1505
1506static struct omap_hwmod omap2430_mcspi2_hwmod = {
1507 .name = "mcspi2_hwmod",
0d619a89 1508 .mpu_irqs = omap2_mcspi2_mpu_irqs,
d826ebfa 1509 .sdma_reqs = omap2_mcspi2_sdma_reqs,
7f904c78
C
1510 .main_clk = "mcspi2_fck",
1511 .prcm = {
1512 .omap2 = {
1513 .module_offs = CORE_MOD,
1514 .prcm_reg_id = 1,
1515 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
1516 .idlest_reg_id = 1,
1517 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
1518 },
1519 },
1520 .slaves = omap2430_mcspi2_slaves,
1521 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
273b9465
PW
1522 .class = &omap2xxx_mcspi_class,
1523 .dev_attr = &omap_mcspi2_dev_attr,
7f904c78
C
1524 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1525};
1526
1527/* mcspi3 */
1528static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
1529 { .irq = 91 },
212738a4 1530 { .irq = -1 }
7f904c78
C
1531};
1532
1533static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
1534 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
1535 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
1536 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
1537 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
bc614958 1538 { .dma_req = -1 }
7f904c78
C
1539};
1540
1541static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
1542 &omap2430_l4_core__mcspi3,
1543};
1544
1545static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1546 .num_chipselect = 2,
1547};
1548
1549static struct omap_hwmod omap2430_mcspi3_hwmod = {
1550 .name = "mcspi3_hwmod",
1551 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
7f904c78 1552 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
7f904c78
C
1553 .main_clk = "mcspi3_fck",
1554 .prcm = {
1555 .omap2 = {
1556 .module_offs = CORE_MOD,
1557 .prcm_reg_id = 2,
1558 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
1559 .idlest_reg_id = 2,
1560 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
1561 },
1562 },
1563 .slaves = omap2430_mcspi3_slaves,
1564 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
273b9465
PW
1565 .class = &omap2xxx_mcspi_class,
1566 .dev_attr = &omap_mcspi3_dev_attr,
7f904c78
C
1567 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1568};
1569
44d02acf
HH
1570/*
1571 * usbhsotg
1572 */
1573static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
1574 .rev_offs = 0x0400,
1575 .sysc_offs = 0x0404,
1576 .syss_offs = 0x0408,
1577 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1578 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1579 SYSC_HAS_AUTOIDLE),
1580 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1581 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1582 .sysc_fields = &omap_hwmod_sysc_type1,
1583};
1584
1585static struct omap_hwmod_class usbotg_class = {
1586 .name = "usbotg",
1587 .sysc = &omap2430_usbhsotg_sysc,
1588};
1589
1590/* usb_otg_hs */
1591static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
1592
1593 { .name = "mc", .irq = 92 },
1594 { .name = "dma", .irq = 93 },
212738a4 1595 { .irq = -1 }
44d02acf
HH
1596};
1597
1598static struct omap_hwmod omap2430_usbhsotg_hwmod = {
1599 .name = "usb_otg_hs",
1600 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
44d02acf
HH
1601 .main_clk = "usbhs_ick",
1602 .prcm = {
1603 .omap2 = {
1604 .prcm_reg_id = 1,
1605 .module_bit = OMAP2430_EN_USBHS_MASK,
1606 .module_offs = CORE_MOD,
1607 .idlest_reg_id = 1,
1608 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
1609 },
1610 },
1611 .masters = omap2430_usbhsotg_masters,
1612 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
1613 .slaves = omap2430_usbhsotg_slaves,
1614 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
1615 .class = &usbotg_class,
1616 /*
1617 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1618 * broken when autoidle is enabled
1619 * workaround is to disable the autoidle bit at module level.
1620 */
1621 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
1622 | HWMOD_SWSUP_MSTANDBY,
1623 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1624};
1625
37801b3d
C
1626/*
1627 * 'mcbsp' class
1628 * multi channel buffered serial port controller
1629 */
1630
1631static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
1632 .rev_offs = 0x007C,
1633 .sysc_offs = 0x008C,
1634 .sysc_flags = (SYSC_HAS_SOFTRESET),
1635 .sysc_fields = &omap_hwmod_sysc_type1,
1636};
1637
1638static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
1639 .name = "mcbsp",
1640 .sysc = &omap2430_mcbsp_sysc,
1641 .rev = MCBSP_CONFIG_TYPE2,
1642};
04aa67de 1643
37801b3d
C
1644/* mcbsp1 */
1645static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
1646 { .name = "tx", .irq = 59 },
1647 { .name = "rx", .irq = 60 },
1648 { .name = "ovr", .irq = 61 },
1649 { .name = "common", .irq = 64 },
212738a4 1650 { .irq = -1 }
37801b3d
C
1651};
1652
37801b3d
C
1653/* l4_core -> mcbsp1 */
1654static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
1655 .master = &omap2430_l4_core_hwmod,
1656 .slave = &omap2430_mcbsp1_hwmod,
1657 .clk = "mcbsp1_ick",
ded11383 1658 .addr = omap2_mcbsp1_addrs,
37801b3d
C
1659 .user = OCP_USER_MPU | OCP_USER_SDMA,
1660};
1661
1662/* mcbsp1 slave ports */
1663static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
1664 &omap2430_l4_core__mcbsp1,
1665};
1666
1667static struct omap_hwmod omap2430_mcbsp1_hwmod = {
1668 .name = "mcbsp1",
1669 .class = &omap2430_mcbsp_hwmod_class,
1670 .mpu_irqs = omap2430_mcbsp1_irqs,
d826ebfa 1671 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
37801b3d
C
1672 .main_clk = "mcbsp1_fck",
1673 .prcm = {
1674 .omap2 = {
1675 .prcm_reg_id = 1,
1676 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
1677 .module_offs = CORE_MOD,
1678 .idlest_reg_id = 1,
1679 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
1680 },
1681 },
1682 .slaves = omap2430_mcbsp1_slaves,
1683 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
1684 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1685};
1686
1687/* mcbsp2 */
1688static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
1689 { .name = "tx", .irq = 62 },
1690 { .name = "rx", .irq = 63 },
1691 { .name = "common", .irq = 16 },
212738a4 1692 { .irq = -1 }
37801b3d
C
1693};
1694
37801b3d
C
1695/* l4_core -> mcbsp2 */
1696static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
1697 .master = &omap2430_l4_core_hwmod,
1698 .slave = &omap2430_mcbsp2_hwmod,
1699 .clk = "mcbsp2_ick",
ded11383 1700 .addr = omap2xxx_mcbsp2_addrs,
37801b3d
C
1701 .user = OCP_USER_MPU | OCP_USER_SDMA,
1702};
1703
1704/* mcbsp2 slave ports */
1705static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
1706 &omap2430_l4_core__mcbsp2,
1707};
1708
1709static struct omap_hwmod omap2430_mcbsp2_hwmod = {
1710 .name = "mcbsp2",
1711 .class = &omap2430_mcbsp_hwmod_class,
1712 .mpu_irqs = omap2430_mcbsp2_irqs,
d826ebfa 1713 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
37801b3d
C
1714 .main_clk = "mcbsp2_fck",
1715 .prcm = {
1716 .omap2 = {
1717 .prcm_reg_id = 1,
1718 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
1719 .module_offs = CORE_MOD,
1720 .idlest_reg_id = 1,
1721 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
1722 },
1723 },
1724 .slaves = omap2430_mcbsp2_slaves,
1725 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
1726 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1727};
1728
1729/* mcbsp3 */
1730static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
1731 { .name = "tx", .irq = 89 },
1732 { .name = "rx", .irq = 90 },
1733 { .name = "common", .irq = 17 },
212738a4 1734 { .irq = -1 }
37801b3d
C
1735};
1736
37801b3d
C
1737static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
1738 {
1739 .name = "mpu",
1740 .pa_start = 0x4808C000,
1741 .pa_end = 0x4808C0ff,
1742 .flags = ADDR_TYPE_RT
1743 },
78183f3f 1744 { }
37801b3d 1745};
04aa67de 1746
37801b3d
C
1747/* l4_core -> mcbsp3 */
1748static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
1749 .master = &omap2430_l4_core_hwmod,
1750 .slave = &omap2430_mcbsp3_hwmod,
1751 .clk = "mcbsp3_ick",
1752 .addr = omap2430_mcbsp3_addrs,
37801b3d
C
1753 .user = OCP_USER_MPU | OCP_USER_SDMA,
1754};
1755
1756/* mcbsp3 slave ports */
1757static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
1758 &omap2430_l4_core__mcbsp3,
1759};
1760
1761static struct omap_hwmod omap2430_mcbsp3_hwmod = {
1762 .name = "mcbsp3",
1763 .class = &omap2430_mcbsp_hwmod_class,
1764 .mpu_irqs = omap2430_mcbsp3_irqs,
d826ebfa 1765 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
37801b3d
C
1766 .main_clk = "mcbsp3_fck",
1767 .prcm = {
1768 .omap2 = {
1769 .prcm_reg_id = 1,
1770 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
1771 .module_offs = CORE_MOD,
1772 .idlest_reg_id = 2,
1773 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
1774 },
1775 },
1776 .slaves = omap2430_mcbsp3_slaves,
1777 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
1778 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1779};
1780
1781/* mcbsp4 */
1782static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
1783 { .name = "tx", .irq = 54 },
1784 { .name = "rx", .irq = 55 },
1785 { .name = "common", .irq = 18 },
212738a4 1786 { .irq = -1 }
37801b3d
C
1787};
1788
1789static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
1790 { .name = "rx", .dma_req = 20 },
1791 { .name = "tx", .dma_req = 19 },
bc614958 1792 { .dma_req = -1 }
37801b3d
C
1793};
1794
1795static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
1796 {
1797 .name = "mpu",
1798 .pa_start = 0x4808E000,
1799 .pa_end = 0x4808E0ff,
1800 .flags = ADDR_TYPE_RT
1801 },
78183f3f 1802 { }
37801b3d
C
1803};
1804
1805/* l4_core -> mcbsp4 */
1806static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
1807 .master = &omap2430_l4_core_hwmod,
1808 .slave = &omap2430_mcbsp4_hwmod,
1809 .clk = "mcbsp4_ick",
1810 .addr = omap2430_mcbsp4_addrs,
37801b3d
C
1811 .user = OCP_USER_MPU | OCP_USER_SDMA,
1812};
1813
1814/* mcbsp4 slave ports */
1815static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
1816 &omap2430_l4_core__mcbsp4,
1817};
1818
1819static struct omap_hwmod omap2430_mcbsp4_hwmod = {
1820 .name = "mcbsp4",
1821 .class = &omap2430_mcbsp_hwmod_class,
1822 .mpu_irqs = omap2430_mcbsp4_irqs,
37801b3d 1823 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
37801b3d
C
1824 .main_clk = "mcbsp4_fck",
1825 .prcm = {
1826 .omap2 = {
1827 .prcm_reg_id = 1,
1828 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
1829 .module_offs = CORE_MOD,
1830 .idlest_reg_id = 2,
1831 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
1832 },
1833 },
1834 .slaves = omap2430_mcbsp4_slaves,
1835 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
1836 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1837};
1838
1839/* mcbsp5 */
1840static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
1841 { .name = "tx", .irq = 81 },
1842 { .name = "rx", .irq = 82 },
1843 { .name = "common", .irq = 19 },
212738a4 1844 { .irq = -1 }
37801b3d
C
1845};
1846
1847static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
1848 { .name = "rx", .dma_req = 22 },
1849 { .name = "tx", .dma_req = 21 },
bc614958 1850 { .dma_req = -1 }
37801b3d
C
1851};
1852
1853static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
1854 {
1855 .name = "mpu",
1856 .pa_start = 0x48096000,
1857 .pa_end = 0x480960ff,
1858 .flags = ADDR_TYPE_RT
1859 },
78183f3f 1860 { }
37801b3d
C
1861};
1862
1863/* l4_core -> mcbsp5 */
1864static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
1865 .master = &omap2430_l4_core_hwmod,
1866 .slave = &omap2430_mcbsp5_hwmod,
1867 .clk = "mcbsp5_ick",
1868 .addr = omap2430_mcbsp5_addrs,
37801b3d
C
1869 .user = OCP_USER_MPU | OCP_USER_SDMA,
1870};
1871
1872/* mcbsp5 slave ports */
1873static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
1874 &omap2430_l4_core__mcbsp5,
1875};
1876
1877static struct omap_hwmod omap2430_mcbsp5_hwmod = {
1878 .name = "mcbsp5",
1879 .class = &omap2430_mcbsp_hwmod_class,
1880 .mpu_irqs = omap2430_mcbsp5_irqs,
37801b3d 1881 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
37801b3d
C
1882 .main_clk = "mcbsp5_fck",
1883 .prcm = {
1884 .omap2 = {
1885 .prcm_reg_id = 1,
1886 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
1887 .module_offs = CORE_MOD,
1888 .idlest_reg_id = 2,
1889 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
1890 },
1891 },
1892 .slaves = omap2430_mcbsp5_slaves,
1893 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
1894 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1895};
04aa67de 1896
bce06f37 1897/* MMC/SD/SDIO common */
04aa67de 1898
bce06f37
PW
1899static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
1900 .rev_offs = 0x1fc,
1901 .sysc_offs = 0x10,
1902 .syss_offs = 0x14,
1903 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1904 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1905 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1906 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1907 .sysc_fields = &omap_hwmod_sysc_type1,
1908};
1909
1910static struct omap_hwmod_class omap2430_mmc_class = {
1911 .name = "mmc",
1912 .sysc = &omap2430_mmc_sysc,
1913};
1914
1915/* MMC/SD/SDIO1 */
1916
1917static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
1918 { .irq = 83 },
212738a4 1919 { .irq = -1 }
bce06f37
PW
1920};
1921
1922static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
1923 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
1924 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
bc614958 1925 { .dma_req = -1 }
bce06f37
PW
1926};
1927
1928static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
1929 { .role = "dbck", .clk = "mmchsdb1_fck" },
1930};
1931
1932static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
1933 &omap2430_l4_core__mmc1,
1934};
1935
6ab8946f
KK
1936static struct omap_mmc_dev_attr mmc1_dev_attr = {
1937 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1938};
1939
bce06f37
PW
1940static struct omap_hwmod omap2430_mmc1_hwmod = {
1941 .name = "mmc1",
1942 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1943 .mpu_irqs = omap2430_mmc1_mpu_irqs,
bce06f37 1944 .sdma_reqs = omap2430_mmc1_sdma_reqs,
bce06f37
PW
1945 .opt_clks = omap2430_mmc1_opt_clks,
1946 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
1947 .main_clk = "mmchs1_fck",
1948 .prcm = {
1949 .omap2 = {
1950 .module_offs = CORE_MOD,
1951 .prcm_reg_id = 2,
1952 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
1953 .idlest_reg_id = 2,
1954 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
1955 },
1956 },
6ab8946f 1957 .dev_attr = &mmc1_dev_attr,
bce06f37
PW
1958 .slaves = omap2430_mmc1_slaves,
1959 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
1960 .class = &omap2430_mmc_class,
1961 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1962};
1963
1964/* MMC/SD/SDIO2 */
1965
1966static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
1967 { .irq = 86 },
212738a4 1968 { .irq = -1 }
bce06f37
PW
1969};
1970
1971static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
1972 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
1973 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
bc614958 1974 { .dma_req = -1 }
bce06f37
PW
1975};
1976
1977static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
1978 { .role = "dbck", .clk = "mmchsdb2_fck" },
1979};
1980
1981static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
1982 &omap2430_l4_core__mmc2,
1983};
04aa67de 1984
bce06f37
PW
1985static struct omap_hwmod omap2430_mmc2_hwmod = {
1986 .name = "mmc2",
1987 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
1988 .mpu_irqs = omap2430_mmc2_mpu_irqs,
bce06f37 1989 .sdma_reqs = omap2430_mmc2_sdma_reqs,
bce06f37
PW
1990 .opt_clks = omap2430_mmc2_opt_clks,
1991 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
1992 .main_clk = "mmchs2_fck",
1993 .prcm = {
1994 .omap2 = {
1995 .module_offs = CORE_MOD,
1996 .prcm_reg_id = 2,
1997 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
1998 .idlest_reg_id = 2,
1999 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
2000 },
2001 },
2002 .slaves = omap2430_mmc2_slaves,
2003 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
2004 .class = &omap2430_mmc_class,
2005 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2006};
04aa67de 2007
02bfc030 2008static __initdata struct omap_hwmod *omap2430_hwmods[] = {
4a7cf90a 2009 &omap2430_l3_main_hwmod,
02bfc030
PW
2010 &omap2430_l4_core_hwmod,
2011 &omap2430_l4_wkup_hwmod,
2012 &omap2430_mpu_hwmod,
08072acf 2013 &omap2430_iva_hwmod,
b6b58229
TG
2014
2015 &omap2430_timer1_hwmod,
2016 &omap2430_timer2_hwmod,
2017 &omap2430_timer3_hwmod,
2018 &omap2430_timer4_hwmod,
2019 &omap2430_timer5_hwmod,
2020 &omap2430_timer6_hwmod,
2021 &omap2430_timer7_hwmod,
2022 &omap2430_timer8_hwmod,
2023 &omap2430_timer9_hwmod,
2024 &omap2430_timer10_hwmod,
2025 &omap2430_timer11_hwmod,
2026 &omap2430_timer12_hwmod,
2027
165e2161 2028 &omap2430_wd_timer2_hwmod,
046465b7
KH
2029 &omap2430_uart1_hwmod,
2030 &omap2430_uart2_hwmod,
2031 &omap2430_uart3_hwmod,
de56dbb6
SG
2032 /* dss class */
2033 &omap2430_dss_core_hwmod,
2034 &omap2430_dss_dispc_hwmod,
2035 &omap2430_dss_rfbi_hwmod,
2036 &omap2430_dss_venc_hwmod,
2037 /* i2c class */
2004290f
PW
2038 &omap2430_i2c1_hwmod,
2039 &omap2430_i2c2_hwmod,
bce06f37
PW
2040 &omap2430_mmc1_hwmod,
2041 &omap2430_mmc2_hwmod,
aeac0e44
VC
2042
2043 /* gpio class */
2044 &omap2430_gpio1_hwmod,
2045 &omap2430_gpio2_hwmod,
2046 &omap2430_gpio3_hwmod,
2047 &omap2430_gpio4_hwmod,
2048 &omap2430_gpio5_hwmod,
82cbd1ae
MK
2049
2050 /* dma_system class*/
2051 &omap2430_dma_system_hwmod,
7f904c78 2052
37801b3d
C
2053 /* mcbsp class */
2054 &omap2430_mcbsp1_hwmod,
2055 &omap2430_mcbsp2_hwmod,
2056 &omap2430_mcbsp3_hwmod,
2057 &omap2430_mcbsp4_hwmod,
2058 &omap2430_mcbsp5_hwmod,
2059
fca1ab55
ORL
2060 /* mailbox class */
2061 &omap2430_mailbox_hwmod,
2062
7f904c78
C
2063 /* mcspi class */
2064 &omap2430_mcspi1_hwmod,
2065 &omap2430_mcspi2_hwmod,
2066 &omap2430_mcspi3_hwmod,
04aa67de 2067
44d02acf
HH
2068 /* usbotg class*/
2069 &omap2430_usbhsotg_hwmod,
04aa67de 2070
02bfc030
PW
2071 NULL,
2072};
2073
7359154e
PW
2074int __init omap2430_hwmod_init(void)
2075{
550c8092 2076 return omap_hwmod_register(omap2430_hwmods);
7359154e 2077}
This page took 0.226846 seconds and 5 git commands to generate.