blob: f9f1510817603332292348eedccca1155ac80895 [file] [log] [blame]
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001/*
2 * Hardware modules present on the OMAP44xx chips
3 *
Benoit Coussond63bd742011-01-27 11:17:03 +00004 * Copyright (C) 2009-2011 Texas Instruments, Inc.
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005 * Copyright (C) 2009-2010 Nokia Corporation
6 *
7 * Paul Walmsley
8 * Benoit Cousson
9 *
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License version 2 as
18 * published by the Free Software Foundation.
19 */
20
21#include <linux/io.h>
22
23#include <plat/omap_hwmod.h>
24#include <plat/cpu.h>
Avinash.H.M6d3c55f2011-07-10 05:27:16 -060025#include <plat/i2c.h>
Benoit Cousson9780a9c2010-12-07 16:26:57 -080026#include <plat/gpio.h>
Benoit Cousson531ce0d2010-12-20 18:27:19 -080027#include <plat/dma.h>
Benoit Cousson905a74d2011-02-18 14:01:06 +010028#include <plat/mcspi.h>
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +053029#include <plat/mcbsp.h>
Kishore Kadiyala6ab89462011-03-01 13:12:56 -080030#include <plat/mmc.h>
Andy Green4d4441a2011-07-10 05:27:16 -060031#include <plat/i2c.h>
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +053032#include <plat/dmtimer.h>
Tomi Valkeinen13662dc2011-11-08 03:16:13 -070033#include <plat/common.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020034
35#include "omap_hwmod_common_data.h"
36
Paul Walmsleyd198b512010-12-21 15:30:54 -070037#include "cm1_44xx.h"
38#include "cm2_44xx.h"
39#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020040#include "prm-regbits-44xx.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070041#include "wd_timer.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020042
43/* Base offset for all OMAP4 interrupts external to MPUSS */
44#define OMAP44XX_IRQ_GIC_START 32
45
46/* Base offset for all OMAP4 dma requests */
47#define OMAP44XX_DMA_REQ_START 1
48
49/* Backward references (IPs with Bus Master capability) */
Benoit Cousson407a6882011-02-15 22:39:48 +010050static struct omap_hwmod omap44xx_aess_hwmod;
Benoit Cousson531ce0d2010-12-20 18:27:19 -080051static struct omap_hwmod omap44xx_dma_system_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020052static struct omap_hwmod omap44xx_dmm_hwmod;
Benoit Cousson8f25bdc2010-12-21 21:08:34 -070053static struct omap_hwmod omap44xx_dsp_hwmod;
Benoit Coussond63bd742011-01-27 11:17:03 +000054static struct omap_hwmod omap44xx_dss_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020055static struct omap_hwmod omap44xx_emif_fw_hwmod;
Benoit Cousson407a6882011-02-15 22:39:48 +010056static struct omap_hwmod omap44xx_hsi_hwmod;
57static struct omap_hwmod omap44xx_ipu_hwmod;
58static struct omap_hwmod omap44xx_iss_hwmod;
Benoit Cousson8f25bdc2010-12-21 21:08:34 -070059static struct omap_hwmod omap44xx_iva_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020060static struct omap_hwmod omap44xx_l3_instr_hwmod;
61static struct omap_hwmod omap44xx_l3_main_1_hwmod;
62static struct omap_hwmod omap44xx_l3_main_2_hwmod;
63static struct omap_hwmod omap44xx_l3_main_3_hwmod;
64static struct omap_hwmod omap44xx_l4_abe_hwmod;
65static struct omap_hwmod omap44xx_l4_cfg_hwmod;
66static struct omap_hwmod omap44xx_l4_per_hwmod;
67static struct omap_hwmod omap44xx_l4_wkup_hwmod;
Benoit Cousson407a6882011-02-15 22:39:48 +010068static struct omap_hwmod omap44xx_mmc1_hwmod;
69static struct omap_hwmod omap44xx_mmc2_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020070static struct omap_hwmod omap44xx_mpu_hwmod;
71static struct omap_hwmod omap44xx_mpu_private_hwmod;
Benoit Cousson5844c4e2011-02-17 12:41:05 +000072static struct omap_hwmod omap44xx_usb_otg_hs_hwmod;
Benoit Coussonaf88fa92011-12-15 23:15:18 -070073static struct omap_hwmod omap44xx_usb_host_hs_hwmod;
74static struct omap_hwmod omap44xx_usb_tll_hs_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020075
76/*
77 * Interconnects omap_hwmod structures
78 * hwmods that compose the global OMAP interconnect
79 */
80
81/*
82 * 'dmm' class
83 * instance(s): dmm
84 */
85static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000086 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020087};
88
Benoit Cousson7e69ed92011-07-09 19:14:28 -060089/* dmm */
90static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
91 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
92 { .irq = -1 }
93};
94
Benoit Cousson55d2cb02010-05-12 17:54:36 +020095/* l3_main_1 -> dmm */
96static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
97 .master = &omap44xx_l3_main_1_hwmod,
98 .slave = &omap44xx_dmm_hwmod,
99 .clk = "l3_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -0700100 .user = OCP_USER_SDMA,
101};
102
103static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
104 {
105 .pa_start = 0x4e000000,
106 .pa_end = 0x4e0007ff,
107 .flags = ADDR_TYPE_RT
108 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600109 { }
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200110};
111
112/* mpu -> dmm */
113static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
114 .master = &omap44xx_mpu_hwmod,
115 .slave = &omap44xx_dmm_hwmod,
116 .clk = "l3_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -0700117 .addr = omap44xx_dmm_addrs,
Benoit Cousson659fa822010-12-21 21:08:34 -0700118 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200119};
120
121/* dmm slave ports */
122static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
123 &omap44xx_l3_main_1__dmm,
124 &omap44xx_mpu__dmm,
125};
126
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200127static struct omap_hwmod omap44xx_dmm_hwmod = {
128 .name = "dmm",
129 .class = &omap44xx_dmm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600130 .clkdm_name = "l3_emif_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600131 .prcm = {
132 .omap4 = {
133 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600134 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600135 },
136 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200137 .slaves = omap44xx_dmm_slaves,
138 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
Benoit Coussona5322c62011-07-10 05:56:29 -0600139 .mpu_irqs = omap44xx_dmm_irqs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200140};
141
142/*
143 * 'emif_fw' class
144 * instance(s): emif_fw
145 */
146static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000147 .name = "emif_fw",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200148};
149
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600150/* emif_fw */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200151/* dmm -> emif_fw */
152static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
153 .master = &omap44xx_dmm_hwmod,
154 .slave = &omap44xx_emif_fw_hwmod,
155 .clk = "l3_div_ck",
156 .user = OCP_USER_MPU | OCP_USER_SDMA,
157};
158
Benoit Cousson659fa822010-12-21 21:08:34 -0700159static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
160 {
161 .pa_start = 0x4a20c000,
162 .pa_end = 0x4a20c0ff,
163 .flags = ADDR_TYPE_RT
164 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600165 { }
Benoit Cousson659fa822010-12-21 21:08:34 -0700166};
167
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200168/* l4_cfg -> emif_fw */
169static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
170 .master = &omap44xx_l4_cfg_hwmod,
171 .slave = &omap44xx_emif_fw_hwmod,
172 .clk = "l4_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -0700173 .addr = omap44xx_emif_fw_addrs,
Benoit Cousson659fa822010-12-21 21:08:34 -0700174 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200175};
176
177/* emif_fw slave ports */
178static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
179 &omap44xx_dmm__emif_fw,
180 &omap44xx_l4_cfg__emif_fw,
181};
182
183static struct omap_hwmod omap44xx_emif_fw_hwmod = {
184 .name = "emif_fw",
185 .class = &omap44xx_emif_fw_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600186 .clkdm_name = "l3_emif_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600187 .prcm = {
188 .omap4 = {
189 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_FW_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600190 .context_offs = OMAP4_RM_MEMIF_EMIF_FW_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600191 },
192 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200193 .slaves = omap44xx_emif_fw_slaves,
194 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200195};
196
197/*
198 * 'l3' class
199 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
200 */
201static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000202 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200203};
204
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600205/* l3_instr */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700206/* iva -> l3_instr */
207static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
208 .master = &omap44xx_iva_hwmod,
209 .slave = &omap44xx_l3_instr_hwmod,
210 .clk = "l3_div_ck",
211 .user = OCP_USER_MPU | OCP_USER_SDMA,
212};
213
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200214/* l3_main_3 -> l3_instr */
215static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
216 .master = &omap44xx_l3_main_3_hwmod,
217 .slave = &omap44xx_l3_instr_hwmod,
218 .clk = "l3_div_ck",
219 .user = OCP_USER_MPU | OCP_USER_SDMA,
220};
221
222/* l3_instr slave ports */
223static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700224 &omap44xx_iva__l3_instr,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200225 &omap44xx_l3_main_3__l3_instr,
226};
227
228static struct omap_hwmod omap44xx_l3_instr_hwmod = {
229 .name = "l3_instr",
230 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600231 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600232 .prcm = {
233 .omap4 = {
234 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600235 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600236 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600237 },
238 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200239 .slaves = omap44xx_l3_instr_slaves,
240 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200241};
242
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600243/* l3_main_1 */
Benoit Cousson9b4021b2011-07-09 19:14:27 -0600244static struct omap_hwmod_irq_info omap44xx_l3_main_1_irqs[] = {
245 { .name = "dbg_err", .irq = 9 + OMAP44XX_IRQ_GIC_START },
246 { .name = "app_err", .irq = 10 + OMAP44XX_IRQ_GIC_START },
247 { .irq = -1 }
248};
249
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700250/* dsp -> l3_main_1 */
251static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
252 .master = &omap44xx_dsp_hwmod,
253 .slave = &omap44xx_l3_main_1_hwmod,
254 .clk = "l3_div_ck",
255 .user = OCP_USER_MPU | OCP_USER_SDMA,
256};
257
Benoit Coussond63bd742011-01-27 11:17:03 +0000258/* dss -> l3_main_1 */
259static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
260 .master = &omap44xx_dss_hwmod,
261 .slave = &omap44xx_l3_main_1_hwmod,
262 .clk = "l3_div_ck",
263 .user = OCP_USER_MPU | OCP_USER_SDMA,
264};
265
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200266/* l3_main_2 -> l3_main_1 */
267static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
268 .master = &omap44xx_l3_main_2_hwmod,
269 .slave = &omap44xx_l3_main_1_hwmod,
270 .clk = "l3_div_ck",
271 .user = OCP_USER_MPU | OCP_USER_SDMA,
272};
273
274/* l4_cfg -> l3_main_1 */
275static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
276 .master = &omap44xx_l4_cfg_hwmod,
277 .slave = &omap44xx_l3_main_1_hwmod,
278 .clk = "l4_div_ck",
279 .user = OCP_USER_MPU | OCP_USER_SDMA,
280};
281
Benoit Cousson407a6882011-02-15 22:39:48 +0100282/* mmc1 -> l3_main_1 */
283static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
284 .master = &omap44xx_mmc1_hwmod,
285 .slave = &omap44xx_l3_main_1_hwmod,
286 .clk = "l3_div_ck",
287 .user = OCP_USER_MPU | OCP_USER_SDMA,
288};
289
290/* mmc2 -> l3_main_1 */
291static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
292 .master = &omap44xx_mmc2_hwmod,
293 .slave = &omap44xx_l3_main_1_hwmod,
294 .clk = "l3_div_ck",
295 .user = OCP_USER_MPU | OCP_USER_SDMA,
296};
297
sricharanc4645232011-02-07 21:12:11 +0530298static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = {
299 {
300 .pa_start = 0x44000000,
301 .pa_end = 0x44000fff,
Benoit Cousson9b4021b2011-07-09 19:14:27 -0600302 .flags = ADDR_TYPE_RT
sricharanc4645232011-02-07 21:12:11 +0530303 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600304 { }
sricharanc4645232011-02-07 21:12:11 +0530305};
306
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200307/* mpu -> l3_main_1 */
308static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
309 .master = &omap44xx_mpu_hwmod,
310 .slave = &omap44xx_l3_main_1_hwmod,
311 .clk = "l3_div_ck",
sricharanc4645232011-02-07 21:12:11 +0530312 .addr = omap44xx_l3_main_1_addrs,
Benoit Cousson9b4021b2011-07-09 19:14:27 -0600313 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200314};
315
316/* l3_main_1 slave ports */
317static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700318 &omap44xx_dsp__l3_main_1,
Benoit Coussond63bd742011-01-27 11:17:03 +0000319 &omap44xx_dss__l3_main_1,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200320 &omap44xx_l3_main_2__l3_main_1,
321 &omap44xx_l4_cfg__l3_main_1,
Benoit Cousson407a6882011-02-15 22:39:48 +0100322 &omap44xx_mmc1__l3_main_1,
323 &omap44xx_mmc2__l3_main_1,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200324 &omap44xx_mpu__l3_main_1,
325};
326
327static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
328 .name = "l3_main_1",
329 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600330 .clkdm_name = "l3_1_clkdm",
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600331 .mpu_irqs = omap44xx_l3_main_1_irqs,
Benoit Coussond0f06312011-07-10 05:56:30 -0600332 .prcm = {
333 .omap4 = {
334 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600335 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600336 },
337 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200338 .slaves = omap44xx_l3_main_1_slaves,
339 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200340};
341
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600342/* l3_main_2 */
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000343/* dma_system -> l3_main_2 */
344static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
345 .master = &omap44xx_dma_system_hwmod,
346 .slave = &omap44xx_l3_main_2_hwmod,
347 .clk = "l3_div_ck",
348 .user = OCP_USER_MPU | OCP_USER_SDMA,
349};
350
Benoit Cousson407a6882011-02-15 22:39:48 +0100351/* hsi -> l3_main_2 */
352static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
353 .master = &omap44xx_hsi_hwmod,
354 .slave = &omap44xx_l3_main_2_hwmod,
355 .clk = "l3_div_ck",
356 .user = OCP_USER_MPU | OCP_USER_SDMA,
357};
358
359/* ipu -> l3_main_2 */
360static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
361 .master = &omap44xx_ipu_hwmod,
362 .slave = &omap44xx_l3_main_2_hwmod,
363 .clk = "l3_div_ck",
364 .user = OCP_USER_MPU | OCP_USER_SDMA,
365};
366
367/* iss -> l3_main_2 */
368static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
369 .master = &omap44xx_iss_hwmod,
370 .slave = &omap44xx_l3_main_2_hwmod,
371 .clk = "l3_div_ck",
372 .user = OCP_USER_MPU | OCP_USER_SDMA,
373};
374
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700375/* iva -> l3_main_2 */
376static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
377 .master = &omap44xx_iva_hwmod,
378 .slave = &omap44xx_l3_main_2_hwmod,
379 .clk = "l3_div_ck",
380 .user = OCP_USER_MPU | OCP_USER_SDMA,
381};
382
sricharanc4645232011-02-07 21:12:11 +0530383static struct omap_hwmod_addr_space omap44xx_l3_main_2_addrs[] = {
384 {
385 .pa_start = 0x44800000,
386 .pa_end = 0x44801fff,
Benoit Cousson9b4021b2011-07-09 19:14:27 -0600387 .flags = ADDR_TYPE_RT
sricharanc4645232011-02-07 21:12:11 +0530388 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600389 { }
sricharanc4645232011-02-07 21:12:11 +0530390};
391
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200392/* l3_main_1 -> l3_main_2 */
393static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
394 .master = &omap44xx_l3_main_1_hwmod,
395 .slave = &omap44xx_l3_main_2_hwmod,
396 .clk = "l3_div_ck",
sricharanc4645232011-02-07 21:12:11 +0530397 .addr = omap44xx_l3_main_2_addrs,
Benoit Cousson9b4021b2011-07-09 19:14:27 -0600398 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200399};
400
401/* l4_cfg -> l3_main_2 */
402static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
403 .master = &omap44xx_l4_cfg_hwmod,
404 .slave = &omap44xx_l3_main_2_hwmod,
405 .clk = "l4_div_ck",
406 .user = OCP_USER_MPU | OCP_USER_SDMA,
407};
408
Benoit Cousson5844c4e2011-02-17 12:41:05 +0000409/* usb_otg_hs -> l3_main_2 */
410static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
411 .master = &omap44xx_usb_otg_hs_hwmod,
412 .slave = &omap44xx_l3_main_2_hwmod,
413 .clk = "l3_div_ck",
414 .user = OCP_USER_MPU | OCP_USER_SDMA,
415};
416
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200417/* l3_main_2 slave ports */
418static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
Benoit Cousson531ce0d2010-12-20 18:27:19 -0800419 &omap44xx_dma_system__l3_main_2,
Benoit Cousson407a6882011-02-15 22:39:48 +0100420 &omap44xx_hsi__l3_main_2,
421 &omap44xx_ipu__l3_main_2,
422 &omap44xx_iss__l3_main_2,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700423 &omap44xx_iva__l3_main_2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200424 &omap44xx_l3_main_1__l3_main_2,
425 &omap44xx_l4_cfg__l3_main_2,
Benoit Cousson5844c4e2011-02-17 12:41:05 +0000426 &omap44xx_usb_otg_hs__l3_main_2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200427};
428
429static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
430 .name = "l3_main_2",
431 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600432 .clkdm_name = "l3_2_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600433 .prcm = {
434 .omap4 = {
435 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600436 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600437 },
438 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200439 .slaves = omap44xx_l3_main_2_slaves,
440 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200441};
442
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600443/* l3_main_3 */
sricharanc4645232011-02-07 21:12:11 +0530444static struct omap_hwmod_addr_space omap44xx_l3_main_3_addrs[] = {
445 {
446 .pa_start = 0x45000000,
447 .pa_end = 0x45000fff,
Benoit Cousson9b4021b2011-07-09 19:14:27 -0600448 .flags = ADDR_TYPE_RT
sricharanc4645232011-02-07 21:12:11 +0530449 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600450 { }
sricharanc4645232011-02-07 21:12:11 +0530451};
452
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200453/* l3_main_1 -> l3_main_3 */
454static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
455 .master = &omap44xx_l3_main_1_hwmod,
456 .slave = &omap44xx_l3_main_3_hwmod,
457 .clk = "l3_div_ck",
sricharanc4645232011-02-07 21:12:11 +0530458 .addr = omap44xx_l3_main_3_addrs,
Benoit Cousson9b4021b2011-07-09 19:14:27 -0600459 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200460};
461
462/* l3_main_2 -> l3_main_3 */
463static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
464 .master = &omap44xx_l3_main_2_hwmod,
465 .slave = &omap44xx_l3_main_3_hwmod,
466 .clk = "l3_div_ck",
467 .user = OCP_USER_MPU | OCP_USER_SDMA,
468};
469
470/* l4_cfg -> l3_main_3 */
471static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
472 .master = &omap44xx_l4_cfg_hwmod,
473 .slave = &omap44xx_l3_main_3_hwmod,
474 .clk = "l4_div_ck",
475 .user = OCP_USER_MPU | OCP_USER_SDMA,
476};
477
478/* l3_main_3 slave ports */
479static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
480 &omap44xx_l3_main_1__l3_main_3,
481 &omap44xx_l3_main_2__l3_main_3,
482 &omap44xx_l4_cfg__l3_main_3,
483};
484
485static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
486 .name = "l3_main_3",
487 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600488 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600489 .prcm = {
490 .omap4 = {
491 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600492 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600493 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600494 },
495 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200496 .slaves = omap44xx_l3_main_3_slaves,
497 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200498};
499
500/*
501 * 'l4' class
502 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
503 */
504static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000505 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200506};
507
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600508/* l4_abe */
Benoit Cousson407a6882011-02-15 22:39:48 +0100509/* aess -> l4_abe */
510static struct omap_hwmod_ocp_if omap44xx_aess__l4_abe = {
511 .master = &omap44xx_aess_hwmod,
512 .slave = &omap44xx_l4_abe_hwmod,
513 .clk = "ocp_abe_iclk",
514 .user = OCP_USER_MPU | OCP_USER_SDMA,
515};
516
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700517/* dsp -> l4_abe */
518static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
519 .master = &omap44xx_dsp_hwmod,
520 .slave = &omap44xx_l4_abe_hwmod,
521 .clk = "ocp_abe_iclk",
522 .user = OCP_USER_MPU | OCP_USER_SDMA,
523};
524
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200525/* l3_main_1 -> l4_abe */
526static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
527 .master = &omap44xx_l3_main_1_hwmod,
528 .slave = &omap44xx_l4_abe_hwmod,
529 .clk = "l3_div_ck",
530 .user = OCP_USER_MPU | OCP_USER_SDMA,
531};
532
533/* mpu -> l4_abe */
534static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
535 .master = &omap44xx_mpu_hwmod,
536 .slave = &omap44xx_l4_abe_hwmod,
537 .clk = "ocp_abe_iclk",
538 .user = OCP_USER_MPU | OCP_USER_SDMA,
539};
540
541/* l4_abe slave ports */
542static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100543 &omap44xx_aess__l4_abe,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700544 &omap44xx_dsp__l4_abe,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200545 &omap44xx_l3_main_1__l4_abe,
546 &omap44xx_mpu__l4_abe,
547};
548
549static struct omap_hwmod omap44xx_l4_abe_hwmod = {
550 .name = "l4_abe",
551 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600552 .clkdm_name = "abe_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600553 .prcm = {
554 .omap4 = {
555 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
556 },
557 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200558 .slaves = omap44xx_l4_abe_slaves,
559 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200560};
561
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600562/* l4_cfg */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200563/* l3_main_1 -> l4_cfg */
564static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
565 .master = &omap44xx_l3_main_1_hwmod,
566 .slave = &omap44xx_l4_cfg_hwmod,
567 .clk = "l3_div_ck",
568 .user = OCP_USER_MPU | OCP_USER_SDMA,
569};
570
571/* l4_cfg slave ports */
572static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
573 &omap44xx_l3_main_1__l4_cfg,
574};
575
576static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
577 .name = "l4_cfg",
578 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600579 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600580 .prcm = {
581 .omap4 = {
582 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600583 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600584 },
585 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200586 .slaves = omap44xx_l4_cfg_slaves,
587 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200588};
589
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600590/* l4_per */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200591/* l3_main_2 -> l4_per */
592static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
593 .master = &omap44xx_l3_main_2_hwmod,
594 .slave = &omap44xx_l4_per_hwmod,
595 .clk = "l3_div_ck",
596 .user = OCP_USER_MPU | OCP_USER_SDMA,
597};
598
599/* l4_per slave ports */
600static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
601 &omap44xx_l3_main_2__l4_per,
602};
603
604static struct omap_hwmod omap44xx_l4_per_hwmod = {
605 .name = "l4_per",
606 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600607 .clkdm_name = "l4_per_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600608 .prcm = {
609 .omap4 = {
610 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600611 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600612 },
613 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200614 .slaves = omap44xx_l4_per_slaves,
615 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200616};
617
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600618/* l4_wkup */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200619/* l4_cfg -> l4_wkup */
620static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
621 .master = &omap44xx_l4_cfg_hwmod,
622 .slave = &omap44xx_l4_wkup_hwmod,
623 .clk = "l4_div_ck",
624 .user = OCP_USER_MPU | OCP_USER_SDMA,
625};
626
627/* l4_wkup slave ports */
628static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
629 &omap44xx_l4_cfg__l4_wkup,
630};
631
632static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
633 .name = "l4_wkup",
634 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600635 .clkdm_name = "l4_wkup_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600636 .prcm = {
637 .omap4 = {
638 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600639 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600640 },
641 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200642 .slaves = omap44xx_l4_wkup_slaves,
643 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200644};
645
646/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700647 * 'mpu_bus' class
648 * instance(s): mpu_private
649 */
650static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000651 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700652};
653
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600654/* mpu_private */
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700655/* mpu -> mpu_private */
656static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
657 .master = &omap44xx_mpu_hwmod,
658 .slave = &omap44xx_mpu_private_hwmod,
659 .clk = "l3_div_ck",
660 .user = OCP_USER_MPU | OCP_USER_SDMA,
661};
662
663/* mpu_private slave ports */
664static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
665 &omap44xx_mpu__mpu_private,
666};
667
668static struct omap_hwmod omap44xx_mpu_private_hwmod = {
669 .name = "mpu_private",
670 .class = &omap44xx_mpu_bus_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600671 .clkdm_name = "mpuss_clkdm",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700672 .slaves = omap44xx_mpu_private_slaves,
673 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700674};
675
676/*
677 * Modules omap_hwmod structures
678 *
679 * The following IPs are excluded for the moment because:
680 * - They do not need an explicit SW control using omap_hwmod API.
681 * - They still need to be validated with the driver
682 * properly adapted to omap_hwmod / omap_device
683 *
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700684 * c2c
685 * c2c_target_fw
686 * cm_core
687 * cm_core_aon
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700688 * ctrl_module_core
689 * ctrl_module_pad_core
690 * ctrl_module_pad_wkup
691 * ctrl_module_wkup
692 * debugss
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700693 * efuse_ctrl_cust
694 * efuse_ctrl_std
695 * elm
696 * emif1
697 * emif2
698 * fdif
699 * gpmc
700 * gpu
701 * hdq1w
Benoit Cousson00fe6102011-07-09 19:14:28 -0600702 * mcasp
703 * mpu_c0
704 * mpu_c1
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700705 * ocmc_ram
706 * ocp2scp_usb_phy
707 * ocp_wp_noc
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700708 * prcm_mpu
709 * prm
710 * scrm
711 * sl2if
712 * slimbus1
713 * slimbus2
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700714 * usb_host_fs
715 * usb_host_hs
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700716 * usb_phy_cm
717 * usb_tll_hs
718 * usim
719 */
720
721/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100722 * 'aess' class
723 * audio engine sub system
724 */
725
726static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
727 .rev_offs = 0x0000,
728 .sysc_offs = 0x0010,
729 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
730 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
Benoit Coussonc614ebf2011-07-01 22:54:01 +0200731 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
732 MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +0100733 .sysc_fields = &omap_hwmod_sysc_type2,
734};
735
736static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
737 .name = "aess",
738 .sysc = &omap44xx_aess_sysc,
739};
740
741/* aess */
742static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
743 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600744 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +0100745};
746
747static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
748 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
749 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
750 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
751 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
752 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
753 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
754 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
755 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600756 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +0100757};
758
759/* aess master ports */
760static struct omap_hwmod_ocp_if *omap44xx_aess_masters[] = {
761 &omap44xx_aess__l4_abe,
762};
763
764static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
765 {
766 .pa_start = 0x401f1000,
767 .pa_end = 0x401f13ff,
768 .flags = ADDR_TYPE_RT
769 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600770 { }
Benoit Cousson407a6882011-02-15 22:39:48 +0100771};
772
773/* l4_abe -> aess */
774static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess = {
775 .master = &omap44xx_l4_abe_hwmod,
776 .slave = &omap44xx_aess_hwmod,
777 .clk = "ocp_abe_iclk",
778 .addr = omap44xx_aess_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100779 .user = OCP_USER_MPU,
780};
781
782static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
783 {
784 .pa_start = 0x490f1000,
785 .pa_end = 0x490f13ff,
786 .flags = ADDR_TYPE_RT
787 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600788 { }
Benoit Cousson407a6882011-02-15 22:39:48 +0100789};
790
791/* l4_abe -> aess (dma) */
792static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess_dma = {
793 .master = &omap44xx_l4_abe_hwmod,
794 .slave = &omap44xx_aess_hwmod,
795 .clk = "ocp_abe_iclk",
796 .addr = omap44xx_aess_dma_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100797 .user = OCP_USER_SDMA,
798};
799
800/* aess slave ports */
801static struct omap_hwmod_ocp_if *omap44xx_aess_slaves[] = {
802 &omap44xx_l4_abe__aess,
803 &omap44xx_l4_abe__aess_dma,
804};
805
806static struct omap_hwmod omap44xx_aess_hwmod = {
807 .name = "aess",
808 .class = &omap44xx_aess_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600809 .clkdm_name = "abe_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100810 .mpu_irqs = omap44xx_aess_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100811 .sdma_reqs = omap44xx_aess_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100812 .main_clk = "aess_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600813 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100814 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600815 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600816 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600817 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +0100818 },
819 },
820 .slaves = omap44xx_aess_slaves,
821 .slaves_cnt = ARRAY_SIZE(omap44xx_aess_slaves),
822 .masters = omap44xx_aess_masters,
823 .masters_cnt = ARRAY_SIZE(omap44xx_aess_masters),
Benoit Cousson407a6882011-02-15 22:39:48 +0100824};
825
826/*
827 * 'bandgap' class
828 * bangap reference for ldo regulators
829 */
830
831static struct omap_hwmod_class omap44xx_bandgap_hwmod_class = {
832 .name = "bandgap",
833};
834
835/* bandgap */
836static struct omap_hwmod_opt_clk bandgap_opt_clks[] = {
837 { .role = "fclk", .clk = "bandgap_fclk" },
838};
839
840static struct omap_hwmod omap44xx_bandgap_hwmod = {
841 .name = "bandgap",
842 .class = &omap44xx_bandgap_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600843 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600844 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100845 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600846 .clkctrl_offs = OMAP4_CM_WKUP_BANDGAP_CLKCTRL_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +0100847 },
848 },
849 .opt_clks = bandgap_opt_clks,
850 .opt_clks_cnt = ARRAY_SIZE(bandgap_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +0100851};
852
853/*
854 * 'counter' class
855 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
856 */
857
858static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
859 .rev_offs = 0x0000,
860 .sysc_offs = 0x0004,
861 .sysc_flags = SYSC_HAS_SIDLEMODE,
862 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
863 SIDLE_SMART_WKUP),
864 .sysc_fields = &omap_hwmod_sysc_type1,
865};
866
867static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
868 .name = "counter",
869 .sysc = &omap44xx_counter_sysc,
870};
871
872/* counter_32k */
873static struct omap_hwmod omap44xx_counter_32k_hwmod;
874static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
875 {
876 .pa_start = 0x4a304000,
877 .pa_end = 0x4a30401f,
878 .flags = ADDR_TYPE_RT
879 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600880 { }
Benoit Cousson407a6882011-02-15 22:39:48 +0100881};
882
883/* l4_wkup -> counter_32k */
884static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
885 .master = &omap44xx_l4_wkup_hwmod,
886 .slave = &omap44xx_counter_32k_hwmod,
887 .clk = "l4_wkup_clk_mux_ck",
888 .addr = omap44xx_counter_32k_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100889 .user = OCP_USER_MPU | OCP_USER_SDMA,
890};
891
892/* counter_32k slave ports */
893static struct omap_hwmod_ocp_if *omap44xx_counter_32k_slaves[] = {
894 &omap44xx_l4_wkup__counter_32k,
895};
896
897static struct omap_hwmod omap44xx_counter_32k_hwmod = {
898 .name = "counter_32k",
899 .class = &omap44xx_counter_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600900 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100901 .flags = HWMOD_SWSUP_SIDLE,
902 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600903 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100904 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600905 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600906 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +0100907 },
908 },
909 .slaves = omap44xx_counter_32k_slaves,
910 .slaves_cnt = ARRAY_SIZE(omap44xx_counter_32k_slaves),
Benoit Cousson407a6882011-02-15 22:39:48 +0100911};
912
913/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000914 * 'dma' class
915 * dma controller for data exchange between memory to memory (i.e. internal or
916 * external memory) and gp peripherals to memory or memory to gp peripherals
917 */
918
919static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
920 .rev_offs = 0x0000,
921 .sysc_offs = 0x002c,
922 .syss_offs = 0x0028,
923 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
924 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
925 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
926 SYSS_HAS_RESET_STATUS),
927 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
928 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
929 .sysc_fields = &omap_hwmod_sysc_type1,
930};
931
932static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
933 .name = "dma",
934 .sysc = &omap44xx_dma_sysc,
935};
936
937/* dma dev_attr */
938static struct omap_dma_dev_attr dma_dev_attr = {
939 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
940 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
941 .lch_count = 32,
942};
943
944/* dma_system */
945static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
946 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
947 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
948 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
949 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600950 { .irq = -1 }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000951};
952
953/* dma_system master ports */
954static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
955 &omap44xx_dma_system__l3_main_2,
956};
957
958static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
959 {
960 .pa_start = 0x4a056000,
Benoit Cousson1286eeb2011-04-19 10:15:36 -0600961 .pa_end = 0x4a056fff,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000962 .flags = ADDR_TYPE_RT
963 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600964 { }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000965};
966
967/* l4_cfg -> dma_system */
968static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
969 .master = &omap44xx_l4_cfg_hwmod,
970 .slave = &omap44xx_dma_system_hwmod,
971 .clk = "l4_div_ck",
972 .addr = omap44xx_dma_system_addrs,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000973 .user = OCP_USER_MPU | OCP_USER_SDMA,
974};
975
976/* dma_system slave ports */
977static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
978 &omap44xx_l4_cfg__dma_system,
979};
980
981static struct omap_hwmod omap44xx_dma_system_hwmod = {
982 .name = "dma_system",
983 .class = &omap44xx_dma_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600984 .clkdm_name = "l3_dma_clkdm",
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000985 .mpu_irqs = omap44xx_dma_system_irqs,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000986 .main_clk = "l3_div_ck",
987 .prcm = {
988 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600989 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600990 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000991 },
992 },
993 .dev_attr = &dma_dev_attr,
994 .slaves = omap44xx_dma_system_slaves,
995 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
996 .masters = omap44xx_dma_system_masters,
997 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000998};
999
1000/*
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001001 * 'dmic' class
1002 * digital microphone controller
1003 */
1004
1005static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
1006 .rev_offs = 0x0000,
1007 .sysc_offs = 0x0010,
1008 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1009 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1010 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1011 SIDLE_SMART_WKUP),
1012 .sysc_fields = &omap_hwmod_sysc_type2,
1013};
1014
1015static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
1016 .name = "dmic",
1017 .sysc = &omap44xx_dmic_sysc,
1018};
1019
1020/* dmic */
1021static struct omap_hwmod omap44xx_dmic_hwmod;
1022static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
1023 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001024 { .irq = -1 }
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001025};
1026
1027static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
1028 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001029 { .dma_req = -1 }
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001030};
1031
1032static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
1033 {
1034 .pa_start = 0x4012e000,
1035 .pa_end = 0x4012e07f,
1036 .flags = ADDR_TYPE_RT
1037 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001038 { }
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001039};
1040
1041/* l4_abe -> dmic */
1042static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
1043 .master = &omap44xx_l4_abe_hwmod,
1044 .slave = &omap44xx_dmic_hwmod,
1045 .clk = "ocp_abe_iclk",
1046 .addr = omap44xx_dmic_addrs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001047 .user = OCP_USER_MPU,
1048};
1049
1050static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
1051 {
1052 .pa_start = 0x4902e000,
1053 .pa_end = 0x4902e07f,
1054 .flags = ADDR_TYPE_RT
1055 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001056 { }
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001057};
1058
1059/* l4_abe -> dmic (dma) */
1060static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
1061 .master = &omap44xx_l4_abe_hwmod,
1062 .slave = &omap44xx_dmic_hwmod,
1063 .clk = "ocp_abe_iclk",
1064 .addr = omap44xx_dmic_dma_addrs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001065 .user = OCP_USER_SDMA,
1066};
1067
1068/* dmic slave ports */
1069static struct omap_hwmod_ocp_if *omap44xx_dmic_slaves[] = {
1070 &omap44xx_l4_abe__dmic,
1071 &omap44xx_l4_abe__dmic_dma,
1072};
1073
1074static struct omap_hwmod omap44xx_dmic_hwmod = {
1075 .name = "dmic",
1076 .class = &omap44xx_dmic_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001077 .clkdm_name = "abe_clkdm",
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001078 .mpu_irqs = omap44xx_dmic_irqs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001079 .sdma_reqs = omap44xx_dmic_sdma_reqs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001080 .main_clk = "dmic_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001081 .prcm = {
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001082 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001083 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001084 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001085 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001086 },
1087 },
1088 .slaves = omap44xx_dmic_slaves,
1089 .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001090};
1091
1092/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001093 * 'dsp' class
1094 * dsp sub-system
1095 */
1096
1097static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001098 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001099};
1100
1101/* dsp */
1102static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
1103 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001104 { .irq = -1 }
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001105};
1106
1107static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
1108 { .name = "mmu_cache", .rst_shift = 1 },
1109};
1110
1111static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
1112 { .name = "dsp", .rst_shift = 0 },
1113};
1114
1115/* dsp -> iva */
1116static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
1117 .master = &omap44xx_dsp_hwmod,
1118 .slave = &omap44xx_iva_hwmod,
1119 .clk = "dpll_iva_m5x2_ck",
1120};
1121
1122/* dsp master ports */
1123static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
1124 &omap44xx_dsp__l3_main_1,
1125 &omap44xx_dsp__l4_abe,
1126 &omap44xx_dsp__iva,
1127};
1128
1129/* l4_cfg -> dsp */
1130static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
1131 .master = &omap44xx_l4_cfg_hwmod,
1132 .slave = &omap44xx_dsp_hwmod,
1133 .clk = "l4_div_ck",
1134 .user = OCP_USER_MPU | OCP_USER_SDMA,
1135};
1136
1137/* dsp slave ports */
1138static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
1139 &omap44xx_l4_cfg__dsp,
1140};
1141
1142/* Pseudo hwmod for reset control purpose only */
1143static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
1144 .name = "dsp_c0",
1145 .class = &omap44xx_dsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001146 .clkdm_name = "tesla_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001147 .flags = HWMOD_INIT_NO_RESET,
1148 .rst_lines = omap44xx_dsp_c0_resets,
1149 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
1150 .prcm = {
1151 .omap4 = {
Benoit Coussoneaac3292011-07-10 05:56:31 -06001152 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001153 },
1154 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001155};
1156
1157static struct omap_hwmod omap44xx_dsp_hwmod = {
1158 .name = "dsp",
1159 .class = &omap44xx_dsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001160 .clkdm_name = "tesla_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001161 .mpu_irqs = omap44xx_dsp_irqs,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001162 .rst_lines = omap44xx_dsp_resets,
1163 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
1164 .main_clk = "dsp_fck",
1165 .prcm = {
1166 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001167 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001168 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001169 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001170 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001171 },
1172 },
1173 .slaves = omap44xx_dsp_slaves,
1174 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
1175 .masters = omap44xx_dsp_masters,
1176 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001177};
1178
1179/*
Benoit Coussond63bd742011-01-27 11:17:03 +00001180 * 'dss' class
1181 * display sub-system
1182 */
1183
1184static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
1185 .rev_offs = 0x0000,
1186 .syss_offs = 0x0014,
1187 .sysc_flags = SYSS_HAS_RESET_STATUS,
1188};
1189
1190static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
1191 .name = "dss",
1192 .sysc = &omap44xx_dss_sysc,
Tomi Valkeinen13662dc2011-11-08 03:16:13 -07001193 .reset = omap_dss_reset,
Benoit Coussond63bd742011-01-27 11:17:03 +00001194};
1195
1196/* dss */
1197/* dss master ports */
1198static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
1199 &omap44xx_dss__l3_main_1,
1200};
1201
1202static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
1203 {
1204 .pa_start = 0x58000000,
1205 .pa_end = 0x5800007f,
1206 .flags = ADDR_TYPE_RT
1207 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001208 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001209};
1210
1211/* l3_main_2 -> dss */
1212static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
1213 .master = &omap44xx_l3_main_2_hwmod,
1214 .slave = &omap44xx_dss_hwmod,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001215 .clk = "dss_fck",
Benoit Coussond63bd742011-01-27 11:17:03 +00001216 .addr = omap44xx_dss_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001217 .user = OCP_USER_SDMA,
1218};
1219
1220static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
1221 {
1222 .pa_start = 0x48040000,
1223 .pa_end = 0x4804007f,
1224 .flags = ADDR_TYPE_RT
1225 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001226 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001227};
1228
1229/* l4_per -> dss */
1230static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
1231 .master = &omap44xx_l4_per_hwmod,
1232 .slave = &omap44xx_dss_hwmod,
1233 .clk = "l4_div_ck",
1234 .addr = omap44xx_dss_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001235 .user = OCP_USER_MPU,
1236};
1237
1238/* dss slave ports */
1239static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
1240 &omap44xx_l3_main_2__dss,
1241 &omap44xx_l4_per__dss,
1242};
1243
1244static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1245 { .role = "sys_clk", .clk = "dss_sys_clk" },
1246 { .role = "tv_clk", .clk = "dss_tv_clk" },
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -07001247 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Benoit Coussond63bd742011-01-27 11:17:03 +00001248};
1249
1250static struct omap_hwmod omap44xx_dss_hwmod = {
1251 .name = "dss_core",
Tomi Valkeinen37ad0852011-11-08 03:16:11 -07001252 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Coussond63bd742011-01-27 11:17:03 +00001253 .class = &omap44xx_dss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001254 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001255 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +00001256 .prcm = {
1257 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001258 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001259 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +00001260 },
1261 },
1262 .opt_clks = dss_opt_clks,
1263 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1264 .slaves = omap44xx_dss_slaves,
1265 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
1266 .masters = omap44xx_dss_masters,
1267 .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
Benoit Coussond63bd742011-01-27 11:17:03 +00001268};
1269
1270/*
1271 * 'dispc' class
1272 * display controller
1273 */
1274
1275static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
1276 .rev_offs = 0x0000,
1277 .sysc_offs = 0x0010,
1278 .syss_offs = 0x0014,
1279 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1280 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
1281 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1282 SYSS_HAS_RESET_STATUS),
1283 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1284 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1285 .sysc_fields = &omap_hwmod_sysc_type1,
1286};
1287
1288static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
1289 .name = "dispc",
1290 .sysc = &omap44xx_dispc_sysc,
1291};
1292
1293/* dss_dispc */
1294static struct omap_hwmod omap44xx_dss_dispc_hwmod;
1295static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
1296 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001297 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001298};
1299
1300static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
1301 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001302 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001303};
1304
1305static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
1306 {
1307 .pa_start = 0x58001000,
1308 .pa_end = 0x58001fff,
1309 .flags = ADDR_TYPE_RT
1310 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001311 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001312};
1313
1314/* l3_main_2 -> dss_dispc */
1315static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
1316 .master = &omap44xx_l3_main_2_hwmod,
1317 .slave = &omap44xx_dss_dispc_hwmod,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001318 .clk = "dss_fck",
Benoit Coussond63bd742011-01-27 11:17:03 +00001319 .addr = omap44xx_dss_dispc_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001320 .user = OCP_USER_SDMA,
1321};
1322
1323static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
1324 {
1325 .pa_start = 0x48041000,
1326 .pa_end = 0x48041fff,
1327 .flags = ADDR_TYPE_RT
1328 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001329 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001330};
1331
Archit Tanejab923d402011-10-06 18:04:08 -06001332static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
1333 .manager_count = 3,
1334 .has_framedonetv_irq = 1
1335};
1336
Benoit Coussond63bd742011-01-27 11:17:03 +00001337/* l4_per -> dss_dispc */
1338static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
1339 .master = &omap44xx_l4_per_hwmod,
1340 .slave = &omap44xx_dss_dispc_hwmod,
1341 .clk = "l4_div_ck",
1342 .addr = omap44xx_dss_dispc_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001343 .user = OCP_USER_MPU,
1344};
1345
1346/* dss_dispc slave ports */
1347static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
1348 &omap44xx_l3_main_2__dss_dispc,
1349 &omap44xx_l4_per__dss_dispc,
1350};
1351
1352static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
1353 .name = "dss_dispc",
1354 .class = &omap44xx_dispc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001355 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +00001356 .mpu_irqs = omap44xx_dss_dispc_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001357 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001358 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +00001359 .prcm = {
1360 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001361 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001362 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +00001363 },
1364 },
1365 .slaves = omap44xx_dss_dispc_slaves,
1366 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
Archit Tanejab923d402011-10-06 18:04:08 -06001367 .dev_attr = &omap44xx_dss_dispc_dev_attr
Benoit Coussond63bd742011-01-27 11:17:03 +00001368};
1369
1370/*
1371 * 'dsi' class
1372 * display serial interface controller
1373 */
1374
1375static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
1376 .rev_offs = 0x0000,
1377 .sysc_offs = 0x0010,
1378 .syss_offs = 0x0014,
1379 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1380 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1381 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1382 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1383 .sysc_fields = &omap_hwmod_sysc_type1,
1384};
1385
1386static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
1387 .name = "dsi",
1388 .sysc = &omap44xx_dsi_sysc,
1389};
1390
1391/* dss_dsi1 */
1392static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
1393static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
1394 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001395 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001396};
1397
1398static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
1399 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001400 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001401};
1402
1403static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
1404 {
1405 .pa_start = 0x58004000,
1406 .pa_end = 0x580041ff,
1407 .flags = ADDR_TYPE_RT
1408 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001409 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001410};
1411
1412/* l3_main_2 -> dss_dsi1 */
1413static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
1414 .master = &omap44xx_l3_main_2_hwmod,
1415 .slave = &omap44xx_dss_dsi1_hwmod,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001416 .clk = "dss_fck",
Benoit Coussond63bd742011-01-27 11:17:03 +00001417 .addr = omap44xx_dss_dsi1_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001418 .user = OCP_USER_SDMA,
1419};
1420
1421static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
1422 {
1423 .pa_start = 0x48044000,
1424 .pa_end = 0x480441ff,
1425 .flags = ADDR_TYPE_RT
1426 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001427 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001428};
1429
1430/* l4_per -> dss_dsi1 */
1431static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
1432 .master = &omap44xx_l4_per_hwmod,
1433 .slave = &omap44xx_dss_dsi1_hwmod,
1434 .clk = "l4_div_ck",
1435 .addr = omap44xx_dss_dsi1_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001436 .user = OCP_USER_MPU,
1437};
1438
1439/* dss_dsi1 slave ports */
1440static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
1441 &omap44xx_l3_main_2__dss_dsi1,
1442 &omap44xx_l4_per__dss_dsi1,
1443};
1444
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -06001445static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
1446 { .role = "sys_clk", .clk = "dss_sys_clk" },
1447};
1448
Benoit Coussond63bd742011-01-27 11:17:03 +00001449static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
1450 .name = "dss_dsi1",
1451 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001452 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +00001453 .mpu_irqs = omap44xx_dss_dsi1_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001454 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001455 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +00001456 .prcm = {
1457 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001458 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001459 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +00001460 },
1461 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -06001462 .opt_clks = dss_dsi1_opt_clks,
1463 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +00001464 .slaves = omap44xx_dss_dsi1_slaves,
1465 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
Benoit Coussond63bd742011-01-27 11:17:03 +00001466};
1467
1468/* dss_dsi2 */
1469static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
1470static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
1471 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001472 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001473};
1474
1475static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
1476 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001477 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001478};
1479
1480static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
1481 {
1482 .pa_start = 0x58005000,
1483 .pa_end = 0x580051ff,
1484 .flags = ADDR_TYPE_RT
1485 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001486 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001487};
1488
1489/* l3_main_2 -> dss_dsi2 */
1490static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
1491 .master = &omap44xx_l3_main_2_hwmod,
1492 .slave = &omap44xx_dss_dsi2_hwmod,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001493 .clk = "dss_fck",
Benoit Coussond63bd742011-01-27 11:17:03 +00001494 .addr = omap44xx_dss_dsi2_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001495 .user = OCP_USER_SDMA,
1496};
1497
1498static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
1499 {
1500 .pa_start = 0x48045000,
1501 .pa_end = 0x480451ff,
1502 .flags = ADDR_TYPE_RT
1503 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001504 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001505};
1506
1507/* l4_per -> dss_dsi2 */
1508static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
1509 .master = &omap44xx_l4_per_hwmod,
1510 .slave = &omap44xx_dss_dsi2_hwmod,
1511 .clk = "l4_div_ck",
1512 .addr = omap44xx_dss_dsi2_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001513 .user = OCP_USER_MPU,
1514};
1515
1516/* dss_dsi2 slave ports */
1517static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
1518 &omap44xx_l3_main_2__dss_dsi2,
1519 &omap44xx_l4_per__dss_dsi2,
1520};
1521
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -06001522static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
1523 { .role = "sys_clk", .clk = "dss_sys_clk" },
1524};
1525
Benoit Coussond63bd742011-01-27 11:17:03 +00001526static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
1527 .name = "dss_dsi2",
1528 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001529 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +00001530 .mpu_irqs = omap44xx_dss_dsi2_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001531 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001532 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +00001533 .prcm = {
1534 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001535 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001536 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +00001537 },
1538 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -06001539 .opt_clks = dss_dsi2_opt_clks,
1540 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +00001541 .slaves = omap44xx_dss_dsi2_slaves,
1542 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
Benoit Coussond63bd742011-01-27 11:17:03 +00001543};
1544
1545/*
1546 * 'hdmi' class
1547 * hdmi controller
1548 */
1549
1550static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
1551 .rev_offs = 0x0000,
1552 .sysc_offs = 0x0010,
1553 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1554 SYSC_HAS_SOFTRESET),
1555 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1556 SIDLE_SMART_WKUP),
1557 .sysc_fields = &omap_hwmod_sysc_type2,
1558};
1559
1560static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
1561 .name = "hdmi",
1562 .sysc = &omap44xx_hdmi_sysc,
1563};
1564
1565/* dss_hdmi */
1566static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
1567static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
1568 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001569 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001570};
1571
1572static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
1573 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001574 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001575};
1576
1577static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
1578 {
1579 .pa_start = 0x58006000,
1580 .pa_end = 0x58006fff,
1581 .flags = ADDR_TYPE_RT
1582 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001583 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001584};
1585
1586/* l3_main_2 -> dss_hdmi */
1587static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
1588 .master = &omap44xx_l3_main_2_hwmod,
1589 .slave = &omap44xx_dss_hdmi_hwmod,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001590 .clk = "dss_fck",
Benoit Coussond63bd742011-01-27 11:17:03 +00001591 .addr = omap44xx_dss_hdmi_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001592 .user = OCP_USER_SDMA,
1593};
1594
1595static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
1596 {
1597 .pa_start = 0x48046000,
1598 .pa_end = 0x48046fff,
1599 .flags = ADDR_TYPE_RT
1600 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001601 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001602};
1603
1604/* l4_per -> dss_hdmi */
1605static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
1606 .master = &omap44xx_l4_per_hwmod,
1607 .slave = &omap44xx_dss_hdmi_hwmod,
1608 .clk = "l4_div_ck",
1609 .addr = omap44xx_dss_hdmi_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001610 .user = OCP_USER_MPU,
1611};
1612
1613/* dss_hdmi slave ports */
1614static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
1615 &omap44xx_l3_main_2__dss_hdmi,
1616 &omap44xx_l4_per__dss_hdmi,
1617};
1618
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -06001619static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
1620 { .role = "sys_clk", .clk = "dss_sys_clk" },
1621};
1622
Benoit Coussond63bd742011-01-27 11:17:03 +00001623static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
1624 .name = "dss_hdmi",
1625 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001626 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +00001627 .mpu_irqs = omap44xx_dss_hdmi_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001628 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -07001629 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +00001630 .prcm = {
1631 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001632 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001633 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +00001634 },
1635 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -06001636 .opt_clks = dss_hdmi_opt_clks,
1637 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +00001638 .slaves = omap44xx_dss_hdmi_slaves,
1639 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
Benoit Coussond63bd742011-01-27 11:17:03 +00001640};
1641
1642/*
1643 * 'rfbi' class
1644 * remote frame buffer interface
1645 */
1646
1647static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
1648 .rev_offs = 0x0000,
1649 .sysc_offs = 0x0010,
1650 .syss_offs = 0x0014,
1651 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1652 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1653 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1654 .sysc_fields = &omap_hwmod_sysc_type1,
1655};
1656
1657static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
1658 .name = "rfbi",
1659 .sysc = &omap44xx_rfbi_sysc,
1660};
1661
1662/* dss_rfbi */
1663static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
1664static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
1665 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001666 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001667};
1668
1669static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
1670 {
1671 .pa_start = 0x58002000,
1672 .pa_end = 0x580020ff,
1673 .flags = ADDR_TYPE_RT
1674 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001675 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001676};
1677
1678/* l3_main_2 -> dss_rfbi */
1679static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
1680 .master = &omap44xx_l3_main_2_hwmod,
1681 .slave = &omap44xx_dss_rfbi_hwmod,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001682 .clk = "dss_fck",
Benoit Coussond63bd742011-01-27 11:17:03 +00001683 .addr = omap44xx_dss_rfbi_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001684 .user = OCP_USER_SDMA,
1685};
1686
1687static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
1688 {
1689 .pa_start = 0x48042000,
1690 .pa_end = 0x480420ff,
1691 .flags = ADDR_TYPE_RT
1692 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001693 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001694};
1695
1696/* l4_per -> dss_rfbi */
1697static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
1698 .master = &omap44xx_l4_per_hwmod,
1699 .slave = &omap44xx_dss_rfbi_hwmod,
1700 .clk = "l4_div_ck",
1701 .addr = omap44xx_dss_rfbi_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001702 .user = OCP_USER_MPU,
1703};
1704
1705/* dss_rfbi slave ports */
1706static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
1707 &omap44xx_l3_main_2__dss_rfbi,
1708 &omap44xx_l4_per__dss_rfbi,
1709};
1710
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -06001711static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
1712 { .role = "ick", .clk = "dss_fck" },
1713};
1714
Benoit Coussond63bd742011-01-27 11:17:03 +00001715static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
1716 .name = "dss_rfbi",
1717 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001718 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +00001719 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001720 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +00001721 .prcm = {
1722 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001723 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001724 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +00001725 },
1726 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -06001727 .opt_clks = dss_rfbi_opt_clks,
1728 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +00001729 .slaves = omap44xx_dss_rfbi_slaves,
1730 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
Benoit Coussond63bd742011-01-27 11:17:03 +00001731};
1732
1733/*
1734 * 'venc' class
1735 * video encoder
1736 */
1737
1738static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
1739 .name = "venc",
1740};
1741
1742/* dss_venc */
1743static struct omap_hwmod omap44xx_dss_venc_hwmod;
1744static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
1745 {
1746 .pa_start = 0x58003000,
1747 .pa_end = 0x580030ff,
1748 .flags = ADDR_TYPE_RT
1749 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001750 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001751};
1752
1753/* l3_main_2 -> dss_venc */
1754static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
1755 .master = &omap44xx_l3_main_2_hwmod,
1756 .slave = &omap44xx_dss_venc_hwmod,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -06001757 .clk = "dss_fck",
Benoit Coussond63bd742011-01-27 11:17:03 +00001758 .addr = omap44xx_dss_venc_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001759 .user = OCP_USER_SDMA,
1760};
1761
1762static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
1763 {
1764 .pa_start = 0x48043000,
1765 .pa_end = 0x480430ff,
1766 .flags = ADDR_TYPE_RT
1767 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001768 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001769};
1770
1771/* l4_per -> dss_venc */
1772static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
1773 .master = &omap44xx_l4_per_hwmod,
1774 .slave = &omap44xx_dss_venc_hwmod,
1775 .clk = "l4_div_ck",
1776 .addr = omap44xx_dss_venc_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001777 .user = OCP_USER_MPU,
1778};
1779
1780/* dss_venc slave ports */
1781static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
1782 &omap44xx_l3_main_2__dss_venc,
1783 &omap44xx_l4_per__dss_venc,
1784};
1785
1786static struct omap_hwmod omap44xx_dss_venc_hwmod = {
1787 .name = "dss_venc",
1788 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001789 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -07001790 .main_clk = "dss_tv_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +00001791 .prcm = {
1792 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001793 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001794 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +00001795 },
1796 },
1797 .slaves = omap44xx_dss_venc_slaves,
1798 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
Benoit Coussond63bd742011-01-27 11:17:03 +00001799};
1800
1801/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001802 * 'gpio' class
1803 * general purpose io module
1804 */
1805
1806static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1807 .rev_offs = 0x0000,
1808 .sysc_offs = 0x0010,
1809 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001810 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1811 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1812 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001813 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1814 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001815 .sysc_fields = &omap_hwmod_sysc_type1,
1816};
1817
1818static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001819 .name = "gpio",
1820 .sysc = &omap44xx_gpio_sysc,
1821 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001822};
1823
1824/* gpio dev_attr */
1825static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001826 .bank_width = 32,
1827 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001828};
1829
1830/* gpio1 */
1831static struct omap_hwmod omap44xx_gpio1_hwmod;
1832static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1833 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001834 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001835};
1836
1837static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
1838 {
1839 .pa_start = 0x4a310000,
1840 .pa_end = 0x4a3101ff,
1841 .flags = ADDR_TYPE_RT
1842 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001843 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001844};
1845
1846/* l4_wkup -> gpio1 */
1847static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
1848 .master = &omap44xx_l4_wkup_hwmod,
1849 .slave = &omap44xx_gpio1_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001850 .clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001851 .addr = omap44xx_gpio1_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001852 .user = OCP_USER_MPU | OCP_USER_SDMA,
1853};
1854
1855/* gpio1 slave ports */
1856static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
1857 &omap44xx_l4_wkup__gpio1,
1858};
1859
1860static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001861 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001862};
1863
1864static struct omap_hwmod omap44xx_gpio1_hwmod = {
1865 .name = "gpio1",
1866 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001867 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001868 .mpu_irqs = omap44xx_gpio1_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001869 .main_clk = "gpio1_ick",
1870 .prcm = {
1871 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001872 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001873 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001874 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001875 },
1876 },
1877 .opt_clks = gpio1_opt_clks,
1878 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1879 .dev_attr = &gpio_dev_attr,
1880 .slaves = omap44xx_gpio1_slaves,
1881 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001882};
1883
1884/* gpio2 */
1885static struct omap_hwmod omap44xx_gpio2_hwmod;
1886static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1887 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001888 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001889};
1890
1891static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
1892 {
1893 .pa_start = 0x48055000,
1894 .pa_end = 0x480551ff,
1895 .flags = ADDR_TYPE_RT
1896 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001897 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001898};
1899
1900/* l4_per -> gpio2 */
1901static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
1902 .master = &omap44xx_l4_per_hwmod,
1903 .slave = &omap44xx_gpio2_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001904 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001905 .addr = omap44xx_gpio2_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001906 .user = OCP_USER_MPU | OCP_USER_SDMA,
1907};
1908
1909/* gpio2 slave ports */
1910static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
1911 &omap44xx_l4_per__gpio2,
1912};
1913
1914static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001915 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001916};
1917
1918static struct omap_hwmod omap44xx_gpio2_hwmod = {
1919 .name = "gpio2",
1920 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001921 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001922 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001923 .mpu_irqs = omap44xx_gpio2_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001924 .main_clk = "gpio2_ick",
1925 .prcm = {
1926 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001927 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001928 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001929 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001930 },
1931 },
1932 .opt_clks = gpio2_opt_clks,
1933 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1934 .dev_attr = &gpio_dev_attr,
1935 .slaves = omap44xx_gpio2_slaves,
1936 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001937};
1938
1939/* gpio3 */
1940static struct omap_hwmod omap44xx_gpio3_hwmod;
1941static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1942 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001943 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001944};
1945
1946static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
1947 {
1948 .pa_start = 0x48057000,
1949 .pa_end = 0x480571ff,
1950 .flags = ADDR_TYPE_RT
1951 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001952 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001953};
1954
1955/* l4_per -> gpio3 */
1956static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
1957 .master = &omap44xx_l4_per_hwmod,
1958 .slave = &omap44xx_gpio3_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001959 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001960 .addr = omap44xx_gpio3_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001961 .user = OCP_USER_MPU | OCP_USER_SDMA,
1962};
1963
1964/* gpio3 slave ports */
1965static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
1966 &omap44xx_l4_per__gpio3,
1967};
1968
1969static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001970 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001971};
1972
1973static struct omap_hwmod omap44xx_gpio3_hwmod = {
1974 .name = "gpio3",
1975 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001976 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001977 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001978 .mpu_irqs = omap44xx_gpio3_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001979 .main_clk = "gpio3_ick",
1980 .prcm = {
1981 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001982 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001983 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001984 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001985 },
1986 },
1987 .opt_clks = gpio3_opt_clks,
1988 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1989 .dev_attr = &gpio_dev_attr,
1990 .slaves = omap44xx_gpio3_slaves,
1991 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001992};
1993
1994/* gpio4 */
1995static struct omap_hwmod omap44xx_gpio4_hwmod;
1996static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1997 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001998 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001999};
2000
2001static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
2002 {
2003 .pa_start = 0x48059000,
2004 .pa_end = 0x480591ff,
2005 .flags = ADDR_TYPE_RT
2006 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002007 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002008};
2009
2010/* l4_per -> gpio4 */
2011static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
2012 .master = &omap44xx_l4_per_hwmod,
2013 .slave = &omap44xx_gpio4_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07002014 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002015 .addr = omap44xx_gpio4_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002016 .user = OCP_USER_MPU | OCP_USER_SDMA,
2017};
2018
2019/* gpio4 slave ports */
2020static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
2021 &omap44xx_l4_per__gpio4,
2022};
2023
2024static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07002025 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002026};
2027
2028static struct omap_hwmod omap44xx_gpio4_hwmod = {
2029 .name = "gpio4",
2030 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002031 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07002032 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002033 .mpu_irqs = omap44xx_gpio4_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002034 .main_clk = "gpio4_ick",
2035 .prcm = {
2036 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002037 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002038 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002039 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002040 },
2041 },
2042 .opt_clks = gpio4_opt_clks,
2043 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
2044 .dev_attr = &gpio_dev_attr,
2045 .slaves = omap44xx_gpio4_slaves,
2046 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002047};
2048
2049/* gpio5 */
2050static struct omap_hwmod omap44xx_gpio5_hwmod;
2051static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
2052 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002053 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002054};
2055
2056static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
2057 {
2058 .pa_start = 0x4805b000,
2059 .pa_end = 0x4805b1ff,
2060 .flags = ADDR_TYPE_RT
2061 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002062 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002063};
2064
2065/* l4_per -> gpio5 */
2066static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
2067 .master = &omap44xx_l4_per_hwmod,
2068 .slave = &omap44xx_gpio5_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07002069 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002070 .addr = omap44xx_gpio5_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002071 .user = OCP_USER_MPU | OCP_USER_SDMA,
2072};
2073
2074/* gpio5 slave ports */
2075static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
2076 &omap44xx_l4_per__gpio5,
2077};
2078
2079static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07002080 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002081};
2082
2083static struct omap_hwmod omap44xx_gpio5_hwmod = {
2084 .name = "gpio5",
2085 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002086 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07002087 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002088 .mpu_irqs = omap44xx_gpio5_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002089 .main_clk = "gpio5_ick",
2090 .prcm = {
2091 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002092 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002093 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002094 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002095 },
2096 },
2097 .opt_clks = gpio5_opt_clks,
2098 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
2099 .dev_attr = &gpio_dev_attr,
2100 .slaves = omap44xx_gpio5_slaves,
2101 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002102};
2103
2104/* gpio6 */
2105static struct omap_hwmod omap44xx_gpio6_hwmod;
2106static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
2107 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002108 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002109};
2110
2111static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
2112 {
2113 .pa_start = 0x4805d000,
2114 .pa_end = 0x4805d1ff,
2115 .flags = ADDR_TYPE_RT
2116 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002117 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002118};
2119
2120/* l4_per -> gpio6 */
2121static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
2122 .master = &omap44xx_l4_per_hwmod,
2123 .slave = &omap44xx_gpio6_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07002124 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002125 .addr = omap44xx_gpio6_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002126 .user = OCP_USER_MPU | OCP_USER_SDMA,
2127};
2128
2129/* gpio6 slave ports */
2130static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
2131 &omap44xx_l4_per__gpio6,
2132};
2133
2134static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07002135 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002136};
2137
2138static struct omap_hwmod omap44xx_gpio6_hwmod = {
2139 .name = "gpio6",
2140 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002141 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07002142 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002143 .mpu_irqs = omap44xx_gpio6_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002144 .main_clk = "gpio6_ick",
2145 .prcm = {
2146 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002147 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002148 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002149 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002150 },
2151 },
2152 .opt_clks = gpio6_opt_clks,
2153 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
2154 .dev_attr = &gpio_dev_attr,
2155 .slaves = omap44xx_gpio6_slaves,
2156 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002157};
2158
2159/*
Benoit Cousson407a6882011-02-15 22:39:48 +01002160 * 'hsi' class
2161 * mipi high-speed synchronous serial interface (multichannel and full-duplex
2162 * serial if)
2163 */
2164
2165static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
2166 .rev_offs = 0x0000,
2167 .sysc_offs = 0x0010,
2168 .syss_offs = 0x0014,
2169 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
2170 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2171 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2172 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2173 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02002174 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01002175 .sysc_fields = &omap_hwmod_sysc_type1,
2176};
2177
2178static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
2179 .name = "hsi",
2180 .sysc = &omap44xx_hsi_sysc,
2181};
2182
2183/* hsi */
2184static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
2185 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
2186 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
2187 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002188 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002189};
2190
2191/* hsi master ports */
2192static struct omap_hwmod_ocp_if *omap44xx_hsi_masters[] = {
2193 &omap44xx_hsi__l3_main_2,
2194};
2195
2196static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
2197 {
2198 .pa_start = 0x4a058000,
2199 .pa_end = 0x4a05bfff,
2200 .flags = ADDR_TYPE_RT
2201 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002202 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01002203};
2204
2205/* l4_cfg -> hsi */
2206static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2207 .master = &omap44xx_l4_cfg_hwmod,
2208 .slave = &omap44xx_hsi_hwmod,
2209 .clk = "l4_div_ck",
2210 .addr = omap44xx_hsi_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002211 .user = OCP_USER_MPU | OCP_USER_SDMA,
2212};
2213
2214/* hsi slave ports */
2215static struct omap_hwmod_ocp_if *omap44xx_hsi_slaves[] = {
2216 &omap44xx_l4_cfg__hsi,
2217};
2218
2219static struct omap_hwmod omap44xx_hsi_hwmod = {
2220 .name = "hsi",
2221 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002222 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002223 .mpu_irqs = omap44xx_hsi_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002224 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002225 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002226 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002227 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002228 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002229 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002230 },
2231 },
2232 .slaves = omap44xx_hsi_slaves,
2233 .slaves_cnt = ARRAY_SIZE(omap44xx_hsi_slaves),
2234 .masters = omap44xx_hsi_masters,
2235 .masters_cnt = ARRAY_SIZE(omap44xx_hsi_masters),
Benoit Cousson407a6882011-02-15 22:39:48 +01002236};
2237
2238/*
Benoit Coussonf7764712010-09-21 19:37:14 +05302239 * 'i2c' class
2240 * multimaster high-speed i2c controller
2241 */
2242
2243static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
2244 .sysc_offs = 0x0010,
2245 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002246 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2247 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002248 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002249 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2250 SIDLE_SMART_WKUP),
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05302251 .clockact = CLOCKACT_TEST_ICLK,
Benoit Coussonf7764712010-09-21 19:37:14 +05302252 .sysc_fields = &omap_hwmod_sysc_type1,
2253};
2254
2255static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002256 .name = "i2c",
2257 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06002258 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06002259 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05302260};
2261
Andy Green4d4441a2011-07-10 05:27:16 -06002262static struct omap_i2c_dev_attr i2c_dev_attr = {
2263 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
2264};
2265
Benoit Coussonf7764712010-09-21 19:37:14 +05302266/* i2c1 */
2267static struct omap_hwmod omap44xx_i2c1_hwmod;
2268static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
2269 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002270 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302271};
2272
2273static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
2274 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
2275 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002276 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302277};
2278
2279static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
2280 {
2281 .pa_start = 0x48070000,
2282 .pa_end = 0x480700ff,
2283 .flags = ADDR_TYPE_RT
2284 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002285 { }
Benoit Coussonf7764712010-09-21 19:37:14 +05302286};
2287
2288/* l4_per -> i2c1 */
2289static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
2290 .master = &omap44xx_l4_per_hwmod,
2291 .slave = &omap44xx_i2c1_hwmod,
2292 .clk = "l4_div_ck",
2293 .addr = omap44xx_i2c1_addrs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302294 .user = OCP_USER_MPU | OCP_USER_SDMA,
2295};
2296
2297/* i2c1 slave ports */
2298static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
2299 &omap44xx_l4_per__i2c1,
2300};
2301
2302static struct omap_hwmod omap44xx_i2c1_hwmod = {
2303 .name = "i2c1",
2304 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002305 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05302306 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Coussonf7764712010-09-21 19:37:14 +05302307 .mpu_irqs = omap44xx_i2c1_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302308 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302309 .main_clk = "i2c1_fck",
2310 .prcm = {
2311 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002312 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002313 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002314 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05302315 },
2316 },
2317 .slaves = omap44xx_i2c1_slaves,
2318 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
Andy Green4d4441a2011-07-10 05:27:16 -06002319 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05302320};
2321
2322/* i2c2 */
2323static struct omap_hwmod omap44xx_i2c2_hwmod;
2324static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
2325 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002326 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302327};
2328
2329static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
2330 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
2331 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002332 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302333};
2334
2335static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
2336 {
2337 .pa_start = 0x48072000,
2338 .pa_end = 0x480720ff,
2339 .flags = ADDR_TYPE_RT
2340 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002341 { }
Benoit Coussonf7764712010-09-21 19:37:14 +05302342};
2343
2344/* l4_per -> i2c2 */
2345static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
2346 .master = &omap44xx_l4_per_hwmod,
2347 .slave = &omap44xx_i2c2_hwmod,
2348 .clk = "l4_div_ck",
2349 .addr = omap44xx_i2c2_addrs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302350 .user = OCP_USER_MPU | OCP_USER_SDMA,
2351};
2352
2353/* i2c2 slave ports */
2354static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
2355 &omap44xx_l4_per__i2c2,
2356};
2357
2358static struct omap_hwmod omap44xx_i2c2_hwmod = {
2359 .name = "i2c2",
2360 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002361 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05302362 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Coussonf7764712010-09-21 19:37:14 +05302363 .mpu_irqs = omap44xx_i2c2_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302364 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302365 .main_clk = "i2c2_fck",
2366 .prcm = {
2367 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002368 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002369 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002370 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05302371 },
2372 },
2373 .slaves = omap44xx_i2c2_slaves,
2374 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
Andy Green4d4441a2011-07-10 05:27:16 -06002375 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05302376};
2377
2378/* i2c3 */
2379static struct omap_hwmod omap44xx_i2c3_hwmod;
2380static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
2381 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002382 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302383};
2384
2385static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
2386 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
2387 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002388 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302389};
2390
2391static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
2392 {
2393 .pa_start = 0x48060000,
2394 .pa_end = 0x480600ff,
2395 .flags = ADDR_TYPE_RT
2396 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002397 { }
Benoit Coussonf7764712010-09-21 19:37:14 +05302398};
2399
2400/* l4_per -> i2c3 */
2401static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
2402 .master = &omap44xx_l4_per_hwmod,
2403 .slave = &omap44xx_i2c3_hwmod,
2404 .clk = "l4_div_ck",
2405 .addr = omap44xx_i2c3_addrs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302406 .user = OCP_USER_MPU | OCP_USER_SDMA,
2407};
2408
2409/* i2c3 slave ports */
2410static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
2411 &omap44xx_l4_per__i2c3,
2412};
2413
2414static struct omap_hwmod omap44xx_i2c3_hwmod = {
2415 .name = "i2c3",
2416 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002417 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05302418 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Coussonf7764712010-09-21 19:37:14 +05302419 .mpu_irqs = omap44xx_i2c3_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302420 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302421 .main_clk = "i2c3_fck",
2422 .prcm = {
2423 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002424 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002425 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002426 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05302427 },
2428 },
2429 .slaves = omap44xx_i2c3_slaves,
2430 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
Andy Green4d4441a2011-07-10 05:27:16 -06002431 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05302432};
2433
2434/* i2c4 */
2435static struct omap_hwmod omap44xx_i2c4_hwmod;
2436static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
2437 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002438 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302439};
2440
2441static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
2442 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
2443 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002444 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302445};
2446
2447static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
2448 {
2449 .pa_start = 0x48350000,
2450 .pa_end = 0x483500ff,
2451 .flags = ADDR_TYPE_RT
2452 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002453 { }
Benoit Coussonf7764712010-09-21 19:37:14 +05302454};
2455
2456/* l4_per -> i2c4 */
2457static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
2458 .master = &omap44xx_l4_per_hwmod,
2459 .slave = &omap44xx_i2c4_hwmod,
2460 .clk = "l4_div_ck",
2461 .addr = omap44xx_i2c4_addrs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302462 .user = OCP_USER_MPU | OCP_USER_SDMA,
2463};
2464
2465/* i2c4 slave ports */
2466static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
2467 &omap44xx_l4_per__i2c4,
2468};
2469
2470static struct omap_hwmod omap44xx_i2c4_hwmod = {
2471 .name = "i2c4",
2472 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002473 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05302474 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Coussonf7764712010-09-21 19:37:14 +05302475 .mpu_irqs = omap44xx_i2c4_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302476 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302477 .main_clk = "i2c4_fck",
2478 .prcm = {
2479 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002480 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002481 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002482 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05302483 },
2484 },
2485 .slaves = omap44xx_i2c4_slaves,
2486 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
Andy Green4d4441a2011-07-10 05:27:16 -06002487 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05302488};
2489
2490/*
Benoit Cousson407a6882011-02-15 22:39:48 +01002491 * 'ipu' class
2492 * imaging processor unit
2493 */
2494
2495static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
2496 .name = "ipu",
2497};
2498
2499/* ipu */
2500static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
2501 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002502 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002503};
2504
2505static struct omap_hwmod_rst_info omap44xx_ipu_c0_resets[] = {
2506 { .name = "cpu0", .rst_shift = 0 },
2507};
2508
2509static struct omap_hwmod_rst_info omap44xx_ipu_c1_resets[] = {
2510 { .name = "cpu1", .rst_shift = 1 },
2511};
2512
2513static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
2514 { .name = "mmu_cache", .rst_shift = 2 },
2515};
2516
2517/* ipu master ports */
2518static struct omap_hwmod_ocp_if *omap44xx_ipu_masters[] = {
2519 &omap44xx_ipu__l3_main_2,
2520};
2521
2522/* l3_main_2 -> ipu */
2523static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2524 .master = &omap44xx_l3_main_2_hwmod,
2525 .slave = &omap44xx_ipu_hwmod,
2526 .clk = "l3_div_ck",
2527 .user = OCP_USER_MPU | OCP_USER_SDMA,
2528};
2529
2530/* ipu slave ports */
2531static struct omap_hwmod_ocp_if *omap44xx_ipu_slaves[] = {
2532 &omap44xx_l3_main_2__ipu,
2533};
2534
2535/* Pseudo hwmod for reset control purpose only */
2536static struct omap_hwmod omap44xx_ipu_c0_hwmod = {
2537 .name = "ipu_c0",
2538 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002539 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002540 .flags = HWMOD_INIT_NO_RESET,
2541 .rst_lines = omap44xx_ipu_c0_resets,
2542 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c0_resets),
Benoit Cousson00fe6102011-07-09 19:14:28 -06002543 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002544 .omap4 = {
Benoit Coussoneaac3292011-07-10 05:56:31 -06002545 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +01002546 },
2547 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002548};
2549
2550/* Pseudo hwmod for reset control purpose only */
2551static struct omap_hwmod omap44xx_ipu_c1_hwmod = {
2552 .name = "ipu_c1",
2553 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002554 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002555 .flags = HWMOD_INIT_NO_RESET,
2556 .rst_lines = omap44xx_ipu_c1_resets,
2557 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c1_resets),
Benoit Cousson00fe6102011-07-09 19:14:28 -06002558 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002559 .omap4 = {
Benoit Coussoneaac3292011-07-10 05:56:31 -06002560 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +01002561 },
2562 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002563};
2564
2565static struct omap_hwmod omap44xx_ipu_hwmod = {
2566 .name = "ipu",
2567 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002568 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002569 .mpu_irqs = omap44xx_ipu_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002570 .rst_lines = omap44xx_ipu_resets,
2571 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
2572 .main_clk = "ipu_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002573 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002574 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002575 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06002576 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002577 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002578 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002579 },
2580 },
2581 .slaves = omap44xx_ipu_slaves,
2582 .slaves_cnt = ARRAY_SIZE(omap44xx_ipu_slaves),
2583 .masters = omap44xx_ipu_masters,
2584 .masters_cnt = ARRAY_SIZE(omap44xx_ipu_masters),
Benoit Cousson407a6882011-02-15 22:39:48 +01002585};
2586
2587/*
2588 * 'iss' class
2589 * external images sensor pixel data processor
2590 */
2591
2592static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
2593 .rev_offs = 0x0000,
2594 .sysc_offs = 0x0010,
2595 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
2596 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2597 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2598 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02002599 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01002600 .sysc_fields = &omap_hwmod_sysc_type2,
2601};
2602
2603static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
2604 .name = "iss",
2605 .sysc = &omap44xx_iss_sysc,
2606};
2607
2608/* iss */
2609static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
2610 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002611 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002612};
2613
2614static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
2615 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
2616 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
2617 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
2618 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002619 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002620};
2621
2622/* iss master ports */
2623static struct omap_hwmod_ocp_if *omap44xx_iss_masters[] = {
2624 &omap44xx_iss__l3_main_2,
2625};
2626
2627static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
2628 {
2629 .pa_start = 0x52000000,
2630 .pa_end = 0x520000ff,
2631 .flags = ADDR_TYPE_RT
2632 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002633 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01002634};
2635
2636/* l3_main_2 -> iss */
2637static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2638 .master = &omap44xx_l3_main_2_hwmod,
2639 .slave = &omap44xx_iss_hwmod,
2640 .clk = "l3_div_ck",
2641 .addr = omap44xx_iss_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002642 .user = OCP_USER_MPU | OCP_USER_SDMA,
2643};
2644
2645/* iss slave ports */
2646static struct omap_hwmod_ocp_if *omap44xx_iss_slaves[] = {
2647 &omap44xx_l3_main_2__iss,
2648};
2649
2650static struct omap_hwmod_opt_clk iss_opt_clks[] = {
2651 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
2652};
2653
2654static struct omap_hwmod omap44xx_iss_hwmod = {
2655 .name = "iss",
2656 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002657 .clkdm_name = "iss_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002658 .mpu_irqs = omap44xx_iss_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002659 .sdma_reqs = omap44xx_iss_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002660 .main_clk = "iss_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002661 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002662 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002663 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002664 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002665 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002666 },
2667 },
2668 .opt_clks = iss_opt_clks,
2669 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
2670 .slaves = omap44xx_iss_slaves,
2671 .slaves_cnt = ARRAY_SIZE(omap44xx_iss_slaves),
2672 .masters = omap44xx_iss_masters,
2673 .masters_cnt = ARRAY_SIZE(omap44xx_iss_masters),
Benoit Cousson407a6882011-02-15 22:39:48 +01002674};
2675
2676/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002677 * 'iva' class
2678 * multi-standard video encoder/decoder hardware accelerator
2679 */
2680
2681static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002682 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002683};
2684
2685/* iva */
2686static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
2687 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
2688 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
2689 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002690 { .irq = -1 }
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002691};
2692
2693static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
2694 { .name = "logic", .rst_shift = 2 },
2695};
2696
2697static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
2698 { .name = "seq0", .rst_shift = 0 },
2699};
2700
2701static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
2702 { .name = "seq1", .rst_shift = 1 },
2703};
2704
2705/* iva master ports */
2706static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
2707 &omap44xx_iva__l3_main_2,
2708 &omap44xx_iva__l3_instr,
2709};
2710
2711static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
2712 {
2713 .pa_start = 0x5a000000,
2714 .pa_end = 0x5a07ffff,
2715 .flags = ADDR_TYPE_RT
2716 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002717 { }
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002718};
2719
2720/* l3_main_2 -> iva */
2721static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2722 .master = &omap44xx_l3_main_2_hwmod,
2723 .slave = &omap44xx_iva_hwmod,
2724 .clk = "l3_div_ck",
2725 .addr = omap44xx_iva_addrs,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002726 .user = OCP_USER_MPU,
2727};
2728
2729/* iva slave ports */
2730static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
2731 &omap44xx_dsp__iva,
2732 &omap44xx_l3_main_2__iva,
2733};
2734
2735/* Pseudo hwmod for reset control purpose only */
2736static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
2737 .name = "iva_seq0",
2738 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002739 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002740 .flags = HWMOD_INIT_NO_RESET,
2741 .rst_lines = omap44xx_iva_seq0_resets,
2742 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
2743 .prcm = {
2744 .omap4 = {
Benoit Coussoneaac3292011-07-10 05:56:31 -06002745 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002746 },
2747 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002748};
2749
2750/* Pseudo hwmod for reset control purpose only */
2751static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
2752 .name = "iva_seq1",
2753 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002754 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002755 .flags = HWMOD_INIT_NO_RESET,
2756 .rst_lines = omap44xx_iva_seq1_resets,
2757 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
2758 .prcm = {
2759 .omap4 = {
Benoit Coussoneaac3292011-07-10 05:56:31 -06002760 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002761 },
2762 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002763};
2764
2765static struct omap_hwmod omap44xx_iva_hwmod = {
2766 .name = "iva",
2767 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002768 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002769 .mpu_irqs = omap44xx_iva_irqs,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002770 .rst_lines = omap44xx_iva_resets,
2771 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
2772 .main_clk = "iva_fck",
2773 .prcm = {
2774 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002775 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06002776 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002777 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002778 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002779 },
2780 },
2781 .slaves = omap44xx_iva_slaves,
2782 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
2783 .masters = omap44xx_iva_masters,
2784 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002785};
2786
2787/*
Benoit Cousson407a6882011-02-15 22:39:48 +01002788 * 'kbd' class
2789 * keyboard controller
2790 */
2791
2792static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
2793 .rev_offs = 0x0000,
2794 .sysc_offs = 0x0010,
2795 .syss_offs = 0x0014,
2796 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2797 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2798 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2799 SYSS_HAS_RESET_STATUS),
2800 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2801 .sysc_fields = &omap_hwmod_sysc_type1,
2802};
2803
2804static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
2805 .name = "kbd",
2806 .sysc = &omap44xx_kbd_sysc,
2807};
2808
2809/* kbd */
2810static struct omap_hwmod omap44xx_kbd_hwmod;
2811static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
2812 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002813 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002814};
2815
2816static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
2817 {
2818 .pa_start = 0x4a31c000,
2819 .pa_end = 0x4a31c07f,
2820 .flags = ADDR_TYPE_RT
2821 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002822 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01002823};
2824
2825/* l4_wkup -> kbd */
2826static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2827 .master = &omap44xx_l4_wkup_hwmod,
2828 .slave = &omap44xx_kbd_hwmod,
2829 .clk = "l4_wkup_clk_mux_ck",
2830 .addr = omap44xx_kbd_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002831 .user = OCP_USER_MPU | OCP_USER_SDMA,
2832};
2833
2834/* kbd slave ports */
2835static struct omap_hwmod_ocp_if *omap44xx_kbd_slaves[] = {
2836 &omap44xx_l4_wkup__kbd,
2837};
2838
2839static struct omap_hwmod omap44xx_kbd_hwmod = {
2840 .name = "kbd",
2841 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002842 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002843 .mpu_irqs = omap44xx_kbd_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002844 .main_clk = "kbd_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002845 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002846 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002847 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002848 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002849 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002850 },
2851 },
2852 .slaves = omap44xx_kbd_slaves,
2853 .slaves_cnt = ARRAY_SIZE(omap44xx_kbd_slaves),
Benoit Cousson407a6882011-02-15 22:39:48 +01002854};
2855
2856/*
Benoit Coussonec5df922011-02-02 19:27:21 +00002857 * 'mailbox' class
2858 * mailbox module allowing communication between the on-chip processors using a
2859 * queued mailbox-interrupt mechanism.
2860 */
2861
2862static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
2863 .rev_offs = 0x0000,
2864 .sysc_offs = 0x0010,
2865 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2866 SYSC_HAS_SOFTRESET),
2867 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2868 .sysc_fields = &omap_hwmod_sysc_type2,
2869};
2870
2871static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
2872 .name = "mailbox",
2873 .sysc = &omap44xx_mailbox_sysc,
2874};
2875
2876/* mailbox */
2877static struct omap_hwmod omap44xx_mailbox_hwmod;
2878static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
2879 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002880 { .irq = -1 }
Benoit Coussonec5df922011-02-02 19:27:21 +00002881};
2882
2883static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
2884 {
2885 .pa_start = 0x4a0f4000,
2886 .pa_end = 0x4a0f41ff,
2887 .flags = ADDR_TYPE_RT
2888 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002889 { }
Benoit Coussonec5df922011-02-02 19:27:21 +00002890};
2891
2892/* l4_cfg -> mailbox */
2893static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
2894 .master = &omap44xx_l4_cfg_hwmod,
2895 .slave = &omap44xx_mailbox_hwmod,
2896 .clk = "l4_div_ck",
2897 .addr = omap44xx_mailbox_addrs,
Benoit Coussonec5df922011-02-02 19:27:21 +00002898 .user = OCP_USER_MPU | OCP_USER_SDMA,
2899};
2900
2901/* mailbox slave ports */
2902static struct omap_hwmod_ocp_if *omap44xx_mailbox_slaves[] = {
2903 &omap44xx_l4_cfg__mailbox,
2904};
2905
2906static struct omap_hwmod omap44xx_mailbox_hwmod = {
2907 .name = "mailbox",
2908 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002909 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussonec5df922011-02-02 19:27:21 +00002910 .mpu_irqs = omap44xx_mailbox_irqs,
Benoit Cousson00fe6102011-07-09 19:14:28 -06002911 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00002912 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002913 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002914 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00002915 },
2916 },
2917 .slaves = omap44xx_mailbox_slaves,
2918 .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
Benoit Coussonec5df922011-02-02 19:27:21 +00002919};
2920
2921/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00002922 * 'mcbsp' class
2923 * multi channel buffered serial port controller
2924 */
2925
2926static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
2927 .sysc_offs = 0x008c,
2928 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2929 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2930 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2931 .sysc_fields = &omap_hwmod_sysc_type1,
2932};
2933
2934static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
2935 .name = "mcbsp",
2936 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302937 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002938};
2939
2940/* mcbsp1 */
2941static struct omap_hwmod omap44xx_mcbsp1_hwmod;
2942static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
2943 { .irq = 17 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002944 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002945};
2946
2947static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
2948 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
2949 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002950 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002951};
2952
2953static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
2954 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302955 .name = "mpu",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002956 .pa_start = 0x40122000,
2957 .pa_end = 0x401220ff,
2958 .flags = ADDR_TYPE_RT
2959 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002960 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002961};
2962
2963/* l4_abe -> mcbsp1 */
2964static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
2965 .master = &omap44xx_l4_abe_hwmod,
2966 .slave = &omap44xx_mcbsp1_hwmod,
2967 .clk = "ocp_abe_iclk",
2968 .addr = omap44xx_mcbsp1_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002969 .user = OCP_USER_MPU,
2970};
2971
2972static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
2973 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302974 .name = "dma",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002975 .pa_start = 0x49022000,
2976 .pa_end = 0x490220ff,
2977 .flags = ADDR_TYPE_RT
2978 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002979 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002980};
2981
2982/* l4_abe -> mcbsp1 (dma) */
2983static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
2984 .master = &omap44xx_l4_abe_hwmod,
2985 .slave = &omap44xx_mcbsp1_hwmod,
2986 .clk = "ocp_abe_iclk",
2987 .addr = omap44xx_mcbsp1_dma_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002988 .user = OCP_USER_SDMA,
2989};
2990
2991/* mcbsp1 slave ports */
2992static struct omap_hwmod_ocp_if *omap44xx_mcbsp1_slaves[] = {
2993 &omap44xx_l4_abe__mcbsp1,
2994 &omap44xx_l4_abe__mcbsp1_dma,
2995};
2996
2997static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
2998 .name = "mcbsp1",
2999 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003000 .clkdm_name = "abe_clkdm",
Benoit Cousson4ddff492011-01-31 14:50:30 +00003001 .mpu_irqs = omap44xx_mcbsp1_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003002 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003003 .main_clk = "mcbsp1_fck",
3004 .prcm = {
3005 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003006 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003007 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003008 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003009 },
3010 },
3011 .slaves = omap44xx_mcbsp1_slaves,
3012 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
Benoit Cousson4ddff492011-01-31 14:50:30 +00003013};
3014
3015/* mcbsp2 */
3016static struct omap_hwmod omap44xx_mcbsp2_hwmod;
3017static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
3018 { .irq = 22 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003019 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003020};
3021
3022static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
3023 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
3024 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003025 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003026};
3027
3028static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
3029 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05303030 .name = "mpu",
Benoit Cousson4ddff492011-01-31 14:50:30 +00003031 .pa_start = 0x40124000,
3032 .pa_end = 0x401240ff,
3033 .flags = ADDR_TYPE_RT
3034 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003035 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003036};
3037
3038/* l4_abe -> mcbsp2 */
3039static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
3040 .master = &omap44xx_l4_abe_hwmod,
3041 .slave = &omap44xx_mcbsp2_hwmod,
3042 .clk = "ocp_abe_iclk",
3043 .addr = omap44xx_mcbsp2_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003044 .user = OCP_USER_MPU,
3045};
3046
3047static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
3048 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05303049 .name = "dma",
Benoit Cousson4ddff492011-01-31 14:50:30 +00003050 .pa_start = 0x49024000,
3051 .pa_end = 0x490240ff,
3052 .flags = ADDR_TYPE_RT
3053 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003054 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003055};
3056
3057/* l4_abe -> mcbsp2 (dma) */
3058static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
3059 .master = &omap44xx_l4_abe_hwmod,
3060 .slave = &omap44xx_mcbsp2_hwmod,
3061 .clk = "ocp_abe_iclk",
3062 .addr = omap44xx_mcbsp2_dma_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003063 .user = OCP_USER_SDMA,
3064};
3065
3066/* mcbsp2 slave ports */
3067static struct omap_hwmod_ocp_if *omap44xx_mcbsp2_slaves[] = {
3068 &omap44xx_l4_abe__mcbsp2,
3069 &omap44xx_l4_abe__mcbsp2_dma,
3070};
3071
3072static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
3073 .name = "mcbsp2",
3074 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003075 .clkdm_name = "abe_clkdm",
Benoit Cousson4ddff492011-01-31 14:50:30 +00003076 .mpu_irqs = omap44xx_mcbsp2_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003077 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003078 .main_clk = "mcbsp2_fck",
3079 .prcm = {
3080 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003081 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003082 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003083 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003084 },
3085 },
3086 .slaves = omap44xx_mcbsp2_slaves,
3087 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
Benoit Cousson4ddff492011-01-31 14:50:30 +00003088};
3089
3090/* mcbsp3 */
3091static struct omap_hwmod omap44xx_mcbsp3_hwmod;
3092static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
3093 { .irq = 23 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003094 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003095};
3096
3097static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
3098 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
3099 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003100 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003101};
3102
3103static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
3104 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05303105 .name = "mpu",
Benoit Cousson4ddff492011-01-31 14:50:30 +00003106 .pa_start = 0x40126000,
3107 .pa_end = 0x401260ff,
3108 .flags = ADDR_TYPE_RT
3109 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003110 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003111};
3112
3113/* l4_abe -> mcbsp3 */
3114static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
3115 .master = &omap44xx_l4_abe_hwmod,
3116 .slave = &omap44xx_mcbsp3_hwmod,
3117 .clk = "ocp_abe_iclk",
3118 .addr = omap44xx_mcbsp3_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003119 .user = OCP_USER_MPU,
3120};
3121
3122static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
3123 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05303124 .name = "dma",
Benoit Cousson4ddff492011-01-31 14:50:30 +00003125 .pa_start = 0x49026000,
3126 .pa_end = 0x490260ff,
3127 .flags = ADDR_TYPE_RT
3128 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003129 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003130};
3131
3132/* l4_abe -> mcbsp3 (dma) */
3133static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
3134 .master = &omap44xx_l4_abe_hwmod,
3135 .slave = &omap44xx_mcbsp3_hwmod,
3136 .clk = "ocp_abe_iclk",
3137 .addr = omap44xx_mcbsp3_dma_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003138 .user = OCP_USER_SDMA,
3139};
3140
3141/* mcbsp3 slave ports */
3142static struct omap_hwmod_ocp_if *omap44xx_mcbsp3_slaves[] = {
3143 &omap44xx_l4_abe__mcbsp3,
3144 &omap44xx_l4_abe__mcbsp3_dma,
3145};
3146
3147static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
3148 .name = "mcbsp3",
3149 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003150 .clkdm_name = "abe_clkdm",
Benoit Cousson4ddff492011-01-31 14:50:30 +00003151 .mpu_irqs = omap44xx_mcbsp3_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003152 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003153 .main_clk = "mcbsp3_fck",
3154 .prcm = {
3155 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003156 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003157 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003158 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003159 },
3160 },
3161 .slaves = omap44xx_mcbsp3_slaves,
3162 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
Benoit Cousson4ddff492011-01-31 14:50:30 +00003163};
3164
3165/* mcbsp4 */
3166static struct omap_hwmod omap44xx_mcbsp4_hwmod;
3167static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
3168 { .irq = 16 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003169 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003170};
3171
3172static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
3173 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
3174 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003175 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003176};
3177
3178static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
3179 {
3180 .pa_start = 0x48096000,
3181 .pa_end = 0x480960ff,
3182 .flags = ADDR_TYPE_RT
3183 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003184 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003185};
3186
3187/* l4_per -> mcbsp4 */
3188static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3189 .master = &omap44xx_l4_per_hwmod,
3190 .slave = &omap44xx_mcbsp4_hwmod,
3191 .clk = "l4_div_ck",
3192 .addr = omap44xx_mcbsp4_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003193 .user = OCP_USER_MPU | OCP_USER_SDMA,
3194};
3195
3196/* mcbsp4 slave ports */
3197static struct omap_hwmod_ocp_if *omap44xx_mcbsp4_slaves[] = {
3198 &omap44xx_l4_per__mcbsp4,
3199};
3200
3201static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
3202 .name = "mcbsp4",
3203 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003204 .clkdm_name = "l4_per_clkdm",
Benoit Cousson4ddff492011-01-31 14:50:30 +00003205 .mpu_irqs = omap44xx_mcbsp4_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003206 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003207 .main_clk = "mcbsp4_fck",
3208 .prcm = {
3209 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003210 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003211 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003212 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003213 },
3214 },
3215 .slaves = omap44xx_mcbsp4_slaves,
3216 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
Benoit Cousson4ddff492011-01-31 14:50:30 +00003217};
3218
3219/*
Benoit Cousson407a6882011-02-15 22:39:48 +01003220 * 'mcpdm' class
3221 * multi channel pdm controller (proprietary interface with phoenix power
3222 * ic)
3223 */
3224
3225static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
3226 .rev_offs = 0x0000,
3227 .sysc_offs = 0x0010,
3228 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3229 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3230 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3231 SIDLE_SMART_WKUP),
3232 .sysc_fields = &omap_hwmod_sysc_type2,
3233};
3234
3235static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
3236 .name = "mcpdm",
3237 .sysc = &omap44xx_mcpdm_sysc,
3238};
3239
3240/* mcpdm */
3241static struct omap_hwmod omap44xx_mcpdm_hwmod;
3242static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
3243 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003244 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003245};
3246
3247static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
3248 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
3249 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003250 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003251};
3252
3253static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
3254 {
3255 .pa_start = 0x40132000,
3256 .pa_end = 0x4013207f,
3257 .flags = ADDR_TYPE_RT
3258 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003259 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003260};
3261
3262/* l4_abe -> mcpdm */
3263static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3264 .master = &omap44xx_l4_abe_hwmod,
3265 .slave = &omap44xx_mcpdm_hwmod,
3266 .clk = "ocp_abe_iclk",
3267 .addr = omap44xx_mcpdm_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003268 .user = OCP_USER_MPU,
3269};
3270
3271static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
3272 {
3273 .pa_start = 0x49032000,
3274 .pa_end = 0x4903207f,
3275 .flags = ADDR_TYPE_RT
3276 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003277 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003278};
3279
3280/* l4_abe -> mcpdm (dma) */
3281static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
3282 .master = &omap44xx_l4_abe_hwmod,
3283 .slave = &omap44xx_mcpdm_hwmod,
3284 .clk = "ocp_abe_iclk",
3285 .addr = omap44xx_mcpdm_dma_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003286 .user = OCP_USER_SDMA,
3287};
3288
3289/* mcpdm slave ports */
3290static struct omap_hwmod_ocp_if *omap44xx_mcpdm_slaves[] = {
3291 &omap44xx_l4_abe__mcpdm,
3292 &omap44xx_l4_abe__mcpdm_dma,
3293};
3294
3295static struct omap_hwmod omap44xx_mcpdm_hwmod = {
3296 .name = "mcpdm",
3297 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003298 .clkdm_name = "abe_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01003299 .mpu_irqs = omap44xx_mcpdm_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003300 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003301 .main_clk = "mcpdm_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06003302 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01003303 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003304 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003305 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003306 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01003307 },
3308 },
3309 .slaves = omap44xx_mcpdm_slaves,
3310 .slaves_cnt = ARRAY_SIZE(omap44xx_mcpdm_slaves),
Benoit Cousson407a6882011-02-15 22:39:48 +01003311};
3312
3313/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303314 * 'mcspi' class
3315 * multichannel serial port interface (mcspi) / master/slave synchronous serial
3316 * bus
3317 */
3318
3319static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
3320 .rev_offs = 0x0000,
3321 .sysc_offs = 0x0010,
3322 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3323 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3324 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3325 SIDLE_SMART_WKUP),
3326 .sysc_fields = &omap_hwmod_sysc_type2,
3327};
3328
3329static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
3330 .name = "mcspi",
3331 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01003332 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303333};
3334
3335/* mcspi1 */
3336static struct omap_hwmod omap44xx_mcspi1_hwmod;
3337static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
3338 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003339 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303340};
3341
3342static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
3343 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
3344 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
3345 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
3346 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
3347 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
3348 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
3349 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
3350 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003351 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303352};
3353
3354static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
3355 {
3356 .pa_start = 0x48098000,
3357 .pa_end = 0x480981ff,
3358 .flags = ADDR_TYPE_RT
3359 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003360 { }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303361};
3362
3363/* l4_per -> mcspi1 */
3364static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3365 .master = &omap44xx_l4_per_hwmod,
3366 .slave = &omap44xx_mcspi1_hwmod,
3367 .clk = "l4_div_ck",
3368 .addr = omap44xx_mcspi1_addrs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303369 .user = OCP_USER_MPU | OCP_USER_SDMA,
3370};
3371
3372/* mcspi1 slave ports */
3373static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
3374 &omap44xx_l4_per__mcspi1,
3375};
3376
Benoit Cousson905a74d2011-02-18 14:01:06 +01003377/* mcspi1 dev_attr */
3378static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
3379 .num_chipselect = 4,
3380};
3381
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303382static struct omap_hwmod omap44xx_mcspi1_hwmod = {
3383 .name = "mcspi1",
3384 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003385 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303386 .mpu_irqs = omap44xx_mcspi1_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303387 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303388 .main_clk = "mcspi1_fck",
3389 .prcm = {
3390 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003391 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003392 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003393 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303394 },
3395 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01003396 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303397 .slaves = omap44xx_mcspi1_slaves,
3398 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303399};
3400
3401/* mcspi2 */
3402static struct omap_hwmod omap44xx_mcspi2_hwmod;
3403static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
3404 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003405 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303406};
3407
3408static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
3409 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
3410 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
3411 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
3412 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003413 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303414};
3415
3416static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
3417 {
3418 .pa_start = 0x4809a000,
3419 .pa_end = 0x4809a1ff,
3420 .flags = ADDR_TYPE_RT
3421 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003422 { }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303423};
3424
3425/* l4_per -> mcspi2 */
3426static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3427 .master = &omap44xx_l4_per_hwmod,
3428 .slave = &omap44xx_mcspi2_hwmod,
3429 .clk = "l4_div_ck",
3430 .addr = omap44xx_mcspi2_addrs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303431 .user = OCP_USER_MPU | OCP_USER_SDMA,
3432};
3433
3434/* mcspi2 slave ports */
3435static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
3436 &omap44xx_l4_per__mcspi2,
3437};
3438
Benoit Cousson905a74d2011-02-18 14:01:06 +01003439/* mcspi2 dev_attr */
3440static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
3441 .num_chipselect = 2,
3442};
3443
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303444static struct omap_hwmod omap44xx_mcspi2_hwmod = {
3445 .name = "mcspi2",
3446 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003447 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303448 .mpu_irqs = omap44xx_mcspi2_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303449 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303450 .main_clk = "mcspi2_fck",
3451 .prcm = {
3452 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003453 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003454 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003455 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303456 },
3457 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01003458 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303459 .slaves = omap44xx_mcspi2_slaves,
3460 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303461};
3462
3463/* mcspi3 */
3464static struct omap_hwmod omap44xx_mcspi3_hwmod;
3465static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
3466 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003467 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303468};
3469
3470static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
3471 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
3472 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
3473 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
3474 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003475 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303476};
3477
3478static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
3479 {
3480 .pa_start = 0x480b8000,
3481 .pa_end = 0x480b81ff,
3482 .flags = ADDR_TYPE_RT
3483 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003484 { }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303485};
3486
3487/* l4_per -> mcspi3 */
3488static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3489 .master = &omap44xx_l4_per_hwmod,
3490 .slave = &omap44xx_mcspi3_hwmod,
3491 .clk = "l4_div_ck",
3492 .addr = omap44xx_mcspi3_addrs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303493 .user = OCP_USER_MPU | OCP_USER_SDMA,
3494};
3495
3496/* mcspi3 slave ports */
3497static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
3498 &omap44xx_l4_per__mcspi3,
3499};
3500
Benoit Cousson905a74d2011-02-18 14:01:06 +01003501/* mcspi3 dev_attr */
3502static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
3503 .num_chipselect = 2,
3504};
3505
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303506static struct omap_hwmod omap44xx_mcspi3_hwmod = {
3507 .name = "mcspi3",
3508 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003509 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303510 .mpu_irqs = omap44xx_mcspi3_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303511 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303512 .main_clk = "mcspi3_fck",
3513 .prcm = {
3514 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003515 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003516 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003517 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303518 },
3519 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01003520 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303521 .slaves = omap44xx_mcspi3_slaves,
3522 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303523};
3524
3525/* mcspi4 */
3526static struct omap_hwmod omap44xx_mcspi4_hwmod;
3527static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
3528 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003529 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303530};
3531
3532static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
3533 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
3534 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003535 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303536};
3537
3538static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
3539 {
3540 .pa_start = 0x480ba000,
3541 .pa_end = 0x480ba1ff,
3542 .flags = ADDR_TYPE_RT
3543 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003544 { }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303545};
3546
3547/* l4_per -> mcspi4 */
3548static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3549 .master = &omap44xx_l4_per_hwmod,
3550 .slave = &omap44xx_mcspi4_hwmod,
3551 .clk = "l4_div_ck",
3552 .addr = omap44xx_mcspi4_addrs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303553 .user = OCP_USER_MPU | OCP_USER_SDMA,
3554};
3555
3556/* mcspi4 slave ports */
3557static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
3558 &omap44xx_l4_per__mcspi4,
3559};
3560
Benoit Cousson905a74d2011-02-18 14:01:06 +01003561/* mcspi4 dev_attr */
3562static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
3563 .num_chipselect = 1,
3564};
3565
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303566static struct omap_hwmod omap44xx_mcspi4_hwmod = {
3567 .name = "mcspi4",
3568 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003569 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303570 .mpu_irqs = omap44xx_mcspi4_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303571 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303572 .main_clk = "mcspi4_fck",
3573 .prcm = {
3574 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003575 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003576 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003577 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303578 },
3579 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01003580 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303581 .slaves = omap44xx_mcspi4_slaves,
3582 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303583};
3584
3585/*
Benoit Cousson407a6882011-02-15 22:39:48 +01003586 * 'mmc' class
3587 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
3588 */
3589
3590static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
3591 .rev_offs = 0x0000,
3592 .sysc_offs = 0x0010,
3593 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
3594 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
3595 SYSC_HAS_SOFTRESET),
3596 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3597 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02003598 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01003599 .sysc_fields = &omap_hwmod_sysc_type2,
3600};
3601
3602static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
3603 .name = "mmc",
3604 .sysc = &omap44xx_mmc_sysc,
3605};
3606
3607/* mmc1 */
3608static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
3609 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003610 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003611};
3612
3613static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
3614 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
3615 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003616 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003617};
3618
3619/* mmc1 master ports */
3620static struct omap_hwmod_ocp_if *omap44xx_mmc1_masters[] = {
3621 &omap44xx_mmc1__l3_main_1,
3622};
3623
3624static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
3625 {
3626 .pa_start = 0x4809c000,
3627 .pa_end = 0x4809c3ff,
3628 .flags = ADDR_TYPE_RT
3629 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003630 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003631};
3632
3633/* l4_per -> mmc1 */
3634static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3635 .master = &omap44xx_l4_per_hwmod,
3636 .slave = &omap44xx_mmc1_hwmod,
3637 .clk = "l4_div_ck",
3638 .addr = omap44xx_mmc1_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003639 .user = OCP_USER_MPU | OCP_USER_SDMA,
3640};
3641
3642/* mmc1 slave ports */
3643static struct omap_hwmod_ocp_if *omap44xx_mmc1_slaves[] = {
3644 &omap44xx_l4_per__mmc1,
3645};
3646
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08003647/* mmc1 dev_attr */
3648static struct omap_mmc_dev_attr mmc1_dev_attr = {
3649 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
3650};
3651
Benoit Cousson407a6882011-02-15 22:39:48 +01003652static struct omap_hwmod omap44xx_mmc1_hwmod = {
3653 .name = "mmc1",
3654 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003655 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01003656 .mpu_irqs = omap44xx_mmc1_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003657 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003658 .main_clk = "mmc1_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06003659 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01003660 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003661 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003662 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003663 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01003664 },
3665 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08003666 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01003667 .slaves = omap44xx_mmc1_slaves,
3668 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
3669 .masters = omap44xx_mmc1_masters,
3670 .masters_cnt = ARRAY_SIZE(omap44xx_mmc1_masters),
Benoit Cousson407a6882011-02-15 22:39:48 +01003671};
3672
3673/* mmc2 */
3674static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
3675 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003676 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003677};
3678
3679static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
3680 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
3681 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003682 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003683};
3684
3685/* mmc2 master ports */
3686static struct omap_hwmod_ocp_if *omap44xx_mmc2_masters[] = {
3687 &omap44xx_mmc2__l3_main_1,
3688};
3689
3690static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
3691 {
3692 .pa_start = 0x480b4000,
3693 .pa_end = 0x480b43ff,
3694 .flags = ADDR_TYPE_RT
3695 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003696 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003697};
3698
3699/* l4_per -> mmc2 */
3700static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3701 .master = &omap44xx_l4_per_hwmod,
3702 .slave = &omap44xx_mmc2_hwmod,
3703 .clk = "l4_div_ck",
3704 .addr = omap44xx_mmc2_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003705 .user = OCP_USER_MPU | OCP_USER_SDMA,
3706};
3707
3708/* mmc2 slave ports */
3709static struct omap_hwmod_ocp_if *omap44xx_mmc2_slaves[] = {
3710 &omap44xx_l4_per__mmc2,
3711};
3712
3713static struct omap_hwmod omap44xx_mmc2_hwmod = {
3714 .name = "mmc2",
3715 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003716 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01003717 .mpu_irqs = omap44xx_mmc2_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003718 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003719 .main_clk = "mmc2_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06003720 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01003721 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003722 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003723 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003724 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01003725 },
3726 },
3727 .slaves = omap44xx_mmc2_slaves,
3728 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc2_slaves),
3729 .masters = omap44xx_mmc2_masters,
3730 .masters_cnt = ARRAY_SIZE(omap44xx_mmc2_masters),
Benoit Cousson407a6882011-02-15 22:39:48 +01003731};
3732
3733/* mmc3 */
3734static struct omap_hwmod omap44xx_mmc3_hwmod;
3735static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
3736 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003737 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003738};
3739
3740static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
3741 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
3742 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003743 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003744};
3745
3746static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
3747 {
3748 .pa_start = 0x480ad000,
3749 .pa_end = 0x480ad3ff,
3750 .flags = ADDR_TYPE_RT
3751 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003752 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003753};
3754
3755/* l4_per -> mmc3 */
3756static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3757 .master = &omap44xx_l4_per_hwmod,
3758 .slave = &omap44xx_mmc3_hwmod,
3759 .clk = "l4_div_ck",
3760 .addr = omap44xx_mmc3_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003761 .user = OCP_USER_MPU | OCP_USER_SDMA,
3762};
3763
3764/* mmc3 slave ports */
3765static struct omap_hwmod_ocp_if *omap44xx_mmc3_slaves[] = {
3766 &omap44xx_l4_per__mmc3,
3767};
3768
3769static struct omap_hwmod omap44xx_mmc3_hwmod = {
3770 .name = "mmc3",
3771 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003772 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01003773 .mpu_irqs = omap44xx_mmc3_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003774 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003775 .main_clk = "mmc3_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06003776 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01003777 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003778 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003779 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003780 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01003781 },
3782 },
3783 .slaves = omap44xx_mmc3_slaves,
3784 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc3_slaves),
Benoit Cousson407a6882011-02-15 22:39:48 +01003785};
3786
3787/* mmc4 */
3788static struct omap_hwmod omap44xx_mmc4_hwmod;
3789static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
3790 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003791 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003792};
3793
3794static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
3795 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
3796 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003797 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003798};
3799
3800static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
3801 {
3802 .pa_start = 0x480d1000,
3803 .pa_end = 0x480d13ff,
3804 .flags = ADDR_TYPE_RT
3805 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003806 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003807};
3808
3809/* l4_per -> mmc4 */
3810static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3811 .master = &omap44xx_l4_per_hwmod,
3812 .slave = &omap44xx_mmc4_hwmod,
3813 .clk = "l4_div_ck",
3814 .addr = omap44xx_mmc4_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003815 .user = OCP_USER_MPU | OCP_USER_SDMA,
3816};
3817
3818/* mmc4 slave ports */
3819static struct omap_hwmod_ocp_if *omap44xx_mmc4_slaves[] = {
3820 &omap44xx_l4_per__mmc4,
3821};
3822
3823static struct omap_hwmod omap44xx_mmc4_hwmod = {
3824 .name = "mmc4",
3825 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003826 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01003827 .mpu_irqs = omap44xx_mmc4_irqs,
Paul Walmsley212738a2011-07-09 19:14:06 -06003828
Benoit Cousson407a6882011-02-15 22:39:48 +01003829 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003830 .main_clk = "mmc4_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06003831 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01003832 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003833 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003834 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003835 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01003836 },
3837 },
3838 .slaves = omap44xx_mmc4_slaves,
3839 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc4_slaves),
Benoit Cousson407a6882011-02-15 22:39:48 +01003840};
3841
3842/* mmc5 */
3843static struct omap_hwmod omap44xx_mmc5_hwmod;
3844static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
3845 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003846 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003847};
3848
3849static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
3850 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
3851 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003852 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003853};
3854
3855static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
3856 {
3857 .pa_start = 0x480d5000,
3858 .pa_end = 0x480d53ff,
3859 .flags = ADDR_TYPE_RT
3860 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003861 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003862};
3863
3864/* l4_per -> mmc5 */
3865static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3866 .master = &omap44xx_l4_per_hwmod,
3867 .slave = &omap44xx_mmc5_hwmod,
3868 .clk = "l4_div_ck",
3869 .addr = omap44xx_mmc5_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003870 .user = OCP_USER_MPU | OCP_USER_SDMA,
3871};
3872
3873/* mmc5 slave ports */
3874static struct omap_hwmod_ocp_if *omap44xx_mmc5_slaves[] = {
3875 &omap44xx_l4_per__mmc5,
3876};
3877
3878static struct omap_hwmod omap44xx_mmc5_hwmod = {
3879 .name = "mmc5",
3880 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003881 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01003882 .mpu_irqs = omap44xx_mmc5_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003883 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003884 .main_clk = "mmc5_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06003885 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01003886 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003887 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003888 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003889 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01003890 },
3891 },
3892 .slaves = omap44xx_mmc5_slaves,
3893 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc5_slaves),
Benoit Cousson407a6882011-02-15 22:39:48 +01003894};
3895
3896/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003897 * 'mpu' class
3898 * mpu sub-system
3899 */
3900
3901static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00003902 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003903};
3904
3905/* mpu */
3906static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
3907 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
3908 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
3909 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003910 { .irq = -1 }
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003911};
3912
3913/* mpu master ports */
3914static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
3915 &omap44xx_mpu__l3_main_1,
3916 &omap44xx_mpu__l4_abe,
3917 &omap44xx_mpu__dmm,
3918};
3919
3920static struct omap_hwmod omap44xx_mpu_hwmod = {
3921 .name = "mpu",
3922 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003923 .clkdm_name = "mpuss_clkdm",
Benoit Cousson7ecc5372011-07-09 19:14:28 -06003924 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003925 .mpu_irqs = omap44xx_mpu_irqs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003926 .main_clk = "dpll_mpu_m2_ck",
3927 .prcm = {
3928 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003929 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003930 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003931 },
3932 },
3933 .masters = omap44xx_mpu_masters,
3934 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003935};
3936
Benoit Cousson92b18d12010-09-23 20:02:41 +05303937/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003938 * 'smartreflex' class
3939 * smartreflex module (monitor silicon performance and outputs a measure of
3940 * performance error)
3941 */
3942
3943/* The IP is not compliant to type1 / type2 scheme */
3944static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
3945 .sidle_shift = 24,
3946 .enwkup_shift = 26,
3947};
3948
3949static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
3950 .sysc_offs = 0x0038,
3951 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
3952 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3953 SIDLE_SMART_WKUP),
3954 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
3955};
3956
3957static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00003958 .name = "smartreflex",
3959 .sysc = &omap44xx_smartreflex_sysc,
3960 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003961};
3962
3963/* smartreflex_core */
3964static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
3965static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
3966 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003967 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003968};
3969
3970static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
3971 {
3972 .pa_start = 0x4a0dd000,
3973 .pa_end = 0x4a0dd03f,
3974 .flags = ADDR_TYPE_RT
3975 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003976 { }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003977};
3978
3979/* l4_cfg -> smartreflex_core */
3980static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3981 .master = &omap44xx_l4_cfg_hwmod,
3982 .slave = &omap44xx_smartreflex_core_hwmod,
3983 .clk = "l4_div_ck",
3984 .addr = omap44xx_smartreflex_core_addrs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003985 .user = OCP_USER_MPU | OCP_USER_SDMA,
3986};
3987
3988/* smartreflex_core slave ports */
3989static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
3990 &omap44xx_l4_cfg__smartreflex_core,
3991};
3992
3993static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
3994 .name = "smartreflex_core",
3995 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003996 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003997 .mpu_irqs = omap44xx_smartreflex_core_irqs,
Paul Walmsley212738a2011-07-09 19:14:06 -06003998
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003999 .main_clk = "smartreflex_core_fck",
4000 .vdd_name = "core",
4001 .prcm = {
4002 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004003 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004004 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004005 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004006 },
4007 },
4008 .slaves = omap44xx_smartreflex_core_slaves,
4009 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004010};
4011
4012/* smartreflex_iva */
4013static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
4014static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
4015 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004016 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004017};
4018
4019static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
4020 {
4021 .pa_start = 0x4a0db000,
4022 .pa_end = 0x4a0db03f,
4023 .flags = ADDR_TYPE_RT
4024 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004025 { }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004026};
4027
4028/* l4_cfg -> smartreflex_iva */
4029static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4030 .master = &omap44xx_l4_cfg_hwmod,
4031 .slave = &omap44xx_smartreflex_iva_hwmod,
4032 .clk = "l4_div_ck",
4033 .addr = omap44xx_smartreflex_iva_addrs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004034 .user = OCP_USER_MPU | OCP_USER_SDMA,
4035};
4036
4037/* smartreflex_iva slave ports */
4038static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
4039 &omap44xx_l4_cfg__smartreflex_iva,
4040};
4041
4042static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
4043 .name = "smartreflex_iva",
4044 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004045 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004046 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004047 .main_clk = "smartreflex_iva_fck",
4048 .vdd_name = "iva",
4049 .prcm = {
4050 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004051 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004052 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004053 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004054 },
4055 },
4056 .slaves = omap44xx_smartreflex_iva_slaves,
4057 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004058};
4059
4060/* smartreflex_mpu */
4061static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
4062static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
4063 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004064 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004065};
4066
4067static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4068 {
4069 .pa_start = 0x4a0d9000,
4070 .pa_end = 0x4a0d903f,
4071 .flags = ADDR_TYPE_RT
4072 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004073 { }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004074};
4075
4076/* l4_cfg -> smartreflex_mpu */
4077static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4078 .master = &omap44xx_l4_cfg_hwmod,
4079 .slave = &omap44xx_smartreflex_mpu_hwmod,
4080 .clk = "l4_div_ck",
4081 .addr = omap44xx_smartreflex_mpu_addrs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004082 .user = OCP_USER_MPU | OCP_USER_SDMA,
4083};
4084
4085/* smartreflex_mpu slave ports */
4086static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
4087 &omap44xx_l4_cfg__smartreflex_mpu,
4088};
4089
4090static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
4091 .name = "smartreflex_mpu",
4092 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004093 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004094 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004095 .main_clk = "smartreflex_mpu_fck",
4096 .vdd_name = "mpu",
4097 .prcm = {
4098 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004099 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004100 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004101 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004102 },
4103 },
4104 .slaves = omap44xx_smartreflex_mpu_slaves,
4105 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
Benoit Cousson1f6a7172010-12-23 22:30:30 +00004106};
4107
4108/*
Benoit Coussond11c2172011-02-02 12:04:36 +00004109 * 'spinlock' class
4110 * spinlock provides hardware assistance for synchronizing the processes
4111 * running on multiple processors
4112 */
4113
4114static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
4115 .rev_offs = 0x0000,
4116 .sysc_offs = 0x0010,
4117 .syss_offs = 0x0014,
4118 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
4119 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
4120 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4121 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4122 SIDLE_SMART_WKUP),
4123 .sysc_fields = &omap_hwmod_sysc_type1,
4124};
4125
4126static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
4127 .name = "spinlock",
4128 .sysc = &omap44xx_spinlock_sysc,
4129};
4130
4131/* spinlock */
4132static struct omap_hwmod omap44xx_spinlock_hwmod;
4133static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
4134 {
4135 .pa_start = 0x4a0f6000,
4136 .pa_end = 0x4a0f6fff,
4137 .flags = ADDR_TYPE_RT
4138 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004139 { }
Benoit Coussond11c2172011-02-02 12:04:36 +00004140};
4141
4142/* l4_cfg -> spinlock */
4143static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4144 .master = &omap44xx_l4_cfg_hwmod,
4145 .slave = &omap44xx_spinlock_hwmod,
4146 .clk = "l4_div_ck",
4147 .addr = omap44xx_spinlock_addrs,
Benoit Coussond11c2172011-02-02 12:04:36 +00004148 .user = OCP_USER_MPU | OCP_USER_SDMA,
4149};
4150
4151/* spinlock slave ports */
4152static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
4153 &omap44xx_l4_cfg__spinlock,
4154};
4155
4156static struct omap_hwmod omap44xx_spinlock_hwmod = {
4157 .name = "spinlock",
4158 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004159 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00004160 .prcm = {
4161 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004162 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004163 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00004164 },
4165 },
4166 .slaves = omap44xx_spinlock_slaves,
4167 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
Benoit Coussond11c2172011-02-02 12:04:36 +00004168};
4169
4170/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00004171 * 'timer' class
4172 * general purpose timer module with accurate 1ms tick
4173 * This class contains several variants: ['timer_1ms', 'timer']
4174 */
4175
4176static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
4177 .rev_offs = 0x0000,
4178 .sysc_offs = 0x0010,
4179 .syss_offs = 0x0014,
4180 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
4181 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
4182 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4183 SYSS_HAS_RESET_STATUS),
4184 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
4185 .sysc_fields = &omap_hwmod_sysc_type1,
4186};
4187
4188static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
4189 .name = "timer",
4190 .sysc = &omap44xx_timer_1ms_sysc,
4191};
4192
4193static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
4194 .rev_offs = 0x0000,
4195 .sysc_offs = 0x0010,
4196 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
4197 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
4198 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4199 SIDLE_SMART_WKUP),
4200 .sysc_fields = &omap_hwmod_sysc_type2,
4201};
4202
4203static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
4204 .name = "timer",
4205 .sysc = &omap44xx_timer_sysc,
4206};
4207
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304208/* always-on timers dev attribute */
4209static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
4210 .timer_capability = OMAP_TIMER_ALWON,
4211};
4212
4213/* pwm timers dev attribute */
4214static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
4215 .timer_capability = OMAP_TIMER_HAS_PWM,
4216};
4217
Benoit Cousson35d1a662011-02-11 11:17:14 +00004218/* timer1 */
4219static struct omap_hwmod omap44xx_timer1_hwmod;
4220static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
4221 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004222 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004223};
4224
4225static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
4226 {
4227 .pa_start = 0x4a318000,
4228 .pa_end = 0x4a31807f,
4229 .flags = ADDR_TYPE_RT
4230 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004231 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004232};
4233
4234/* l4_wkup -> timer1 */
4235static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4236 .master = &omap44xx_l4_wkup_hwmod,
4237 .slave = &omap44xx_timer1_hwmod,
4238 .clk = "l4_wkup_clk_mux_ck",
4239 .addr = omap44xx_timer1_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004240 .user = OCP_USER_MPU | OCP_USER_SDMA,
4241};
4242
4243/* timer1 slave ports */
4244static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
4245 &omap44xx_l4_wkup__timer1,
4246};
4247
4248static struct omap_hwmod omap44xx_timer1_hwmod = {
4249 .name = "timer1",
4250 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004251 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004252 .mpu_irqs = omap44xx_timer1_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004253 .main_clk = "timer1_fck",
4254 .prcm = {
4255 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004256 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004257 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004258 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004259 },
4260 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304261 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004262 .slaves = omap44xx_timer1_slaves,
4263 .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004264};
4265
4266/* timer2 */
4267static struct omap_hwmod omap44xx_timer2_hwmod;
4268static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
4269 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004270 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004271};
4272
4273static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
4274 {
4275 .pa_start = 0x48032000,
4276 .pa_end = 0x4803207f,
4277 .flags = ADDR_TYPE_RT
4278 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004279 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004280};
4281
4282/* l4_per -> timer2 */
4283static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4284 .master = &omap44xx_l4_per_hwmod,
4285 .slave = &omap44xx_timer2_hwmod,
4286 .clk = "l4_div_ck",
4287 .addr = omap44xx_timer2_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004288 .user = OCP_USER_MPU | OCP_USER_SDMA,
4289};
4290
4291/* timer2 slave ports */
4292static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
4293 &omap44xx_l4_per__timer2,
4294};
4295
4296static struct omap_hwmod omap44xx_timer2_hwmod = {
4297 .name = "timer2",
4298 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004299 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004300 .mpu_irqs = omap44xx_timer2_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004301 .main_clk = "timer2_fck",
4302 .prcm = {
4303 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004304 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004305 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004306 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004307 },
4308 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304309 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004310 .slaves = omap44xx_timer2_slaves,
4311 .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004312};
4313
4314/* timer3 */
4315static struct omap_hwmod omap44xx_timer3_hwmod;
4316static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
4317 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004318 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004319};
4320
4321static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
4322 {
4323 .pa_start = 0x48034000,
4324 .pa_end = 0x4803407f,
4325 .flags = ADDR_TYPE_RT
4326 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004327 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004328};
4329
4330/* l4_per -> timer3 */
4331static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4332 .master = &omap44xx_l4_per_hwmod,
4333 .slave = &omap44xx_timer3_hwmod,
4334 .clk = "l4_div_ck",
4335 .addr = omap44xx_timer3_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004336 .user = OCP_USER_MPU | OCP_USER_SDMA,
4337};
4338
4339/* timer3 slave ports */
4340static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
4341 &omap44xx_l4_per__timer3,
4342};
4343
4344static struct omap_hwmod omap44xx_timer3_hwmod = {
4345 .name = "timer3",
4346 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004347 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004348 .mpu_irqs = omap44xx_timer3_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004349 .main_clk = "timer3_fck",
4350 .prcm = {
4351 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004352 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004353 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004354 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004355 },
4356 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304357 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004358 .slaves = omap44xx_timer3_slaves,
4359 .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004360};
4361
4362/* timer4 */
4363static struct omap_hwmod omap44xx_timer4_hwmod;
4364static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
4365 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004366 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004367};
4368
4369static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
4370 {
4371 .pa_start = 0x48036000,
4372 .pa_end = 0x4803607f,
4373 .flags = ADDR_TYPE_RT
4374 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004375 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004376};
4377
4378/* l4_per -> timer4 */
4379static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4380 .master = &omap44xx_l4_per_hwmod,
4381 .slave = &omap44xx_timer4_hwmod,
4382 .clk = "l4_div_ck",
4383 .addr = omap44xx_timer4_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004384 .user = OCP_USER_MPU | OCP_USER_SDMA,
4385};
4386
4387/* timer4 slave ports */
4388static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
4389 &omap44xx_l4_per__timer4,
4390};
4391
4392static struct omap_hwmod omap44xx_timer4_hwmod = {
4393 .name = "timer4",
4394 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004395 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004396 .mpu_irqs = omap44xx_timer4_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004397 .main_clk = "timer4_fck",
4398 .prcm = {
4399 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004400 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004401 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004402 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004403 },
4404 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304405 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004406 .slaves = omap44xx_timer4_slaves,
4407 .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004408};
4409
4410/* timer5 */
4411static struct omap_hwmod omap44xx_timer5_hwmod;
4412static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
4413 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004414 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004415};
4416
4417static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
4418 {
4419 .pa_start = 0x40138000,
4420 .pa_end = 0x4013807f,
4421 .flags = ADDR_TYPE_RT
4422 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004423 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004424};
4425
4426/* l4_abe -> timer5 */
4427static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4428 .master = &omap44xx_l4_abe_hwmod,
4429 .slave = &omap44xx_timer5_hwmod,
4430 .clk = "ocp_abe_iclk",
4431 .addr = omap44xx_timer5_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004432 .user = OCP_USER_MPU,
4433};
4434
4435static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
4436 {
4437 .pa_start = 0x49038000,
4438 .pa_end = 0x4903807f,
4439 .flags = ADDR_TYPE_RT
4440 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004441 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004442};
4443
4444/* l4_abe -> timer5 (dma) */
4445static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
4446 .master = &omap44xx_l4_abe_hwmod,
4447 .slave = &omap44xx_timer5_hwmod,
4448 .clk = "ocp_abe_iclk",
4449 .addr = omap44xx_timer5_dma_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004450 .user = OCP_USER_SDMA,
4451};
4452
4453/* timer5 slave ports */
4454static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
4455 &omap44xx_l4_abe__timer5,
4456 &omap44xx_l4_abe__timer5_dma,
4457};
4458
4459static struct omap_hwmod omap44xx_timer5_hwmod = {
4460 .name = "timer5",
4461 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004462 .clkdm_name = "abe_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004463 .mpu_irqs = omap44xx_timer5_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004464 .main_clk = "timer5_fck",
4465 .prcm = {
4466 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004467 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004468 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004469 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004470 },
4471 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304472 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004473 .slaves = omap44xx_timer5_slaves,
4474 .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004475};
4476
4477/* timer6 */
4478static struct omap_hwmod omap44xx_timer6_hwmod;
4479static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
4480 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004481 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004482};
4483
4484static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
4485 {
4486 .pa_start = 0x4013a000,
4487 .pa_end = 0x4013a07f,
4488 .flags = ADDR_TYPE_RT
4489 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004490 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004491};
4492
4493/* l4_abe -> timer6 */
4494static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4495 .master = &omap44xx_l4_abe_hwmod,
4496 .slave = &omap44xx_timer6_hwmod,
4497 .clk = "ocp_abe_iclk",
4498 .addr = omap44xx_timer6_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004499 .user = OCP_USER_MPU,
4500};
4501
4502static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
4503 {
4504 .pa_start = 0x4903a000,
4505 .pa_end = 0x4903a07f,
4506 .flags = ADDR_TYPE_RT
4507 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004508 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004509};
4510
4511/* l4_abe -> timer6 (dma) */
4512static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
4513 .master = &omap44xx_l4_abe_hwmod,
4514 .slave = &omap44xx_timer6_hwmod,
4515 .clk = "ocp_abe_iclk",
4516 .addr = omap44xx_timer6_dma_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004517 .user = OCP_USER_SDMA,
4518};
4519
4520/* timer6 slave ports */
4521static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
4522 &omap44xx_l4_abe__timer6,
4523 &omap44xx_l4_abe__timer6_dma,
4524};
4525
4526static struct omap_hwmod omap44xx_timer6_hwmod = {
4527 .name = "timer6",
4528 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004529 .clkdm_name = "abe_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004530 .mpu_irqs = omap44xx_timer6_irqs,
Paul Walmsley212738a2011-07-09 19:14:06 -06004531
Benoit Cousson35d1a662011-02-11 11:17:14 +00004532 .main_clk = "timer6_fck",
4533 .prcm = {
4534 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004535 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004536 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004537 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004538 },
4539 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304540 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004541 .slaves = omap44xx_timer6_slaves,
4542 .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004543};
4544
4545/* timer7 */
4546static struct omap_hwmod omap44xx_timer7_hwmod;
4547static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
4548 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004549 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004550};
4551
4552static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
4553 {
4554 .pa_start = 0x4013c000,
4555 .pa_end = 0x4013c07f,
4556 .flags = ADDR_TYPE_RT
4557 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004558 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004559};
4560
4561/* l4_abe -> timer7 */
4562static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4563 .master = &omap44xx_l4_abe_hwmod,
4564 .slave = &omap44xx_timer7_hwmod,
4565 .clk = "ocp_abe_iclk",
4566 .addr = omap44xx_timer7_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004567 .user = OCP_USER_MPU,
4568};
4569
4570static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
4571 {
4572 .pa_start = 0x4903c000,
4573 .pa_end = 0x4903c07f,
4574 .flags = ADDR_TYPE_RT
4575 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004576 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004577};
4578
4579/* l4_abe -> timer7 (dma) */
4580static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
4581 .master = &omap44xx_l4_abe_hwmod,
4582 .slave = &omap44xx_timer7_hwmod,
4583 .clk = "ocp_abe_iclk",
4584 .addr = omap44xx_timer7_dma_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004585 .user = OCP_USER_SDMA,
4586};
4587
4588/* timer7 slave ports */
4589static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
4590 &omap44xx_l4_abe__timer7,
4591 &omap44xx_l4_abe__timer7_dma,
4592};
4593
4594static struct omap_hwmod omap44xx_timer7_hwmod = {
4595 .name = "timer7",
4596 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004597 .clkdm_name = "abe_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004598 .mpu_irqs = omap44xx_timer7_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004599 .main_clk = "timer7_fck",
4600 .prcm = {
4601 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004602 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004603 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004604 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004605 },
4606 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304607 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004608 .slaves = omap44xx_timer7_slaves,
4609 .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004610};
4611
4612/* timer8 */
4613static struct omap_hwmod omap44xx_timer8_hwmod;
4614static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
4615 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004616 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004617};
4618
4619static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
4620 {
4621 .pa_start = 0x4013e000,
4622 .pa_end = 0x4013e07f,
4623 .flags = ADDR_TYPE_RT
4624 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004625 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004626};
4627
4628/* l4_abe -> timer8 */
4629static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4630 .master = &omap44xx_l4_abe_hwmod,
4631 .slave = &omap44xx_timer8_hwmod,
4632 .clk = "ocp_abe_iclk",
4633 .addr = omap44xx_timer8_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004634 .user = OCP_USER_MPU,
4635};
4636
4637static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
4638 {
4639 .pa_start = 0x4903e000,
4640 .pa_end = 0x4903e07f,
4641 .flags = ADDR_TYPE_RT
4642 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004643 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004644};
4645
4646/* l4_abe -> timer8 (dma) */
4647static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
4648 .master = &omap44xx_l4_abe_hwmod,
4649 .slave = &omap44xx_timer8_hwmod,
4650 .clk = "ocp_abe_iclk",
4651 .addr = omap44xx_timer8_dma_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004652 .user = OCP_USER_SDMA,
4653};
4654
4655/* timer8 slave ports */
4656static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
4657 &omap44xx_l4_abe__timer8,
4658 &omap44xx_l4_abe__timer8_dma,
4659};
4660
4661static struct omap_hwmod omap44xx_timer8_hwmod = {
4662 .name = "timer8",
4663 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004664 .clkdm_name = "abe_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004665 .mpu_irqs = omap44xx_timer8_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004666 .main_clk = "timer8_fck",
4667 .prcm = {
4668 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004669 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004670 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004671 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004672 },
4673 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304674 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004675 .slaves = omap44xx_timer8_slaves,
4676 .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004677};
4678
4679/* timer9 */
4680static struct omap_hwmod omap44xx_timer9_hwmod;
4681static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
4682 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004683 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004684};
4685
4686static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
4687 {
4688 .pa_start = 0x4803e000,
4689 .pa_end = 0x4803e07f,
4690 .flags = ADDR_TYPE_RT
4691 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004692 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004693};
4694
4695/* l4_per -> timer9 */
4696static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4697 .master = &omap44xx_l4_per_hwmod,
4698 .slave = &omap44xx_timer9_hwmod,
4699 .clk = "l4_div_ck",
4700 .addr = omap44xx_timer9_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004701 .user = OCP_USER_MPU | OCP_USER_SDMA,
4702};
4703
4704/* timer9 slave ports */
4705static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
4706 &omap44xx_l4_per__timer9,
4707};
4708
4709static struct omap_hwmod omap44xx_timer9_hwmod = {
4710 .name = "timer9",
4711 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004712 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004713 .mpu_irqs = omap44xx_timer9_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004714 .main_clk = "timer9_fck",
4715 .prcm = {
4716 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004717 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004718 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004719 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004720 },
4721 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304722 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004723 .slaves = omap44xx_timer9_slaves,
4724 .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004725};
4726
4727/* timer10 */
4728static struct omap_hwmod omap44xx_timer10_hwmod;
4729static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
4730 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004731 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004732};
4733
4734static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
4735 {
4736 .pa_start = 0x48086000,
4737 .pa_end = 0x4808607f,
4738 .flags = ADDR_TYPE_RT
4739 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004740 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004741};
4742
4743/* l4_per -> timer10 */
4744static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4745 .master = &omap44xx_l4_per_hwmod,
4746 .slave = &omap44xx_timer10_hwmod,
4747 .clk = "l4_div_ck",
4748 .addr = omap44xx_timer10_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004749 .user = OCP_USER_MPU | OCP_USER_SDMA,
4750};
4751
4752/* timer10 slave ports */
4753static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
4754 &omap44xx_l4_per__timer10,
4755};
4756
4757static struct omap_hwmod omap44xx_timer10_hwmod = {
4758 .name = "timer10",
4759 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004760 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004761 .mpu_irqs = omap44xx_timer10_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004762 .main_clk = "timer10_fck",
4763 .prcm = {
4764 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004765 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004766 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004767 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004768 },
4769 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304770 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004771 .slaves = omap44xx_timer10_slaves,
4772 .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004773};
4774
4775/* timer11 */
4776static struct omap_hwmod omap44xx_timer11_hwmod;
4777static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
4778 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004779 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004780};
4781
4782static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
4783 {
4784 .pa_start = 0x48088000,
4785 .pa_end = 0x4808807f,
4786 .flags = ADDR_TYPE_RT
4787 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004788 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004789};
4790
4791/* l4_per -> timer11 */
4792static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4793 .master = &omap44xx_l4_per_hwmod,
4794 .slave = &omap44xx_timer11_hwmod,
4795 .clk = "l4_div_ck",
4796 .addr = omap44xx_timer11_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004797 .user = OCP_USER_MPU | OCP_USER_SDMA,
4798};
4799
4800/* timer11 slave ports */
4801static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
4802 &omap44xx_l4_per__timer11,
4803};
4804
4805static struct omap_hwmod omap44xx_timer11_hwmod = {
4806 .name = "timer11",
4807 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004808 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00004809 .mpu_irqs = omap44xx_timer11_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004810 .main_clk = "timer11_fck",
4811 .prcm = {
4812 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004813 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004814 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004815 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004816 },
4817 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05304818 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004819 .slaves = omap44xx_timer11_slaves,
4820 .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
Benoit Cousson35d1a662011-02-11 11:17:14 +00004821};
4822
4823/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05304824 * 'uart' class
4825 * universal asynchronous receiver/transmitter (uart)
4826 */
4827
4828static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
4829 .rev_offs = 0x0050,
4830 .sysc_offs = 0x0054,
4831 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004832 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07004833 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4834 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07004835 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4836 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05304837 .sysc_fields = &omap_hwmod_sysc_type1,
4838};
4839
4840static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00004841 .name = "uart",
4842 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304843};
4844
4845/* uart1 */
4846static struct omap_hwmod omap44xx_uart1_hwmod;
4847static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
4848 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004849 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304850};
4851
4852static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
4853 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
4854 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06004855 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304856};
4857
4858static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
4859 {
4860 .pa_start = 0x4806a000,
4861 .pa_end = 0x4806a0ff,
4862 .flags = ADDR_TYPE_RT
4863 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004864 { }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304865};
4866
4867/* l4_per -> uart1 */
4868static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4869 .master = &omap44xx_l4_per_hwmod,
4870 .slave = &omap44xx_uart1_hwmod,
4871 .clk = "l4_div_ck",
4872 .addr = omap44xx_uart1_addrs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304873 .user = OCP_USER_MPU | OCP_USER_SDMA,
4874};
4875
4876/* uart1 slave ports */
4877static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
4878 &omap44xx_l4_per__uart1,
4879};
4880
4881static struct omap_hwmod omap44xx_uart1_hwmod = {
4882 .name = "uart1",
4883 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004884 .clkdm_name = "l4_per_clkdm",
Benoit Coussondb12ba52010-09-27 20:19:19 +05304885 .mpu_irqs = omap44xx_uart1_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304886 .sdma_reqs = omap44xx_uart1_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304887 .main_clk = "uart1_fck",
4888 .prcm = {
4889 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004890 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004891 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004892 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304893 },
4894 },
4895 .slaves = omap44xx_uart1_slaves,
4896 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
Benoit Coussondb12ba52010-09-27 20:19:19 +05304897};
4898
4899/* uart2 */
4900static struct omap_hwmod omap44xx_uart2_hwmod;
4901static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
4902 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004903 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304904};
4905
4906static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
4907 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
4908 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06004909 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304910};
4911
4912static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
4913 {
4914 .pa_start = 0x4806c000,
4915 .pa_end = 0x4806c0ff,
4916 .flags = ADDR_TYPE_RT
4917 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004918 { }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304919};
4920
4921/* l4_per -> uart2 */
4922static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4923 .master = &omap44xx_l4_per_hwmod,
4924 .slave = &omap44xx_uart2_hwmod,
4925 .clk = "l4_div_ck",
4926 .addr = omap44xx_uart2_addrs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304927 .user = OCP_USER_MPU | OCP_USER_SDMA,
4928};
4929
4930/* uart2 slave ports */
4931static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
4932 &omap44xx_l4_per__uart2,
4933};
4934
4935static struct omap_hwmod omap44xx_uart2_hwmod = {
4936 .name = "uart2",
4937 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004938 .clkdm_name = "l4_per_clkdm",
Benoit Coussondb12ba52010-09-27 20:19:19 +05304939 .mpu_irqs = omap44xx_uart2_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304940 .sdma_reqs = omap44xx_uart2_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304941 .main_clk = "uart2_fck",
4942 .prcm = {
4943 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004944 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06004945 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06004946 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304947 },
4948 },
4949 .slaves = omap44xx_uart2_slaves,
4950 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
Benoit Coussondb12ba52010-09-27 20:19:19 +05304951};
4952
4953/* uart3 */
4954static struct omap_hwmod omap44xx_uart3_hwmod;
4955static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
4956 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004957 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304958};
4959
4960static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
4961 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
4962 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06004963 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304964};
4965
4966static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
4967 {
4968 .pa_start = 0x48020000,
4969 .pa_end = 0x480200ff,
4970 .flags = ADDR_TYPE_RT
4971 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004972 { }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304973};
4974
4975/* l4_per -> uart3 */
4976static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4977 .master = &omap44xx_l4_per_hwmod,
4978 .slave = &omap44xx_uart3_hwmod,
4979 .clk = "l4_div_ck",
4980 .addr = omap44xx_uart3_addrs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304981 .user = OCP_USER_MPU | OCP_USER_SDMA,
4982};
4983
4984/* uart3 slave ports */
4985static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
4986 &omap44xx_l4_per__uart3,
4987};
4988
4989static struct omap_hwmod omap44xx_uart3_hwmod = {
4990 .name = "uart3",
4991 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06004992 .clkdm_name = "l4_per_clkdm",
Benoit Cousson7ecc5372011-07-09 19:14:28 -06004993 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304994 .mpu_irqs = omap44xx_uart3_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304995 .sdma_reqs = omap44xx_uart3_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304996 .main_clk = "uart3_fck",
4997 .prcm = {
4998 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06004999 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06005000 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06005001 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05305002 },
5003 },
5004 .slaves = omap44xx_uart3_slaves,
5005 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
Benoit Coussondb12ba52010-09-27 20:19:19 +05305006};
5007
5008/* uart4 */
5009static struct omap_hwmod omap44xx_uart4_hwmod;
5010static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
5011 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06005012 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05305013};
5014
5015static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
5016 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
5017 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06005018 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05305019};
5020
5021static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
5022 {
5023 .pa_start = 0x4806e000,
5024 .pa_end = 0x4806e0ff,
5025 .flags = ADDR_TYPE_RT
5026 },
Paul Walmsley78183f32011-07-09 19:14:05 -06005027 { }
Benoit Coussondb12ba52010-09-27 20:19:19 +05305028};
5029
5030/* l4_per -> uart4 */
5031static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
5032 .master = &omap44xx_l4_per_hwmod,
5033 .slave = &omap44xx_uart4_hwmod,
5034 .clk = "l4_div_ck",
5035 .addr = omap44xx_uart4_addrs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05305036 .user = OCP_USER_MPU | OCP_USER_SDMA,
5037};
5038
5039/* uart4 slave ports */
5040static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
5041 &omap44xx_l4_per__uart4,
5042};
5043
5044static struct omap_hwmod omap44xx_uart4_hwmod = {
5045 .name = "uart4",
5046 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06005047 .clkdm_name = "l4_per_clkdm",
Benoit Coussondb12ba52010-09-27 20:19:19 +05305048 .mpu_irqs = omap44xx_uart4_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05305049 .sdma_reqs = omap44xx_uart4_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05305050 .main_clk = "uart4_fck",
5051 .prcm = {
5052 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06005053 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06005054 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06005055 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05305056 },
5057 },
5058 .slaves = omap44xx_uart4_slaves,
5059 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
Benoit Coussondb12ba52010-09-27 20:19:19 +05305060};
5061
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005062/*
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005063 * 'usb_otg_hs' class
5064 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
5065 */
5066
5067static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
5068 .rev_offs = 0x0400,
5069 .sysc_offs = 0x0404,
5070 .syss_offs = 0x0408,
5071 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
5072 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
5073 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
5074 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
5075 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
5076 MSTANDBY_SMART),
5077 .sysc_fields = &omap_hwmod_sysc_type1,
5078};
5079
5080static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
Benoit Cousson00fe6102011-07-09 19:14:28 -06005081 .name = "usb_otg_hs",
5082 .sysc = &omap44xx_usb_otg_hs_sysc,
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005083};
5084
5085/* usb_otg_hs */
5086static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
5087 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
5088 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06005089 { .irq = -1 }
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005090};
5091
5092/* usb_otg_hs master ports */
5093static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_masters[] = {
5094 &omap44xx_usb_otg_hs__l3_main_2,
5095};
5096
5097static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
5098 {
5099 .pa_start = 0x4a0ab000,
5100 .pa_end = 0x4a0ab003,
5101 .flags = ADDR_TYPE_RT
5102 },
Paul Walmsley78183f32011-07-09 19:14:05 -06005103 { }
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005104};
5105
5106/* l4_cfg -> usb_otg_hs */
5107static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
5108 .master = &omap44xx_l4_cfg_hwmod,
5109 .slave = &omap44xx_usb_otg_hs_hwmod,
5110 .clk = "l4_div_ck",
5111 .addr = omap44xx_usb_otg_hs_addrs,
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005112 .user = OCP_USER_MPU | OCP_USER_SDMA,
5113};
5114
5115/* usb_otg_hs slave ports */
5116static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_slaves[] = {
5117 &omap44xx_l4_cfg__usb_otg_hs,
5118};
5119
5120static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
5121 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
5122};
5123
5124static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
5125 .name = "usb_otg_hs",
5126 .class = &omap44xx_usb_otg_hs_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06005127 .clkdm_name = "l3_init_clkdm",
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005128 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
5129 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005130 .main_clk = "usb_otg_hs_ick",
5131 .prcm = {
5132 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06005133 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06005134 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06005135 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005136 },
5137 },
5138 .opt_clks = usb_otg_hs_opt_clks,
Benoit Cousson00fe6102011-07-09 19:14:28 -06005139 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005140 .slaves = omap44xx_usb_otg_hs_slaves,
5141 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_slaves),
5142 .masters = omap44xx_usb_otg_hs_masters,
5143 .masters_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_masters),
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005144};
5145
5146/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005147 * 'wd_timer' class
5148 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
5149 * overflow condition
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005150 */
5151
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005152static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005153 .rev_offs = 0x0000,
5154 .sysc_offs = 0x0010,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005155 .syss_offs = 0x0014,
5156 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07005157 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07005158 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
5159 SIDLE_SMART_WKUP),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005160 .sysc_fields = &omap_hwmod_sysc_type1,
5161};
5162
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005163static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
5164 .name = "wd_timer",
5165 .sysc = &omap44xx_wd_timer_sysc,
Benoit Coussonfe134712010-12-23 22:30:32 +00005166 .pre_shutdown = &omap2_wd_timer_disable,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005167};
5168
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005169/* wd_timer2 */
5170static struct omap_hwmod omap44xx_wd_timer2_hwmod;
5171static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
5172 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06005173 { .irq = -1 }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005174};
5175
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005176static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005177 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005178 .pa_start = 0x4a314000,
5179 .pa_end = 0x4a31407f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005180 .flags = ADDR_TYPE_RT
5181 },
Paul Walmsley78183f32011-07-09 19:14:05 -06005182 { }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005183};
5184
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005185/* l4_wkup -> wd_timer2 */
5186static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005187 .master = &omap44xx_l4_wkup_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005188 .slave = &omap44xx_wd_timer2_hwmod,
5189 .clk = "l4_wkup_clk_mux_ck",
5190 .addr = omap44xx_wd_timer2_addrs,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005191 .user = OCP_USER_MPU | OCP_USER_SDMA,
5192};
5193
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005194/* wd_timer2 slave ports */
5195static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
5196 &omap44xx_l4_wkup__wd_timer2,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005197};
5198
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005199static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
5200 .name = "wd_timer2",
5201 .class = &omap44xx_wd_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06005202 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005203 .mpu_irqs = omap44xx_wd_timer2_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005204 .main_clk = "wd_timer2_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005205 .prcm = {
5206 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06005207 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06005208 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06005209 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005210 },
5211 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005212 .slaves = omap44xx_wd_timer2_slaves,
5213 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005214};
5215
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005216/* wd_timer3 */
5217static struct omap_hwmod omap44xx_wd_timer3_hwmod;
5218static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
5219 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06005220 { .irq = -1 }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005221};
5222
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005223static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005224 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005225 .pa_start = 0x40130000,
5226 .pa_end = 0x4013007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005227 .flags = ADDR_TYPE_RT
5228 },
Paul Walmsley78183f32011-07-09 19:14:05 -06005229 { }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005230};
5231
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005232/* l4_abe -> wd_timer3 */
5233static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
5234 .master = &omap44xx_l4_abe_hwmod,
5235 .slave = &omap44xx_wd_timer3_hwmod,
5236 .clk = "ocp_abe_iclk",
5237 .addr = omap44xx_wd_timer3_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005238 .user = OCP_USER_MPU,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005239};
5240
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005241static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005242 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005243 .pa_start = 0x49030000,
5244 .pa_end = 0x4903007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005245 .flags = ADDR_TYPE_RT
5246 },
Paul Walmsley78183f32011-07-09 19:14:05 -06005247 { }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005248};
5249
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005250/* l4_abe -> wd_timer3 (dma) */
5251static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
5252 .master = &omap44xx_l4_abe_hwmod,
5253 .slave = &omap44xx_wd_timer3_hwmod,
5254 .clk = "ocp_abe_iclk",
5255 .addr = omap44xx_wd_timer3_dma_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005256 .user = OCP_USER_SDMA,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005257};
5258
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005259/* wd_timer3 slave ports */
5260static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
5261 &omap44xx_l4_abe__wd_timer3,
5262 &omap44xx_l4_abe__wd_timer3_dma,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005263};
5264
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005265static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
5266 .name = "wd_timer3",
5267 .class = &omap44xx_wd_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06005268 .clkdm_name = "abe_clkdm",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005269 .mpu_irqs = omap44xx_wd_timer3_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005270 .main_clk = "wd_timer3_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005271 .prcm = {
5272 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06005273 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06005274 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06005275 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005276 },
5277 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005278 .slaves = omap44xx_wd_timer3_slaves,
5279 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005280};
5281
Benoit Coussonaf88fa92011-12-15 23:15:18 -07005282/*
5283 * 'usb_host_hs' class
5284 * high-speed multi-port usb host controller
5285 */
5286static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
5287 .master = &omap44xx_usb_host_hs_hwmod,
5288 .slave = &omap44xx_l3_main_2_hwmod,
5289 .clk = "l3_div_ck",
5290 .user = OCP_USER_MPU | OCP_USER_SDMA,
5291};
5292
5293static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
5294 .rev_offs = 0x0000,
5295 .sysc_offs = 0x0010,
5296 .syss_offs = 0x0014,
5297 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
5298 SYSC_HAS_SOFTRESET),
5299 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
5300 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
5301 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
5302 .sysc_fields = &omap_hwmod_sysc_type2,
5303};
5304
5305static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
5306 .name = "usb_host_hs",
5307 .sysc = &omap44xx_usb_host_hs_sysc,
5308};
5309
5310static struct omap_hwmod_ocp_if *omap44xx_usb_host_hs_masters[] = {
5311 &omap44xx_usb_host_hs__l3_main_2,
5312};
5313
5314static struct omap_hwmod_addr_space omap44xx_usb_host_hs_addrs[] = {
5315 {
5316 .name = "uhh",
5317 .pa_start = 0x4a064000,
5318 .pa_end = 0x4a0647ff,
5319 .flags = ADDR_TYPE_RT
5320 },
5321 {
5322 .name = "ohci",
5323 .pa_start = 0x4a064800,
5324 .pa_end = 0x4a064bff,
5325 },
5326 {
5327 .name = "ehci",
5328 .pa_start = 0x4a064c00,
5329 .pa_end = 0x4a064fff,
5330 },
5331 {}
5332};
5333
5334static struct omap_hwmod_irq_info omap44xx_usb_host_hs_irqs[] = {
5335 { .name = "ohci-irq", .irq = 76 + OMAP44XX_IRQ_GIC_START },
5336 { .name = "ehci-irq", .irq = 77 + OMAP44XX_IRQ_GIC_START },
5337 { .irq = -1 }
5338};
5339
5340static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
5341 .master = &omap44xx_l4_cfg_hwmod,
5342 .slave = &omap44xx_usb_host_hs_hwmod,
5343 .clk = "l4_div_ck",
5344 .addr = omap44xx_usb_host_hs_addrs,
5345 .user = OCP_USER_MPU | OCP_USER_SDMA,
5346};
5347
5348static struct omap_hwmod_ocp_if *omap44xx_usb_host_hs_slaves[] = {
5349 &omap44xx_l4_cfg__usb_host_hs,
5350};
5351
5352static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
5353 .name = "usb_host_hs",
5354 .class = &omap44xx_usb_host_hs_hwmod_class,
5355 .clkdm_name = "l3_init_clkdm",
5356 .main_clk = "usb_host_hs_fck",
5357 .prcm = {
5358 .omap4 = {
5359 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
5360 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
5361 .modulemode = MODULEMODE_SWCTRL,
5362 },
5363 },
5364 .mpu_irqs = omap44xx_usb_host_hs_irqs,
5365 .slaves = omap44xx_usb_host_hs_slaves,
5366 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_host_hs_slaves),
5367 .masters = omap44xx_usb_host_hs_masters,
5368 .masters_cnt = ARRAY_SIZE(omap44xx_usb_host_hs_masters),
5369
5370 /*
5371 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
5372 * id: i660
5373 *
5374 * Description:
5375 * In the following configuration :
5376 * - USBHOST module is set to smart-idle mode
5377 * - PRCM asserts idle_req to the USBHOST module ( This typically
5378 * happens when the system is going to a low power mode : all ports
5379 * have been suspended, the master part of the USBHOST module has
5380 * entered the standby state, and SW has cut the functional clocks)
5381 * - an USBHOST interrupt occurs before the module is able to answer
5382 * idle_ack, typically a remote wakeup IRQ.
5383 * Then the USB HOST module will enter a deadlock situation where it
5384 * is no more accessible nor functional.
5385 *
5386 * Workaround:
5387 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
5388 */
5389
5390 /*
5391 * Errata: USB host EHCI may stall when entering smart-standby mode
5392 * Id: i571
5393 *
5394 * Description:
5395 * When the USBHOST module is set to smart-standby mode, and when it is
5396 * ready to enter the standby state (i.e. all ports are suspended and
5397 * all attached devices are in suspend mode), then it can wrongly assert
5398 * the Mstandby signal too early while there are still some residual OCP
5399 * transactions ongoing. If this condition occurs, the internal state
5400 * machine may go to an undefined state and the USB link may be stuck
5401 * upon the next resume.
5402 *
5403 * Workaround:
5404 * Don't use smart standby; use only force standby,
5405 * hence HWMOD_SWSUP_MSTANDBY
5406 */
5407
5408 /*
5409 * During system boot; If the hwmod framework resets the module
5410 * the module will have smart idle settings; which can lead to deadlock
5411 * (above Errata Id:i660); so, dont reset the module during boot;
5412 * Use HWMOD_INIT_NO_RESET.
5413 */
5414
5415 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
5416 HWMOD_INIT_NO_RESET,
5417};
5418
5419/*
5420 * 'usb_tll_hs' class
5421 * usb_tll_hs module is the adapter on the usb_host_hs ports
5422 */
5423static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
5424 .rev_offs = 0x0000,
5425 .sysc_offs = 0x0010,
5426 .syss_offs = 0x0014,
5427 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
5428 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
5429 SYSC_HAS_AUTOIDLE),
5430 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
5431 .sysc_fields = &omap_hwmod_sysc_type1,
5432};
5433
5434static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
5435 .name = "usb_tll_hs",
5436 .sysc = &omap44xx_usb_tll_hs_sysc,
5437};
5438
5439static struct omap_hwmod_irq_info omap44xx_usb_tll_hs_irqs[] = {
5440 { .name = "tll-irq", .irq = 78 + OMAP44XX_IRQ_GIC_START },
5441 { .irq = -1 }
5442};
5443
5444static struct omap_hwmod_addr_space omap44xx_usb_tll_hs_addrs[] = {
5445 {
5446 .name = "tll",
5447 .pa_start = 0x4a062000,
5448 .pa_end = 0x4a063fff,
5449 .flags = ADDR_TYPE_RT
5450 },
5451 {}
5452};
5453
5454static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
5455 .master = &omap44xx_l4_cfg_hwmod,
5456 .slave = &omap44xx_usb_tll_hs_hwmod,
5457 .clk = "l4_div_ck",
5458 .addr = omap44xx_usb_tll_hs_addrs,
5459 .user = OCP_USER_MPU | OCP_USER_SDMA,
5460};
5461
5462static struct omap_hwmod_ocp_if *omap44xx_usb_tll_hs_slaves[] = {
5463 &omap44xx_l4_cfg__usb_tll_hs,
5464};
5465
5466static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
5467 .name = "usb_tll_hs",
5468 .class = &omap44xx_usb_tll_hs_hwmod_class,
5469 .clkdm_name = "l3_init_clkdm",
5470 .main_clk = "usb_tll_hs_ick",
5471 .prcm = {
5472 .omap4 = {
5473 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
5474 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
5475 .modulemode = MODULEMODE_HWCTRL,
5476 },
5477 },
5478 .mpu_irqs = omap44xx_usb_tll_hs_irqs,
5479 .slaves = omap44xx_usb_tll_hs_slaves,
5480 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_tll_hs_slaves),
5481};
5482
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005483static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
Benoit Coussonfe134712010-12-23 22:30:32 +00005484
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005485 /* dmm class */
5486 &omap44xx_dmm_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005487
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005488 /* emif_fw class */
5489 &omap44xx_emif_fw_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005490
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005491 /* l3 class */
5492 &omap44xx_l3_instr_hwmod,
5493 &omap44xx_l3_main_1_hwmod,
5494 &omap44xx_l3_main_2_hwmod,
5495 &omap44xx_l3_main_3_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005496
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005497 /* l4 class */
5498 &omap44xx_l4_abe_hwmod,
5499 &omap44xx_l4_cfg_hwmod,
5500 &omap44xx_l4_per_hwmod,
5501 &omap44xx_l4_wkup_hwmod,
Benoit Cousson531ce0d2010-12-20 18:27:19 -08005502
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005503 /* mpu_bus class */
5504 &omap44xx_mpu_private_hwmod,
5505
Benoit Cousson407a6882011-02-15 22:39:48 +01005506 /* aess class */
5507/* &omap44xx_aess_hwmod, */
5508
5509 /* bandgap class */
5510 &omap44xx_bandgap_hwmod,
5511
5512 /* counter class */
5513/* &omap44xx_counter_32k_hwmod, */
5514
Benoit Coussond7cf5f32010-12-23 22:30:31 +00005515 /* dma class */
5516 &omap44xx_dma_system_hwmod,
5517
Benoit Cousson8ca476d2011-01-25 22:01:00 +00005518 /* dmic class */
5519 &omap44xx_dmic_hwmod,
5520
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07005521 /* dsp class */
5522 &omap44xx_dsp_hwmod,
5523 &omap44xx_dsp_c0_hwmod,
5524
Benoit Coussond63bd742011-01-27 11:17:03 +00005525 /* dss class */
5526 &omap44xx_dss_hwmod,
5527 &omap44xx_dss_dispc_hwmod,
5528 &omap44xx_dss_dsi1_hwmod,
5529 &omap44xx_dss_dsi2_hwmod,
5530 &omap44xx_dss_hdmi_hwmod,
5531 &omap44xx_dss_rfbi_hwmod,
5532 &omap44xx_dss_venc_hwmod,
5533
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005534 /* gpio class */
5535 &omap44xx_gpio1_hwmod,
5536 &omap44xx_gpio2_hwmod,
5537 &omap44xx_gpio3_hwmod,
5538 &omap44xx_gpio4_hwmod,
5539 &omap44xx_gpio5_hwmod,
5540 &omap44xx_gpio6_hwmod,
5541
Benoit Cousson407a6882011-02-15 22:39:48 +01005542 /* hsi class */
5543/* &omap44xx_hsi_hwmod, */
5544
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005545 /* i2c class */
5546 &omap44xx_i2c1_hwmod,
5547 &omap44xx_i2c2_hwmod,
5548 &omap44xx_i2c3_hwmod,
5549 &omap44xx_i2c4_hwmod,
5550
Benoit Cousson407a6882011-02-15 22:39:48 +01005551 /* ipu class */
5552 &omap44xx_ipu_hwmod,
5553 &omap44xx_ipu_c0_hwmod,
5554 &omap44xx_ipu_c1_hwmod,
5555
5556 /* iss class */
5557/* &omap44xx_iss_hwmod, */
5558
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07005559 /* iva class */
5560 &omap44xx_iva_hwmod,
5561 &omap44xx_iva_seq0_hwmod,
5562 &omap44xx_iva_seq1_hwmod,
5563
Benoit Cousson407a6882011-02-15 22:39:48 +01005564 /* kbd class */
Shubhrajyoti D4998b2452011-05-04 14:57:44 -07005565 &omap44xx_kbd_hwmod,
Benoit Cousson407a6882011-02-15 22:39:48 +01005566
Benoit Coussonec5df922011-02-02 19:27:21 +00005567 /* mailbox class */
5568 &omap44xx_mailbox_hwmod,
5569
Benoit Cousson4ddff492011-01-31 14:50:30 +00005570 /* mcbsp class */
5571 &omap44xx_mcbsp1_hwmod,
5572 &omap44xx_mcbsp2_hwmod,
5573 &omap44xx_mcbsp3_hwmod,
5574 &omap44xx_mcbsp4_hwmod,
5575
Benoit Cousson407a6882011-02-15 22:39:48 +01005576 /* mcpdm class */
Peter Ujfalusid05e2ea2011-05-01 19:33:15 +01005577 &omap44xx_mcpdm_hwmod,
Benoit Cousson407a6882011-02-15 22:39:48 +01005578
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05305579 /* mcspi class */
5580 &omap44xx_mcspi1_hwmod,
5581 &omap44xx_mcspi2_hwmod,
5582 &omap44xx_mcspi3_hwmod,
5583 &omap44xx_mcspi4_hwmod,
5584
Benoit Cousson407a6882011-02-15 22:39:48 +01005585 /* mmc class */
Anand Gadiyar17203bd2011-03-01 13:12:56 -08005586 &omap44xx_mmc1_hwmod,
5587 &omap44xx_mmc2_hwmod,
5588 &omap44xx_mmc3_hwmod,
5589 &omap44xx_mmc4_hwmod,
5590 &omap44xx_mmc5_hwmod,
Benoit Cousson407a6882011-02-15 22:39:48 +01005591
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005592 /* mpu class */
5593 &omap44xx_mpu_hwmod,
Benoit Coussondb12ba52010-09-27 20:19:19 +05305594
Benoit Cousson1f6a7172010-12-23 22:30:30 +00005595 /* smartreflex class */
5596 &omap44xx_smartreflex_core_hwmod,
5597 &omap44xx_smartreflex_iva_hwmod,
5598 &omap44xx_smartreflex_mpu_hwmod,
5599
Benoit Coussond11c2172011-02-02 12:04:36 +00005600 /* spinlock class */
5601 &omap44xx_spinlock_hwmod,
5602
Benoit Cousson35d1a662011-02-11 11:17:14 +00005603 /* timer class */
5604 &omap44xx_timer1_hwmod,
5605 &omap44xx_timer2_hwmod,
5606 &omap44xx_timer3_hwmod,
5607 &omap44xx_timer4_hwmod,
5608 &omap44xx_timer5_hwmod,
5609 &omap44xx_timer6_hwmod,
5610 &omap44xx_timer7_hwmod,
5611 &omap44xx_timer8_hwmod,
5612 &omap44xx_timer9_hwmod,
5613 &omap44xx_timer10_hwmod,
5614 &omap44xx_timer11_hwmod,
5615
Benoit Coussondb12ba52010-09-27 20:19:19 +05305616 /* uart class */
5617 &omap44xx_uart1_hwmod,
5618 &omap44xx_uart2_hwmod,
5619 &omap44xx_uart3_hwmod,
5620 &omap44xx_uart4_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005621
Benoit Coussonaf88fa92011-12-15 23:15:18 -07005622 /* usb host class */
5623 &omap44xx_usb_host_hs_hwmod,
5624 &omap44xx_usb_tll_hs_hwmod,
5625
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005626 /* usb_otg_hs class */
5627 &omap44xx_usb_otg_hs_hwmod,
5628
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005629 /* wd_timer class */
5630 &omap44xx_wd_timer2_hwmod,
5631 &omap44xx_wd_timer3_hwmod,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005632 NULL,
5633};
5634
5635int __init omap44xx_hwmod_init(void)
5636{
Paul Walmsley550c8092011-02-28 11:58:14 -07005637 return omap_hwmod_register(omap44xx_hwmods);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005638}
5639