blob: 639acd598c925de3af8191826a43eca3eaf529d0 [file] [log] [blame]
Paul Walmsley02bfc032009-09-03 20:14:05 +03001/*
Paul Walmsley73591542010-02-22 22:09:32 -07002 * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips
Paul Walmsley02bfc032009-09-03 20:14:05 +03003 *
Paul Walmsley78183f32011-07-09 19:14:05 -06004 * Copyright (C) 2009-2011 Nokia Corporation
Paul Walmsley02bfc032009-09-03 20:14:05 +03005 * 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?
Paul Walmsley73591542010-02-22 22:09:32 -070012 * XXX these should be marked initdata for multi-OMAP kernels
Paul Walmsley02bfc032009-09-03 20:14:05 +030013 */
Tony Lindgrence491cf2009-10-20 09:40:47 -070014#include <plat/omap_hwmod.h>
Paul Walmsley02bfc032009-09-03 20:14:05 +030015#include <mach/irqs.h>
Tony Lindgrence491cf2009-10-20 09:40:47 -070016#include <plat/cpu.h>
17#include <plat/dma.h>
Kevin Hilman046465b2010-09-27 20:19:30 +053018#include <plat/serial.h>
Paul Walmsley20042902010-09-30 02:40:12 +053019#include <plat/i2c.h>
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -080020#include <plat/gpio.h>
Charulatha V37801b32011-02-24 12:51:46 -080021#include <plat/mcbsp.h>
Charulatha V7f904c72011-02-17 09:53:10 -080022#include <plat/mcspi.h>
Thara Gopinathb6b58222011-02-23 00:14:05 -070023#include <plat/dmtimer.h>
Kishore Kadiyala6ab89462011-03-01 13:12:56 -080024#include <plat/mmc.h>
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +020025#include <plat/l3_2xxx.h>
Paul Walmsley02bfc032009-09-03 20:14:05 +030026
Paul Walmsley43b40992010-02-22 22:09:34 -070027#include "omap_hwmod_common_data.h"
28
Paul Walmsley02bfc032009-09-03 20:14:05 +030029#include "prm-regbits-24xx.h"
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +053030#include "cm-regbits-24xx.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070031#include "wd_timer.h"
Paul Walmsley02bfc032009-09-03 20:14:05 +030032
Paul Walmsley73591542010-02-22 22:09:32 -070033/*
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
Paul Walmsley02bfc032009-09-03 20:14:05 +030042static struct omap_hwmod omap2430_mpu_hwmod;
Paul Walmsley08072ac2010-07-26 16:34:33 -060043static struct omap_hwmod omap2430_iva_hwmod;
Kevin Hilman4a7cf902010-07-26 16:34:32 -060044static struct omap_hwmod omap2430_l3_main_hwmod;
Paul Walmsley02bfc032009-09-03 20:14:05 +030045static struct omap_hwmod omap2430_l4_core_hwmod;
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +020046static 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;
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +053050static struct omap_hwmod omap2430_wd_timer2_hwmod;
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -080051static 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;
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -080056static struct omap_hwmod omap2430_dma_system_hwmod;
Charulatha V37801b32011-02-24 12:51:46 -080057static 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;
Charulatha V7f904c72011-02-17 09:53:10 -080062static struct omap_hwmod omap2430_mcspi1_hwmod;
63static struct omap_hwmod omap2430_mcspi2_hwmod;
64static struct omap_hwmod omap2430_mcspi3_hwmod;
Paul Walmsleybce06f32011-03-01 13:12:55 -080065static struct omap_hwmod omap2430_mmc1_hwmod;
66static struct omap_hwmod omap2430_mmc2_hwmod;
Paul Walmsley02bfc032009-09-03 20:14:05 +030067
68/* L3 -> L4_CORE interface */
Kevin Hilman4a7cf902010-07-26 16:34:32 -060069static struct omap_hwmod_ocp_if omap2430_l3_main__l4_core = {
70 .master = &omap2430_l3_main_hwmod,
Paul Walmsley02bfc032009-09-03 20:14:05 +030071 .slave = &omap2430_l4_core_hwmod,
72 .user = OCP_USER_MPU | OCP_USER_SDMA,
73};
74
75/* MPU -> L3 interface */
Kevin Hilman4a7cf902010-07-26 16:34:32 -060076static struct omap_hwmod_ocp_if omap2430_mpu__l3_main = {
Paul Walmsley02bfc032009-09-03 20:14:05 +030077 .master = &omap2430_mpu_hwmod,
Kevin Hilman4a7cf902010-07-26 16:34:32 -060078 .slave = &omap2430_l3_main_hwmod,
Paul Walmsley02bfc032009-09-03 20:14:05 +030079 .user = OCP_USER_MPU,
80};
81
82/* Slave interfaces on the L3 interconnect */
Kevin Hilman4a7cf902010-07-26 16:34:32 -060083static struct omap_hwmod_ocp_if *omap2430_l3_main_slaves[] = {
84 &omap2430_mpu__l3_main,
Paul Walmsley02bfc032009-09-03 20:14:05 +030085};
86
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +020087/* 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
Paul Walmsley02bfc032009-09-03 20:14:05 +0300100/* Master interfaces on the L3 interconnect */
Kevin Hilman4a7cf902010-07-26 16:34:32 -0600101static struct omap_hwmod_ocp_if *omap2430_l3_main_masters[] = {
102 &omap2430_l3_main__l4_core,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300103};
104
105/* L3 */
Kevin Hilman4a7cf902010-07-26 16:34:32 -0600106static struct omap_hwmod omap2430_l3_main_hwmod = {
Benoit Coussonfa983472010-07-26 16:34:29 -0600107 .name = "l3_main",
Paul Walmsley43b40992010-02-22 22:09:34 -0700108 .class = &l3_hwmod_class,
Kevin Hilman4a7cf902010-07-26 16:34:32 -0600109 .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),
Kevin Hilman2eb18752010-07-26 16:34:28 -0600113 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
114 .flags = HWMOD_NO_IDLEST,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300115};
116
117static struct omap_hwmod omap2430_l4_wkup_hwmod;
Kevin Hilman046465b2010-09-27 20:19:30 +0530118static struct omap_hwmod omap2430_uart1_hwmod;
119static struct omap_hwmod omap2430_uart2_hwmod;
120static struct omap_hwmod omap2430_uart3_hwmod;
Paul Walmsley20042902010-09-30 02:40:12 +0530121static struct omap_hwmod omap2430_i2c1_hwmod;
122static struct omap_hwmod omap2430_i2c2_hwmod;
123
Hema HK44d02ac2011-02-17 12:07:17 +0530124static 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
Paul Walmsley20042902010-09-30 02:40:12 +0530134/* L4 CORE -> I2C1 interface */
Paul Walmsley20042902010-09-30 02:40:12 +0530135static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
136 .master = &omap2430_l4_core_hwmod,
137 .slave = &omap2430_i2c1_hwmod,
138 .clk = "i2c1_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600139 .addr = omap2_i2c1_addr_space,
Paul Walmsley20042902010-09-30 02:40:12 +0530140 .user = OCP_USER_MPU | OCP_USER_SDMA,
141};
142
143/* L4 CORE -> I2C2 interface */
Paul Walmsley20042902010-09-30 02:40:12 +0530144static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
145 .master = &omap2430_l4_core_hwmod,
146 .slave = &omap2430_i2c2_hwmod,
147 .clk = "i2c2_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600148 .addr = omap2_i2c2_addr_space,
Paul Walmsley20042902010-09-30 02:40:12 +0530149 .user = OCP_USER_MPU | OCP_USER_SDMA,
150};
Paul Walmsley02bfc032009-09-03 20:14:05 +0300151
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
Kevin Hilman046465b2010-09-27 20:19:30 +0530159/* L4 CORE -> UART1 interface */
Kevin Hilman046465b2010-09-27 20:19:30 +0530160static struct omap_hwmod_ocp_if omap2_l4_core__uart1 = {
161 .master = &omap2430_l4_core_hwmod,
162 .slave = &omap2430_uart1_hwmod,
163 .clk = "uart1_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600164 .addr = omap2xxx_uart1_addr_space,
Kevin Hilman046465b2010-09-27 20:19:30 +0530165 .user = OCP_USER_MPU | OCP_USER_SDMA,
166};
167
168/* L4 CORE -> UART2 interface */
Kevin Hilman046465b2010-09-27 20:19:30 +0530169static struct omap_hwmod_ocp_if omap2_l4_core__uart2 = {
170 .master = &omap2430_l4_core_hwmod,
171 .slave = &omap2430_uart2_hwmod,
172 .clk = "uart2_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600173 .addr = omap2xxx_uart2_addr_space,
Kevin Hilman046465b2010-09-27 20:19:30 +0530174 .user = OCP_USER_MPU | OCP_USER_SDMA,
175};
176
177/* L4 PER -> UART3 interface */
Kevin Hilman046465b2010-09-27 20:19:30 +0530178static struct omap_hwmod_ocp_if omap2_l4_core__uart3 = {
179 .master = &omap2430_l4_core_hwmod,
180 .slave = &omap2430_uart3_hwmod,
181 .clk = "uart3_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600182 .addr = omap2xxx_uart3_addr_space,
Kevin Hilman046465b2010-09-27 20:19:30 +0530183 .user = OCP_USER_MPU | OCP_USER_SDMA,
184};
185
Hema HK44d02ac2011-02-17 12:07:17 +0530186/*
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,
Hema HK44d02ac2011-02-17 12:07:17 +0530203 .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
Paul Walmsleybce06f32011-03-01 13:12:55 -0800214/* L4 CORE -> MMC1 interface */
Paul Walmsleybce06f32011-03-01 13:12:55 -0800215static 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,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800220 .user = OCP_USER_MPU | OCP_USER_SDMA,
221};
222
223/* L4 CORE -> MMC2 interface */
Paul Walmsleybce06f32011-03-01 13:12:55 -0800224static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
225 .master = &omap2430_l4_core_hwmod,
226 .slave = &omap2430_mmc2_hwmod,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800227 .clk = "mmchs2_ick",
Paul Walmsley78183f32011-07-09 19:14:05 -0600228 .addr = omap2430_mmc2_addr_space,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800229 .user = OCP_USER_MPU | OCP_USER_SDMA,
230};
231
Paul Walmsley02bfc032009-09-03 20:14:05 +0300232/* Slave interfaces on the L4_CORE interconnect */
233static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
Kevin Hilman4a7cf902010-07-26 16:34:32 -0600234 &omap2430_l3_main__l4_core,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300235};
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,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800240 &omap2430_l4_core__mmc1,
241 &omap2430_l4_core__mmc2,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300242};
243
244/* L4 CORE */
245static struct omap_hwmod omap2430_l4_core_hwmod = {
Benoit Coussonfa983472010-07-26 16:34:29 -0600246 .name = "l4_core",
Paul Walmsley43b40992010-02-22 22:09:34 -0700247 .class = &l4_hwmod_class,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300248 .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),
Kevin Hilman2eb18752010-07-26 16:34:28 -0600252 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
253 .flags = HWMOD_NO_IDLEST,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300254};
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,
Kevin Hilman046465b2010-09-27 20:19:30 +0530259 &omap2_l4_core__uart1,
260 &omap2_l4_core__uart2,
261 &omap2_l4_core__uart3,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300262};
263
264/* Master interfaces on the L4_WKUP interconnect */
265static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
266};
267
Charulatha V7f904c72011-02-17 09:53:10 -0800268/* l4 core -> mcspi1 interface */
Charulatha V7f904c72011-02-17 09:53:10 -0800269static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi1 = {
270 .master = &omap2430_l4_core_hwmod,
271 .slave = &omap2430_mcspi1_hwmod,
272 .clk = "mcspi1_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600273 .addr = omap2_mcspi1_addr_space,
Charulatha V7f904c72011-02-17 09:53:10 -0800274 .user = OCP_USER_MPU | OCP_USER_SDMA,
275};
276
277/* l4 core -> mcspi2 interface */
Charulatha V7f904c72011-02-17 09:53:10 -0800278static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi2 = {
279 .master = &omap2430_l4_core_hwmod,
280 .slave = &omap2430_mcspi2_hwmod,
281 .clk = "mcspi2_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600282 .addr = omap2_mcspi2_addr_space,
Charulatha V7f904c72011-02-17 09:53:10 -0800283 .user = OCP_USER_MPU | OCP_USER_SDMA,
284};
285
286/* l4 core -> mcspi3 interface */
Charulatha V7f904c72011-02-17 09:53:10 -0800287static 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,
Charulatha V7f904c72011-02-17 09:53:10 -0800292 .user = OCP_USER_MPU | OCP_USER_SDMA,
293};
294
Paul Walmsley02bfc032009-09-03 20:14:05 +0300295/* L4 WKUP */
296static struct omap_hwmod omap2430_l4_wkup_hwmod = {
Benoit Coussonfa983472010-07-26 16:34:29 -0600297 .name = "l4_wkup",
Paul Walmsley43b40992010-02-22 22:09:34 -0700298 .class = &l4_hwmod_class,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300299 .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),
Kevin Hilman2eb18752010-07-26 16:34:28 -0600303 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
304 .flags = HWMOD_NO_IDLEST,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300305};
306
307/* Master interfaces on the MPU device */
308static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
Kevin Hilman4a7cf902010-07-26 16:34:32 -0600309 &omap2430_mpu__l3_main,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300310};
311
312/* MPU */
313static struct omap_hwmod omap2430_mpu_hwmod = {
Benoit Cousson5c2c0292010-05-20 12:31:10 -0600314 .name = "mpu",
Paul Walmsley43b40992010-02-22 22:09:34 -0700315 .class = &mpu_hwmod_class,
Paul Walmsley50ebdac2010-02-22 22:09:31 -0700316 .main_clk = "mpu_ck",
Paul Walmsley02bfc032009-09-03 20:14:05 +0300317 .masters = omap2430_mpu_masters,
318 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
319 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
320};
321
Paul Walmsley08072ac2010-07-26 16:34:33 -0600322/*
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
Thara Gopinathb6b58222011-02-23 00:14:05 -0700350/* Timer Common */
351static struct omap_hwmod_class_sysconfig omap2430_timer_sysc = {
352 .rev_offs = 0x0000,
353 .sysc_offs = 0x0010,
354 .syss_offs = 0x0014,
355 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY |
356 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
357 SYSC_HAS_AUTOIDLE),
358 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
359 .sysc_fields = &omap_hwmod_sysc_type1,
360};
361
362static struct omap_hwmod_class omap2430_timer_hwmod_class = {
363 .name = "timer",
364 .sysc = &omap2430_timer_sysc,
365 .rev = OMAP_TIMER_IP_VERSION_1,
366};
367
368/* timer1 */
369static struct omap_hwmod omap2430_timer1_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700370
371static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
372 {
373 .pa_start = 0x49018000,
374 .pa_end = 0x49018000 + SZ_1K - 1,
375 .flags = ADDR_TYPE_RT
376 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600377 { }
Thara Gopinathb6b58222011-02-23 00:14:05 -0700378};
379
380/* l4_wkup -> timer1 */
381static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
382 .master = &omap2430_l4_wkup_hwmod,
383 .slave = &omap2430_timer1_hwmod,
384 .clk = "gpt1_ick",
385 .addr = omap2430_timer1_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700386 .user = OCP_USER_MPU | OCP_USER_SDMA,
387};
388
389/* timer1 slave port */
390static struct omap_hwmod_ocp_if *omap2430_timer1_slaves[] = {
391 &omap2430_l4_wkup__timer1,
392};
393
394/* timer1 hwmod */
395static struct omap_hwmod omap2430_timer1_hwmod = {
396 .name = "timer1",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600397 .mpu_irqs = omap2_timer1_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700398 .main_clk = "gpt1_fck",
399 .prcm = {
400 .omap2 = {
401 .prcm_reg_id = 1,
402 .module_bit = OMAP24XX_EN_GPT1_SHIFT,
403 .module_offs = WKUP_MOD,
404 .idlest_reg_id = 1,
405 .idlest_idle_bit = OMAP24XX_ST_GPT1_SHIFT,
406 },
407 },
408 .slaves = omap2430_timer1_slaves,
409 .slaves_cnt = ARRAY_SIZE(omap2430_timer1_slaves),
410 .class = &omap2430_timer_hwmod_class,
411 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
412};
413
414/* timer2 */
415static struct omap_hwmod omap2430_timer2_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700416
Thara Gopinathb6b58222011-02-23 00:14:05 -0700417/* l4_core -> timer2 */
418static struct omap_hwmod_ocp_if omap2430_l4_core__timer2 = {
419 .master = &omap2430_l4_core_hwmod,
420 .slave = &omap2430_timer2_hwmod,
421 .clk = "gpt2_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600422 .addr = omap2xxx_timer2_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700423 .user = OCP_USER_MPU | OCP_USER_SDMA,
424};
425
426/* timer2 slave port */
427static struct omap_hwmod_ocp_if *omap2430_timer2_slaves[] = {
428 &omap2430_l4_core__timer2,
429};
430
431/* timer2 hwmod */
432static struct omap_hwmod omap2430_timer2_hwmod = {
433 .name = "timer2",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600434 .mpu_irqs = omap2_timer2_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700435 .main_clk = "gpt2_fck",
436 .prcm = {
437 .omap2 = {
438 .prcm_reg_id = 1,
439 .module_bit = OMAP24XX_EN_GPT2_SHIFT,
440 .module_offs = CORE_MOD,
441 .idlest_reg_id = 1,
442 .idlest_idle_bit = OMAP24XX_ST_GPT2_SHIFT,
443 },
444 },
445 .slaves = omap2430_timer2_slaves,
446 .slaves_cnt = ARRAY_SIZE(omap2430_timer2_slaves),
447 .class = &omap2430_timer_hwmod_class,
448 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
449};
450
451/* timer3 */
452static struct omap_hwmod omap2430_timer3_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700453
Thara Gopinathb6b58222011-02-23 00:14:05 -0700454/* l4_core -> timer3 */
455static struct omap_hwmod_ocp_if omap2430_l4_core__timer3 = {
456 .master = &omap2430_l4_core_hwmod,
457 .slave = &omap2430_timer3_hwmod,
458 .clk = "gpt3_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600459 .addr = omap2xxx_timer3_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700460 .user = OCP_USER_MPU | OCP_USER_SDMA,
461};
462
463/* timer3 slave port */
464static struct omap_hwmod_ocp_if *omap2430_timer3_slaves[] = {
465 &omap2430_l4_core__timer3,
466};
467
468/* timer3 hwmod */
469static struct omap_hwmod omap2430_timer3_hwmod = {
470 .name = "timer3",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600471 .mpu_irqs = omap2_timer3_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700472 .main_clk = "gpt3_fck",
473 .prcm = {
474 .omap2 = {
475 .prcm_reg_id = 1,
476 .module_bit = OMAP24XX_EN_GPT3_SHIFT,
477 .module_offs = CORE_MOD,
478 .idlest_reg_id = 1,
479 .idlest_idle_bit = OMAP24XX_ST_GPT3_SHIFT,
480 },
481 },
482 .slaves = omap2430_timer3_slaves,
483 .slaves_cnt = ARRAY_SIZE(omap2430_timer3_slaves),
484 .class = &omap2430_timer_hwmod_class,
485 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
486};
487
488/* timer4 */
489static struct omap_hwmod omap2430_timer4_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700490
Thara Gopinathb6b58222011-02-23 00:14:05 -0700491/* l4_core -> timer4 */
492static struct omap_hwmod_ocp_if omap2430_l4_core__timer4 = {
493 .master = &omap2430_l4_core_hwmod,
494 .slave = &omap2430_timer4_hwmod,
495 .clk = "gpt4_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600496 .addr = omap2xxx_timer4_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700497 .user = OCP_USER_MPU | OCP_USER_SDMA,
498};
499
500/* timer4 slave port */
501static struct omap_hwmod_ocp_if *omap2430_timer4_slaves[] = {
502 &omap2430_l4_core__timer4,
503};
504
505/* timer4 hwmod */
506static struct omap_hwmod omap2430_timer4_hwmod = {
507 .name = "timer4",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600508 .mpu_irqs = omap2_timer4_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700509 .main_clk = "gpt4_fck",
510 .prcm = {
511 .omap2 = {
512 .prcm_reg_id = 1,
513 .module_bit = OMAP24XX_EN_GPT4_SHIFT,
514 .module_offs = CORE_MOD,
515 .idlest_reg_id = 1,
516 .idlest_idle_bit = OMAP24XX_ST_GPT4_SHIFT,
517 },
518 },
519 .slaves = omap2430_timer4_slaves,
520 .slaves_cnt = ARRAY_SIZE(omap2430_timer4_slaves),
521 .class = &omap2430_timer_hwmod_class,
522 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
523};
524
525/* timer5 */
526static struct omap_hwmod omap2430_timer5_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700527
Thara Gopinathb6b58222011-02-23 00:14:05 -0700528/* l4_core -> timer5 */
529static struct omap_hwmod_ocp_if omap2430_l4_core__timer5 = {
530 .master = &omap2430_l4_core_hwmod,
531 .slave = &omap2430_timer5_hwmod,
532 .clk = "gpt5_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600533 .addr = omap2xxx_timer5_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700534 .user = OCP_USER_MPU | OCP_USER_SDMA,
535};
536
537/* timer5 slave port */
538static struct omap_hwmod_ocp_if *omap2430_timer5_slaves[] = {
539 &omap2430_l4_core__timer5,
540};
541
542/* timer5 hwmod */
543static struct omap_hwmod omap2430_timer5_hwmod = {
544 .name = "timer5",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600545 .mpu_irqs = omap2_timer5_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700546 .main_clk = "gpt5_fck",
547 .prcm = {
548 .omap2 = {
549 .prcm_reg_id = 1,
550 .module_bit = OMAP24XX_EN_GPT5_SHIFT,
551 .module_offs = CORE_MOD,
552 .idlest_reg_id = 1,
553 .idlest_idle_bit = OMAP24XX_ST_GPT5_SHIFT,
554 },
555 },
556 .slaves = omap2430_timer5_slaves,
557 .slaves_cnt = ARRAY_SIZE(omap2430_timer5_slaves),
558 .class = &omap2430_timer_hwmod_class,
559 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
560};
561
562/* timer6 */
563static struct omap_hwmod omap2430_timer6_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700564
Thara Gopinathb6b58222011-02-23 00:14:05 -0700565/* l4_core -> timer6 */
566static struct omap_hwmod_ocp_if omap2430_l4_core__timer6 = {
567 .master = &omap2430_l4_core_hwmod,
568 .slave = &omap2430_timer6_hwmod,
569 .clk = "gpt6_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600570 .addr = omap2xxx_timer6_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700571 .user = OCP_USER_MPU | OCP_USER_SDMA,
572};
573
574/* timer6 slave port */
575static struct omap_hwmod_ocp_if *omap2430_timer6_slaves[] = {
576 &omap2430_l4_core__timer6,
577};
578
579/* timer6 hwmod */
580static struct omap_hwmod omap2430_timer6_hwmod = {
581 .name = "timer6",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600582 .mpu_irqs = omap2_timer6_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700583 .main_clk = "gpt6_fck",
584 .prcm = {
585 .omap2 = {
586 .prcm_reg_id = 1,
587 .module_bit = OMAP24XX_EN_GPT6_SHIFT,
588 .module_offs = CORE_MOD,
589 .idlest_reg_id = 1,
590 .idlest_idle_bit = OMAP24XX_ST_GPT6_SHIFT,
591 },
592 },
593 .slaves = omap2430_timer6_slaves,
594 .slaves_cnt = ARRAY_SIZE(omap2430_timer6_slaves),
595 .class = &omap2430_timer_hwmod_class,
596 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
597};
598
599/* timer7 */
600static struct omap_hwmod omap2430_timer7_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700601
Thara Gopinathb6b58222011-02-23 00:14:05 -0700602/* l4_core -> timer7 */
603static struct omap_hwmod_ocp_if omap2430_l4_core__timer7 = {
604 .master = &omap2430_l4_core_hwmod,
605 .slave = &omap2430_timer7_hwmod,
606 .clk = "gpt7_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600607 .addr = omap2xxx_timer7_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700608 .user = OCP_USER_MPU | OCP_USER_SDMA,
609};
610
611/* timer7 slave port */
612static struct omap_hwmod_ocp_if *omap2430_timer7_slaves[] = {
613 &omap2430_l4_core__timer7,
614};
615
616/* timer7 hwmod */
617static struct omap_hwmod omap2430_timer7_hwmod = {
618 .name = "timer7",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600619 .mpu_irqs = omap2_timer7_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700620 .main_clk = "gpt7_fck",
621 .prcm = {
622 .omap2 = {
623 .prcm_reg_id = 1,
624 .module_bit = OMAP24XX_EN_GPT7_SHIFT,
625 .module_offs = CORE_MOD,
626 .idlest_reg_id = 1,
627 .idlest_idle_bit = OMAP24XX_ST_GPT7_SHIFT,
628 },
629 },
630 .slaves = omap2430_timer7_slaves,
631 .slaves_cnt = ARRAY_SIZE(omap2430_timer7_slaves),
632 .class = &omap2430_timer_hwmod_class,
633 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
634};
635
636/* timer8 */
637static struct omap_hwmod omap2430_timer8_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700638
Thara Gopinathb6b58222011-02-23 00:14:05 -0700639/* l4_core -> timer8 */
640static struct omap_hwmod_ocp_if omap2430_l4_core__timer8 = {
641 .master = &omap2430_l4_core_hwmod,
642 .slave = &omap2430_timer8_hwmod,
643 .clk = "gpt8_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600644 .addr = omap2xxx_timer8_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700645 .user = OCP_USER_MPU | OCP_USER_SDMA,
646};
647
648/* timer8 slave port */
649static struct omap_hwmod_ocp_if *omap2430_timer8_slaves[] = {
650 &omap2430_l4_core__timer8,
651};
652
653/* timer8 hwmod */
654static struct omap_hwmod omap2430_timer8_hwmod = {
655 .name = "timer8",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600656 .mpu_irqs = omap2_timer8_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700657 .main_clk = "gpt8_fck",
658 .prcm = {
659 .omap2 = {
660 .prcm_reg_id = 1,
661 .module_bit = OMAP24XX_EN_GPT8_SHIFT,
662 .module_offs = CORE_MOD,
663 .idlest_reg_id = 1,
664 .idlest_idle_bit = OMAP24XX_ST_GPT8_SHIFT,
665 },
666 },
667 .slaves = omap2430_timer8_slaves,
668 .slaves_cnt = ARRAY_SIZE(omap2430_timer8_slaves),
669 .class = &omap2430_timer_hwmod_class,
670 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
671};
672
673/* timer9 */
674static struct omap_hwmod omap2430_timer9_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700675
Thara Gopinathb6b58222011-02-23 00:14:05 -0700676/* l4_core -> timer9 */
677static struct omap_hwmod_ocp_if omap2430_l4_core__timer9 = {
678 .master = &omap2430_l4_core_hwmod,
679 .slave = &omap2430_timer9_hwmod,
680 .clk = "gpt9_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600681 .addr = omap2xxx_timer9_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700682 .user = OCP_USER_MPU | OCP_USER_SDMA,
683};
684
685/* timer9 slave port */
686static struct omap_hwmod_ocp_if *omap2430_timer9_slaves[] = {
687 &omap2430_l4_core__timer9,
688};
689
690/* timer9 hwmod */
691static struct omap_hwmod omap2430_timer9_hwmod = {
692 .name = "timer9",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600693 .mpu_irqs = omap2_timer9_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700694 .main_clk = "gpt9_fck",
695 .prcm = {
696 .omap2 = {
697 .prcm_reg_id = 1,
698 .module_bit = OMAP24XX_EN_GPT9_SHIFT,
699 .module_offs = CORE_MOD,
700 .idlest_reg_id = 1,
701 .idlest_idle_bit = OMAP24XX_ST_GPT9_SHIFT,
702 },
703 },
704 .slaves = omap2430_timer9_slaves,
705 .slaves_cnt = ARRAY_SIZE(omap2430_timer9_slaves),
706 .class = &omap2430_timer_hwmod_class,
707 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
708};
709
710/* timer10 */
711static struct omap_hwmod omap2430_timer10_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700712
Thara Gopinathb6b58222011-02-23 00:14:05 -0700713/* l4_core -> timer10 */
714static struct omap_hwmod_ocp_if omap2430_l4_core__timer10 = {
715 .master = &omap2430_l4_core_hwmod,
716 .slave = &omap2430_timer10_hwmod,
717 .clk = "gpt10_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600718 .addr = omap2_timer10_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700719 .user = OCP_USER_MPU | OCP_USER_SDMA,
720};
721
722/* timer10 slave port */
723static struct omap_hwmod_ocp_if *omap2430_timer10_slaves[] = {
724 &omap2430_l4_core__timer10,
725};
726
727/* timer10 hwmod */
728static struct omap_hwmod omap2430_timer10_hwmod = {
729 .name = "timer10",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600730 .mpu_irqs = omap2_timer10_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700731 .main_clk = "gpt10_fck",
732 .prcm = {
733 .omap2 = {
734 .prcm_reg_id = 1,
735 .module_bit = OMAP24XX_EN_GPT10_SHIFT,
736 .module_offs = CORE_MOD,
737 .idlest_reg_id = 1,
738 .idlest_idle_bit = OMAP24XX_ST_GPT10_SHIFT,
739 },
740 },
741 .slaves = omap2430_timer10_slaves,
742 .slaves_cnt = ARRAY_SIZE(omap2430_timer10_slaves),
743 .class = &omap2430_timer_hwmod_class,
744 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
745};
746
747/* timer11 */
748static struct omap_hwmod omap2430_timer11_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700749
Thara Gopinathb6b58222011-02-23 00:14:05 -0700750/* l4_core -> timer11 */
751static struct omap_hwmod_ocp_if omap2430_l4_core__timer11 = {
752 .master = &omap2430_l4_core_hwmod,
753 .slave = &omap2430_timer11_hwmod,
754 .clk = "gpt11_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600755 .addr = omap2_timer11_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700756 .user = OCP_USER_MPU | OCP_USER_SDMA,
757};
758
759/* timer11 slave port */
760static struct omap_hwmod_ocp_if *omap2430_timer11_slaves[] = {
761 &omap2430_l4_core__timer11,
762};
763
764/* timer11 hwmod */
765static struct omap_hwmod omap2430_timer11_hwmod = {
766 .name = "timer11",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600767 .mpu_irqs = omap2_timer11_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700768 .main_clk = "gpt11_fck",
769 .prcm = {
770 .omap2 = {
771 .prcm_reg_id = 1,
772 .module_bit = OMAP24XX_EN_GPT11_SHIFT,
773 .module_offs = CORE_MOD,
774 .idlest_reg_id = 1,
775 .idlest_idle_bit = OMAP24XX_ST_GPT11_SHIFT,
776 },
777 },
778 .slaves = omap2430_timer11_slaves,
779 .slaves_cnt = ARRAY_SIZE(omap2430_timer11_slaves),
780 .class = &omap2430_timer_hwmod_class,
781 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
782};
783
784/* timer12 */
785static struct omap_hwmod omap2430_timer12_hwmod;
Thara Gopinathb6b58222011-02-23 00:14:05 -0700786
Thara Gopinathb6b58222011-02-23 00:14:05 -0700787/* l4_core -> timer12 */
788static struct omap_hwmod_ocp_if omap2430_l4_core__timer12 = {
789 .master = &omap2430_l4_core_hwmod,
790 .slave = &omap2430_timer12_hwmod,
791 .clk = "gpt12_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -0600792 .addr = omap2xxx_timer12_addrs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700793 .user = OCP_USER_MPU | OCP_USER_SDMA,
794};
795
796/* timer12 slave port */
797static struct omap_hwmod_ocp_if *omap2430_timer12_slaves[] = {
798 &omap2430_l4_core__timer12,
799};
800
801/* timer12 hwmod */
802static struct omap_hwmod omap2430_timer12_hwmod = {
803 .name = "timer12",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600804 .mpu_irqs = omap2xxx_timer12_mpu_irqs,
Thara Gopinathb6b58222011-02-23 00:14:05 -0700805 .main_clk = "gpt12_fck",
806 .prcm = {
807 .omap2 = {
808 .prcm_reg_id = 1,
809 .module_bit = OMAP24XX_EN_GPT12_SHIFT,
810 .module_offs = CORE_MOD,
811 .idlest_reg_id = 1,
812 .idlest_idle_bit = OMAP24XX_ST_GPT12_SHIFT,
813 },
814 },
815 .slaves = omap2430_timer12_slaves,
816 .slaves_cnt = ARRAY_SIZE(omap2430_timer12_slaves),
817 .class = &omap2430_timer_hwmod_class,
818 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
819};
820
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +0530821/* l4_wkup -> wd_timer2 */
822static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
823 {
824 .pa_start = 0x49016000,
825 .pa_end = 0x4901607f,
826 .flags = ADDR_TYPE_RT
827 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600828 { }
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +0530829};
830
831static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
832 .master = &omap2430_l4_wkup_hwmod,
833 .slave = &omap2430_wd_timer2_hwmod,
834 .clk = "mpu_wdt_ick",
835 .addr = omap2430_wd_timer2_addrs,
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +0530836 .user = OCP_USER_MPU | OCP_USER_SDMA,
837};
838
839/*
840 * 'wd_timer' class
841 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
842 * overflow condition
843 */
844
845static struct omap_hwmod_class_sysconfig omap2430_wd_timer_sysc = {
846 .rev_offs = 0x0,
847 .sysc_offs = 0x0010,
848 .syss_offs = 0x0014,
849 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SOFTRESET |
Avinash.H.Md73d65f2011-03-03 14:22:46 -0700850 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +0530851 .sysc_fields = &omap_hwmod_sysc_type1,
852};
853
854static struct omap_hwmod_class omap2430_wd_timer_hwmod_class = {
Paul Walmsleyff2516f2010-12-21 15:39:15 -0700855 .name = "wd_timer",
856 .sysc = &omap2430_wd_timer_sysc,
857 .pre_shutdown = &omap2_wd_timer_disable
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +0530858};
859
860/* wd_timer2 */
861static struct omap_hwmod_ocp_if *omap2430_wd_timer2_slaves[] = {
862 &omap2430_l4_wkup__wd_timer2,
863};
864
865static struct omap_hwmod omap2430_wd_timer2_hwmod = {
866 .name = "wd_timer2",
867 .class = &omap2430_wd_timer_hwmod_class,
868 .main_clk = "mpu_wdt_fck",
869 .prcm = {
870 .omap2 = {
871 .prcm_reg_id = 1,
872 .module_bit = OMAP24XX_EN_MPU_WDT_SHIFT,
873 .module_offs = WKUP_MOD,
874 .idlest_reg_id = 1,
875 .idlest_idle_bit = OMAP24XX_ST_MPU_WDT_SHIFT,
876 },
877 },
878 .slaves = omap2430_wd_timer2_slaves,
879 .slaves_cnt = ARRAY_SIZE(omap2430_wd_timer2_slaves),
880 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
881};
882
Kevin Hilman046465b2010-09-27 20:19:30 +0530883/* UART */
884
885static struct omap_hwmod_class_sysconfig uart_sysc = {
886 .rev_offs = 0x50,
887 .sysc_offs = 0x54,
888 .syss_offs = 0x58,
889 .sysc_flags = (SYSC_HAS_SIDLEMODE |
890 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
Avinash.H.Md73d65f2011-03-03 14:22:46 -0700891 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
Kevin Hilman046465b2010-09-27 20:19:30 +0530892 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
893 .sysc_fields = &omap_hwmod_sysc_type1,
894};
895
896static struct omap_hwmod_class uart_class = {
897 .name = "uart",
898 .sysc = &uart_sysc,
899};
900
901/* UART1 */
902
Kevin Hilman046465b2010-09-27 20:19:30 +0530903static struct omap_hwmod_ocp_if *omap2430_uart1_slaves[] = {
904 &omap2_l4_core__uart1,
905};
906
907static struct omap_hwmod omap2430_uart1_hwmod = {
908 .name = "uart1",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600909 .mpu_irqs = omap2_uart1_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600910 .sdma_reqs = omap2_uart1_sdma_reqs,
Kevin Hilman046465b2010-09-27 20:19:30 +0530911 .main_clk = "uart1_fck",
912 .prcm = {
913 .omap2 = {
914 .module_offs = CORE_MOD,
915 .prcm_reg_id = 1,
916 .module_bit = OMAP24XX_EN_UART1_SHIFT,
917 .idlest_reg_id = 1,
918 .idlest_idle_bit = OMAP24XX_EN_UART1_SHIFT,
919 },
920 },
921 .slaves = omap2430_uart1_slaves,
922 .slaves_cnt = ARRAY_SIZE(omap2430_uart1_slaves),
923 .class = &uart_class,
924 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
925};
926
927/* UART2 */
928
Kevin Hilman046465b2010-09-27 20:19:30 +0530929static struct omap_hwmod_ocp_if *omap2430_uart2_slaves[] = {
930 &omap2_l4_core__uart2,
931};
932
933static struct omap_hwmod omap2430_uart2_hwmod = {
934 .name = "uart2",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600935 .mpu_irqs = omap2_uart2_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600936 .sdma_reqs = omap2_uart2_sdma_reqs,
Kevin Hilman046465b2010-09-27 20:19:30 +0530937 .main_clk = "uart2_fck",
938 .prcm = {
939 .omap2 = {
940 .module_offs = CORE_MOD,
941 .prcm_reg_id = 1,
942 .module_bit = OMAP24XX_EN_UART2_SHIFT,
943 .idlest_reg_id = 1,
944 .idlest_idle_bit = OMAP24XX_EN_UART2_SHIFT,
945 },
946 },
947 .slaves = omap2430_uart2_slaves,
948 .slaves_cnt = ARRAY_SIZE(omap2430_uart2_slaves),
949 .class = &uart_class,
950 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
951};
952
953/* UART3 */
954
Kevin Hilman046465b2010-09-27 20:19:30 +0530955static struct omap_hwmod_ocp_if *omap2430_uart3_slaves[] = {
956 &omap2_l4_core__uart3,
957};
958
959static struct omap_hwmod omap2430_uart3_hwmod = {
960 .name = "uart3",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600961 .mpu_irqs = omap2_uart3_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600962 .sdma_reqs = omap2_uart3_sdma_reqs,
Kevin Hilman046465b2010-09-27 20:19:30 +0530963 .main_clk = "uart3_fck",
964 .prcm = {
965 .omap2 = {
966 .module_offs = CORE_MOD,
967 .prcm_reg_id = 2,
968 .module_bit = OMAP24XX_EN_UART3_SHIFT,
969 .idlest_reg_id = 2,
970 .idlest_idle_bit = OMAP24XX_EN_UART3_SHIFT,
971 },
972 },
973 .slaves = omap2430_uart3_slaves,
974 .slaves_cnt = ARRAY_SIZE(omap2430_uart3_slaves),
975 .class = &uart_class,
976 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
977};
978
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +0200979/*
980 * 'dss' class
981 * display sub-system
982 */
983
984static struct omap_hwmod_class_sysconfig omap2430_dss_sysc = {
985 .rev_offs = 0x0000,
986 .sysc_offs = 0x0010,
987 .syss_offs = 0x0014,
988 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
989 .sysc_fields = &omap_hwmod_sysc_type1,
990};
991
992static struct omap_hwmod_class omap2430_dss_hwmod_class = {
993 .name = "dss",
994 .sysc = &omap2430_dss_sysc,
995};
996
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +0200997/* dss */
998/* dss master ports */
999static struct omap_hwmod_ocp_if *omap2430_dss_masters[] = {
1000 &omap2430_dss__l3,
1001};
1002
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001003/* l4_core -> dss */
1004static struct omap_hwmod_ocp_if omap2430_l4_core__dss = {
1005 .master = &omap2430_l4_core_hwmod,
1006 .slave = &omap2430_dss_core_hwmod,
1007 .clk = "dss_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -06001008 .addr = omap2_dss_addrs,
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001009 .user = OCP_USER_MPU | OCP_USER_SDMA,
1010};
1011
1012/* dss slave ports */
1013static struct omap_hwmod_ocp_if *omap2430_dss_slaves[] = {
1014 &omap2430_l4_core__dss,
1015};
1016
1017static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1018 { .role = "tv_clk", .clk = "dss_54m_fck" },
1019 { .role = "sys_clk", .clk = "dss2_fck" },
1020};
1021
1022static struct omap_hwmod omap2430_dss_core_hwmod = {
1023 .name = "dss_core",
1024 .class = &omap2430_dss_hwmod_class,
1025 .main_clk = "dss1_fck", /* instead of dss_fck */
Paul Walmsleyd826ebf2011-07-09 19:14:07 -06001026 .sdma_reqs = omap2xxx_dss_sdma_chs,
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001027 .prcm = {
1028 .omap2 = {
1029 .prcm_reg_id = 1,
1030 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1031 .module_offs = CORE_MOD,
1032 .idlest_reg_id = 1,
1033 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1034 },
1035 },
1036 .opt_clks = dss_opt_clks,
1037 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1038 .slaves = omap2430_dss_slaves,
1039 .slaves_cnt = ARRAY_SIZE(omap2430_dss_slaves),
1040 .masters = omap2430_dss_masters,
1041 .masters_cnt = ARRAY_SIZE(omap2430_dss_masters),
1042 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1043 .flags = HWMOD_NO_IDLEST,
1044};
1045
1046/*
1047 * 'dispc' class
1048 * display controller
1049 */
1050
1051static struct omap_hwmod_class_sysconfig omap2430_dispc_sysc = {
1052 .rev_offs = 0x0000,
1053 .sysc_offs = 0x0010,
1054 .syss_offs = 0x0014,
1055 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE |
1056 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1057 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1058 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1059 .sysc_fields = &omap_hwmod_sysc_type1,
1060};
1061
1062static struct omap_hwmod_class omap2430_dispc_hwmod_class = {
1063 .name = "dispc",
1064 .sysc = &omap2430_dispc_sysc,
1065};
1066
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001067/* l4_core -> dss_dispc */
1068static struct omap_hwmod_ocp_if omap2430_l4_core__dss_dispc = {
1069 .master = &omap2430_l4_core_hwmod,
1070 .slave = &omap2430_dss_dispc_hwmod,
1071 .clk = "dss_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -06001072 .addr = omap2_dss_dispc_addrs,
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001073 .user = OCP_USER_MPU | OCP_USER_SDMA,
1074};
1075
1076/* dss_dispc slave ports */
1077static struct omap_hwmod_ocp_if *omap2430_dss_dispc_slaves[] = {
1078 &omap2430_l4_core__dss_dispc,
1079};
1080
1081static struct omap_hwmod omap2430_dss_dispc_hwmod = {
1082 .name = "dss_dispc",
1083 .class = &omap2430_dispc_hwmod_class,
Paul Walmsley0d619a82011-07-09 19:14:07 -06001084 .mpu_irqs = omap2_dispc_irqs,
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001085 .main_clk = "dss1_fck",
1086 .prcm = {
1087 .omap2 = {
1088 .prcm_reg_id = 1,
1089 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1090 .module_offs = CORE_MOD,
1091 .idlest_reg_id = 1,
1092 .idlest_stdby_bit = OMAP24XX_ST_DSS_SHIFT,
1093 },
1094 },
1095 .slaves = omap2430_dss_dispc_slaves,
1096 .slaves_cnt = ARRAY_SIZE(omap2430_dss_dispc_slaves),
1097 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1098 .flags = HWMOD_NO_IDLEST,
1099};
1100
1101/*
1102 * 'rfbi' class
1103 * remote frame buffer interface
1104 */
1105
1106static struct omap_hwmod_class_sysconfig omap2430_rfbi_sysc = {
1107 .rev_offs = 0x0000,
1108 .sysc_offs = 0x0010,
1109 .syss_offs = 0x0014,
1110 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1111 SYSC_HAS_AUTOIDLE),
1112 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1113 .sysc_fields = &omap_hwmod_sysc_type1,
1114};
1115
1116static struct omap_hwmod_class omap2430_rfbi_hwmod_class = {
1117 .name = "rfbi",
1118 .sysc = &omap2430_rfbi_sysc,
1119};
1120
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001121/* l4_core -> dss_rfbi */
1122static struct omap_hwmod_ocp_if omap2430_l4_core__dss_rfbi = {
1123 .master = &omap2430_l4_core_hwmod,
1124 .slave = &omap2430_dss_rfbi_hwmod,
1125 .clk = "dss_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -06001126 .addr = omap2_dss_rfbi_addrs,
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001127 .user = OCP_USER_MPU | OCP_USER_SDMA,
1128};
1129
1130/* dss_rfbi slave ports */
1131static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1132 &omap2430_l4_core__dss_rfbi,
1133};
1134
1135static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1136 .name = "dss_rfbi",
1137 .class = &omap2430_rfbi_hwmod_class,
1138 .main_clk = "dss1_fck",
1139 .prcm = {
1140 .omap2 = {
1141 .prcm_reg_id = 1,
1142 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1143 .module_offs = CORE_MOD,
1144 },
1145 },
1146 .slaves = omap2430_dss_rfbi_slaves,
1147 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1148 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1149 .flags = HWMOD_NO_IDLEST,
1150};
1151
1152/*
1153 * 'venc' class
1154 * video encoder
1155 */
1156
1157static struct omap_hwmod_class omap2430_venc_hwmod_class = {
1158 .name = "venc",
1159};
1160
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001161/* l4_core -> dss_venc */
1162static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1163 .master = &omap2430_l4_core_hwmod,
1164 .slave = &omap2430_dss_venc_hwmod,
1165 .clk = "dss_54m_fck",
Paul Walmsleyded11382011-07-09 19:14:06 -06001166 .addr = omap2_dss_venc_addrs,
Paul Walmsleyc39bee82011-03-04 06:02:15 +00001167 .flags = OCPIF_SWSUP_IDLE,
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02001168 .user = OCP_USER_MPU | OCP_USER_SDMA,
1169};
1170
1171/* dss_venc slave ports */
1172static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1173 &omap2430_l4_core__dss_venc,
1174};
1175
1176static struct omap_hwmod omap2430_dss_venc_hwmod = {
1177 .name = "dss_venc",
1178 .class = &omap2430_venc_hwmod_class,
1179 .main_clk = "dss1_fck",
1180 .prcm = {
1181 .omap2 = {
1182 .prcm_reg_id = 1,
1183 .module_bit = OMAP24XX_EN_DSS1_SHIFT,
1184 .module_offs = CORE_MOD,
1185 },
1186 },
1187 .slaves = omap2430_dss_venc_slaves,
1188 .slaves_cnt = ARRAY_SIZE(omap2430_dss_venc_slaves),
1189 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1190 .flags = HWMOD_NO_IDLEST,
1191};
1192
Paul Walmsley20042902010-09-30 02:40:12 +05301193/* I2C common */
1194static struct omap_hwmod_class_sysconfig i2c_sysc = {
1195 .rev_offs = 0x00,
1196 .sysc_offs = 0x20,
1197 .syss_offs = 0x10,
Avinash.H.Md73d65f2011-03-03 14:22:46 -07001198 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1199 SYSS_HAS_RESET_STATUS),
Paul Walmsley20042902010-09-30 02:40:12 +05301200 .sysc_fields = &omap_hwmod_sysc_type1,
1201};
1202
1203static struct omap_hwmod_class i2c_class = {
1204 .name = "i2c",
1205 .sysc = &i2c_sysc,
1206};
1207
Benoit Cousson50ebb772010-12-21 21:08:34 -07001208static struct omap_i2c_dev_attr i2c_dev_attr = {
Paul Walmsley20042902010-09-30 02:40:12 +05301209 .fifo_depth = 8, /* bytes */
1210};
1211
Benoit Cousson50ebb772010-12-21 21:08:34 -07001212/* I2C1 */
1213
Paul Walmsley20042902010-09-30 02:40:12 +05301214static struct omap_hwmod_ocp_if *omap2430_i2c1_slaves[] = {
1215 &omap2430_l4_core__i2c1,
1216};
1217
1218static struct omap_hwmod omap2430_i2c1_hwmod = {
1219 .name = "i2c1",
Paul Walmsley0d619a82011-07-09 19:14:07 -06001220 .mpu_irqs = omap2_i2c1_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -06001221 .sdma_reqs = omap2_i2c1_sdma_reqs,
Paul Walmsley20042902010-09-30 02:40:12 +05301222 .main_clk = "i2chs1_fck",
1223 .prcm = {
1224 .omap2 = {
1225 /*
1226 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
1227 * I2CHS IP's do not follow the usual pattern.
1228 * prcm_reg_id alone cannot be used to program
1229 * the iclk and fclk. Needs to be handled using
Lucas De Marchi25985ed2011-03-30 22:57:33 -03001230 * additional flags when clk handling is moved
Paul Walmsley20042902010-09-30 02:40:12 +05301231 * to hwmod framework.
1232 */
1233 .module_offs = CORE_MOD,
1234 .prcm_reg_id = 1,
1235 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
1236 .idlest_reg_id = 1,
1237 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
1238 },
1239 },
1240 .slaves = omap2430_i2c1_slaves,
1241 .slaves_cnt = ARRAY_SIZE(omap2430_i2c1_slaves),
1242 .class = &i2c_class,
Benoit Cousson50ebb772010-12-21 21:08:34 -07001243 .dev_attr = &i2c_dev_attr,
Paul Walmsley20042902010-09-30 02:40:12 +05301244 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1245};
1246
1247/* I2C2 */
1248
Paul Walmsley20042902010-09-30 02:40:12 +05301249static struct omap_hwmod_ocp_if *omap2430_i2c2_slaves[] = {
1250 &omap2430_l4_core__i2c2,
1251};
1252
1253static struct omap_hwmod omap2430_i2c2_hwmod = {
1254 .name = "i2c2",
Paul Walmsley0d619a82011-07-09 19:14:07 -06001255 .mpu_irqs = omap2_i2c2_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -06001256 .sdma_reqs = omap2_i2c2_sdma_reqs,
Paul Walmsley20042902010-09-30 02:40:12 +05301257 .main_clk = "i2chs2_fck",
1258 .prcm = {
1259 .omap2 = {
1260 .module_offs = CORE_MOD,
1261 .prcm_reg_id = 1,
1262 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
1263 .idlest_reg_id = 1,
1264 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
1265 },
1266 },
1267 .slaves = omap2430_i2c2_slaves,
1268 .slaves_cnt = ARRAY_SIZE(omap2430_i2c2_slaves),
1269 .class = &i2c_class,
Benoit Cousson50ebb772010-12-21 21:08:34 -07001270 .dev_attr = &i2c_dev_attr,
Paul Walmsley20042902010-09-30 02:40:12 +05301271 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1272};
1273
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001274/* l4_wkup -> gpio1 */
1275static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
1276 {
1277 .pa_start = 0x4900C000,
1278 .pa_end = 0x4900C1ff,
1279 .flags = ADDR_TYPE_RT
1280 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001281 { }
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001282};
1283
1284static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
1285 .master = &omap2430_l4_wkup_hwmod,
1286 .slave = &omap2430_gpio1_hwmod,
1287 .clk = "gpios_ick",
1288 .addr = omap2430_gpio1_addr_space,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001289 .user = OCP_USER_MPU | OCP_USER_SDMA,
1290};
1291
1292/* l4_wkup -> gpio2 */
1293static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
1294 {
1295 .pa_start = 0x4900E000,
1296 .pa_end = 0x4900E1ff,
1297 .flags = ADDR_TYPE_RT
1298 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001299 { }
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001300};
1301
1302static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
1303 .master = &omap2430_l4_wkup_hwmod,
1304 .slave = &omap2430_gpio2_hwmod,
1305 .clk = "gpios_ick",
1306 .addr = omap2430_gpio2_addr_space,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001307 .user = OCP_USER_MPU | OCP_USER_SDMA,
1308};
1309
1310/* l4_wkup -> gpio3 */
1311static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
1312 {
1313 .pa_start = 0x49010000,
1314 .pa_end = 0x490101ff,
1315 .flags = ADDR_TYPE_RT
1316 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001317 { }
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001318};
1319
1320static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
1321 .master = &omap2430_l4_wkup_hwmod,
1322 .slave = &omap2430_gpio3_hwmod,
1323 .clk = "gpios_ick",
1324 .addr = omap2430_gpio3_addr_space,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001325 .user = OCP_USER_MPU | OCP_USER_SDMA,
1326};
1327
1328/* l4_wkup -> gpio4 */
1329static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
1330 {
1331 .pa_start = 0x49012000,
1332 .pa_end = 0x490121ff,
1333 .flags = ADDR_TYPE_RT
1334 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001335 { }
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001336};
1337
1338static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
1339 .master = &omap2430_l4_wkup_hwmod,
1340 .slave = &omap2430_gpio4_hwmod,
1341 .clk = "gpios_ick",
1342 .addr = omap2430_gpio4_addr_space,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001343 .user = OCP_USER_MPU | OCP_USER_SDMA,
1344};
1345
1346/* l4_core -> gpio5 */
1347static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
1348 {
1349 .pa_start = 0x480B6000,
1350 .pa_end = 0x480B61ff,
1351 .flags = ADDR_TYPE_RT
1352 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001353 { }
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001354};
1355
1356static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
1357 .master = &omap2430_l4_core_hwmod,
1358 .slave = &omap2430_gpio5_hwmod,
1359 .clk = "gpio5_ick",
1360 .addr = omap2430_gpio5_addr_space,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001361 .user = OCP_USER_MPU | OCP_USER_SDMA,
1362};
1363
1364/* gpio dev_attr */
1365static struct omap_gpio_dev_attr gpio_dev_attr = {
1366 .bank_width = 32,
1367 .dbck_flag = false,
1368};
1369
1370static struct omap_hwmod_class_sysconfig omap243x_gpio_sysc = {
1371 .rev_offs = 0x0000,
1372 .sysc_offs = 0x0010,
1373 .syss_offs = 0x0014,
1374 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Avinash.H.Md73d65f2011-03-03 14:22:46 -07001375 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
1376 SYSS_HAS_RESET_STATUS),
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001377 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1378 .sysc_fields = &omap_hwmod_sysc_type1,
1379};
1380
1381/*
1382 * 'gpio' class
1383 * general purpose io module
1384 */
1385static struct omap_hwmod_class omap243x_gpio_hwmod_class = {
1386 .name = "gpio",
1387 .sysc = &omap243x_gpio_sysc,
1388 .rev = 0,
1389};
1390
1391/* gpio1 */
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001392static struct omap_hwmod_ocp_if *omap2430_gpio1_slaves[] = {
1393 &omap2430_l4_wkup__gpio1,
1394};
1395
1396static struct omap_hwmod omap2430_gpio1_hwmod = {
1397 .name = "gpio1",
Avinash.H.Mf95440c2011-04-05 21:10:15 +05301398 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley0d619a82011-07-09 19:14:07 -06001399 .mpu_irqs = omap2_gpio1_irqs,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001400 .main_clk = "gpios_fck",
1401 .prcm = {
1402 .omap2 = {
1403 .prcm_reg_id = 1,
1404 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1405 .module_offs = WKUP_MOD,
1406 .idlest_reg_id = 1,
1407 .idlest_idle_bit = OMAP24XX_EN_GPIOS_SHIFT,
1408 },
1409 },
1410 .slaves = omap2430_gpio1_slaves,
1411 .slaves_cnt = ARRAY_SIZE(omap2430_gpio1_slaves),
1412 .class = &omap243x_gpio_hwmod_class,
1413 .dev_attr = &gpio_dev_attr,
1414 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1415};
1416
1417/* gpio2 */
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001418static struct omap_hwmod_ocp_if *omap2430_gpio2_slaves[] = {
1419 &omap2430_l4_wkup__gpio2,
1420};
1421
1422static struct omap_hwmod omap2430_gpio2_hwmod = {
1423 .name = "gpio2",
Avinash.H.Mf95440c2011-04-05 21:10:15 +05301424 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley0d619a82011-07-09 19:14:07 -06001425 .mpu_irqs = omap2_gpio2_irqs,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001426 .main_clk = "gpios_fck",
1427 .prcm = {
1428 .omap2 = {
1429 .prcm_reg_id = 1,
1430 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1431 .module_offs = WKUP_MOD,
1432 .idlest_reg_id = 1,
1433 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1434 },
1435 },
1436 .slaves = omap2430_gpio2_slaves,
1437 .slaves_cnt = ARRAY_SIZE(omap2430_gpio2_slaves),
1438 .class = &omap243x_gpio_hwmod_class,
1439 .dev_attr = &gpio_dev_attr,
1440 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1441};
1442
1443/* gpio3 */
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001444static struct omap_hwmod_ocp_if *omap2430_gpio3_slaves[] = {
1445 &omap2430_l4_wkup__gpio3,
1446};
1447
1448static struct omap_hwmod omap2430_gpio3_hwmod = {
1449 .name = "gpio3",
Avinash.H.Mf95440c2011-04-05 21:10:15 +05301450 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley0d619a82011-07-09 19:14:07 -06001451 .mpu_irqs = omap2_gpio3_irqs,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001452 .main_clk = "gpios_fck",
1453 .prcm = {
1454 .omap2 = {
1455 .prcm_reg_id = 1,
1456 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1457 .module_offs = WKUP_MOD,
1458 .idlest_reg_id = 1,
1459 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1460 },
1461 },
1462 .slaves = omap2430_gpio3_slaves,
1463 .slaves_cnt = ARRAY_SIZE(omap2430_gpio3_slaves),
1464 .class = &omap243x_gpio_hwmod_class,
1465 .dev_attr = &gpio_dev_attr,
1466 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1467};
1468
1469/* gpio4 */
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001470static struct omap_hwmod_ocp_if *omap2430_gpio4_slaves[] = {
1471 &omap2430_l4_wkup__gpio4,
1472};
1473
1474static struct omap_hwmod omap2430_gpio4_hwmod = {
1475 .name = "gpio4",
Avinash.H.Mf95440c2011-04-05 21:10:15 +05301476 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley0d619a82011-07-09 19:14:07 -06001477 .mpu_irqs = omap2_gpio4_irqs,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001478 .main_clk = "gpios_fck",
1479 .prcm = {
1480 .omap2 = {
1481 .prcm_reg_id = 1,
1482 .module_bit = OMAP24XX_EN_GPIOS_SHIFT,
1483 .module_offs = WKUP_MOD,
1484 .idlest_reg_id = 1,
1485 .idlest_idle_bit = OMAP24XX_ST_GPIOS_SHIFT,
1486 },
1487 },
1488 .slaves = omap2430_gpio4_slaves,
1489 .slaves_cnt = ARRAY_SIZE(omap2430_gpio4_slaves),
1490 .class = &omap243x_gpio_hwmod_class,
1491 .dev_attr = &gpio_dev_attr,
1492 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1493};
1494
1495/* gpio5 */
1496static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
1497 { .irq = 33 }, /* INT_24XX_GPIO_BANK5 */
Paul Walmsley212738a2011-07-09 19:14:06 -06001498 { .irq = -1 }
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001499};
1500
1501static struct omap_hwmod_ocp_if *omap2430_gpio5_slaves[] = {
1502 &omap2430_l4_core__gpio5,
1503};
1504
1505static struct omap_hwmod omap2430_gpio5_hwmod = {
1506 .name = "gpio5",
Avinash.H.Mf95440c2011-04-05 21:10:15 +05301507 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001508 .mpu_irqs = omap243x_gpio5_irqs,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08001509 .main_clk = "gpio5_fck",
1510 .prcm = {
1511 .omap2 = {
1512 .prcm_reg_id = 2,
1513 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
1514 .module_offs = CORE_MOD,
1515 .idlest_reg_id = 2,
1516 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
1517 },
1518 },
1519 .slaves = omap2430_gpio5_slaves,
1520 .slaves_cnt = ARRAY_SIZE(omap2430_gpio5_slaves),
1521 .class = &omap243x_gpio_hwmod_class,
1522 .dev_attr = &gpio_dev_attr,
1523 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1524};
1525
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -08001526/* dma_system */
1527static struct omap_hwmod_class_sysconfig omap2430_dma_sysc = {
1528 .rev_offs = 0x0000,
1529 .sysc_offs = 0x002c,
1530 .syss_offs = 0x0028,
1531 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_MIDLEMODE |
1532 SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_EMUFREE |
Avinash.H.Md73d65f2011-03-03 14:22:46 -07001533 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -08001534 .idlemodes = (MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1535 .sysc_fields = &omap_hwmod_sysc_type1,
1536};
1537
1538static struct omap_hwmod_class omap2430_dma_hwmod_class = {
1539 .name = "dma",
1540 .sysc = &omap2430_dma_sysc,
1541};
1542
1543/* dma attributes */
1544static struct omap_dma_dev_attr dma_dev_attr = {
1545 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1546 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1547 .lch_count = 32,
1548};
1549
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -08001550/* dma_system -> L3 */
1551static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
1552 .master = &omap2430_dma_system_hwmod,
1553 .slave = &omap2430_l3_main_hwmod,
1554 .clk = "core_l3_ck",
1555 .user = OCP_USER_MPU | OCP_USER_SDMA,
1556};
1557
1558/* dma_system master ports */
1559static struct omap_hwmod_ocp_if *omap2430_dma_system_masters[] = {
1560 &omap2430_dma_system__l3,
1561};
1562
1563/* l4_core -> dma_system */
1564static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
1565 .master = &omap2430_l4_core_hwmod,
1566 .slave = &omap2430_dma_system_hwmod,
1567 .clk = "sdma_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -06001568 .addr = omap2_dma_system_addrs,
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -08001569 .user = OCP_USER_MPU | OCP_USER_SDMA,
1570};
1571
1572/* dma_system slave ports */
1573static struct omap_hwmod_ocp_if *omap2430_dma_system_slaves[] = {
1574 &omap2430_l4_core__dma_system,
1575};
1576
1577static struct omap_hwmod omap2430_dma_system_hwmod = {
1578 .name = "dma",
1579 .class = &omap2430_dma_hwmod_class,
Paul Walmsley0d619a82011-07-09 19:14:07 -06001580 .mpu_irqs = omap2_dma_system_irqs,
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -08001581 .main_clk = "core_l3_ck",
1582 .slaves = omap2430_dma_system_slaves,
1583 .slaves_cnt = ARRAY_SIZE(omap2430_dma_system_slaves),
1584 .masters = omap2430_dma_system_masters,
1585 .masters_cnt = ARRAY_SIZE(omap2430_dma_system_masters),
1586 .dev_attr = &dma_dev_attr,
1587 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1588 .flags = HWMOD_NO_IDLEST,
1589};
1590
Charulatha V7f904c72011-02-17 09:53:10 -08001591/*
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -08001592 * 'mailbox' class
1593 * mailbox module allowing communication between the on-chip processors
1594 * using a queued mailbox-interrupt mechanism.
1595 */
1596
1597static struct omap_hwmod_class_sysconfig omap2430_mailbox_sysc = {
1598 .rev_offs = 0x000,
1599 .sysc_offs = 0x010,
1600 .syss_offs = 0x014,
1601 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1602 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1603 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1604 .sysc_fields = &omap_hwmod_sysc_type1,
1605};
1606
1607static struct omap_hwmod_class omap2430_mailbox_hwmod_class = {
1608 .name = "mailbox",
1609 .sysc = &omap2430_mailbox_sysc,
1610};
1611
1612/* mailbox */
1613static struct omap_hwmod omap2430_mailbox_hwmod;
1614static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
1615 { .irq = 26 },
Paul Walmsley212738a2011-07-09 19:14:06 -06001616 { .irq = -1 }
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -08001617};
1618
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -08001619/* l4_core -> mailbox */
1620static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
1621 .master = &omap2430_l4_core_hwmod,
1622 .slave = &omap2430_mailbox_hwmod,
Paul Walmsleyded11382011-07-09 19:14:06 -06001623 .addr = omap2_mailbox_addrs,
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -08001624 .user = OCP_USER_MPU | OCP_USER_SDMA,
1625};
1626
1627/* mailbox slave ports */
1628static struct omap_hwmod_ocp_if *omap2430_mailbox_slaves[] = {
1629 &omap2430_l4_core__mailbox,
1630};
1631
1632static struct omap_hwmod omap2430_mailbox_hwmod = {
1633 .name = "mailbox",
1634 .class = &omap2430_mailbox_hwmod_class,
1635 .mpu_irqs = omap2430_mailbox_irqs,
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -08001636 .main_clk = "mailboxes_ick",
1637 .prcm = {
1638 .omap2 = {
1639 .prcm_reg_id = 1,
1640 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
1641 .module_offs = CORE_MOD,
1642 .idlest_reg_id = 1,
1643 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
1644 },
1645 },
1646 .slaves = omap2430_mailbox_slaves,
1647 .slaves_cnt = ARRAY_SIZE(omap2430_mailbox_slaves),
1648 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1649};
1650
1651/*
Charulatha V7f904c72011-02-17 09:53:10 -08001652 * 'mcspi' class
1653 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1654 * bus
1655 */
1656
1657static struct omap_hwmod_class_sysconfig omap2430_mcspi_sysc = {
1658 .rev_offs = 0x0000,
1659 .sysc_offs = 0x0010,
1660 .syss_offs = 0x0014,
1661 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1662 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1663 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
1664 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1665 .sysc_fields = &omap_hwmod_sysc_type1,
1666};
1667
1668static struct omap_hwmod_class omap2430_mcspi_class = {
1669 .name = "mcspi",
1670 .sysc = &omap2430_mcspi_sysc,
1671 .rev = OMAP2_MCSPI_REV,
1672};
1673
1674/* mcspi1 */
Charulatha V7f904c72011-02-17 09:53:10 -08001675static struct omap_hwmod_ocp_if *omap2430_mcspi1_slaves[] = {
1676 &omap2430_l4_core__mcspi1,
1677};
1678
1679static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = {
1680 .num_chipselect = 4,
1681};
1682
1683static struct omap_hwmod omap2430_mcspi1_hwmod = {
1684 .name = "mcspi1_hwmod",
Paul Walmsley0d619a82011-07-09 19:14:07 -06001685 .mpu_irqs = omap2_mcspi1_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -06001686 .sdma_reqs = omap2_mcspi1_sdma_reqs,
Charulatha V7f904c72011-02-17 09:53:10 -08001687 .main_clk = "mcspi1_fck",
1688 .prcm = {
1689 .omap2 = {
1690 .module_offs = CORE_MOD,
1691 .prcm_reg_id = 1,
1692 .module_bit = OMAP24XX_EN_MCSPI1_SHIFT,
1693 .idlest_reg_id = 1,
1694 .idlest_idle_bit = OMAP24XX_ST_MCSPI1_SHIFT,
1695 },
1696 },
1697 .slaves = omap2430_mcspi1_slaves,
1698 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi1_slaves),
1699 .class = &omap2430_mcspi_class,
1700 .dev_attr = &omap_mcspi1_dev_attr,
1701 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1702};
1703
1704/* mcspi2 */
Charulatha V7f904c72011-02-17 09:53:10 -08001705static struct omap_hwmod_ocp_if *omap2430_mcspi2_slaves[] = {
1706 &omap2430_l4_core__mcspi2,
1707};
1708
1709static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = {
1710 .num_chipselect = 2,
1711};
1712
1713static struct omap_hwmod omap2430_mcspi2_hwmod = {
1714 .name = "mcspi2_hwmod",
Paul Walmsley0d619a82011-07-09 19:14:07 -06001715 .mpu_irqs = omap2_mcspi2_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -06001716 .sdma_reqs = omap2_mcspi2_sdma_reqs,
Charulatha V7f904c72011-02-17 09:53:10 -08001717 .main_clk = "mcspi2_fck",
1718 .prcm = {
1719 .omap2 = {
1720 .module_offs = CORE_MOD,
1721 .prcm_reg_id = 1,
1722 .module_bit = OMAP24XX_EN_MCSPI2_SHIFT,
1723 .idlest_reg_id = 1,
1724 .idlest_idle_bit = OMAP24XX_ST_MCSPI2_SHIFT,
1725 },
1726 },
1727 .slaves = omap2430_mcspi2_slaves,
1728 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi2_slaves),
1729 .class = &omap2430_mcspi_class,
1730 .dev_attr = &omap_mcspi2_dev_attr,
1731 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1732};
1733
1734/* mcspi3 */
1735static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
1736 { .irq = 91 },
Paul Walmsley212738a2011-07-09 19:14:06 -06001737 { .irq = -1 }
Charulatha V7f904c72011-02-17 09:53:10 -08001738};
1739
1740static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
1741 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
1742 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
1743 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
1744 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
Paul Walmsleybc614952011-07-09 19:14:07 -06001745 { .dma_req = -1 }
Charulatha V7f904c72011-02-17 09:53:10 -08001746};
1747
1748static struct omap_hwmod_ocp_if *omap2430_mcspi3_slaves[] = {
1749 &omap2430_l4_core__mcspi3,
1750};
1751
1752static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
1753 .num_chipselect = 2,
1754};
1755
1756static struct omap_hwmod omap2430_mcspi3_hwmod = {
1757 .name = "mcspi3_hwmod",
1758 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
Charulatha V7f904c72011-02-17 09:53:10 -08001759 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
Charulatha V7f904c72011-02-17 09:53:10 -08001760 .main_clk = "mcspi3_fck",
1761 .prcm = {
1762 .omap2 = {
1763 .module_offs = CORE_MOD,
1764 .prcm_reg_id = 2,
1765 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
1766 .idlest_reg_id = 2,
1767 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
1768 },
1769 },
1770 .slaves = omap2430_mcspi3_slaves,
1771 .slaves_cnt = ARRAY_SIZE(omap2430_mcspi3_slaves),
1772 .class = &omap2430_mcspi_class,
1773 .dev_attr = &omap_mcspi3_dev_attr,
1774 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1775};
1776
Tony Lindgren04aa67d2011-02-22 10:54:12 -08001777/*
Hema HK44d02ac2011-02-17 12:07:17 +05301778 * usbhsotg
1779 */
1780static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
1781 .rev_offs = 0x0400,
1782 .sysc_offs = 0x0404,
1783 .syss_offs = 0x0408,
1784 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
1785 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
1786 SYSC_HAS_AUTOIDLE),
1787 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1788 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1789 .sysc_fields = &omap_hwmod_sysc_type1,
1790};
1791
1792static struct omap_hwmod_class usbotg_class = {
1793 .name = "usbotg",
1794 .sysc = &omap2430_usbhsotg_sysc,
1795};
1796
1797/* usb_otg_hs */
1798static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
1799
1800 { .name = "mc", .irq = 92 },
1801 { .name = "dma", .irq = 93 },
Paul Walmsley212738a2011-07-09 19:14:06 -06001802 { .irq = -1 }
Hema HK44d02ac2011-02-17 12:07:17 +05301803};
1804
1805static struct omap_hwmod omap2430_usbhsotg_hwmod = {
1806 .name = "usb_otg_hs",
1807 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
Hema HK44d02ac2011-02-17 12:07:17 +05301808 .main_clk = "usbhs_ick",
1809 .prcm = {
1810 .omap2 = {
1811 .prcm_reg_id = 1,
1812 .module_bit = OMAP2430_EN_USBHS_MASK,
1813 .module_offs = CORE_MOD,
1814 .idlest_reg_id = 1,
1815 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
1816 },
1817 },
1818 .masters = omap2430_usbhsotg_masters,
1819 .masters_cnt = ARRAY_SIZE(omap2430_usbhsotg_masters),
1820 .slaves = omap2430_usbhsotg_slaves,
1821 .slaves_cnt = ARRAY_SIZE(omap2430_usbhsotg_slaves),
1822 .class = &usbotg_class,
1823 /*
1824 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
1825 * broken when autoidle is enabled
1826 * workaround is to disable the autoidle bit at module level.
1827 */
1828 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
1829 | HWMOD_SWSUP_MSTANDBY,
1830 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
1831};
1832
Charulatha V37801b32011-02-24 12:51:46 -08001833/*
1834 * 'mcbsp' class
1835 * multi channel buffered serial port controller
1836 */
Tony Lindgren04aa67d2011-02-22 10:54:12 -08001837
Charulatha V37801b32011-02-24 12:51:46 -08001838static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
1839 .rev_offs = 0x007C,
1840 .sysc_offs = 0x008C,
1841 .sysc_flags = (SYSC_HAS_SOFTRESET),
1842 .sysc_fields = &omap_hwmod_sysc_type1,
1843};
1844
1845static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
1846 .name = "mcbsp",
1847 .sysc = &omap2430_mcbsp_sysc,
1848 .rev = MCBSP_CONFIG_TYPE2,
1849};
1850
1851/* mcbsp1 */
1852static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
1853 { .name = "tx", .irq = 59 },
1854 { .name = "rx", .irq = 60 },
1855 { .name = "ovr", .irq = 61 },
1856 { .name = "common", .irq = 64 },
Paul Walmsley212738a2011-07-09 19:14:06 -06001857 { .irq = -1 }
Charulatha V37801b32011-02-24 12:51:46 -08001858};
1859
Charulatha V37801b32011-02-24 12:51:46 -08001860/* l4_core -> mcbsp1 */
1861static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
1862 .master = &omap2430_l4_core_hwmod,
1863 .slave = &omap2430_mcbsp1_hwmod,
1864 .clk = "mcbsp1_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -06001865 .addr = omap2_mcbsp1_addrs,
Charulatha V37801b32011-02-24 12:51:46 -08001866 .user = OCP_USER_MPU | OCP_USER_SDMA,
1867};
1868
1869/* mcbsp1 slave ports */
1870static struct omap_hwmod_ocp_if *omap2430_mcbsp1_slaves[] = {
1871 &omap2430_l4_core__mcbsp1,
1872};
1873
1874static struct omap_hwmod omap2430_mcbsp1_hwmod = {
1875 .name = "mcbsp1",
1876 .class = &omap2430_mcbsp_hwmod_class,
1877 .mpu_irqs = omap2430_mcbsp1_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -06001878 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
Charulatha V37801b32011-02-24 12:51:46 -08001879 .main_clk = "mcbsp1_fck",
1880 .prcm = {
1881 .omap2 = {
1882 .prcm_reg_id = 1,
1883 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
1884 .module_offs = CORE_MOD,
1885 .idlest_reg_id = 1,
1886 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
1887 },
1888 },
1889 .slaves = omap2430_mcbsp1_slaves,
1890 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp1_slaves),
1891 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1892};
1893
1894/* mcbsp2 */
1895static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
1896 { .name = "tx", .irq = 62 },
1897 { .name = "rx", .irq = 63 },
1898 { .name = "common", .irq = 16 },
Paul Walmsley212738a2011-07-09 19:14:06 -06001899 { .irq = -1 }
Charulatha V37801b32011-02-24 12:51:46 -08001900};
1901
Charulatha V37801b32011-02-24 12:51:46 -08001902/* l4_core -> mcbsp2 */
1903static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
1904 .master = &omap2430_l4_core_hwmod,
1905 .slave = &omap2430_mcbsp2_hwmod,
1906 .clk = "mcbsp2_ick",
Paul Walmsleyded11382011-07-09 19:14:06 -06001907 .addr = omap2xxx_mcbsp2_addrs,
Charulatha V37801b32011-02-24 12:51:46 -08001908 .user = OCP_USER_MPU | OCP_USER_SDMA,
1909};
1910
1911/* mcbsp2 slave ports */
1912static struct omap_hwmod_ocp_if *omap2430_mcbsp2_slaves[] = {
1913 &omap2430_l4_core__mcbsp2,
1914};
1915
1916static struct omap_hwmod omap2430_mcbsp2_hwmod = {
1917 .name = "mcbsp2",
1918 .class = &omap2430_mcbsp_hwmod_class,
1919 .mpu_irqs = omap2430_mcbsp2_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -06001920 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
Charulatha V37801b32011-02-24 12:51:46 -08001921 .main_clk = "mcbsp2_fck",
1922 .prcm = {
1923 .omap2 = {
1924 .prcm_reg_id = 1,
1925 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
1926 .module_offs = CORE_MOD,
1927 .idlest_reg_id = 1,
1928 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
1929 },
1930 },
1931 .slaves = omap2430_mcbsp2_slaves,
1932 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp2_slaves),
1933 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1934};
1935
1936/* mcbsp3 */
1937static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
1938 { .name = "tx", .irq = 89 },
1939 { .name = "rx", .irq = 90 },
1940 { .name = "common", .irq = 17 },
Paul Walmsley212738a2011-07-09 19:14:06 -06001941 { .irq = -1 }
Charulatha V37801b32011-02-24 12:51:46 -08001942};
1943
Charulatha V37801b32011-02-24 12:51:46 -08001944static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
1945 {
1946 .name = "mpu",
1947 .pa_start = 0x4808C000,
1948 .pa_end = 0x4808C0ff,
1949 .flags = ADDR_TYPE_RT
1950 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001951 { }
Charulatha V37801b32011-02-24 12:51:46 -08001952};
1953
1954/* l4_core -> mcbsp3 */
1955static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
1956 .master = &omap2430_l4_core_hwmod,
1957 .slave = &omap2430_mcbsp3_hwmod,
1958 .clk = "mcbsp3_ick",
1959 .addr = omap2430_mcbsp3_addrs,
Charulatha V37801b32011-02-24 12:51:46 -08001960 .user = OCP_USER_MPU | OCP_USER_SDMA,
1961};
1962
1963/* mcbsp3 slave ports */
1964static struct omap_hwmod_ocp_if *omap2430_mcbsp3_slaves[] = {
1965 &omap2430_l4_core__mcbsp3,
1966};
1967
1968static struct omap_hwmod omap2430_mcbsp3_hwmod = {
1969 .name = "mcbsp3",
1970 .class = &omap2430_mcbsp_hwmod_class,
1971 .mpu_irqs = omap2430_mcbsp3_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -06001972 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
Charulatha V37801b32011-02-24 12:51:46 -08001973 .main_clk = "mcbsp3_fck",
1974 .prcm = {
1975 .omap2 = {
1976 .prcm_reg_id = 1,
1977 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
1978 .module_offs = CORE_MOD,
1979 .idlest_reg_id = 2,
1980 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
1981 },
1982 },
1983 .slaves = omap2430_mcbsp3_slaves,
1984 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp3_slaves),
1985 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
1986};
1987
1988/* mcbsp4 */
1989static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
1990 { .name = "tx", .irq = 54 },
1991 { .name = "rx", .irq = 55 },
1992 { .name = "common", .irq = 18 },
Paul Walmsley212738a2011-07-09 19:14:06 -06001993 { .irq = -1 }
Charulatha V37801b32011-02-24 12:51:46 -08001994};
1995
1996static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
1997 { .name = "rx", .dma_req = 20 },
1998 { .name = "tx", .dma_req = 19 },
Paul Walmsleybc614952011-07-09 19:14:07 -06001999 { .dma_req = -1 }
Charulatha V37801b32011-02-24 12:51:46 -08002000};
2001
2002static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
2003 {
2004 .name = "mpu",
2005 .pa_start = 0x4808E000,
2006 .pa_end = 0x4808E0ff,
2007 .flags = ADDR_TYPE_RT
2008 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002009 { }
Charulatha V37801b32011-02-24 12:51:46 -08002010};
2011
2012/* l4_core -> mcbsp4 */
2013static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
2014 .master = &omap2430_l4_core_hwmod,
2015 .slave = &omap2430_mcbsp4_hwmod,
2016 .clk = "mcbsp4_ick",
2017 .addr = omap2430_mcbsp4_addrs,
Charulatha V37801b32011-02-24 12:51:46 -08002018 .user = OCP_USER_MPU | OCP_USER_SDMA,
2019};
2020
2021/* mcbsp4 slave ports */
2022static struct omap_hwmod_ocp_if *omap2430_mcbsp4_slaves[] = {
2023 &omap2430_l4_core__mcbsp4,
2024};
2025
2026static struct omap_hwmod omap2430_mcbsp4_hwmod = {
2027 .name = "mcbsp4",
2028 .class = &omap2430_mcbsp_hwmod_class,
2029 .mpu_irqs = omap2430_mcbsp4_irqs,
Charulatha V37801b32011-02-24 12:51:46 -08002030 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
Charulatha V37801b32011-02-24 12:51:46 -08002031 .main_clk = "mcbsp4_fck",
2032 .prcm = {
2033 .omap2 = {
2034 .prcm_reg_id = 1,
2035 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
2036 .module_offs = CORE_MOD,
2037 .idlest_reg_id = 2,
2038 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
2039 },
2040 },
2041 .slaves = omap2430_mcbsp4_slaves,
2042 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp4_slaves),
2043 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2044};
2045
2046/* mcbsp5 */
2047static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
2048 { .name = "tx", .irq = 81 },
2049 { .name = "rx", .irq = 82 },
2050 { .name = "common", .irq = 19 },
Paul Walmsley212738a2011-07-09 19:14:06 -06002051 { .irq = -1 }
Charulatha V37801b32011-02-24 12:51:46 -08002052};
2053
2054static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
2055 { .name = "rx", .dma_req = 22 },
2056 { .name = "tx", .dma_req = 21 },
Paul Walmsleybc614952011-07-09 19:14:07 -06002057 { .dma_req = -1 }
Charulatha V37801b32011-02-24 12:51:46 -08002058};
2059
2060static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
2061 {
2062 .name = "mpu",
2063 .pa_start = 0x48096000,
2064 .pa_end = 0x480960ff,
2065 .flags = ADDR_TYPE_RT
2066 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002067 { }
Charulatha V37801b32011-02-24 12:51:46 -08002068};
2069
2070/* l4_core -> mcbsp5 */
2071static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
2072 .master = &omap2430_l4_core_hwmod,
2073 .slave = &omap2430_mcbsp5_hwmod,
2074 .clk = "mcbsp5_ick",
2075 .addr = omap2430_mcbsp5_addrs,
Charulatha V37801b32011-02-24 12:51:46 -08002076 .user = OCP_USER_MPU | OCP_USER_SDMA,
2077};
2078
2079/* mcbsp5 slave ports */
2080static struct omap_hwmod_ocp_if *omap2430_mcbsp5_slaves[] = {
2081 &omap2430_l4_core__mcbsp5,
2082};
2083
2084static struct omap_hwmod omap2430_mcbsp5_hwmod = {
2085 .name = "mcbsp5",
2086 .class = &omap2430_mcbsp_hwmod_class,
2087 .mpu_irqs = omap2430_mcbsp5_irqs,
Charulatha V37801b32011-02-24 12:51:46 -08002088 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
Charulatha V37801b32011-02-24 12:51:46 -08002089 .main_clk = "mcbsp5_fck",
2090 .prcm = {
2091 .omap2 = {
2092 .prcm_reg_id = 1,
2093 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
2094 .module_offs = CORE_MOD,
2095 .idlest_reg_id = 2,
2096 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
2097 },
2098 },
2099 .slaves = omap2430_mcbsp5_slaves,
2100 .slaves_cnt = ARRAY_SIZE(omap2430_mcbsp5_slaves),
2101 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2102};
Tony Lindgren04aa67d2011-02-22 10:54:12 -08002103
Paul Walmsleybce06f32011-03-01 13:12:55 -08002104/* MMC/SD/SDIO common */
2105
2106static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
2107 .rev_offs = 0x1fc,
2108 .sysc_offs = 0x10,
2109 .syss_offs = 0x14,
2110 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2111 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2112 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
2113 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2114 .sysc_fields = &omap_hwmod_sysc_type1,
2115};
2116
2117static struct omap_hwmod_class omap2430_mmc_class = {
2118 .name = "mmc",
2119 .sysc = &omap2430_mmc_sysc,
2120};
2121
2122/* MMC/SD/SDIO1 */
2123
2124static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
2125 { .irq = 83 },
Paul Walmsley212738a2011-07-09 19:14:06 -06002126 { .irq = -1 }
Paul Walmsleybce06f32011-03-01 13:12:55 -08002127};
2128
2129static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
2130 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
2131 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
Paul Walmsleybc614952011-07-09 19:14:07 -06002132 { .dma_req = -1 }
Paul Walmsleybce06f32011-03-01 13:12:55 -08002133};
2134
2135static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
2136 { .role = "dbck", .clk = "mmchsdb1_fck" },
2137};
2138
2139static struct omap_hwmod_ocp_if *omap2430_mmc1_slaves[] = {
2140 &omap2430_l4_core__mmc1,
2141};
2142
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08002143static struct omap_mmc_dev_attr mmc1_dev_attr = {
2144 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2145};
2146
Paul Walmsleybce06f32011-03-01 13:12:55 -08002147static struct omap_hwmod omap2430_mmc1_hwmod = {
2148 .name = "mmc1",
2149 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2150 .mpu_irqs = omap2430_mmc1_mpu_irqs,
Paul Walmsleybce06f32011-03-01 13:12:55 -08002151 .sdma_reqs = omap2430_mmc1_sdma_reqs,
Paul Walmsleybce06f32011-03-01 13:12:55 -08002152 .opt_clks = omap2430_mmc1_opt_clks,
2153 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
2154 .main_clk = "mmchs1_fck",
2155 .prcm = {
2156 .omap2 = {
2157 .module_offs = CORE_MOD,
2158 .prcm_reg_id = 2,
2159 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
2160 .idlest_reg_id = 2,
2161 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
2162 },
2163 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08002164 .dev_attr = &mmc1_dev_attr,
Paul Walmsleybce06f32011-03-01 13:12:55 -08002165 .slaves = omap2430_mmc1_slaves,
2166 .slaves_cnt = ARRAY_SIZE(omap2430_mmc1_slaves),
2167 .class = &omap2430_mmc_class,
2168 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2169};
2170
2171/* MMC/SD/SDIO2 */
2172
2173static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
2174 { .irq = 86 },
Paul Walmsley212738a2011-07-09 19:14:06 -06002175 { .irq = -1 }
Paul Walmsleybce06f32011-03-01 13:12:55 -08002176};
2177
2178static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
2179 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
2180 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
Paul Walmsleybc614952011-07-09 19:14:07 -06002181 { .dma_req = -1 }
Paul Walmsleybce06f32011-03-01 13:12:55 -08002182};
2183
2184static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
2185 { .role = "dbck", .clk = "mmchsdb2_fck" },
2186};
2187
2188static struct omap_hwmod_ocp_if *omap2430_mmc2_slaves[] = {
2189 &omap2430_l4_core__mmc2,
2190};
2191
2192static struct omap_hwmod omap2430_mmc2_hwmod = {
2193 .name = "mmc2",
2194 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
2195 .mpu_irqs = omap2430_mmc2_mpu_irqs,
Paul Walmsleybce06f32011-03-01 13:12:55 -08002196 .sdma_reqs = omap2430_mmc2_sdma_reqs,
Paul Walmsleybce06f32011-03-01 13:12:55 -08002197 .opt_clks = omap2430_mmc2_opt_clks,
2198 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
2199 .main_clk = "mmchs2_fck",
2200 .prcm = {
2201 .omap2 = {
2202 .module_offs = CORE_MOD,
2203 .prcm_reg_id = 2,
2204 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
2205 .idlest_reg_id = 2,
2206 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
2207 },
2208 },
2209 .slaves = omap2430_mmc2_slaves,
2210 .slaves_cnt = ARRAY_SIZE(omap2430_mmc2_slaves),
2211 .class = &omap2430_mmc_class,
2212 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
2213};
Paul Walmsley02bfc032009-09-03 20:14:05 +03002214
2215static __initdata struct omap_hwmod *omap2430_hwmods[] = {
Kevin Hilman4a7cf902010-07-26 16:34:32 -06002216 &omap2430_l3_main_hwmod,
Paul Walmsley02bfc032009-09-03 20:14:05 +03002217 &omap2430_l4_core_hwmod,
2218 &omap2430_l4_wkup_hwmod,
2219 &omap2430_mpu_hwmod,
Paul Walmsley08072ac2010-07-26 16:34:33 -06002220 &omap2430_iva_hwmod,
Thara Gopinathb6b58222011-02-23 00:14:05 -07002221
2222 &omap2430_timer1_hwmod,
2223 &omap2430_timer2_hwmod,
2224 &omap2430_timer3_hwmod,
2225 &omap2430_timer4_hwmod,
2226 &omap2430_timer5_hwmod,
2227 &omap2430_timer6_hwmod,
2228 &omap2430_timer7_hwmod,
2229 &omap2430_timer8_hwmod,
2230 &omap2430_timer9_hwmod,
2231 &omap2430_timer10_hwmod,
2232 &omap2430_timer11_hwmod,
2233 &omap2430_timer12_hwmod,
2234
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +05302235 &omap2430_wd_timer2_hwmod,
Kevin Hilman046465b2010-09-27 20:19:30 +05302236 &omap2430_uart1_hwmod,
2237 &omap2430_uart2_hwmod,
2238 &omap2430_uart3_hwmod,
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +02002239 /* dss class */
2240 &omap2430_dss_core_hwmod,
2241 &omap2430_dss_dispc_hwmod,
2242 &omap2430_dss_rfbi_hwmod,
2243 &omap2430_dss_venc_hwmod,
2244 /* i2c class */
Paul Walmsley20042902010-09-30 02:40:12 +05302245 &omap2430_i2c1_hwmod,
2246 &omap2430_i2c2_hwmod,
Paul Walmsleybce06f32011-03-01 13:12:55 -08002247 &omap2430_mmc1_hwmod,
2248 &omap2430_mmc2_hwmod,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -08002249
2250 /* gpio class */
2251 &omap2430_gpio1_hwmod,
2252 &omap2430_gpio2_hwmod,
2253 &omap2430_gpio3_hwmod,
2254 &omap2430_gpio4_hwmod,
2255 &omap2430_gpio5_hwmod,
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -08002256
2257 /* dma_system class*/
2258 &omap2430_dma_system_hwmod,
Charulatha V7f904c72011-02-17 09:53:10 -08002259
Charulatha V37801b32011-02-24 12:51:46 -08002260 /* mcbsp class */
2261 &omap2430_mcbsp1_hwmod,
2262 &omap2430_mcbsp2_hwmod,
2263 &omap2430_mcbsp3_hwmod,
2264 &omap2430_mcbsp4_hwmod,
2265 &omap2430_mcbsp5_hwmod,
2266
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -08002267 /* mailbox class */
2268 &omap2430_mailbox_hwmod,
2269
Charulatha V7f904c72011-02-17 09:53:10 -08002270 /* mcspi class */
2271 &omap2430_mcspi1_hwmod,
2272 &omap2430_mcspi2_hwmod,
2273 &omap2430_mcspi3_hwmod,
Tony Lindgren04aa67d2011-02-22 10:54:12 -08002274
Hema HK44d02ac2011-02-17 12:07:17 +05302275 /* usbotg class*/
2276 &omap2430_usbhsotg_hwmod,
Tony Lindgren04aa67d2011-02-22 10:54:12 -08002277
Paul Walmsley02bfc032009-09-03 20:14:05 +03002278 NULL,
2279};
2280
Paul Walmsley73591542010-02-22 22:09:32 -07002281int __init omap2430_hwmod_init(void)
2282{
Paul Walmsley550c8092011-02-28 11:58:14 -07002283 return omap_hwmod_register(omap2430_hwmods);
Paul Walmsley73591542010-02-22 22:09:32 -07002284}