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