blob: a93c4552a5718e17e949c3820082a4c398a50194 [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>
Benoit Cousson9780a9c2010-12-07 16:26:57 -080025#include <plat/gpio.h>
Benoit Cousson531ce0d2010-12-20 18:27:19 -080026#include <plat/dma.h>
Benoit Cousson905a74d2011-02-18 14:01:06 +010027#include <plat/mcspi.h>
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +053028#include <plat/mcbsp.h>
Kishore Kadiyala6ab89462011-03-01 13:12:56 -080029#include <plat/mmc.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020030
31#include "omap_hwmod_common_data.h"
32
Paul Walmsleyd198b512010-12-21 15:30:54 -070033#include "cm1_44xx.h"
34#include "cm2_44xx.h"
35#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020036#include "prm-regbits-44xx.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070037#include "wd_timer.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020038
39/* Base offset for all OMAP4 interrupts external to MPUSS */
40#define OMAP44XX_IRQ_GIC_START 32
41
42/* Base offset for all OMAP4 dma requests */
43#define OMAP44XX_DMA_REQ_START 1
44
45/* Backward references (IPs with Bus Master capability) */
Benoit Cousson407a6882011-02-15 22:39:48 +010046static struct omap_hwmod omap44xx_aess_hwmod;
Benoit Cousson531ce0d2010-12-20 18:27:19 -080047static struct omap_hwmod omap44xx_dma_system_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020048static struct omap_hwmod omap44xx_dmm_hwmod;
Benoit Cousson8f25bdc2010-12-21 21:08:34 -070049static struct omap_hwmod omap44xx_dsp_hwmod;
Benoit Coussond63bd742011-01-27 11:17:03 +000050static struct omap_hwmod omap44xx_dss_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020051static struct omap_hwmod omap44xx_emif_fw_hwmod;
Benoit Cousson407a6882011-02-15 22:39:48 +010052static struct omap_hwmod omap44xx_hsi_hwmod;
53static struct omap_hwmod omap44xx_ipu_hwmod;
54static struct omap_hwmod omap44xx_iss_hwmod;
Benoit Cousson8f25bdc2010-12-21 21:08:34 -070055static struct omap_hwmod omap44xx_iva_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020056static struct omap_hwmod omap44xx_l3_instr_hwmod;
57static struct omap_hwmod omap44xx_l3_main_1_hwmod;
58static struct omap_hwmod omap44xx_l3_main_2_hwmod;
59static struct omap_hwmod omap44xx_l3_main_3_hwmod;
60static struct omap_hwmod omap44xx_l4_abe_hwmod;
61static struct omap_hwmod omap44xx_l4_cfg_hwmod;
62static struct omap_hwmod omap44xx_l4_per_hwmod;
63static struct omap_hwmod omap44xx_l4_wkup_hwmod;
Benoit Cousson407a6882011-02-15 22:39:48 +010064static struct omap_hwmod omap44xx_mmc1_hwmod;
65static struct omap_hwmod omap44xx_mmc2_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020066static struct omap_hwmod omap44xx_mpu_hwmod;
67static struct omap_hwmod omap44xx_mpu_private_hwmod;
Benoit Cousson5844c4e2011-02-17 12:41:05 +000068static struct omap_hwmod omap44xx_usb_otg_hs_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020069
70/*
71 * Interconnects omap_hwmod structures
72 * hwmods that compose the global OMAP interconnect
73 */
74
75/*
76 * 'dmm' class
77 * instance(s): dmm
78 */
79static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000080 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020081};
82
83/* dmm interface data */
84/* l3_main_1 -> dmm */
85static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
86 .master = &omap44xx_l3_main_1_hwmod,
87 .slave = &omap44xx_dmm_hwmod,
88 .clk = "l3_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -070089 .user = OCP_USER_SDMA,
90};
91
92static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
93 {
94 .pa_start = 0x4e000000,
95 .pa_end = 0x4e0007ff,
96 .flags = ADDR_TYPE_RT
97 },
Paul Walmsley78183f32011-07-09 19:14:05 -060098 { }
Benoit Cousson55d2cb02010-05-12 17:54:36 +020099};
100
101/* mpu -> dmm */
102static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
103 .master = &omap44xx_mpu_hwmod,
104 .slave = &omap44xx_dmm_hwmod,
105 .clk = "l3_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -0700106 .addr = omap44xx_dmm_addrs,
Benoit Cousson659fa822010-12-21 21:08:34 -0700107 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200108};
109
110/* dmm slave ports */
111static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
112 &omap44xx_l3_main_1__dmm,
113 &omap44xx_mpu__dmm,
114};
115
116static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
117 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600118 { .irq = -1 }
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200119};
120
121static struct omap_hwmod omap44xx_dmm_hwmod = {
122 .name = "dmm",
123 .class = &omap44xx_dmm_hwmod_class,
124 .slaves = omap44xx_dmm_slaves,
125 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
126 .mpu_irqs = omap44xx_dmm_irqs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200127 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
128};
129
130/*
131 * 'emif_fw' class
132 * instance(s): emif_fw
133 */
134static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000135 .name = "emif_fw",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200136};
137
138/* emif_fw interface data */
139/* dmm -> emif_fw */
140static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
141 .master = &omap44xx_dmm_hwmod,
142 .slave = &omap44xx_emif_fw_hwmod,
143 .clk = "l3_div_ck",
144 .user = OCP_USER_MPU | OCP_USER_SDMA,
145};
146
Benoit Cousson659fa822010-12-21 21:08:34 -0700147static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
148 {
149 .pa_start = 0x4a20c000,
150 .pa_end = 0x4a20c0ff,
151 .flags = ADDR_TYPE_RT
152 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600153 { }
Benoit Cousson659fa822010-12-21 21:08:34 -0700154};
155
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200156/* l4_cfg -> emif_fw */
157static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
158 .master = &omap44xx_l4_cfg_hwmod,
159 .slave = &omap44xx_emif_fw_hwmod,
160 .clk = "l4_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -0700161 .addr = omap44xx_emif_fw_addrs,
Benoit Cousson659fa822010-12-21 21:08:34 -0700162 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200163};
164
165/* emif_fw slave ports */
166static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
167 &omap44xx_dmm__emif_fw,
168 &omap44xx_l4_cfg__emif_fw,
169};
170
171static struct omap_hwmod omap44xx_emif_fw_hwmod = {
172 .name = "emif_fw",
173 .class = &omap44xx_emif_fw_hwmod_class,
174 .slaves = omap44xx_emif_fw_slaves,
175 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
176 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
177};
178
179/*
180 * 'l3' class
181 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
182 */
183static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000184 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200185};
186
187/* l3_instr interface data */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700188/* iva -> l3_instr */
189static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
190 .master = &omap44xx_iva_hwmod,
191 .slave = &omap44xx_l3_instr_hwmod,
192 .clk = "l3_div_ck",
193 .user = OCP_USER_MPU | OCP_USER_SDMA,
194};
195
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200196/* l3_main_3 -> l3_instr */
197static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
198 .master = &omap44xx_l3_main_3_hwmod,
199 .slave = &omap44xx_l3_instr_hwmod,
200 .clk = "l3_div_ck",
201 .user = OCP_USER_MPU | OCP_USER_SDMA,
202};
203
204/* l3_instr slave ports */
205static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700206 &omap44xx_iva__l3_instr,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200207 &omap44xx_l3_main_3__l3_instr,
208};
209
210static struct omap_hwmod omap44xx_l3_instr_hwmod = {
211 .name = "l3_instr",
212 .class = &omap44xx_l3_hwmod_class,
213 .slaves = omap44xx_l3_instr_slaves,
214 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
215 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
216};
217
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700218/* l3_main_1 interface data */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700219/* dsp -> l3_main_1 */
220static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
221 .master = &omap44xx_dsp_hwmod,
222 .slave = &omap44xx_l3_main_1_hwmod,
223 .clk = "l3_div_ck",
224 .user = OCP_USER_MPU | OCP_USER_SDMA,
225};
226
Benoit Coussond63bd742011-01-27 11:17:03 +0000227/* dss -> l3_main_1 */
228static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
229 .master = &omap44xx_dss_hwmod,
230 .slave = &omap44xx_l3_main_1_hwmod,
231 .clk = "l3_div_ck",
232 .user = OCP_USER_MPU | OCP_USER_SDMA,
233};
234
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200235/* l3_main_2 -> l3_main_1 */
236static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
237 .master = &omap44xx_l3_main_2_hwmod,
238 .slave = &omap44xx_l3_main_1_hwmod,
239 .clk = "l3_div_ck",
240 .user = OCP_USER_MPU | OCP_USER_SDMA,
241};
242
243/* l4_cfg -> l3_main_1 */
244static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
245 .master = &omap44xx_l4_cfg_hwmod,
246 .slave = &omap44xx_l3_main_1_hwmod,
247 .clk = "l4_div_ck",
248 .user = OCP_USER_MPU | OCP_USER_SDMA,
249};
250
Benoit Cousson407a6882011-02-15 22:39:48 +0100251/* mmc1 -> l3_main_1 */
252static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
253 .master = &omap44xx_mmc1_hwmod,
254 .slave = &omap44xx_l3_main_1_hwmod,
255 .clk = "l3_div_ck",
256 .user = OCP_USER_MPU | OCP_USER_SDMA,
257};
258
259/* mmc2 -> l3_main_1 */
260static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
261 .master = &omap44xx_mmc2_hwmod,
262 .slave = &omap44xx_l3_main_1_hwmod,
263 .clk = "l3_div_ck",
264 .user = OCP_USER_MPU | OCP_USER_SDMA,
265};
266
sricharanc4645232011-02-07 21:12:11 +0530267/* L3 target configuration and error log registers */
268static struct omap_hwmod_irq_info omap44xx_l3_targ_irqs[] = {
269 { .irq = 9 + OMAP44XX_IRQ_GIC_START },
270 { .irq = 10 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600271 { .irq = -1 }
sricharanc4645232011-02-07 21:12:11 +0530272};
273
274static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = {
275 {
276 .pa_start = 0x44000000,
277 .pa_end = 0x44000fff,
278 .flags = ADDR_TYPE_RT,
279 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600280 { }
sricharanc4645232011-02-07 21:12:11 +0530281};
282
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200283/* mpu -> l3_main_1 */
284static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
285 .master = &omap44xx_mpu_hwmod,
286 .slave = &omap44xx_l3_main_1_hwmod,
287 .clk = "l3_div_ck",
sricharanc4645232011-02-07 21:12:11 +0530288 .addr = omap44xx_l3_main_1_addrs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200289 .user = OCP_USER_MPU | OCP_USER_SDMA,
290};
291
292/* l3_main_1 slave ports */
293static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700294 &omap44xx_dsp__l3_main_1,
Benoit Coussond63bd742011-01-27 11:17:03 +0000295 &omap44xx_dss__l3_main_1,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200296 &omap44xx_l3_main_2__l3_main_1,
297 &omap44xx_l4_cfg__l3_main_1,
Benoit Cousson407a6882011-02-15 22:39:48 +0100298 &omap44xx_mmc1__l3_main_1,
299 &omap44xx_mmc2__l3_main_1,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200300 &omap44xx_mpu__l3_main_1,
301};
302
303static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
304 .name = "l3_main_1",
305 .class = &omap44xx_l3_hwmod_class,
sricharanc4645232011-02-07 21:12:11 +0530306 .mpu_irqs = omap44xx_l3_targ_irqs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200307 .slaves = omap44xx_l3_main_1_slaves,
308 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
309 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
310};
311
312/* l3_main_2 interface data */
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000313/* dma_system -> l3_main_2 */
314static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
315 .master = &omap44xx_dma_system_hwmod,
316 .slave = &omap44xx_l3_main_2_hwmod,
317 .clk = "l3_div_ck",
318 .user = OCP_USER_MPU | OCP_USER_SDMA,
319};
320
Benoit Cousson407a6882011-02-15 22:39:48 +0100321/* hsi -> l3_main_2 */
322static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
323 .master = &omap44xx_hsi_hwmod,
324 .slave = &omap44xx_l3_main_2_hwmod,
325 .clk = "l3_div_ck",
326 .user = OCP_USER_MPU | OCP_USER_SDMA,
327};
328
329/* ipu -> l3_main_2 */
330static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
331 .master = &omap44xx_ipu_hwmod,
332 .slave = &omap44xx_l3_main_2_hwmod,
333 .clk = "l3_div_ck",
334 .user = OCP_USER_MPU | OCP_USER_SDMA,
335};
336
337/* iss -> l3_main_2 */
338static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
339 .master = &omap44xx_iss_hwmod,
340 .slave = &omap44xx_l3_main_2_hwmod,
341 .clk = "l3_div_ck",
342 .user = OCP_USER_MPU | OCP_USER_SDMA,
343};
344
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700345/* iva -> l3_main_2 */
346static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
347 .master = &omap44xx_iva_hwmod,
348 .slave = &omap44xx_l3_main_2_hwmod,
349 .clk = "l3_div_ck",
350 .user = OCP_USER_MPU | OCP_USER_SDMA,
351};
352
sricharanc4645232011-02-07 21:12:11 +0530353static struct omap_hwmod_addr_space omap44xx_l3_main_2_addrs[] = {
354 {
355 .pa_start = 0x44800000,
356 .pa_end = 0x44801fff,
357 .flags = ADDR_TYPE_RT,
358 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600359 { }
sricharanc4645232011-02-07 21:12:11 +0530360};
361
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200362/* l3_main_1 -> l3_main_2 */
363static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
364 .master = &omap44xx_l3_main_1_hwmod,
365 .slave = &omap44xx_l3_main_2_hwmod,
366 .clk = "l3_div_ck",
sricharanc4645232011-02-07 21:12:11 +0530367 .addr = omap44xx_l3_main_2_addrs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200368 .user = OCP_USER_MPU | OCP_USER_SDMA,
369};
370
371/* l4_cfg -> l3_main_2 */
372static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
373 .master = &omap44xx_l4_cfg_hwmod,
374 .slave = &omap44xx_l3_main_2_hwmod,
375 .clk = "l4_div_ck",
376 .user = OCP_USER_MPU | OCP_USER_SDMA,
377};
378
Benoit Cousson5844c4e2011-02-17 12:41:05 +0000379/* usb_otg_hs -> l3_main_2 */
380static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
381 .master = &omap44xx_usb_otg_hs_hwmod,
382 .slave = &omap44xx_l3_main_2_hwmod,
383 .clk = "l3_div_ck",
384 .user = OCP_USER_MPU | OCP_USER_SDMA,
385};
386
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200387/* l3_main_2 slave ports */
388static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
Benoit Cousson531ce0d2010-12-20 18:27:19 -0800389 &omap44xx_dma_system__l3_main_2,
Benoit Cousson407a6882011-02-15 22:39:48 +0100390 &omap44xx_hsi__l3_main_2,
391 &omap44xx_ipu__l3_main_2,
392 &omap44xx_iss__l3_main_2,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700393 &omap44xx_iva__l3_main_2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200394 &omap44xx_l3_main_1__l3_main_2,
395 &omap44xx_l4_cfg__l3_main_2,
Benoit Cousson5844c4e2011-02-17 12:41:05 +0000396 &omap44xx_usb_otg_hs__l3_main_2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200397};
398
399static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
400 .name = "l3_main_2",
401 .class = &omap44xx_l3_hwmod_class,
402 .slaves = omap44xx_l3_main_2_slaves,
403 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
404 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
405};
406
407/* l3_main_3 interface data */
sricharanc4645232011-02-07 21:12:11 +0530408static struct omap_hwmod_addr_space omap44xx_l3_main_3_addrs[] = {
409 {
410 .pa_start = 0x45000000,
411 .pa_end = 0x45000fff,
412 .flags = ADDR_TYPE_RT,
413 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600414 { }
sricharanc4645232011-02-07 21:12:11 +0530415};
416
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200417/* l3_main_1 -> l3_main_3 */
418static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
419 .master = &omap44xx_l3_main_1_hwmod,
420 .slave = &omap44xx_l3_main_3_hwmod,
421 .clk = "l3_div_ck",
sricharanc4645232011-02-07 21:12:11 +0530422 .addr = omap44xx_l3_main_3_addrs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200423 .user = OCP_USER_MPU | OCP_USER_SDMA,
424};
425
426/* l3_main_2 -> l3_main_3 */
427static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
428 .master = &omap44xx_l3_main_2_hwmod,
429 .slave = &omap44xx_l3_main_3_hwmod,
430 .clk = "l3_div_ck",
431 .user = OCP_USER_MPU | OCP_USER_SDMA,
432};
433
434/* l4_cfg -> l3_main_3 */
435static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
436 .master = &omap44xx_l4_cfg_hwmod,
437 .slave = &omap44xx_l3_main_3_hwmod,
438 .clk = "l4_div_ck",
439 .user = OCP_USER_MPU | OCP_USER_SDMA,
440};
441
442/* l3_main_3 slave ports */
443static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
444 &omap44xx_l3_main_1__l3_main_3,
445 &omap44xx_l3_main_2__l3_main_3,
446 &omap44xx_l4_cfg__l3_main_3,
447};
448
449static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
450 .name = "l3_main_3",
451 .class = &omap44xx_l3_hwmod_class,
452 .slaves = omap44xx_l3_main_3_slaves,
453 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
454 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
455};
456
457/*
458 * 'l4' class
459 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
460 */
461static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000462 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200463};
464
465/* l4_abe interface data */
Benoit Cousson407a6882011-02-15 22:39:48 +0100466/* aess -> l4_abe */
467static struct omap_hwmod_ocp_if omap44xx_aess__l4_abe = {
468 .master = &omap44xx_aess_hwmod,
469 .slave = &omap44xx_l4_abe_hwmod,
470 .clk = "ocp_abe_iclk",
471 .user = OCP_USER_MPU | OCP_USER_SDMA,
472};
473
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700474/* dsp -> l4_abe */
475static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
476 .master = &omap44xx_dsp_hwmod,
477 .slave = &omap44xx_l4_abe_hwmod,
478 .clk = "ocp_abe_iclk",
479 .user = OCP_USER_MPU | OCP_USER_SDMA,
480};
481
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200482/* l3_main_1 -> l4_abe */
483static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
484 .master = &omap44xx_l3_main_1_hwmod,
485 .slave = &omap44xx_l4_abe_hwmod,
486 .clk = "l3_div_ck",
487 .user = OCP_USER_MPU | OCP_USER_SDMA,
488};
489
490/* mpu -> l4_abe */
491static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
492 .master = &omap44xx_mpu_hwmod,
493 .slave = &omap44xx_l4_abe_hwmod,
494 .clk = "ocp_abe_iclk",
495 .user = OCP_USER_MPU | OCP_USER_SDMA,
496};
497
498/* l4_abe slave ports */
499static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100500 &omap44xx_aess__l4_abe,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700501 &omap44xx_dsp__l4_abe,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200502 &omap44xx_l3_main_1__l4_abe,
503 &omap44xx_mpu__l4_abe,
504};
505
506static struct omap_hwmod omap44xx_l4_abe_hwmod = {
507 .name = "l4_abe",
508 .class = &omap44xx_l4_hwmod_class,
509 .slaves = omap44xx_l4_abe_slaves,
510 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
511 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
512};
513
514/* l4_cfg interface data */
515/* l3_main_1 -> l4_cfg */
516static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
517 .master = &omap44xx_l3_main_1_hwmod,
518 .slave = &omap44xx_l4_cfg_hwmod,
519 .clk = "l3_div_ck",
520 .user = OCP_USER_MPU | OCP_USER_SDMA,
521};
522
523/* l4_cfg slave ports */
524static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
525 &omap44xx_l3_main_1__l4_cfg,
526};
527
528static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
529 .name = "l4_cfg",
530 .class = &omap44xx_l4_hwmod_class,
531 .slaves = omap44xx_l4_cfg_slaves,
532 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
533 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
534};
535
536/* l4_per interface data */
537/* l3_main_2 -> l4_per */
538static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
539 .master = &omap44xx_l3_main_2_hwmod,
540 .slave = &omap44xx_l4_per_hwmod,
541 .clk = "l3_div_ck",
542 .user = OCP_USER_MPU | OCP_USER_SDMA,
543};
544
545/* l4_per slave ports */
546static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
547 &omap44xx_l3_main_2__l4_per,
548};
549
550static struct omap_hwmod omap44xx_l4_per_hwmod = {
551 .name = "l4_per",
552 .class = &omap44xx_l4_hwmod_class,
553 .slaves = omap44xx_l4_per_slaves,
554 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
555 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
556};
557
558/* l4_wkup interface data */
559/* l4_cfg -> l4_wkup */
560static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
561 .master = &omap44xx_l4_cfg_hwmod,
562 .slave = &omap44xx_l4_wkup_hwmod,
563 .clk = "l4_div_ck",
564 .user = OCP_USER_MPU | OCP_USER_SDMA,
565};
566
567/* l4_wkup slave ports */
568static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
569 &omap44xx_l4_cfg__l4_wkup,
570};
571
572static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
573 .name = "l4_wkup",
574 .class = &omap44xx_l4_hwmod_class,
575 .slaves = omap44xx_l4_wkup_slaves,
576 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
577 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
578};
579
580/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700581 * 'mpu_bus' class
582 * instance(s): mpu_private
583 */
584static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000585 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700586};
587
588/* mpu_private interface data */
589/* mpu -> mpu_private */
590static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
591 .master = &omap44xx_mpu_hwmod,
592 .slave = &omap44xx_mpu_private_hwmod,
593 .clk = "l3_div_ck",
594 .user = OCP_USER_MPU | OCP_USER_SDMA,
595};
596
597/* mpu_private slave ports */
598static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
599 &omap44xx_mpu__mpu_private,
600};
601
602static struct omap_hwmod omap44xx_mpu_private_hwmod = {
603 .name = "mpu_private",
604 .class = &omap44xx_mpu_bus_hwmod_class,
605 .slaves = omap44xx_mpu_private_slaves,
606 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
607 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
608};
609
610/*
611 * Modules omap_hwmod structures
612 *
613 * The following IPs are excluded for the moment because:
614 * - They do not need an explicit SW control using omap_hwmod API.
615 * - They still need to be validated with the driver
616 * properly adapted to omap_hwmod / omap_device
617 *
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700618 * c2c
619 * c2c_target_fw
620 * cm_core
621 * cm_core_aon
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700622 * ctrl_module_core
623 * ctrl_module_pad_core
624 * ctrl_module_pad_wkup
625 * ctrl_module_wkup
626 * debugss
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700627 * efuse_ctrl_cust
628 * efuse_ctrl_std
629 * elm
630 * emif1
631 * emif2
632 * fdif
633 * gpmc
634 * gpu
635 * hdq1w
636 * hsi
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700637 * ocmc_ram
638 * ocp2scp_usb_phy
639 * ocp_wp_noc
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700640 * prcm_mpu
641 * prm
642 * scrm
643 * sl2if
644 * slimbus1
645 * slimbus2
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700646 * usb_host_fs
647 * usb_host_hs
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700648 * usb_phy_cm
649 * usb_tll_hs
650 * usim
651 */
652
653/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100654 * 'aess' class
655 * audio engine sub system
656 */
657
658static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
659 .rev_offs = 0x0000,
660 .sysc_offs = 0x0010,
661 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
662 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
663 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
664 .sysc_fields = &omap_hwmod_sysc_type2,
665};
666
667static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
668 .name = "aess",
669 .sysc = &omap44xx_aess_sysc,
670};
671
672/* aess */
673static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
674 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600675 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +0100676};
677
678static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
679 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
680 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
681 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
682 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
683 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
684 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
685 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
686 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600687 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +0100688};
689
690/* aess master ports */
691static struct omap_hwmod_ocp_if *omap44xx_aess_masters[] = {
692 &omap44xx_aess__l4_abe,
693};
694
695static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
696 {
697 .pa_start = 0x401f1000,
698 .pa_end = 0x401f13ff,
699 .flags = ADDR_TYPE_RT
700 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600701 { }
Benoit Cousson407a6882011-02-15 22:39:48 +0100702};
703
704/* l4_abe -> aess */
705static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess = {
706 .master = &omap44xx_l4_abe_hwmod,
707 .slave = &omap44xx_aess_hwmod,
708 .clk = "ocp_abe_iclk",
709 .addr = omap44xx_aess_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100710 .user = OCP_USER_MPU,
711};
712
713static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
714 {
715 .pa_start = 0x490f1000,
716 .pa_end = 0x490f13ff,
717 .flags = ADDR_TYPE_RT
718 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600719 { }
Benoit Cousson407a6882011-02-15 22:39:48 +0100720};
721
722/* l4_abe -> aess (dma) */
723static struct omap_hwmod_ocp_if omap44xx_l4_abe__aess_dma = {
724 .master = &omap44xx_l4_abe_hwmod,
725 .slave = &omap44xx_aess_hwmod,
726 .clk = "ocp_abe_iclk",
727 .addr = omap44xx_aess_dma_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100728 .user = OCP_USER_SDMA,
729};
730
731/* aess slave ports */
732static struct omap_hwmod_ocp_if *omap44xx_aess_slaves[] = {
733 &omap44xx_l4_abe__aess,
734 &omap44xx_l4_abe__aess_dma,
735};
736
737static struct omap_hwmod omap44xx_aess_hwmod = {
738 .name = "aess",
739 .class = &omap44xx_aess_hwmod_class,
740 .mpu_irqs = omap44xx_aess_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100741 .sdma_reqs = omap44xx_aess_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100742 .main_clk = "aess_fck",
743 .prcm = {
744 .omap4 = {
745 .clkctrl_reg = OMAP4430_CM1_ABE_AESS_CLKCTRL,
746 },
747 },
748 .slaves = omap44xx_aess_slaves,
749 .slaves_cnt = ARRAY_SIZE(omap44xx_aess_slaves),
750 .masters = omap44xx_aess_masters,
751 .masters_cnt = ARRAY_SIZE(omap44xx_aess_masters),
752 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
753};
754
755/*
756 * 'bandgap' class
757 * bangap reference for ldo regulators
758 */
759
760static struct omap_hwmod_class omap44xx_bandgap_hwmod_class = {
761 .name = "bandgap",
762};
763
764/* bandgap */
765static struct omap_hwmod_opt_clk bandgap_opt_clks[] = {
766 { .role = "fclk", .clk = "bandgap_fclk" },
767};
768
769static struct omap_hwmod omap44xx_bandgap_hwmod = {
770 .name = "bandgap",
771 .class = &omap44xx_bandgap_hwmod_class,
772 .prcm = {
773 .omap4 = {
774 .clkctrl_reg = OMAP4430_CM_WKUP_BANDGAP_CLKCTRL,
775 },
776 },
777 .opt_clks = bandgap_opt_clks,
778 .opt_clks_cnt = ARRAY_SIZE(bandgap_opt_clks),
779 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
780};
781
782/*
783 * 'counter' class
784 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
785 */
786
787static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
788 .rev_offs = 0x0000,
789 .sysc_offs = 0x0004,
790 .sysc_flags = SYSC_HAS_SIDLEMODE,
791 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
792 SIDLE_SMART_WKUP),
793 .sysc_fields = &omap_hwmod_sysc_type1,
794};
795
796static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
797 .name = "counter",
798 .sysc = &omap44xx_counter_sysc,
799};
800
801/* counter_32k */
802static struct omap_hwmod omap44xx_counter_32k_hwmod;
803static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
804 {
805 .pa_start = 0x4a304000,
806 .pa_end = 0x4a30401f,
807 .flags = ADDR_TYPE_RT
808 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600809 { }
Benoit Cousson407a6882011-02-15 22:39:48 +0100810};
811
812/* l4_wkup -> counter_32k */
813static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
814 .master = &omap44xx_l4_wkup_hwmod,
815 .slave = &omap44xx_counter_32k_hwmod,
816 .clk = "l4_wkup_clk_mux_ck",
817 .addr = omap44xx_counter_32k_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100818 .user = OCP_USER_MPU | OCP_USER_SDMA,
819};
820
821/* counter_32k slave ports */
822static struct omap_hwmod_ocp_if *omap44xx_counter_32k_slaves[] = {
823 &omap44xx_l4_wkup__counter_32k,
824};
825
826static struct omap_hwmod omap44xx_counter_32k_hwmod = {
827 .name = "counter_32k",
828 .class = &omap44xx_counter_hwmod_class,
829 .flags = HWMOD_SWSUP_SIDLE,
830 .main_clk = "sys_32k_ck",
831 .prcm = {
832 .omap4 = {
833 .clkctrl_reg = OMAP4430_CM_WKUP_SYNCTIMER_CLKCTRL,
834 },
835 },
836 .slaves = omap44xx_counter_32k_slaves,
837 .slaves_cnt = ARRAY_SIZE(omap44xx_counter_32k_slaves),
838 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
839};
840
841/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000842 * 'dma' class
843 * dma controller for data exchange between memory to memory (i.e. internal or
844 * external memory) and gp peripherals to memory or memory to gp peripherals
845 */
846
847static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
848 .rev_offs = 0x0000,
849 .sysc_offs = 0x002c,
850 .syss_offs = 0x0028,
851 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
852 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
853 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
854 SYSS_HAS_RESET_STATUS),
855 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
856 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
857 .sysc_fields = &omap_hwmod_sysc_type1,
858};
859
860static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
861 .name = "dma",
862 .sysc = &omap44xx_dma_sysc,
863};
864
865/* dma dev_attr */
866static struct omap_dma_dev_attr dma_dev_attr = {
867 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
868 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
869 .lch_count = 32,
870};
871
872/* dma_system */
873static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
874 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
875 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
876 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
877 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600878 { .irq = -1 }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000879};
880
881/* dma_system master ports */
882static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
883 &omap44xx_dma_system__l3_main_2,
884};
885
886static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
887 {
888 .pa_start = 0x4a056000,
Benoit Cousson1286eeb2011-04-19 10:15:36 -0600889 .pa_end = 0x4a056fff,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000890 .flags = ADDR_TYPE_RT
891 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600892 { }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000893};
894
895/* l4_cfg -> dma_system */
896static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
897 .master = &omap44xx_l4_cfg_hwmod,
898 .slave = &omap44xx_dma_system_hwmod,
899 .clk = "l4_div_ck",
900 .addr = omap44xx_dma_system_addrs,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000901 .user = OCP_USER_MPU | OCP_USER_SDMA,
902};
903
904/* dma_system slave ports */
905static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
906 &omap44xx_l4_cfg__dma_system,
907};
908
909static struct omap_hwmod omap44xx_dma_system_hwmod = {
910 .name = "dma_system",
911 .class = &omap44xx_dma_hwmod_class,
912 .mpu_irqs = omap44xx_dma_system_irqs,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000913 .main_clk = "l3_div_ck",
914 .prcm = {
915 .omap4 = {
916 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
917 },
918 },
919 .dev_attr = &dma_dev_attr,
920 .slaves = omap44xx_dma_system_slaves,
921 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
922 .masters = omap44xx_dma_system_masters,
923 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
924 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
925};
926
927/*
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000928 * 'dmic' class
929 * digital microphone controller
930 */
931
932static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
933 .rev_offs = 0x0000,
934 .sysc_offs = 0x0010,
935 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
936 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
937 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
938 SIDLE_SMART_WKUP),
939 .sysc_fields = &omap_hwmod_sysc_type2,
940};
941
942static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
943 .name = "dmic",
944 .sysc = &omap44xx_dmic_sysc,
945};
946
947/* dmic */
948static struct omap_hwmod omap44xx_dmic_hwmod;
949static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
950 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600951 { .irq = -1 }
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000952};
953
954static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
955 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600956 { .dma_req = -1 }
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000957};
958
959static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
960 {
961 .pa_start = 0x4012e000,
962 .pa_end = 0x4012e07f,
963 .flags = ADDR_TYPE_RT
964 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600965 { }
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000966};
967
968/* l4_abe -> dmic */
969static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
970 .master = &omap44xx_l4_abe_hwmod,
971 .slave = &omap44xx_dmic_hwmod,
972 .clk = "ocp_abe_iclk",
973 .addr = omap44xx_dmic_addrs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000974 .user = OCP_USER_MPU,
975};
976
977static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
978 {
979 .pa_start = 0x4902e000,
980 .pa_end = 0x4902e07f,
981 .flags = ADDR_TYPE_RT
982 },
Paul Walmsley78183f32011-07-09 19:14:05 -0600983 { }
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000984};
985
986/* l4_abe -> dmic (dma) */
987static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
988 .master = &omap44xx_l4_abe_hwmod,
989 .slave = &omap44xx_dmic_hwmod,
990 .clk = "ocp_abe_iclk",
991 .addr = omap44xx_dmic_dma_addrs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000992 .user = OCP_USER_SDMA,
993};
994
995/* dmic slave ports */
996static struct omap_hwmod_ocp_if *omap44xx_dmic_slaves[] = {
997 &omap44xx_l4_abe__dmic,
998 &omap44xx_l4_abe__dmic_dma,
999};
1000
1001static struct omap_hwmod omap44xx_dmic_hwmod = {
1002 .name = "dmic",
1003 .class = &omap44xx_dmic_hwmod_class,
1004 .mpu_irqs = omap44xx_dmic_irqs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001005 .sdma_reqs = omap44xx_dmic_sdma_reqs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +00001006 .main_clk = "dmic_fck",
1007 .prcm = {
1008 .omap4 = {
1009 .clkctrl_reg = OMAP4430_CM1_ABE_DMIC_CLKCTRL,
1010 },
1011 },
1012 .slaves = omap44xx_dmic_slaves,
1013 .slaves_cnt = ARRAY_SIZE(omap44xx_dmic_slaves),
1014 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1015};
1016
1017/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001018 * 'dsp' class
1019 * dsp sub-system
1020 */
1021
1022static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001023 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001024};
1025
1026/* dsp */
1027static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
1028 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001029 { .irq = -1 }
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001030};
1031
1032static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
1033 { .name = "mmu_cache", .rst_shift = 1 },
1034};
1035
1036static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
1037 { .name = "dsp", .rst_shift = 0 },
1038};
1039
1040/* dsp -> iva */
1041static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
1042 .master = &omap44xx_dsp_hwmod,
1043 .slave = &omap44xx_iva_hwmod,
1044 .clk = "dpll_iva_m5x2_ck",
1045};
1046
1047/* dsp master ports */
1048static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
1049 &omap44xx_dsp__l3_main_1,
1050 &omap44xx_dsp__l4_abe,
1051 &omap44xx_dsp__iva,
1052};
1053
1054/* l4_cfg -> dsp */
1055static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
1056 .master = &omap44xx_l4_cfg_hwmod,
1057 .slave = &omap44xx_dsp_hwmod,
1058 .clk = "l4_div_ck",
1059 .user = OCP_USER_MPU | OCP_USER_SDMA,
1060};
1061
1062/* dsp slave ports */
1063static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
1064 &omap44xx_l4_cfg__dsp,
1065};
1066
1067/* Pseudo hwmod for reset control purpose only */
1068static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
1069 .name = "dsp_c0",
1070 .class = &omap44xx_dsp_hwmod_class,
1071 .flags = HWMOD_INIT_NO_RESET,
1072 .rst_lines = omap44xx_dsp_c0_resets,
1073 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
1074 .prcm = {
1075 .omap4 = {
1076 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1077 },
1078 },
1079 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1080};
1081
1082static struct omap_hwmod omap44xx_dsp_hwmod = {
1083 .name = "dsp",
1084 .class = &omap44xx_dsp_hwmod_class,
1085 .mpu_irqs = omap44xx_dsp_irqs,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001086 .rst_lines = omap44xx_dsp_resets,
1087 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
1088 .main_clk = "dsp_fck",
1089 .prcm = {
1090 .omap4 = {
1091 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
1092 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
1093 },
1094 },
1095 .slaves = omap44xx_dsp_slaves,
1096 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
1097 .masters = omap44xx_dsp_masters,
1098 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
1099 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1100};
1101
1102/*
Benoit Coussond63bd742011-01-27 11:17:03 +00001103 * 'dss' class
1104 * display sub-system
1105 */
1106
1107static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
1108 .rev_offs = 0x0000,
1109 .syss_offs = 0x0014,
1110 .sysc_flags = SYSS_HAS_RESET_STATUS,
1111};
1112
1113static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
1114 .name = "dss",
1115 .sysc = &omap44xx_dss_sysc,
1116};
1117
1118/* dss */
1119/* dss master ports */
1120static struct omap_hwmod_ocp_if *omap44xx_dss_masters[] = {
1121 &omap44xx_dss__l3_main_1,
1122};
1123
1124static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
1125 {
1126 .pa_start = 0x58000000,
1127 .pa_end = 0x5800007f,
1128 .flags = ADDR_TYPE_RT
1129 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001130 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001131};
1132
1133/* l3_main_2 -> dss */
1134static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
1135 .master = &omap44xx_l3_main_2_hwmod,
1136 .slave = &omap44xx_dss_hwmod,
1137 .clk = "l3_div_ck",
1138 .addr = omap44xx_dss_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001139 .user = OCP_USER_SDMA,
1140};
1141
1142static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
1143 {
1144 .pa_start = 0x48040000,
1145 .pa_end = 0x4804007f,
1146 .flags = ADDR_TYPE_RT
1147 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001148 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001149};
1150
1151/* l4_per -> dss */
1152static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
1153 .master = &omap44xx_l4_per_hwmod,
1154 .slave = &omap44xx_dss_hwmod,
1155 .clk = "l4_div_ck",
1156 .addr = omap44xx_dss_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001157 .user = OCP_USER_MPU,
1158};
1159
1160/* dss slave ports */
1161static struct omap_hwmod_ocp_if *omap44xx_dss_slaves[] = {
1162 &omap44xx_l3_main_2__dss,
1163 &omap44xx_l4_per__dss,
1164};
1165
1166static struct omap_hwmod_opt_clk dss_opt_clks[] = {
1167 { .role = "sys_clk", .clk = "dss_sys_clk" },
1168 { .role = "tv_clk", .clk = "dss_tv_clk" },
1169 { .role = "dss_clk", .clk = "dss_dss_clk" },
1170 { .role = "video_clk", .clk = "dss_48mhz_clk" },
1171};
1172
1173static struct omap_hwmod omap44xx_dss_hwmod = {
1174 .name = "dss_core",
1175 .class = &omap44xx_dss_hwmod_class,
1176 .main_clk = "dss_fck",
1177 .prcm = {
1178 .omap4 = {
1179 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1180 },
1181 },
1182 .opt_clks = dss_opt_clks,
1183 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
1184 .slaves = omap44xx_dss_slaves,
1185 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_slaves),
1186 .masters = omap44xx_dss_masters,
1187 .masters_cnt = ARRAY_SIZE(omap44xx_dss_masters),
1188 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1189};
1190
1191/*
1192 * 'dispc' class
1193 * display controller
1194 */
1195
1196static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
1197 .rev_offs = 0x0000,
1198 .sysc_offs = 0x0010,
1199 .syss_offs = 0x0014,
1200 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1201 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
1202 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1203 SYSS_HAS_RESET_STATUS),
1204 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1205 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1206 .sysc_fields = &omap_hwmod_sysc_type1,
1207};
1208
1209static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
1210 .name = "dispc",
1211 .sysc = &omap44xx_dispc_sysc,
1212};
1213
1214/* dss_dispc */
1215static struct omap_hwmod omap44xx_dss_dispc_hwmod;
1216static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
1217 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001218 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001219};
1220
1221static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
1222 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001223 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001224};
1225
1226static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
1227 {
1228 .pa_start = 0x58001000,
1229 .pa_end = 0x58001fff,
1230 .flags = ADDR_TYPE_RT
1231 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001232 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001233};
1234
1235/* l3_main_2 -> dss_dispc */
1236static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
1237 .master = &omap44xx_l3_main_2_hwmod,
1238 .slave = &omap44xx_dss_dispc_hwmod,
1239 .clk = "l3_div_ck",
1240 .addr = omap44xx_dss_dispc_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001241 .user = OCP_USER_SDMA,
1242};
1243
1244static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
1245 {
1246 .pa_start = 0x48041000,
1247 .pa_end = 0x48041fff,
1248 .flags = ADDR_TYPE_RT
1249 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001250 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001251};
1252
1253/* l4_per -> dss_dispc */
1254static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
1255 .master = &omap44xx_l4_per_hwmod,
1256 .slave = &omap44xx_dss_dispc_hwmod,
1257 .clk = "l4_div_ck",
1258 .addr = omap44xx_dss_dispc_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001259 .user = OCP_USER_MPU,
1260};
1261
1262/* dss_dispc slave ports */
1263static struct omap_hwmod_ocp_if *omap44xx_dss_dispc_slaves[] = {
1264 &omap44xx_l3_main_2__dss_dispc,
1265 &omap44xx_l4_per__dss_dispc,
1266};
1267
1268static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
1269 .name = "dss_dispc",
1270 .class = &omap44xx_dispc_hwmod_class,
1271 .mpu_irqs = omap44xx_dss_dispc_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001272 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001273 .main_clk = "dss_fck",
1274 .prcm = {
1275 .omap4 = {
1276 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1277 },
1278 },
1279 .slaves = omap44xx_dss_dispc_slaves,
1280 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dispc_slaves),
1281 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1282};
1283
1284/*
1285 * 'dsi' class
1286 * display serial interface controller
1287 */
1288
1289static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
1290 .rev_offs = 0x0000,
1291 .sysc_offs = 0x0010,
1292 .syss_offs = 0x0014,
1293 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1294 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1295 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1296 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1297 .sysc_fields = &omap_hwmod_sysc_type1,
1298};
1299
1300static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
1301 .name = "dsi",
1302 .sysc = &omap44xx_dsi_sysc,
1303};
1304
1305/* dss_dsi1 */
1306static struct omap_hwmod omap44xx_dss_dsi1_hwmod;
1307static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
1308 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001309 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001310};
1311
1312static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
1313 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001314 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001315};
1316
1317static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
1318 {
1319 .pa_start = 0x58004000,
1320 .pa_end = 0x580041ff,
1321 .flags = ADDR_TYPE_RT
1322 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001323 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001324};
1325
1326/* l3_main_2 -> dss_dsi1 */
1327static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
1328 .master = &omap44xx_l3_main_2_hwmod,
1329 .slave = &omap44xx_dss_dsi1_hwmod,
1330 .clk = "l3_div_ck",
1331 .addr = omap44xx_dss_dsi1_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001332 .user = OCP_USER_SDMA,
1333};
1334
1335static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
1336 {
1337 .pa_start = 0x48044000,
1338 .pa_end = 0x480441ff,
1339 .flags = ADDR_TYPE_RT
1340 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001341 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001342};
1343
1344/* l4_per -> dss_dsi1 */
1345static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
1346 .master = &omap44xx_l4_per_hwmod,
1347 .slave = &omap44xx_dss_dsi1_hwmod,
1348 .clk = "l4_div_ck",
1349 .addr = omap44xx_dss_dsi1_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001350 .user = OCP_USER_MPU,
1351};
1352
1353/* dss_dsi1 slave ports */
1354static struct omap_hwmod_ocp_if *omap44xx_dss_dsi1_slaves[] = {
1355 &omap44xx_l3_main_2__dss_dsi1,
1356 &omap44xx_l4_per__dss_dsi1,
1357};
1358
1359static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
1360 .name = "dss_dsi1",
1361 .class = &omap44xx_dsi_hwmod_class,
1362 .mpu_irqs = omap44xx_dss_dsi1_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001363 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001364 .main_clk = "dss_fck",
1365 .prcm = {
1366 .omap4 = {
1367 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1368 },
1369 },
1370 .slaves = omap44xx_dss_dsi1_slaves,
1371 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi1_slaves),
1372 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1373};
1374
1375/* dss_dsi2 */
1376static struct omap_hwmod omap44xx_dss_dsi2_hwmod;
1377static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
1378 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001379 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001380};
1381
1382static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
1383 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001384 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001385};
1386
1387static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
1388 {
1389 .pa_start = 0x58005000,
1390 .pa_end = 0x580051ff,
1391 .flags = ADDR_TYPE_RT
1392 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001393 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001394};
1395
1396/* l3_main_2 -> dss_dsi2 */
1397static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
1398 .master = &omap44xx_l3_main_2_hwmod,
1399 .slave = &omap44xx_dss_dsi2_hwmod,
1400 .clk = "l3_div_ck",
1401 .addr = omap44xx_dss_dsi2_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001402 .user = OCP_USER_SDMA,
1403};
1404
1405static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
1406 {
1407 .pa_start = 0x48045000,
1408 .pa_end = 0x480451ff,
1409 .flags = ADDR_TYPE_RT
1410 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001411 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001412};
1413
1414/* l4_per -> dss_dsi2 */
1415static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
1416 .master = &omap44xx_l4_per_hwmod,
1417 .slave = &omap44xx_dss_dsi2_hwmod,
1418 .clk = "l4_div_ck",
1419 .addr = omap44xx_dss_dsi2_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001420 .user = OCP_USER_MPU,
1421};
1422
1423/* dss_dsi2 slave ports */
1424static struct omap_hwmod_ocp_if *omap44xx_dss_dsi2_slaves[] = {
1425 &omap44xx_l3_main_2__dss_dsi2,
1426 &omap44xx_l4_per__dss_dsi2,
1427};
1428
1429static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
1430 .name = "dss_dsi2",
1431 .class = &omap44xx_dsi_hwmod_class,
1432 .mpu_irqs = omap44xx_dss_dsi2_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001433 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001434 .main_clk = "dss_fck",
1435 .prcm = {
1436 .omap4 = {
1437 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1438 },
1439 },
1440 .slaves = omap44xx_dss_dsi2_slaves,
1441 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_dsi2_slaves),
1442 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1443};
1444
1445/*
1446 * 'hdmi' class
1447 * hdmi controller
1448 */
1449
1450static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
1451 .rev_offs = 0x0000,
1452 .sysc_offs = 0x0010,
1453 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1454 SYSC_HAS_SOFTRESET),
1455 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1456 SIDLE_SMART_WKUP),
1457 .sysc_fields = &omap_hwmod_sysc_type2,
1458};
1459
1460static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
1461 .name = "hdmi",
1462 .sysc = &omap44xx_hdmi_sysc,
1463};
1464
1465/* dss_hdmi */
1466static struct omap_hwmod omap44xx_dss_hdmi_hwmod;
1467static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
1468 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001469 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001470};
1471
1472static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
1473 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001474 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001475};
1476
1477static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
1478 {
1479 .pa_start = 0x58006000,
1480 .pa_end = 0x58006fff,
1481 .flags = ADDR_TYPE_RT
1482 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001483 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001484};
1485
1486/* l3_main_2 -> dss_hdmi */
1487static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
1488 .master = &omap44xx_l3_main_2_hwmod,
1489 .slave = &omap44xx_dss_hdmi_hwmod,
1490 .clk = "l3_div_ck",
1491 .addr = omap44xx_dss_hdmi_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001492 .user = OCP_USER_SDMA,
1493};
1494
1495static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
1496 {
1497 .pa_start = 0x48046000,
1498 .pa_end = 0x48046fff,
1499 .flags = ADDR_TYPE_RT
1500 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001501 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001502};
1503
1504/* l4_per -> dss_hdmi */
1505static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
1506 .master = &omap44xx_l4_per_hwmod,
1507 .slave = &omap44xx_dss_hdmi_hwmod,
1508 .clk = "l4_div_ck",
1509 .addr = omap44xx_dss_hdmi_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001510 .user = OCP_USER_MPU,
1511};
1512
1513/* dss_hdmi slave ports */
1514static struct omap_hwmod_ocp_if *omap44xx_dss_hdmi_slaves[] = {
1515 &omap44xx_l3_main_2__dss_hdmi,
1516 &omap44xx_l4_per__dss_hdmi,
1517};
1518
1519static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
1520 .name = "dss_hdmi",
1521 .class = &omap44xx_hdmi_hwmod_class,
1522 .mpu_irqs = omap44xx_dss_hdmi_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001523 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001524 .main_clk = "dss_fck",
1525 .prcm = {
1526 .omap4 = {
1527 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1528 },
1529 },
1530 .slaves = omap44xx_dss_hdmi_slaves,
1531 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_hdmi_slaves),
1532 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1533};
1534
1535/*
1536 * 'rfbi' class
1537 * remote frame buffer interface
1538 */
1539
1540static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
1541 .rev_offs = 0x0000,
1542 .sysc_offs = 0x0010,
1543 .syss_offs = 0x0014,
1544 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1545 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1546 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1547 .sysc_fields = &omap_hwmod_sysc_type1,
1548};
1549
1550static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
1551 .name = "rfbi",
1552 .sysc = &omap44xx_rfbi_sysc,
1553};
1554
1555/* dss_rfbi */
1556static struct omap_hwmod omap44xx_dss_rfbi_hwmod;
1557static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
1558 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001559 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +00001560};
1561
1562static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
1563 {
1564 .pa_start = 0x58002000,
1565 .pa_end = 0x580020ff,
1566 .flags = ADDR_TYPE_RT
1567 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001568 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001569};
1570
1571/* l3_main_2 -> dss_rfbi */
1572static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
1573 .master = &omap44xx_l3_main_2_hwmod,
1574 .slave = &omap44xx_dss_rfbi_hwmod,
1575 .clk = "l3_div_ck",
1576 .addr = omap44xx_dss_rfbi_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001577 .user = OCP_USER_SDMA,
1578};
1579
1580static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
1581 {
1582 .pa_start = 0x48042000,
1583 .pa_end = 0x480420ff,
1584 .flags = ADDR_TYPE_RT
1585 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001586 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001587};
1588
1589/* l4_per -> dss_rfbi */
1590static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
1591 .master = &omap44xx_l4_per_hwmod,
1592 .slave = &omap44xx_dss_rfbi_hwmod,
1593 .clk = "l4_div_ck",
1594 .addr = omap44xx_dss_rfbi_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001595 .user = OCP_USER_MPU,
1596};
1597
1598/* dss_rfbi slave ports */
1599static struct omap_hwmod_ocp_if *omap44xx_dss_rfbi_slaves[] = {
1600 &omap44xx_l3_main_2__dss_rfbi,
1601 &omap44xx_l4_per__dss_rfbi,
1602};
1603
1604static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
1605 .name = "dss_rfbi",
1606 .class = &omap44xx_rfbi_hwmod_class,
1607 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001608 .main_clk = "dss_fck",
1609 .prcm = {
1610 .omap4 = {
1611 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1612 },
1613 },
1614 .slaves = omap44xx_dss_rfbi_slaves,
1615 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_rfbi_slaves),
1616 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1617};
1618
1619/*
1620 * 'venc' class
1621 * video encoder
1622 */
1623
1624static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
1625 .name = "venc",
1626};
1627
1628/* dss_venc */
1629static struct omap_hwmod omap44xx_dss_venc_hwmod;
1630static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
1631 {
1632 .pa_start = 0x58003000,
1633 .pa_end = 0x580030ff,
1634 .flags = ADDR_TYPE_RT
1635 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001636 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001637};
1638
1639/* l3_main_2 -> dss_venc */
1640static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
1641 .master = &omap44xx_l3_main_2_hwmod,
1642 .slave = &omap44xx_dss_venc_hwmod,
1643 .clk = "l3_div_ck",
1644 .addr = omap44xx_dss_venc_dma_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001645 .user = OCP_USER_SDMA,
1646};
1647
1648static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
1649 {
1650 .pa_start = 0x48043000,
1651 .pa_end = 0x480430ff,
1652 .flags = ADDR_TYPE_RT
1653 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001654 { }
Benoit Coussond63bd742011-01-27 11:17:03 +00001655};
1656
1657/* l4_per -> dss_venc */
1658static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
1659 .master = &omap44xx_l4_per_hwmod,
1660 .slave = &omap44xx_dss_venc_hwmod,
1661 .clk = "l4_div_ck",
1662 .addr = omap44xx_dss_venc_addrs,
Benoit Coussond63bd742011-01-27 11:17:03 +00001663 .user = OCP_USER_MPU,
1664};
1665
1666/* dss_venc slave ports */
1667static struct omap_hwmod_ocp_if *omap44xx_dss_venc_slaves[] = {
1668 &omap44xx_l3_main_2__dss_venc,
1669 &omap44xx_l4_per__dss_venc,
1670};
1671
1672static struct omap_hwmod omap44xx_dss_venc_hwmod = {
1673 .name = "dss_venc",
1674 .class = &omap44xx_venc_hwmod_class,
1675 .main_clk = "dss_fck",
1676 .prcm = {
1677 .omap4 = {
1678 .clkctrl_reg = OMAP4430_CM_DSS_DSS_CLKCTRL,
1679 },
1680 },
1681 .slaves = omap44xx_dss_venc_slaves,
1682 .slaves_cnt = ARRAY_SIZE(omap44xx_dss_venc_slaves),
1683 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1684};
1685
1686/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001687 * 'gpio' class
1688 * general purpose io module
1689 */
1690
1691static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1692 .rev_offs = 0x0000,
1693 .sysc_offs = 0x0010,
1694 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001695 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1696 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1697 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001698 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1699 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001700 .sysc_fields = &omap_hwmod_sysc_type1,
1701};
1702
1703static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001704 .name = "gpio",
1705 .sysc = &omap44xx_gpio_sysc,
1706 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001707};
1708
1709/* gpio dev_attr */
1710static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001711 .bank_width = 32,
1712 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001713};
1714
1715/* gpio1 */
1716static struct omap_hwmod omap44xx_gpio1_hwmod;
1717static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1718 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001719 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001720};
1721
1722static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
1723 {
1724 .pa_start = 0x4a310000,
1725 .pa_end = 0x4a3101ff,
1726 .flags = ADDR_TYPE_RT
1727 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001728 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001729};
1730
1731/* l4_wkup -> gpio1 */
1732static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
1733 .master = &omap44xx_l4_wkup_hwmod,
1734 .slave = &omap44xx_gpio1_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001735 .clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001736 .addr = omap44xx_gpio1_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001737 .user = OCP_USER_MPU | OCP_USER_SDMA,
1738};
1739
1740/* gpio1 slave ports */
1741static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
1742 &omap44xx_l4_wkup__gpio1,
1743};
1744
1745static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001746 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001747};
1748
1749static struct omap_hwmod omap44xx_gpio1_hwmod = {
1750 .name = "gpio1",
1751 .class = &omap44xx_gpio_hwmod_class,
1752 .mpu_irqs = omap44xx_gpio1_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001753 .main_clk = "gpio1_ick",
1754 .prcm = {
1755 .omap4 = {
1756 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
1757 },
1758 },
1759 .opt_clks = gpio1_opt_clks,
1760 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1761 .dev_attr = &gpio_dev_attr,
1762 .slaves = omap44xx_gpio1_slaves,
1763 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
1764 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1765};
1766
1767/* gpio2 */
1768static struct omap_hwmod omap44xx_gpio2_hwmod;
1769static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1770 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001771 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001772};
1773
1774static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
1775 {
1776 .pa_start = 0x48055000,
1777 .pa_end = 0x480551ff,
1778 .flags = ADDR_TYPE_RT
1779 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001780 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001781};
1782
1783/* l4_per -> gpio2 */
1784static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
1785 .master = &omap44xx_l4_per_hwmod,
1786 .slave = &omap44xx_gpio2_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001787 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001788 .addr = omap44xx_gpio2_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001789 .user = OCP_USER_MPU | OCP_USER_SDMA,
1790};
1791
1792/* gpio2 slave ports */
1793static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
1794 &omap44xx_l4_per__gpio2,
1795};
1796
1797static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001798 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001799};
1800
1801static struct omap_hwmod omap44xx_gpio2_hwmod = {
1802 .name = "gpio2",
1803 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001804 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001805 .mpu_irqs = omap44xx_gpio2_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001806 .main_clk = "gpio2_ick",
1807 .prcm = {
1808 .omap4 = {
1809 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
1810 },
1811 },
1812 .opt_clks = gpio2_opt_clks,
1813 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1814 .dev_attr = &gpio_dev_attr,
1815 .slaves = omap44xx_gpio2_slaves,
1816 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
1817 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1818};
1819
1820/* gpio3 */
1821static struct omap_hwmod omap44xx_gpio3_hwmod;
1822static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1823 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001824 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001825};
1826
1827static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
1828 {
1829 .pa_start = 0x48057000,
1830 .pa_end = 0x480571ff,
1831 .flags = ADDR_TYPE_RT
1832 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001833 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001834};
1835
1836/* l4_per -> gpio3 */
1837static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
1838 .master = &omap44xx_l4_per_hwmod,
1839 .slave = &omap44xx_gpio3_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001840 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001841 .addr = omap44xx_gpio3_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001842 .user = OCP_USER_MPU | OCP_USER_SDMA,
1843};
1844
1845/* gpio3 slave ports */
1846static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
1847 &omap44xx_l4_per__gpio3,
1848};
1849
1850static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001851 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001852};
1853
1854static struct omap_hwmod omap44xx_gpio3_hwmod = {
1855 .name = "gpio3",
1856 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001857 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001858 .mpu_irqs = omap44xx_gpio3_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001859 .main_clk = "gpio3_ick",
1860 .prcm = {
1861 .omap4 = {
1862 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
1863 },
1864 },
1865 .opt_clks = gpio3_opt_clks,
1866 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1867 .dev_attr = &gpio_dev_attr,
1868 .slaves = omap44xx_gpio3_slaves,
1869 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
1870 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1871};
1872
1873/* gpio4 */
1874static struct omap_hwmod omap44xx_gpio4_hwmod;
1875static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1876 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001877 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001878};
1879
1880static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
1881 {
1882 .pa_start = 0x48059000,
1883 .pa_end = 0x480591ff,
1884 .flags = ADDR_TYPE_RT
1885 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001886 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001887};
1888
1889/* l4_per -> gpio4 */
1890static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
1891 .master = &omap44xx_l4_per_hwmod,
1892 .slave = &omap44xx_gpio4_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001893 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001894 .addr = omap44xx_gpio4_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001895 .user = OCP_USER_MPU | OCP_USER_SDMA,
1896};
1897
1898/* gpio4 slave ports */
1899static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
1900 &omap44xx_l4_per__gpio4,
1901};
1902
1903static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001904 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001905};
1906
1907static struct omap_hwmod omap44xx_gpio4_hwmod = {
1908 .name = "gpio4",
1909 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001910 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001911 .mpu_irqs = omap44xx_gpio4_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001912 .main_clk = "gpio4_ick",
1913 .prcm = {
1914 .omap4 = {
1915 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
1916 },
1917 },
1918 .opt_clks = gpio4_opt_clks,
1919 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1920 .dev_attr = &gpio_dev_attr,
1921 .slaves = omap44xx_gpio4_slaves,
1922 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
1923 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1924};
1925
1926/* gpio5 */
1927static struct omap_hwmod omap44xx_gpio5_hwmod;
1928static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
1929 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001930 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001931};
1932
1933static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
1934 {
1935 .pa_start = 0x4805b000,
1936 .pa_end = 0x4805b1ff,
1937 .flags = ADDR_TYPE_RT
1938 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001939 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001940};
1941
1942/* l4_per -> gpio5 */
1943static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
1944 .master = &omap44xx_l4_per_hwmod,
1945 .slave = &omap44xx_gpio5_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001946 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001947 .addr = omap44xx_gpio5_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001948 .user = OCP_USER_MPU | OCP_USER_SDMA,
1949};
1950
1951/* gpio5 slave ports */
1952static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
1953 &omap44xx_l4_per__gpio5,
1954};
1955
1956static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001957 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001958};
1959
1960static struct omap_hwmod omap44xx_gpio5_hwmod = {
1961 .name = "gpio5",
1962 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001963 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001964 .mpu_irqs = omap44xx_gpio5_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001965 .main_clk = "gpio5_ick",
1966 .prcm = {
1967 .omap4 = {
1968 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1969 },
1970 },
1971 .opt_clks = gpio5_opt_clks,
1972 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1973 .dev_attr = &gpio_dev_attr,
1974 .slaves = omap44xx_gpio5_slaves,
1975 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
1976 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1977};
1978
1979/* gpio6 */
1980static struct omap_hwmod omap44xx_gpio6_hwmod;
1981static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1982 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001983 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001984};
1985
1986static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
1987 {
1988 .pa_start = 0x4805d000,
1989 .pa_end = 0x4805d1ff,
1990 .flags = ADDR_TYPE_RT
1991 },
Paul Walmsley78183f32011-07-09 19:14:05 -06001992 { }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001993};
1994
1995/* l4_per -> gpio6 */
1996static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
1997 .master = &omap44xx_l4_per_hwmod,
1998 .slave = &omap44xx_gpio6_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001999 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002000 .addr = omap44xx_gpio6_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002001 .user = OCP_USER_MPU | OCP_USER_SDMA,
2002};
2003
2004/* gpio6 slave ports */
2005static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
2006 &omap44xx_l4_per__gpio6,
2007};
2008
2009static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07002010 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002011};
2012
2013static struct omap_hwmod omap44xx_gpio6_hwmod = {
2014 .name = "gpio6",
2015 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -07002016 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002017 .mpu_irqs = omap44xx_gpio6_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002018 .main_clk = "gpio6_ick",
2019 .prcm = {
2020 .omap4 = {
2021 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
2022 },
2023 },
2024 .opt_clks = gpio6_opt_clks,
2025 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
2026 .dev_attr = &gpio_dev_attr,
2027 .slaves = omap44xx_gpio6_slaves,
2028 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
2029 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2030};
2031
2032/*
Benoit Cousson407a6882011-02-15 22:39:48 +01002033 * 'hsi' class
2034 * mipi high-speed synchronous serial interface (multichannel and full-duplex
2035 * serial if)
2036 */
2037
2038static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
2039 .rev_offs = 0x0000,
2040 .sysc_offs = 0x0010,
2041 .syss_offs = 0x0014,
2042 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
2043 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2044 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2045 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2046 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2047 MSTANDBY_SMART),
2048 .sysc_fields = &omap_hwmod_sysc_type1,
2049};
2050
2051static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
2052 .name = "hsi",
2053 .sysc = &omap44xx_hsi_sysc,
2054};
2055
2056/* hsi */
2057static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
2058 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
2059 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
2060 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002061 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002062};
2063
2064/* hsi master ports */
2065static struct omap_hwmod_ocp_if *omap44xx_hsi_masters[] = {
2066 &omap44xx_hsi__l3_main_2,
2067};
2068
2069static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
2070 {
2071 .pa_start = 0x4a058000,
2072 .pa_end = 0x4a05bfff,
2073 .flags = ADDR_TYPE_RT
2074 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002075 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01002076};
2077
2078/* l4_cfg -> hsi */
2079static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2080 .master = &omap44xx_l4_cfg_hwmod,
2081 .slave = &omap44xx_hsi_hwmod,
2082 .clk = "l4_div_ck",
2083 .addr = omap44xx_hsi_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002084 .user = OCP_USER_MPU | OCP_USER_SDMA,
2085};
2086
2087/* hsi slave ports */
2088static struct omap_hwmod_ocp_if *omap44xx_hsi_slaves[] = {
2089 &omap44xx_l4_cfg__hsi,
2090};
2091
2092static struct omap_hwmod omap44xx_hsi_hwmod = {
2093 .name = "hsi",
2094 .class = &omap44xx_hsi_hwmod_class,
2095 .mpu_irqs = omap44xx_hsi_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002096 .main_clk = "hsi_fck",
2097 .prcm = {
2098 .omap4 = {
2099 .clkctrl_reg = OMAP4430_CM_L3INIT_HSI_CLKCTRL,
2100 },
2101 },
2102 .slaves = omap44xx_hsi_slaves,
2103 .slaves_cnt = ARRAY_SIZE(omap44xx_hsi_slaves),
2104 .masters = omap44xx_hsi_masters,
2105 .masters_cnt = ARRAY_SIZE(omap44xx_hsi_masters),
2106 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2107};
2108
2109/*
Benoit Coussonf7764712010-09-21 19:37:14 +05302110 * 'i2c' class
2111 * multimaster high-speed i2c controller
2112 */
2113
2114static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
2115 .sysc_offs = 0x0010,
2116 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002117 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2118 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002119 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002120 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2121 SIDLE_SMART_WKUP),
Benoit Coussonf7764712010-09-21 19:37:14 +05302122 .sysc_fields = &omap_hwmod_sysc_type1,
2123};
2124
2125static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002126 .name = "i2c",
2127 .sysc = &omap44xx_i2c_sysc,
Benoit Coussonf7764712010-09-21 19:37:14 +05302128};
2129
2130/* i2c1 */
2131static struct omap_hwmod omap44xx_i2c1_hwmod;
2132static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
2133 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002134 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302135};
2136
2137static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
2138 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
2139 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002140 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302141};
2142
2143static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
2144 {
2145 .pa_start = 0x48070000,
2146 .pa_end = 0x480700ff,
2147 .flags = ADDR_TYPE_RT
2148 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002149 { }
Benoit Coussonf7764712010-09-21 19:37:14 +05302150};
2151
2152/* l4_per -> i2c1 */
2153static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
2154 .master = &omap44xx_l4_per_hwmod,
2155 .slave = &omap44xx_i2c1_hwmod,
2156 .clk = "l4_div_ck",
2157 .addr = omap44xx_i2c1_addrs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302158 .user = OCP_USER_MPU | OCP_USER_SDMA,
2159};
2160
2161/* i2c1 slave ports */
2162static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
2163 &omap44xx_l4_per__i2c1,
2164};
2165
2166static struct omap_hwmod omap44xx_i2c1_hwmod = {
2167 .name = "i2c1",
2168 .class = &omap44xx_i2c_hwmod_class,
2169 .flags = HWMOD_INIT_NO_RESET,
2170 .mpu_irqs = omap44xx_i2c1_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302171 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302172 .main_clk = "i2c1_fck",
2173 .prcm = {
2174 .omap4 = {
2175 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
2176 },
2177 },
2178 .slaves = omap44xx_i2c1_slaves,
2179 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
2180 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2181};
2182
2183/* i2c2 */
2184static struct omap_hwmod omap44xx_i2c2_hwmod;
2185static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
2186 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002187 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302188};
2189
2190static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
2191 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
2192 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002193 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302194};
2195
2196static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
2197 {
2198 .pa_start = 0x48072000,
2199 .pa_end = 0x480720ff,
2200 .flags = ADDR_TYPE_RT
2201 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002202 { }
Benoit Coussonf7764712010-09-21 19:37:14 +05302203};
2204
2205/* l4_per -> i2c2 */
2206static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
2207 .master = &omap44xx_l4_per_hwmod,
2208 .slave = &omap44xx_i2c2_hwmod,
2209 .clk = "l4_div_ck",
2210 .addr = omap44xx_i2c2_addrs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302211 .user = OCP_USER_MPU | OCP_USER_SDMA,
2212};
2213
2214/* i2c2 slave ports */
2215static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
2216 &omap44xx_l4_per__i2c2,
2217};
2218
2219static struct omap_hwmod omap44xx_i2c2_hwmod = {
2220 .name = "i2c2",
2221 .class = &omap44xx_i2c_hwmod_class,
2222 .flags = HWMOD_INIT_NO_RESET,
2223 .mpu_irqs = omap44xx_i2c2_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302224 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302225 .main_clk = "i2c2_fck",
2226 .prcm = {
2227 .omap4 = {
2228 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
2229 },
2230 },
2231 .slaves = omap44xx_i2c2_slaves,
2232 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
2233 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2234};
2235
2236/* i2c3 */
2237static struct omap_hwmod omap44xx_i2c3_hwmod;
2238static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
2239 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002240 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302241};
2242
2243static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
2244 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
2245 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002246 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302247};
2248
2249static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
2250 {
2251 .pa_start = 0x48060000,
2252 .pa_end = 0x480600ff,
2253 .flags = ADDR_TYPE_RT
2254 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002255 { }
Benoit Coussonf7764712010-09-21 19:37:14 +05302256};
2257
2258/* l4_per -> i2c3 */
2259static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
2260 .master = &omap44xx_l4_per_hwmod,
2261 .slave = &omap44xx_i2c3_hwmod,
2262 .clk = "l4_div_ck",
2263 .addr = omap44xx_i2c3_addrs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302264 .user = OCP_USER_MPU | OCP_USER_SDMA,
2265};
2266
2267/* i2c3 slave ports */
2268static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
2269 &omap44xx_l4_per__i2c3,
2270};
2271
2272static struct omap_hwmod omap44xx_i2c3_hwmod = {
2273 .name = "i2c3",
2274 .class = &omap44xx_i2c_hwmod_class,
2275 .flags = HWMOD_INIT_NO_RESET,
2276 .mpu_irqs = omap44xx_i2c3_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302277 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302278 .main_clk = "i2c3_fck",
2279 .prcm = {
2280 .omap4 = {
2281 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
2282 },
2283 },
2284 .slaves = omap44xx_i2c3_slaves,
2285 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
2286 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2287};
2288
2289/* i2c4 */
2290static struct omap_hwmod omap44xx_i2c4_hwmod;
2291static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
2292 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002293 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302294};
2295
2296static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
2297 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
2298 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002299 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05302300};
2301
2302static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
2303 {
2304 .pa_start = 0x48350000,
2305 .pa_end = 0x483500ff,
2306 .flags = ADDR_TYPE_RT
2307 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002308 { }
Benoit Coussonf7764712010-09-21 19:37:14 +05302309};
2310
2311/* l4_per -> i2c4 */
2312static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
2313 .master = &omap44xx_l4_per_hwmod,
2314 .slave = &omap44xx_i2c4_hwmod,
2315 .clk = "l4_div_ck",
2316 .addr = omap44xx_i2c4_addrs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302317 .user = OCP_USER_MPU | OCP_USER_SDMA,
2318};
2319
2320/* i2c4 slave ports */
2321static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
2322 &omap44xx_l4_per__i2c4,
2323};
2324
2325static struct omap_hwmod omap44xx_i2c4_hwmod = {
2326 .name = "i2c4",
2327 .class = &omap44xx_i2c_hwmod_class,
2328 .flags = HWMOD_INIT_NO_RESET,
2329 .mpu_irqs = omap44xx_i2c4_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302330 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05302331 .main_clk = "i2c4_fck",
2332 .prcm = {
2333 .omap4 = {
2334 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
2335 },
2336 },
2337 .slaves = omap44xx_i2c4_slaves,
2338 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
2339 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2340};
2341
2342/*
Benoit Cousson407a6882011-02-15 22:39:48 +01002343 * 'ipu' class
2344 * imaging processor unit
2345 */
2346
2347static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
2348 .name = "ipu",
2349};
2350
2351/* ipu */
2352static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
2353 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002354 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002355};
2356
2357static struct omap_hwmod_rst_info omap44xx_ipu_c0_resets[] = {
2358 { .name = "cpu0", .rst_shift = 0 },
2359};
2360
2361static struct omap_hwmod_rst_info omap44xx_ipu_c1_resets[] = {
2362 { .name = "cpu1", .rst_shift = 1 },
2363};
2364
2365static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
2366 { .name = "mmu_cache", .rst_shift = 2 },
2367};
2368
2369/* ipu master ports */
2370static struct omap_hwmod_ocp_if *omap44xx_ipu_masters[] = {
2371 &omap44xx_ipu__l3_main_2,
2372};
2373
2374/* l3_main_2 -> ipu */
2375static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2376 .master = &omap44xx_l3_main_2_hwmod,
2377 .slave = &omap44xx_ipu_hwmod,
2378 .clk = "l3_div_ck",
2379 .user = OCP_USER_MPU | OCP_USER_SDMA,
2380};
2381
2382/* ipu slave ports */
2383static struct omap_hwmod_ocp_if *omap44xx_ipu_slaves[] = {
2384 &omap44xx_l3_main_2__ipu,
2385};
2386
2387/* Pseudo hwmod for reset control purpose only */
2388static struct omap_hwmod omap44xx_ipu_c0_hwmod = {
2389 .name = "ipu_c0",
2390 .class = &omap44xx_ipu_hwmod_class,
2391 .flags = HWMOD_INIT_NO_RESET,
2392 .rst_lines = omap44xx_ipu_c0_resets,
2393 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c0_resets),
2394 .prcm = {
2395 .omap4 = {
2396 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2397 },
2398 },
2399 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2400};
2401
2402/* Pseudo hwmod for reset control purpose only */
2403static struct omap_hwmod omap44xx_ipu_c1_hwmod = {
2404 .name = "ipu_c1",
2405 .class = &omap44xx_ipu_hwmod_class,
2406 .flags = HWMOD_INIT_NO_RESET,
2407 .rst_lines = omap44xx_ipu_c1_resets,
2408 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_c1_resets),
2409 .prcm = {
2410 .omap4 = {
2411 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2412 },
2413 },
2414 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2415};
2416
2417static struct omap_hwmod omap44xx_ipu_hwmod = {
2418 .name = "ipu",
2419 .class = &omap44xx_ipu_hwmod_class,
2420 .mpu_irqs = omap44xx_ipu_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002421 .rst_lines = omap44xx_ipu_resets,
2422 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
2423 .main_clk = "ipu_fck",
2424 .prcm = {
2425 .omap4 = {
2426 .clkctrl_reg = OMAP4430_CM_DUCATI_DUCATI_CLKCTRL,
2427 .rstctrl_reg = OMAP4430_RM_DUCATI_RSTCTRL,
2428 },
2429 },
2430 .slaves = omap44xx_ipu_slaves,
2431 .slaves_cnt = ARRAY_SIZE(omap44xx_ipu_slaves),
2432 .masters = omap44xx_ipu_masters,
2433 .masters_cnt = ARRAY_SIZE(omap44xx_ipu_masters),
2434 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2435};
2436
2437/*
2438 * 'iss' class
2439 * external images sensor pixel data processor
2440 */
2441
2442static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
2443 .rev_offs = 0x0000,
2444 .sysc_offs = 0x0010,
2445 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
2446 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2447 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2448 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2449 MSTANDBY_SMART),
2450 .sysc_fields = &omap_hwmod_sysc_type2,
2451};
2452
2453static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
2454 .name = "iss",
2455 .sysc = &omap44xx_iss_sysc,
2456};
2457
2458/* iss */
2459static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
2460 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002461 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002462};
2463
2464static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
2465 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
2466 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
2467 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
2468 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002469 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002470};
2471
2472/* iss master ports */
2473static struct omap_hwmod_ocp_if *omap44xx_iss_masters[] = {
2474 &omap44xx_iss__l3_main_2,
2475};
2476
2477static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
2478 {
2479 .pa_start = 0x52000000,
2480 .pa_end = 0x520000ff,
2481 .flags = ADDR_TYPE_RT
2482 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002483 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01002484};
2485
2486/* l3_main_2 -> iss */
2487static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2488 .master = &omap44xx_l3_main_2_hwmod,
2489 .slave = &omap44xx_iss_hwmod,
2490 .clk = "l3_div_ck",
2491 .addr = omap44xx_iss_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002492 .user = OCP_USER_MPU | OCP_USER_SDMA,
2493};
2494
2495/* iss slave ports */
2496static struct omap_hwmod_ocp_if *omap44xx_iss_slaves[] = {
2497 &omap44xx_l3_main_2__iss,
2498};
2499
2500static struct omap_hwmod_opt_clk iss_opt_clks[] = {
2501 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
2502};
2503
2504static struct omap_hwmod omap44xx_iss_hwmod = {
2505 .name = "iss",
2506 .class = &omap44xx_iss_hwmod_class,
2507 .mpu_irqs = omap44xx_iss_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002508 .sdma_reqs = omap44xx_iss_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002509 .main_clk = "iss_fck",
2510 .prcm = {
2511 .omap4 = {
2512 .clkctrl_reg = OMAP4430_CM_CAM_ISS_CLKCTRL,
2513 },
2514 },
2515 .opt_clks = iss_opt_clks,
2516 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
2517 .slaves = omap44xx_iss_slaves,
2518 .slaves_cnt = ARRAY_SIZE(omap44xx_iss_slaves),
2519 .masters = omap44xx_iss_masters,
2520 .masters_cnt = ARRAY_SIZE(omap44xx_iss_masters),
2521 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2522};
2523
2524/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002525 * 'iva' class
2526 * multi-standard video encoder/decoder hardware accelerator
2527 */
2528
2529static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002530 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002531};
2532
2533/* iva */
2534static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
2535 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
2536 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
2537 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002538 { .irq = -1 }
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002539};
2540
2541static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
2542 { .name = "logic", .rst_shift = 2 },
2543};
2544
2545static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
2546 { .name = "seq0", .rst_shift = 0 },
2547};
2548
2549static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
2550 { .name = "seq1", .rst_shift = 1 },
2551};
2552
2553/* iva master ports */
2554static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
2555 &omap44xx_iva__l3_main_2,
2556 &omap44xx_iva__l3_instr,
2557};
2558
2559static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
2560 {
2561 .pa_start = 0x5a000000,
2562 .pa_end = 0x5a07ffff,
2563 .flags = ADDR_TYPE_RT
2564 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002565 { }
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002566};
2567
2568/* l3_main_2 -> iva */
2569static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2570 .master = &omap44xx_l3_main_2_hwmod,
2571 .slave = &omap44xx_iva_hwmod,
2572 .clk = "l3_div_ck",
2573 .addr = omap44xx_iva_addrs,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002574 .user = OCP_USER_MPU,
2575};
2576
2577/* iva slave ports */
2578static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
2579 &omap44xx_dsp__iva,
2580 &omap44xx_l3_main_2__iva,
2581};
2582
2583/* Pseudo hwmod for reset control purpose only */
2584static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
2585 .name = "iva_seq0",
2586 .class = &omap44xx_iva_hwmod_class,
2587 .flags = HWMOD_INIT_NO_RESET,
2588 .rst_lines = omap44xx_iva_seq0_resets,
2589 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
2590 .prcm = {
2591 .omap4 = {
2592 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2593 },
2594 },
2595 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2596};
2597
2598/* Pseudo hwmod for reset control purpose only */
2599static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
2600 .name = "iva_seq1",
2601 .class = &omap44xx_iva_hwmod_class,
2602 .flags = HWMOD_INIT_NO_RESET,
2603 .rst_lines = omap44xx_iva_seq1_resets,
2604 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
2605 .prcm = {
2606 .omap4 = {
2607 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2608 },
2609 },
2610 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2611};
2612
2613static struct omap_hwmod omap44xx_iva_hwmod = {
2614 .name = "iva",
2615 .class = &omap44xx_iva_hwmod_class,
2616 .mpu_irqs = omap44xx_iva_irqs,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002617 .rst_lines = omap44xx_iva_resets,
2618 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
2619 .main_clk = "iva_fck",
2620 .prcm = {
2621 .omap4 = {
2622 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
2623 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
2624 },
2625 },
2626 .slaves = omap44xx_iva_slaves,
2627 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
2628 .masters = omap44xx_iva_masters,
2629 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
2630 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2631};
2632
2633/*
Benoit Cousson407a6882011-02-15 22:39:48 +01002634 * 'kbd' class
2635 * keyboard controller
2636 */
2637
2638static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
2639 .rev_offs = 0x0000,
2640 .sysc_offs = 0x0010,
2641 .syss_offs = 0x0014,
2642 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2643 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2644 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2645 SYSS_HAS_RESET_STATUS),
2646 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2647 .sysc_fields = &omap_hwmod_sysc_type1,
2648};
2649
2650static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
2651 .name = "kbd",
2652 .sysc = &omap44xx_kbd_sysc,
2653};
2654
2655/* kbd */
2656static struct omap_hwmod omap44xx_kbd_hwmod;
2657static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
2658 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002659 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002660};
2661
2662static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
2663 {
2664 .pa_start = 0x4a31c000,
2665 .pa_end = 0x4a31c07f,
2666 .flags = ADDR_TYPE_RT
2667 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002668 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01002669};
2670
2671/* l4_wkup -> kbd */
2672static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2673 .master = &omap44xx_l4_wkup_hwmod,
2674 .slave = &omap44xx_kbd_hwmod,
2675 .clk = "l4_wkup_clk_mux_ck",
2676 .addr = omap44xx_kbd_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002677 .user = OCP_USER_MPU | OCP_USER_SDMA,
2678};
2679
2680/* kbd slave ports */
2681static struct omap_hwmod_ocp_if *omap44xx_kbd_slaves[] = {
2682 &omap44xx_l4_wkup__kbd,
2683};
2684
2685static struct omap_hwmod omap44xx_kbd_hwmod = {
2686 .name = "kbd",
2687 .class = &omap44xx_kbd_hwmod_class,
2688 .mpu_irqs = omap44xx_kbd_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002689 .main_clk = "kbd_fck",
2690 .prcm = {
2691 .omap4 = {
2692 .clkctrl_reg = OMAP4430_CM_WKUP_KEYBOARD_CLKCTRL,
2693 },
2694 },
2695 .slaves = omap44xx_kbd_slaves,
2696 .slaves_cnt = ARRAY_SIZE(omap44xx_kbd_slaves),
2697 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2698};
2699
2700/*
Benoit Coussonec5df922011-02-02 19:27:21 +00002701 * 'mailbox' class
2702 * mailbox module allowing communication between the on-chip processors using a
2703 * queued mailbox-interrupt mechanism.
2704 */
2705
2706static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
2707 .rev_offs = 0x0000,
2708 .sysc_offs = 0x0010,
2709 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2710 SYSC_HAS_SOFTRESET),
2711 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2712 .sysc_fields = &omap_hwmod_sysc_type2,
2713};
2714
2715static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
2716 .name = "mailbox",
2717 .sysc = &omap44xx_mailbox_sysc,
2718};
2719
2720/* mailbox */
2721static struct omap_hwmod omap44xx_mailbox_hwmod;
2722static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
2723 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002724 { .irq = -1 }
Benoit Coussonec5df922011-02-02 19:27:21 +00002725};
2726
2727static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
2728 {
2729 .pa_start = 0x4a0f4000,
2730 .pa_end = 0x4a0f41ff,
2731 .flags = ADDR_TYPE_RT
2732 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002733 { }
Benoit Coussonec5df922011-02-02 19:27:21 +00002734};
2735
2736/* l4_cfg -> mailbox */
2737static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
2738 .master = &omap44xx_l4_cfg_hwmod,
2739 .slave = &omap44xx_mailbox_hwmod,
2740 .clk = "l4_div_ck",
2741 .addr = omap44xx_mailbox_addrs,
Benoit Coussonec5df922011-02-02 19:27:21 +00002742 .user = OCP_USER_MPU | OCP_USER_SDMA,
2743};
2744
2745/* mailbox slave ports */
2746static struct omap_hwmod_ocp_if *omap44xx_mailbox_slaves[] = {
2747 &omap44xx_l4_cfg__mailbox,
2748};
2749
2750static struct omap_hwmod omap44xx_mailbox_hwmod = {
2751 .name = "mailbox",
2752 .class = &omap44xx_mailbox_hwmod_class,
2753 .mpu_irqs = omap44xx_mailbox_irqs,
Benoit Coussonec5df922011-02-02 19:27:21 +00002754 .prcm = {
2755 .omap4 = {
2756 .clkctrl_reg = OMAP4430_CM_L4CFG_MAILBOX_CLKCTRL,
2757 },
2758 },
2759 .slaves = omap44xx_mailbox_slaves,
2760 .slaves_cnt = ARRAY_SIZE(omap44xx_mailbox_slaves),
2761 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2762};
2763
2764/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00002765 * 'mcbsp' class
2766 * multi channel buffered serial port controller
2767 */
2768
2769static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
2770 .sysc_offs = 0x008c,
2771 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
2772 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2773 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2774 .sysc_fields = &omap_hwmod_sysc_type1,
2775};
2776
2777static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
2778 .name = "mcbsp",
2779 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302780 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002781};
2782
2783/* mcbsp1 */
2784static struct omap_hwmod omap44xx_mcbsp1_hwmod;
2785static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
2786 { .irq = 17 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002787 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002788};
2789
2790static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
2791 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
2792 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002793 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002794};
2795
2796static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
2797 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302798 .name = "mpu",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002799 .pa_start = 0x40122000,
2800 .pa_end = 0x401220ff,
2801 .flags = ADDR_TYPE_RT
2802 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002803 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002804};
2805
2806/* l4_abe -> mcbsp1 */
2807static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
2808 .master = &omap44xx_l4_abe_hwmod,
2809 .slave = &omap44xx_mcbsp1_hwmod,
2810 .clk = "ocp_abe_iclk",
2811 .addr = omap44xx_mcbsp1_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002812 .user = OCP_USER_MPU,
2813};
2814
2815static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
2816 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302817 .name = "dma",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002818 .pa_start = 0x49022000,
2819 .pa_end = 0x490220ff,
2820 .flags = ADDR_TYPE_RT
2821 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002822 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002823};
2824
2825/* l4_abe -> mcbsp1 (dma) */
2826static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
2827 .master = &omap44xx_l4_abe_hwmod,
2828 .slave = &omap44xx_mcbsp1_hwmod,
2829 .clk = "ocp_abe_iclk",
2830 .addr = omap44xx_mcbsp1_dma_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002831 .user = OCP_USER_SDMA,
2832};
2833
2834/* mcbsp1 slave ports */
2835static struct omap_hwmod_ocp_if *omap44xx_mcbsp1_slaves[] = {
2836 &omap44xx_l4_abe__mcbsp1,
2837 &omap44xx_l4_abe__mcbsp1_dma,
2838};
2839
2840static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
2841 .name = "mcbsp1",
2842 .class = &omap44xx_mcbsp_hwmod_class,
2843 .mpu_irqs = omap44xx_mcbsp1_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002844 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002845 .main_clk = "mcbsp1_fck",
2846 .prcm = {
2847 .omap4 = {
2848 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP1_CLKCTRL,
2849 },
2850 },
2851 .slaves = omap44xx_mcbsp1_slaves,
2852 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp1_slaves),
2853 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2854};
2855
2856/* mcbsp2 */
2857static struct omap_hwmod omap44xx_mcbsp2_hwmod;
2858static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
2859 { .irq = 22 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002860 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002861};
2862
2863static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
2864 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
2865 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002866 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002867};
2868
2869static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
2870 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302871 .name = "mpu",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002872 .pa_start = 0x40124000,
2873 .pa_end = 0x401240ff,
2874 .flags = ADDR_TYPE_RT
2875 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002876 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002877};
2878
2879/* l4_abe -> mcbsp2 */
2880static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
2881 .master = &omap44xx_l4_abe_hwmod,
2882 .slave = &omap44xx_mcbsp2_hwmod,
2883 .clk = "ocp_abe_iclk",
2884 .addr = omap44xx_mcbsp2_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002885 .user = OCP_USER_MPU,
2886};
2887
2888static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
2889 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302890 .name = "dma",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002891 .pa_start = 0x49024000,
2892 .pa_end = 0x490240ff,
2893 .flags = ADDR_TYPE_RT
2894 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002895 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002896};
2897
2898/* l4_abe -> mcbsp2 (dma) */
2899static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
2900 .master = &omap44xx_l4_abe_hwmod,
2901 .slave = &omap44xx_mcbsp2_hwmod,
2902 .clk = "ocp_abe_iclk",
2903 .addr = omap44xx_mcbsp2_dma_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002904 .user = OCP_USER_SDMA,
2905};
2906
2907/* mcbsp2 slave ports */
2908static struct omap_hwmod_ocp_if *omap44xx_mcbsp2_slaves[] = {
2909 &omap44xx_l4_abe__mcbsp2,
2910 &omap44xx_l4_abe__mcbsp2_dma,
2911};
2912
2913static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
2914 .name = "mcbsp2",
2915 .class = &omap44xx_mcbsp_hwmod_class,
2916 .mpu_irqs = omap44xx_mcbsp2_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002917 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002918 .main_clk = "mcbsp2_fck",
2919 .prcm = {
2920 .omap4 = {
2921 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP2_CLKCTRL,
2922 },
2923 },
2924 .slaves = omap44xx_mcbsp2_slaves,
2925 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp2_slaves),
2926 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2927};
2928
2929/* mcbsp3 */
2930static struct omap_hwmod omap44xx_mcbsp3_hwmod;
2931static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
2932 { .irq = 23 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002933 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002934};
2935
2936static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
2937 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
2938 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002939 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002940};
2941
2942static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
2943 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302944 .name = "mpu",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002945 .pa_start = 0x40126000,
2946 .pa_end = 0x401260ff,
2947 .flags = ADDR_TYPE_RT
2948 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002949 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002950};
2951
2952/* l4_abe -> mcbsp3 */
2953static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
2954 .master = &omap44xx_l4_abe_hwmod,
2955 .slave = &omap44xx_mcbsp3_hwmod,
2956 .clk = "ocp_abe_iclk",
2957 .addr = omap44xx_mcbsp3_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002958 .user = OCP_USER_MPU,
2959};
2960
2961static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
2962 {
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05302963 .name = "dma",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002964 .pa_start = 0x49026000,
2965 .pa_end = 0x490260ff,
2966 .flags = ADDR_TYPE_RT
2967 },
Paul Walmsley78183f32011-07-09 19:14:05 -06002968 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002969};
2970
2971/* l4_abe -> mcbsp3 (dma) */
2972static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
2973 .master = &omap44xx_l4_abe_hwmod,
2974 .slave = &omap44xx_mcbsp3_hwmod,
2975 .clk = "ocp_abe_iclk",
2976 .addr = omap44xx_mcbsp3_dma_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002977 .user = OCP_USER_SDMA,
2978};
2979
2980/* mcbsp3 slave ports */
2981static struct omap_hwmod_ocp_if *omap44xx_mcbsp3_slaves[] = {
2982 &omap44xx_l4_abe__mcbsp3,
2983 &omap44xx_l4_abe__mcbsp3_dma,
2984};
2985
2986static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
2987 .name = "mcbsp3",
2988 .class = &omap44xx_mcbsp_hwmod_class,
2989 .mpu_irqs = omap44xx_mcbsp3_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002990 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002991 .main_clk = "mcbsp3_fck",
2992 .prcm = {
2993 .omap4 = {
2994 .clkctrl_reg = OMAP4430_CM1_ABE_MCBSP3_CLKCTRL,
2995 },
2996 },
2997 .slaves = omap44xx_mcbsp3_slaves,
2998 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp3_slaves),
2999 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3000};
3001
3002/* mcbsp4 */
3003static struct omap_hwmod omap44xx_mcbsp4_hwmod;
3004static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
3005 { .irq = 16 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003006 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003007};
3008
3009static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
3010 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
3011 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003012 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003013};
3014
3015static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
3016 {
3017 .pa_start = 0x48096000,
3018 .pa_end = 0x480960ff,
3019 .flags = ADDR_TYPE_RT
3020 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003021 { }
Benoit Cousson4ddff492011-01-31 14:50:30 +00003022};
3023
3024/* l4_per -> mcbsp4 */
3025static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3026 .master = &omap44xx_l4_per_hwmod,
3027 .slave = &omap44xx_mcbsp4_hwmod,
3028 .clk = "l4_div_ck",
3029 .addr = omap44xx_mcbsp4_addrs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003030 .user = OCP_USER_MPU | OCP_USER_SDMA,
3031};
3032
3033/* mcbsp4 slave ports */
3034static struct omap_hwmod_ocp_if *omap44xx_mcbsp4_slaves[] = {
3035 &omap44xx_l4_per__mcbsp4,
3036};
3037
3038static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
3039 .name = "mcbsp4",
3040 .class = &omap44xx_mcbsp_hwmod_class,
3041 .mpu_irqs = omap44xx_mcbsp4_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003042 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00003043 .main_clk = "mcbsp4_fck",
3044 .prcm = {
3045 .omap4 = {
3046 .clkctrl_reg = OMAP4430_CM_L4PER_MCBSP4_CLKCTRL,
3047 },
3048 },
3049 .slaves = omap44xx_mcbsp4_slaves,
3050 .slaves_cnt = ARRAY_SIZE(omap44xx_mcbsp4_slaves),
3051 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3052};
3053
3054/*
Benoit Cousson407a6882011-02-15 22:39:48 +01003055 * 'mcpdm' class
3056 * multi channel pdm controller (proprietary interface with phoenix power
3057 * ic)
3058 */
3059
3060static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
3061 .rev_offs = 0x0000,
3062 .sysc_offs = 0x0010,
3063 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3064 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3065 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3066 SIDLE_SMART_WKUP),
3067 .sysc_fields = &omap_hwmod_sysc_type2,
3068};
3069
3070static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
3071 .name = "mcpdm",
3072 .sysc = &omap44xx_mcpdm_sysc,
3073};
3074
3075/* mcpdm */
3076static struct omap_hwmod omap44xx_mcpdm_hwmod;
3077static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
3078 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003079 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003080};
3081
3082static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
3083 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
3084 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003085 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003086};
3087
3088static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
3089 {
3090 .pa_start = 0x40132000,
3091 .pa_end = 0x4013207f,
3092 .flags = ADDR_TYPE_RT
3093 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003094 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003095};
3096
3097/* l4_abe -> mcpdm */
3098static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3099 .master = &omap44xx_l4_abe_hwmod,
3100 .slave = &omap44xx_mcpdm_hwmod,
3101 .clk = "ocp_abe_iclk",
3102 .addr = omap44xx_mcpdm_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003103 .user = OCP_USER_MPU,
3104};
3105
3106static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
3107 {
3108 .pa_start = 0x49032000,
3109 .pa_end = 0x4903207f,
3110 .flags = ADDR_TYPE_RT
3111 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003112 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003113};
3114
3115/* l4_abe -> mcpdm (dma) */
3116static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
3117 .master = &omap44xx_l4_abe_hwmod,
3118 .slave = &omap44xx_mcpdm_hwmod,
3119 .clk = "ocp_abe_iclk",
3120 .addr = omap44xx_mcpdm_dma_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003121 .user = OCP_USER_SDMA,
3122};
3123
3124/* mcpdm slave ports */
3125static struct omap_hwmod_ocp_if *omap44xx_mcpdm_slaves[] = {
3126 &omap44xx_l4_abe__mcpdm,
3127 &omap44xx_l4_abe__mcpdm_dma,
3128};
3129
3130static struct omap_hwmod omap44xx_mcpdm_hwmod = {
3131 .name = "mcpdm",
3132 .class = &omap44xx_mcpdm_hwmod_class,
3133 .mpu_irqs = omap44xx_mcpdm_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003134 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003135 .main_clk = "mcpdm_fck",
3136 .prcm = {
3137 .omap4 = {
3138 .clkctrl_reg = OMAP4430_CM1_ABE_PDM_CLKCTRL,
3139 },
3140 },
3141 .slaves = omap44xx_mcpdm_slaves,
3142 .slaves_cnt = ARRAY_SIZE(omap44xx_mcpdm_slaves),
3143 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3144};
3145
3146/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303147 * 'mcspi' class
3148 * multichannel serial port interface (mcspi) / master/slave synchronous serial
3149 * bus
3150 */
3151
3152static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
3153 .rev_offs = 0x0000,
3154 .sysc_offs = 0x0010,
3155 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3156 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3157 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3158 SIDLE_SMART_WKUP),
3159 .sysc_fields = &omap_hwmod_sysc_type2,
3160};
3161
3162static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
3163 .name = "mcspi",
3164 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01003165 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303166};
3167
3168/* mcspi1 */
3169static struct omap_hwmod omap44xx_mcspi1_hwmod;
3170static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
3171 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003172 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303173};
3174
3175static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
3176 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
3177 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
3178 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
3179 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
3180 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
3181 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
3182 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
3183 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003184 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303185};
3186
3187static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
3188 {
3189 .pa_start = 0x48098000,
3190 .pa_end = 0x480981ff,
3191 .flags = ADDR_TYPE_RT
3192 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003193 { }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303194};
3195
3196/* l4_per -> mcspi1 */
3197static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3198 .master = &omap44xx_l4_per_hwmod,
3199 .slave = &omap44xx_mcspi1_hwmod,
3200 .clk = "l4_div_ck",
3201 .addr = omap44xx_mcspi1_addrs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303202 .user = OCP_USER_MPU | OCP_USER_SDMA,
3203};
3204
3205/* mcspi1 slave ports */
3206static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = {
3207 &omap44xx_l4_per__mcspi1,
3208};
3209
Benoit Cousson905a74d2011-02-18 14:01:06 +01003210/* mcspi1 dev_attr */
3211static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
3212 .num_chipselect = 4,
3213};
3214
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303215static struct omap_hwmod omap44xx_mcspi1_hwmod = {
3216 .name = "mcspi1",
3217 .class = &omap44xx_mcspi_hwmod_class,
3218 .mpu_irqs = omap44xx_mcspi1_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303219 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303220 .main_clk = "mcspi1_fck",
3221 .prcm = {
3222 .omap4 = {
3223 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL,
3224 },
3225 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01003226 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303227 .slaves = omap44xx_mcspi1_slaves,
3228 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves),
3229 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3230};
3231
3232/* mcspi2 */
3233static struct omap_hwmod omap44xx_mcspi2_hwmod;
3234static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
3235 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003236 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303237};
3238
3239static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
3240 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
3241 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
3242 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
3243 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003244 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303245};
3246
3247static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
3248 {
3249 .pa_start = 0x4809a000,
3250 .pa_end = 0x4809a1ff,
3251 .flags = ADDR_TYPE_RT
3252 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003253 { }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303254};
3255
3256/* l4_per -> mcspi2 */
3257static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3258 .master = &omap44xx_l4_per_hwmod,
3259 .slave = &omap44xx_mcspi2_hwmod,
3260 .clk = "l4_div_ck",
3261 .addr = omap44xx_mcspi2_addrs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303262 .user = OCP_USER_MPU | OCP_USER_SDMA,
3263};
3264
3265/* mcspi2 slave ports */
3266static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = {
3267 &omap44xx_l4_per__mcspi2,
3268};
3269
Benoit Cousson905a74d2011-02-18 14:01:06 +01003270/* mcspi2 dev_attr */
3271static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
3272 .num_chipselect = 2,
3273};
3274
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303275static struct omap_hwmod omap44xx_mcspi2_hwmod = {
3276 .name = "mcspi2",
3277 .class = &omap44xx_mcspi_hwmod_class,
3278 .mpu_irqs = omap44xx_mcspi2_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303279 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303280 .main_clk = "mcspi2_fck",
3281 .prcm = {
3282 .omap4 = {
3283 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL,
3284 },
3285 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01003286 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303287 .slaves = omap44xx_mcspi2_slaves,
3288 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves),
3289 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3290};
3291
3292/* mcspi3 */
3293static struct omap_hwmod omap44xx_mcspi3_hwmod;
3294static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
3295 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003296 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303297};
3298
3299static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
3300 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
3301 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
3302 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
3303 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003304 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303305};
3306
3307static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
3308 {
3309 .pa_start = 0x480b8000,
3310 .pa_end = 0x480b81ff,
3311 .flags = ADDR_TYPE_RT
3312 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003313 { }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303314};
3315
3316/* l4_per -> mcspi3 */
3317static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3318 .master = &omap44xx_l4_per_hwmod,
3319 .slave = &omap44xx_mcspi3_hwmod,
3320 .clk = "l4_div_ck",
3321 .addr = omap44xx_mcspi3_addrs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303322 .user = OCP_USER_MPU | OCP_USER_SDMA,
3323};
3324
3325/* mcspi3 slave ports */
3326static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = {
3327 &omap44xx_l4_per__mcspi3,
3328};
3329
Benoit Cousson905a74d2011-02-18 14:01:06 +01003330/* mcspi3 dev_attr */
3331static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
3332 .num_chipselect = 2,
3333};
3334
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303335static struct omap_hwmod omap44xx_mcspi3_hwmod = {
3336 .name = "mcspi3",
3337 .class = &omap44xx_mcspi_hwmod_class,
3338 .mpu_irqs = omap44xx_mcspi3_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303339 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303340 .main_clk = "mcspi3_fck",
3341 .prcm = {
3342 .omap4 = {
3343 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL,
3344 },
3345 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01003346 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303347 .slaves = omap44xx_mcspi3_slaves,
3348 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves),
3349 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3350};
3351
3352/* mcspi4 */
3353static struct omap_hwmod omap44xx_mcspi4_hwmod;
3354static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
3355 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003356 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303357};
3358
3359static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
3360 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
3361 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003362 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303363};
3364
3365static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
3366 {
3367 .pa_start = 0x480ba000,
3368 .pa_end = 0x480ba1ff,
3369 .flags = ADDR_TYPE_RT
3370 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003371 { }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303372};
3373
3374/* l4_per -> mcspi4 */
3375static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3376 .master = &omap44xx_l4_per_hwmod,
3377 .slave = &omap44xx_mcspi4_hwmod,
3378 .clk = "l4_div_ck",
3379 .addr = omap44xx_mcspi4_addrs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303380 .user = OCP_USER_MPU | OCP_USER_SDMA,
3381};
3382
3383/* mcspi4 slave ports */
3384static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = {
3385 &omap44xx_l4_per__mcspi4,
3386};
3387
Benoit Cousson905a74d2011-02-18 14:01:06 +01003388/* mcspi4 dev_attr */
3389static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
3390 .num_chipselect = 1,
3391};
3392
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303393static struct omap_hwmod omap44xx_mcspi4_hwmod = {
3394 .name = "mcspi4",
3395 .class = &omap44xx_mcspi_hwmod_class,
3396 .mpu_irqs = omap44xx_mcspi4_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303397 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303398 .main_clk = "mcspi4_fck",
3399 .prcm = {
3400 .omap4 = {
3401 .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL,
3402 },
3403 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01003404 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05303405 .slaves = omap44xx_mcspi4_slaves,
3406 .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves),
3407 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3408};
3409
3410/*
Benoit Cousson407a6882011-02-15 22:39:48 +01003411 * 'mmc' class
3412 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
3413 */
3414
3415static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
3416 .rev_offs = 0x0000,
3417 .sysc_offs = 0x0010,
3418 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
3419 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
3420 SYSC_HAS_SOFTRESET),
3421 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3422 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3423 MSTANDBY_SMART),
3424 .sysc_fields = &omap_hwmod_sysc_type2,
3425};
3426
3427static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
3428 .name = "mmc",
3429 .sysc = &omap44xx_mmc_sysc,
3430};
3431
3432/* mmc1 */
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08003433
Benoit Cousson407a6882011-02-15 22:39:48 +01003434static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
3435 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003436 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003437};
3438
3439static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
3440 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
3441 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003442 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003443};
3444
3445/* mmc1 master ports */
3446static struct omap_hwmod_ocp_if *omap44xx_mmc1_masters[] = {
3447 &omap44xx_mmc1__l3_main_1,
3448};
3449
3450static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
3451 {
3452 .pa_start = 0x4809c000,
3453 .pa_end = 0x4809c3ff,
3454 .flags = ADDR_TYPE_RT
3455 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003456 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003457};
3458
3459/* l4_per -> mmc1 */
3460static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3461 .master = &omap44xx_l4_per_hwmod,
3462 .slave = &omap44xx_mmc1_hwmod,
3463 .clk = "l4_div_ck",
3464 .addr = omap44xx_mmc1_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003465 .user = OCP_USER_MPU | OCP_USER_SDMA,
3466};
3467
3468/* mmc1 slave ports */
3469static struct omap_hwmod_ocp_if *omap44xx_mmc1_slaves[] = {
3470 &omap44xx_l4_per__mmc1,
3471};
3472
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08003473/* mmc1 dev_attr */
3474static struct omap_mmc_dev_attr mmc1_dev_attr = {
3475 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
3476};
3477
Benoit Cousson407a6882011-02-15 22:39:48 +01003478static struct omap_hwmod omap44xx_mmc1_hwmod = {
3479 .name = "mmc1",
3480 .class = &omap44xx_mmc_hwmod_class,
3481 .mpu_irqs = omap44xx_mmc1_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003482 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003483 .main_clk = "mmc1_fck",
3484 .prcm = {
3485 .omap4 = {
3486 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC1_CLKCTRL,
3487 },
3488 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08003489 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01003490 .slaves = omap44xx_mmc1_slaves,
3491 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc1_slaves),
3492 .masters = omap44xx_mmc1_masters,
3493 .masters_cnt = ARRAY_SIZE(omap44xx_mmc1_masters),
3494 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3495};
3496
3497/* mmc2 */
3498static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
3499 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003500 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003501};
3502
3503static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
3504 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
3505 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003506 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003507};
3508
3509/* mmc2 master ports */
3510static struct omap_hwmod_ocp_if *omap44xx_mmc2_masters[] = {
3511 &omap44xx_mmc2__l3_main_1,
3512};
3513
3514static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
3515 {
3516 .pa_start = 0x480b4000,
3517 .pa_end = 0x480b43ff,
3518 .flags = ADDR_TYPE_RT
3519 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003520 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003521};
3522
3523/* l4_per -> mmc2 */
3524static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3525 .master = &omap44xx_l4_per_hwmod,
3526 .slave = &omap44xx_mmc2_hwmod,
3527 .clk = "l4_div_ck",
3528 .addr = omap44xx_mmc2_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003529 .user = OCP_USER_MPU | OCP_USER_SDMA,
3530};
3531
3532/* mmc2 slave ports */
3533static struct omap_hwmod_ocp_if *omap44xx_mmc2_slaves[] = {
3534 &omap44xx_l4_per__mmc2,
3535};
3536
3537static struct omap_hwmod omap44xx_mmc2_hwmod = {
3538 .name = "mmc2",
3539 .class = &omap44xx_mmc_hwmod_class,
3540 .mpu_irqs = omap44xx_mmc2_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003541 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003542 .main_clk = "mmc2_fck",
3543 .prcm = {
3544 .omap4 = {
3545 .clkctrl_reg = OMAP4430_CM_L3INIT_MMC2_CLKCTRL,
3546 },
3547 },
3548 .slaves = omap44xx_mmc2_slaves,
3549 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc2_slaves),
3550 .masters = omap44xx_mmc2_masters,
3551 .masters_cnt = ARRAY_SIZE(omap44xx_mmc2_masters),
3552 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3553};
3554
3555/* mmc3 */
3556static struct omap_hwmod omap44xx_mmc3_hwmod;
3557static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
3558 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003559 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003560};
3561
3562static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
3563 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
3564 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003565 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003566};
3567
3568static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
3569 {
3570 .pa_start = 0x480ad000,
3571 .pa_end = 0x480ad3ff,
3572 .flags = ADDR_TYPE_RT
3573 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003574 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003575};
3576
3577/* l4_per -> mmc3 */
3578static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3579 .master = &omap44xx_l4_per_hwmod,
3580 .slave = &omap44xx_mmc3_hwmod,
3581 .clk = "l4_div_ck",
3582 .addr = omap44xx_mmc3_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003583 .user = OCP_USER_MPU | OCP_USER_SDMA,
3584};
3585
3586/* mmc3 slave ports */
3587static struct omap_hwmod_ocp_if *omap44xx_mmc3_slaves[] = {
3588 &omap44xx_l4_per__mmc3,
3589};
3590
3591static struct omap_hwmod omap44xx_mmc3_hwmod = {
3592 .name = "mmc3",
3593 .class = &omap44xx_mmc_hwmod_class,
3594 .mpu_irqs = omap44xx_mmc3_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003595 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003596 .main_clk = "mmc3_fck",
3597 .prcm = {
3598 .omap4 = {
3599 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD3_CLKCTRL,
3600 },
3601 },
3602 .slaves = omap44xx_mmc3_slaves,
3603 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc3_slaves),
3604 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3605};
3606
3607/* mmc4 */
3608static struct omap_hwmod omap44xx_mmc4_hwmod;
3609static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
3610 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003611 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003612};
3613
3614static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
3615 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
3616 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003617 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003618};
3619
3620static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
3621 {
3622 .pa_start = 0x480d1000,
3623 .pa_end = 0x480d13ff,
3624 .flags = ADDR_TYPE_RT
3625 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003626 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003627};
3628
3629/* l4_per -> mmc4 */
3630static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3631 .master = &omap44xx_l4_per_hwmod,
3632 .slave = &omap44xx_mmc4_hwmod,
3633 .clk = "l4_div_ck",
3634 .addr = omap44xx_mmc4_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003635 .user = OCP_USER_MPU | OCP_USER_SDMA,
3636};
3637
3638/* mmc4 slave ports */
3639static struct omap_hwmod_ocp_if *omap44xx_mmc4_slaves[] = {
3640 &omap44xx_l4_per__mmc4,
3641};
3642
3643static struct omap_hwmod omap44xx_mmc4_hwmod = {
3644 .name = "mmc4",
3645 .class = &omap44xx_mmc_hwmod_class,
3646 .mpu_irqs = omap44xx_mmc4_irqs,
Paul Walmsley212738a2011-07-09 19:14:06 -06003647
Benoit Cousson407a6882011-02-15 22:39:48 +01003648 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003649 .main_clk = "mmc4_fck",
3650 .prcm = {
3651 .omap4 = {
3652 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD4_CLKCTRL,
3653 },
3654 },
3655 .slaves = omap44xx_mmc4_slaves,
3656 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc4_slaves),
3657 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3658};
3659
3660/* mmc5 */
3661static struct omap_hwmod omap44xx_mmc5_hwmod;
3662static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
3663 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003664 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003665};
3666
3667static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
3668 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
3669 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003670 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01003671};
3672
3673static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
3674 {
3675 .pa_start = 0x480d5000,
3676 .pa_end = 0x480d53ff,
3677 .flags = ADDR_TYPE_RT
3678 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003679 { }
Benoit Cousson407a6882011-02-15 22:39:48 +01003680};
3681
3682/* l4_per -> mmc5 */
3683static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3684 .master = &omap44xx_l4_per_hwmod,
3685 .slave = &omap44xx_mmc5_hwmod,
3686 .clk = "l4_div_ck",
3687 .addr = omap44xx_mmc5_addrs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003688 .user = OCP_USER_MPU | OCP_USER_SDMA,
3689};
3690
3691/* mmc5 slave ports */
3692static struct omap_hwmod_ocp_if *omap44xx_mmc5_slaves[] = {
3693 &omap44xx_l4_per__mmc5,
3694};
3695
3696static struct omap_hwmod omap44xx_mmc5_hwmod = {
3697 .name = "mmc5",
3698 .class = &omap44xx_mmc_hwmod_class,
3699 .mpu_irqs = omap44xx_mmc5_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003700 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01003701 .main_clk = "mmc5_fck",
3702 .prcm = {
3703 .omap4 = {
3704 .clkctrl_reg = OMAP4430_CM_L4PER_MMCSD5_CLKCTRL,
3705 },
3706 },
3707 .slaves = omap44xx_mmc5_slaves,
3708 .slaves_cnt = ARRAY_SIZE(omap44xx_mmc5_slaves),
3709 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3710};
3711
3712/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003713 * 'mpu' class
3714 * mpu sub-system
3715 */
3716
3717static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00003718 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003719};
3720
3721/* mpu */
3722static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
3723 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
3724 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
3725 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003726 { .irq = -1 }
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003727};
3728
3729/* mpu master ports */
3730static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
3731 &omap44xx_mpu__l3_main_1,
3732 &omap44xx_mpu__l4_abe,
3733 &omap44xx_mpu__dmm,
3734};
3735
3736static struct omap_hwmod omap44xx_mpu_hwmod = {
3737 .name = "mpu",
3738 .class = &omap44xx_mpu_hwmod_class,
3739 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
3740 .mpu_irqs = omap44xx_mpu_irqs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003741 .main_clk = "dpll_mpu_m2_ck",
3742 .prcm = {
3743 .omap4 = {
3744 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
3745 },
3746 },
3747 .masters = omap44xx_mpu_masters,
3748 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
3749 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3750};
3751
Benoit Cousson92b18d12010-09-23 20:02:41 +05303752/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003753 * 'smartreflex' class
3754 * smartreflex module (monitor silicon performance and outputs a measure of
3755 * performance error)
3756 */
3757
3758/* The IP is not compliant to type1 / type2 scheme */
3759static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
3760 .sidle_shift = 24,
3761 .enwkup_shift = 26,
3762};
3763
3764static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
3765 .sysc_offs = 0x0038,
3766 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
3767 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3768 SIDLE_SMART_WKUP),
3769 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
3770};
3771
3772static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00003773 .name = "smartreflex",
3774 .sysc = &omap44xx_smartreflex_sysc,
3775 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003776};
3777
3778/* smartreflex_core */
3779static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
3780static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
3781 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003782 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003783};
3784
3785static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
3786 {
3787 .pa_start = 0x4a0dd000,
3788 .pa_end = 0x4a0dd03f,
3789 .flags = ADDR_TYPE_RT
3790 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003791 { }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003792};
3793
3794/* l4_cfg -> smartreflex_core */
3795static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3796 .master = &omap44xx_l4_cfg_hwmod,
3797 .slave = &omap44xx_smartreflex_core_hwmod,
3798 .clk = "l4_div_ck",
3799 .addr = omap44xx_smartreflex_core_addrs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003800 .user = OCP_USER_MPU | OCP_USER_SDMA,
3801};
3802
3803/* smartreflex_core slave ports */
3804static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
3805 &omap44xx_l4_cfg__smartreflex_core,
3806};
3807
3808static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
3809 .name = "smartreflex_core",
3810 .class = &omap44xx_smartreflex_hwmod_class,
3811 .mpu_irqs = omap44xx_smartreflex_core_irqs,
Paul Walmsley212738a2011-07-09 19:14:06 -06003812
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003813 .main_clk = "smartreflex_core_fck",
3814 .vdd_name = "core",
3815 .prcm = {
3816 .omap4 = {
3817 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
3818 },
3819 },
3820 .slaves = omap44xx_smartreflex_core_slaves,
3821 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
3822 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3823};
3824
3825/* smartreflex_iva */
3826static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
3827static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3828 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003829 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003830};
3831
3832static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
3833 {
3834 .pa_start = 0x4a0db000,
3835 .pa_end = 0x4a0db03f,
3836 .flags = ADDR_TYPE_RT
3837 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003838 { }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003839};
3840
3841/* l4_cfg -> smartreflex_iva */
3842static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3843 .master = &omap44xx_l4_cfg_hwmod,
3844 .slave = &omap44xx_smartreflex_iva_hwmod,
3845 .clk = "l4_div_ck",
3846 .addr = omap44xx_smartreflex_iva_addrs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003847 .user = OCP_USER_MPU | OCP_USER_SDMA,
3848};
3849
3850/* smartreflex_iva slave ports */
3851static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
3852 &omap44xx_l4_cfg__smartreflex_iva,
3853};
3854
3855static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3856 .name = "smartreflex_iva",
3857 .class = &omap44xx_smartreflex_hwmod_class,
3858 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003859 .main_clk = "smartreflex_iva_fck",
3860 .vdd_name = "iva",
3861 .prcm = {
3862 .omap4 = {
3863 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
3864 },
3865 },
3866 .slaves = omap44xx_smartreflex_iva_slaves,
3867 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
3868 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3869};
3870
3871/* smartreflex_mpu */
3872static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
3873static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3874 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003875 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003876};
3877
3878static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
3879 {
3880 .pa_start = 0x4a0d9000,
3881 .pa_end = 0x4a0d903f,
3882 .flags = ADDR_TYPE_RT
3883 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003884 { }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003885};
3886
3887/* l4_cfg -> smartreflex_mpu */
3888static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
3889 .master = &omap44xx_l4_cfg_hwmod,
3890 .slave = &omap44xx_smartreflex_mpu_hwmod,
3891 .clk = "l4_div_ck",
3892 .addr = omap44xx_smartreflex_mpu_addrs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003893 .user = OCP_USER_MPU | OCP_USER_SDMA,
3894};
3895
3896/* smartreflex_mpu slave ports */
3897static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
3898 &omap44xx_l4_cfg__smartreflex_mpu,
3899};
3900
3901static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
3902 .name = "smartreflex_mpu",
3903 .class = &omap44xx_smartreflex_hwmod_class,
3904 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003905 .main_clk = "smartreflex_mpu_fck",
3906 .vdd_name = "mpu",
3907 .prcm = {
3908 .omap4 = {
3909 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
3910 },
3911 },
3912 .slaves = omap44xx_smartreflex_mpu_slaves,
3913 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
3914 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3915};
3916
3917/*
Benoit Coussond11c2172011-02-02 12:04:36 +00003918 * 'spinlock' class
3919 * spinlock provides hardware assistance for synchronizing the processes
3920 * running on multiple processors
3921 */
3922
3923static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
3924 .rev_offs = 0x0000,
3925 .sysc_offs = 0x0010,
3926 .syss_offs = 0x0014,
3927 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3928 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
3929 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3930 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3931 SIDLE_SMART_WKUP),
3932 .sysc_fields = &omap_hwmod_sysc_type1,
3933};
3934
3935static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
3936 .name = "spinlock",
3937 .sysc = &omap44xx_spinlock_sysc,
3938};
3939
3940/* spinlock */
3941static struct omap_hwmod omap44xx_spinlock_hwmod;
3942static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
3943 {
3944 .pa_start = 0x4a0f6000,
3945 .pa_end = 0x4a0f6fff,
3946 .flags = ADDR_TYPE_RT
3947 },
Paul Walmsley78183f32011-07-09 19:14:05 -06003948 { }
Benoit Coussond11c2172011-02-02 12:04:36 +00003949};
3950
3951/* l4_cfg -> spinlock */
3952static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
3953 .master = &omap44xx_l4_cfg_hwmod,
3954 .slave = &omap44xx_spinlock_hwmod,
3955 .clk = "l4_div_ck",
3956 .addr = omap44xx_spinlock_addrs,
Benoit Coussond11c2172011-02-02 12:04:36 +00003957 .user = OCP_USER_MPU | OCP_USER_SDMA,
3958};
3959
3960/* spinlock slave ports */
3961static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
3962 &omap44xx_l4_cfg__spinlock,
3963};
3964
3965static struct omap_hwmod omap44xx_spinlock_hwmod = {
3966 .name = "spinlock",
3967 .class = &omap44xx_spinlock_hwmod_class,
3968 .prcm = {
3969 .omap4 = {
3970 .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
3971 },
3972 },
3973 .slaves = omap44xx_spinlock_slaves,
3974 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
3975 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
3976};
3977
3978/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00003979 * 'timer' class
3980 * general purpose timer module with accurate 1ms tick
3981 * This class contains several variants: ['timer_1ms', 'timer']
3982 */
3983
3984static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
3985 .rev_offs = 0x0000,
3986 .sysc_offs = 0x0010,
3987 .syss_offs = 0x0014,
3988 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3989 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
3990 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3991 SYSS_HAS_RESET_STATUS),
3992 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3993 .sysc_fields = &omap_hwmod_sysc_type1,
3994};
3995
3996static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
3997 .name = "timer",
3998 .sysc = &omap44xx_timer_1ms_sysc,
3999};
4000
4001static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
4002 .rev_offs = 0x0000,
4003 .sysc_offs = 0x0010,
4004 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
4005 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
4006 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4007 SIDLE_SMART_WKUP),
4008 .sysc_fields = &omap_hwmod_sysc_type2,
4009};
4010
4011static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
4012 .name = "timer",
4013 .sysc = &omap44xx_timer_sysc,
4014};
4015
4016/* timer1 */
4017static struct omap_hwmod omap44xx_timer1_hwmod;
4018static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
4019 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004020 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004021};
4022
4023static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
4024 {
4025 .pa_start = 0x4a318000,
4026 .pa_end = 0x4a31807f,
4027 .flags = ADDR_TYPE_RT
4028 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004029 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004030};
4031
4032/* l4_wkup -> timer1 */
4033static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4034 .master = &omap44xx_l4_wkup_hwmod,
4035 .slave = &omap44xx_timer1_hwmod,
4036 .clk = "l4_wkup_clk_mux_ck",
4037 .addr = omap44xx_timer1_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004038 .user = OCP_USER_MPU | OCP_USER_SDMA,
4039};
4040
4041/* timer1 slave ports */
4042static struct omap_hwmod_ocp_if *omap44xx_timer1_slaves[] = {
4043 &omap44xx_l4_wkup__timer1,
4044};
4045
4046static struct omap_hwmod omap44xx_timer1_hwmod = {
4047 .name = "timer1",
4048 .class = &omap44xx_timer_1ms_hwmod_class,
4049 .mpu_irqs = omap44xx_timer1_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004050 .main_clk = "timer1_fck",
4051 .prcm = {
4052 .omap4 = {
4053 .clkctrl_reg = OMAP4430_CM_WKUP_TIMER1_CLKCTRL,
4054 },
4055 },
4056 .slaves = omap44xx_timer1_slaves,
4057 .slaves_cnt = ARRAY_SIZE(omap44xx_timer1_slaves),
4058 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4059};
4060
4061/* timer2 */
4062static struct omap_hwmod omap44xx_timer2_hwmod;
4063static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
4064 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004065 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004066};
4067
4068static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
4069 {
4070 .pa_start = 0x48032000,
4071 .pa_end = 0x4803207f,
4072 .flags = ADDR_TYPE_RT
4073 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004074 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004075};
4076
4077/* l4_per -> timer2 */
4078static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4079 .master = &omap44xx_l4_per_hwmod,
4080 .slave = &omap44xx_timer2_hwmod,
4081 .clk = "l4_div_ck",
4082 .addr = omap44xx_timer2_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004083 .user = OCP_USER_MPU | OCP_USER_SDMA,
4084};
4085
4086/* timer2 slave ports */
4087static struct omap_hwmod_ocp_if *omap44xx_timer2_slaves[] = {
4088 &omap44xx_l4_per__timer2,
4089};
4090
4091static struct omap_hwmod omap44xx_timer2_hwmod = {
4092 .name = "timer2",
4093 .class = &omap44xx_timer_1ms_hwmod_class,
4094 .mpu_irqs = omap44xx_timer2_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004095 .main_clk = "timer2_fck",
4096 .prcm = {
4097 .omap4 = {
4098 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER2_CLKCTRL,
4099 },
4100 },
4101 .slaves = omap44xx_timer2_slaves,
4102 .slaves_cnt = ARRAY_SIZE(omap44xx_timer2_slaves),
4103 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4104};
4105
4106/* timer3 */
4107static struct omap_hwmod omap44xx_timer3_hwmod;
4108static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
4109 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004110 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004111};
4112
4113static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
4114 {
4115 .pa_start = 0x48034000,
4116 .pa_end = 0x4803407f,
4117 .flags = ADDR_TYPE_RT
4118 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004119 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004120};
4121
4122/* l4_per -> timer3 */
4123static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4124 .master = &omap44xx_l4_per_hwmod,
4125 .slave = &omap44xx_timer3_hwmod,
4126 .clk = "l4_div_ck",
4127 .addr = omap44xx_timer3_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004128 .user = OCP_USER_MPU | OCP_USER_SDMA,
4129};
4130
4131/* timer3 slave ports */
4132static struct omap_hwmod_ocp_if *omap44xx_timer3_slaves[] = {
4133 &omap44xx_l4_per__timer3,
4134};
4135
4136static struct omap_hwmod omap44xx_timer3_hwmod = {
4137 .name = "timer3",
4138 .class = &omap44xx_timer_hwmod_class,
4139 .mpu_irqs = omap44xx_timer3_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004140 .main_clk = "timer3_fck",
4141 .prcm = {
4142 .omap4 = {
4143 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER3_CLKCTRL,
4144 },
4145 },
4146 .slaves = omap44xx_timer3_slaves,
4147 .slaves_cnt = ARRAY_SIZE(omap44xx_timer3_slaves),
4148 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4149};
4150
4151/* timer4 */
4152static struct omap_hwmod omap44xx_timer4_hwmod;
4153static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
4154 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004155 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004156};
4157
4158static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
4159 {
4160 .pa_start = 0x48036000,
4161 .pa_end = 0x4803607f,
4162 .flags = ADDR_TYPE_RT
4163 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004164 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004165};
4166
4167/* l4_per -> timer4 */
4168static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4169 .master = &omap44xx_l4_per_hwmod,
4170 .slave = &omap44xx_timer4_hwmod,
4171 .clk = "l4_div_ck",
4172 .addr = omap44xx_timer4_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004173 .user = OCP_USER_MPU | OCP_USER_SDMA,
4174};
4175
4176/* timer4 slave ports */
4177static struct omap_hwmod_ocp_if *omap44xx_timer4_slaves[] = {
4178 &omap44xx_l4_per__timer4,
4179};
4180
4181static struct omap_hwmod omap44xx_timer4_hwmod = {
4182 .name = "timer4",
4183 .class = &omap44xx_timer_hwmod_class,
4184 .mpu_irqs = omap44xx_timer4_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004185 .main_clk = "timer4_fck",
4186 .prcm = {
4187 .omap4 = {
4188 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER4_CLKCTRL,
4189 },
4190 },
4191 .slaves = omap44xx_timer4_slaves,
4192 .slaves_cnt = ARRAY_SIZE(omap44xx_timer4_slaves),
4193 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4194};
4195
4196/* timer5 */
4197static struct omap_hwmod omap44xx_timer5_hwmod;
4198static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
4199 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004200 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004201};
4202
4203static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
4204 {
4205 .pa_start = 0x40138000,
4206 .pa_end = 0x4013807f,
4207 .flags = ADDR_TYPE_RT
4208 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004209 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004210};
4211
4212/* l4_abe -> timer5 */
4213static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4214 .master = &omap44xx_l4_abe_hwmod,
4215 .slave = &omap44xx_timer5_hwmod,
4216 .clk = "ocp_abe_iclk",
4217 .addr = omap44xx_timer5_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004218 .user = OCP_USER_MPU,
4219};
4220
4221static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
4222 {
4223 .pa_start = 0x49038000,
4224 .pa_end = 0x4903807f,
4225 .flags = ADDR_TYPE_RT
4226 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004227 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004228};
4229
4230/* l4_abe -> timer5 (dma) */
4231static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
4232 .master = &omap44xx_l4_abe_hwmod,
4233 .slave = &omap44xx_timer5_hwmod,
4234 .clk = "ocp_abe_iclk",
4235 .addr = omap44xx_timer5_dma_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004236 .user = OCP_USER_SDMA,
4237};
4238
4239/* timer5 slave ports */
4240static struct omap_hwmod_ocp_if *omap44xx_timer5_slaves[] = {
4241 &omap44xx_l4_abe__timer5,
4242 &omap44xx_l4_abe__timer5_dma,
4243};
4244
4245static struct omap_hwmod omap44xx_timer5_hwmod = {
4246 .name = "timer5",
4247 .class = &omap44xx_timer_hwmod_class,
4248 .mpu_irqs = omap44xx_timer5_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004249 .main_clk = "timer5_fck",
4250 .prcm = {
4251 .omap4 = {
4252 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER5_CLKCTRL,
4253 },
4254 },
4255 .slaves = omap44xx_timer5_slaves,
4256 .slaves_cnt = ARRAY_SIZE(omap44xx_timer5_slaves),
4257 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4258};
4259
4260/* timer6 */
4261static struct omap_hwmod omap44xx_timer6_hwmod;
4262static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
4263 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004264 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004265};
4266
4267static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
4268 {
4269 .pa_start = 0x4013a000,
4270 .pa_end = 0x4013a07f,
4271 .flags = ADDR_TYPE_RT
4272 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004273 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004274};
4275
4276/* l4_abe -> timer6 */
4277static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4278 .master = &omap44xx_l4_abe_hwmod,
4279 .slave = &omap44xx_timer6_hwmod,
4280 .clk = "ocp_abe_iclk",
4281 .addr = omap44xx_timer6_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004282 .user = OCP_USER_MPU,
4283};
4284
4285static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
4286 {
4287 .pa_start = 0x4903a000,
4288 .pa_end = 0x4903a07f,
4289 .flags = ADDR_TYPE_RT
4290 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004291 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004292};
4293
4294/* l4_abe -> timer6 (dma) */
4295static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
4296 .master = &omap44xx_l4_abe_hwmod,
4297 .slave = &omap44xx_timer6_hwmod,
4298 .clk = "ocp_abe_iclk",
4299 .addr = omap44xx_timer6_dma_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004300 .user = OCP_USER_SDMA,
4301};
4302
4303/* timer6 slave ports */
4304static struct omap_hwmod_ocp_if *omap44xx_timer6_slaves[] = {
4305 &omap44xx_l4_abe__timer6,
4306 &omap44xx_l4_abe__timer6_dma,
4307};
4308
4309static struct omap_hwmod omap44xx_timer6_hwmod = {
4310 .name = "timer6",
4311 .class = &omap44xx_timer_hwmod_class,
4312 .mpu_irqs = omap44xx_timer6_irqs,
Paul Walmsley212738a2011-07-09 19:14:06 -06004313
Benoit Cousson35d1a662011-02-11 11:17:14 +00004314 .main_clk = "timer6_fck",
4315 .prcm = {
4316 .omap4 = {
4317 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER6_CLKCTRL,
4318 },
4319 },
4320 .slaves = omap44xx_timer6_slaves,
4321 .slaves_cnt = ARRAY_SIZE(omap44xx_timer6_slaves),
4322 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4323};
4324
4325/* timer7 */
4326static struct omap_hwmod omap44xx_timer7_hwmod;
4327static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
4328 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004329 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004330};
4331
4332static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
4333 {
4334 .pa_start = 0x4013c000,
4335 .pa_end = 0x4013c07f,
4336 .flags = ADDR_TYPE_RT
4337 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004338 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004339};
4340
4341/* l4_abe -> timer7 */
4342static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4343 .master = &omap44xx_l4_abe_hwmod,
4344 .slave = &omap44xx_timer7_hwmod,
4345 .clk = "ocp_abe_iclk",
4346 .addr = omap44xx_timer7_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004347 .user = OCP_USER_MPU,
4348};
4349
4350static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
4351 {
4352 .pa_start = 0x4903c000,
4353 .pa_end = 0x4903c07f,
4354 .flags = ADDR_TYPE_RT
4355 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004356 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004357};
4358
4359/* l4_abe -> timer7 (dma) */
4360static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
4361 .master = &omap44xx_l4_abe_hwmod,
4362 .slave = &omap44xx_timer7_hwmod,
4363 .clk = "ocp_abe_iclk",
4364 .addr = omap44xx_timer7_dma_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004365 .user = OCP_USER_SDMA,
4366};
4367
4368/* timer7 slave ports */
4369static struct omap_hwmod_ocp_if *omap44xx_timer7_slaves[] = {
4370 &omap44xx_l4_abe__timer7,
4371 &omap44xx_l4_abe__timer7_dma,
4372};
4373
4374static struct omap_hwmod omap44xx_timer7_hwmod = {
4375 .name = "timer7",
4376 .class = &omap44xx_timer_hwmod_class,
4377 .mpu_irqs = omap44xx_timer7_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004378 .main_clk = "timer7_fck",
4379 .prcm = {
4380 .omap4 = {
4381 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER7_CLKCTRL,
4382 },
4383 },
4384 .slaves = omap44xx_timer7_slaves,
4385 .slaves_cnt = ARRAY_SIZE(omap44xx_timer7_slaves),
4386 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4387};
4388
4389/* timer8 */
4390static struct omap_hwmod omap44xx_timer8_hwmod;
4391static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
4392 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004393 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004394};
4395
4396static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
4397 {
4398 .pa_start = 0x4013e000,
4399 .pa_end = 0x4013e07f,
4400 .flags = ADDR_TYPE_RT
4401 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004402 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004403};
4404
4405/* l4_abe -> timer8 */
4406static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4407 .master = &omap44xx_l4_abe_hwmod,
4408 .slave = &omap44xx_timer8_hwmod,
4409 .clk = "ocp_abe_iclk",
4410 .addr = omap44xx_timer8_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004411 .user = OCP_USER_MPU,
4412};
4413
4414static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
4415 {
4416 .pa_start = 0x4903e000,
4417 .pa_end = 0x4903e07f,
4418 .flags = ADDR_TYPE_RT
4419 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004420 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004421};
4422
4423/* l4_abe -> timer8 (dma) */
4424static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
4425 .master = &omap44xx_l4_abe_hwmod,
4426 .slave = &omap44xx_timer8_hwmod,
4427 .clk = "ocp_abe_iclk",
4428 .addr = omap44xx_timer8_dma_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004429 .user = OCP_USER_SDMA,
4430};
4431
4432/* timer8 slave ports */
4433static struct omap_hwmod_ocp_if *omap44xx_timer8_slaves[] = {
4434 &omap44xx_l4_abe__timer8,
4435 &omap44xx_l4_abe__timer8_dma,
4436};
4437
4438static struct omap_hwmod omap44xx_timer8_hwmod = {
4439 .name = "timer8",
4440 .class = &omap44xx_timer_hwmod_class,
4441 .mpu_irqs = omap44xx_timer8_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004442 .main_clk = "timer8_fck",
4443 .prcm = {
4444 .omap4 = {
4445 .clkctrl_reg = OMAP4430_CM1_ABE_TIMER8_CLKCTRL,
4446 },
4447 },
4448 .slaves = omap44xx_timer8_slaves,
4449 .slaves_cnt = ARRAY_SIZE(omap44xx_timer8_slaves),
4450 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4451};
4452
4453/* timer9 */
4454static struct omap_hwmod omap44xx_timer9_hwmod;
4455static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
4456 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004457 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004458};
4459
4460static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
4461 {
4462 .pa_start = 0x4803e000,
4463 .pa_end = 0x4803e07f,
4464 .flags = ADDR_TYPE_RT
4465 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004466 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004467};
4468
4469/* l4_per -> timer9 */
4470static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4471 .master = &omap44xx_l4_per_hwmod,
4472 .slave = &omap44xx_timer9_hwmod,
4473 .clk = "l4_div_ck",
4474 .addr = omap44xx_timer9_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004475 .user = OCP_USER_MPU | OCP_USER_SDMA,
4476};
4477
4478/* timer9 slave ports */
4479static struct omap_hwmod_ocp_if *omap44xx_timer9_slaves[] = {
4480 &omap44xx_l4_per__timer9,
4481};
4482
4483static struct omap_hwmod omap44xx_timer9_hwmod = {
4484 .name = "timer9",
4485 .class = &omap44xx_timer_hwmod_class,
4486 .mpu_irqs = omap44xx_timer9_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004487 .main_clk = "timer9_fck",
4488 .prcm = {
4489 .omap4 = {
4490 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER9_CLKCTRL,
4491 },
4492 },
4493 .slaves = omap44xx_timer9_slaves,
4494 .slaves_cnt = ARRAY_SIZE(omap44xx_timer9_slaves),
4495 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4496};
4497
4498/* timer10 */
4499static struct omap_hwmod omap44xx_timer10_hwmod;
4500static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
4501 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004502 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004503};
4504
4505static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
4506 {
4507 .pa_start = 0x48086000,
4508 .pa_end = 0x4808607f,
4509 .flags = ADDR_TYPE_RT
4510 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004511 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004512};
4513
4514/* l4_per -> timer10 */
4515static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4516 .master = &omap44xx_l4_per_hwmod,
4517 .slave = &omap44xx_timer10_hwmod,
4518 .clk = "l4_div_ck",
4519 .addr = omap44xx_timer10_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004520 .user = OCP_USER_MPU | OCP_USER_SDMA,
4521};
4522
4523/* timer10 slave ports */
4524static struct omap_hwmod_ocp_if *omap44xx_timer10_slaves[] = {
4525 &omap44xx_l4_per__timer10,
4526};
4527
4528static struct omap_hwmod omap44xx_timer10_hwmod = {
4529 .name = "timer10",
4530 .class = &omap44xx_timer_1ms_hwmod_class,
4531 .mpu_irqs = omap44xx_timer10_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004532 .main_clk = "timer10_fck",
4533 .prcm = {
4534 .omap4 = {
4535 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER10_CLKCTRL,
4536 },
4537 },
4538 .slaves = omap44xx_timer10_slaves,
4539 .slaves_cnt = ARRAY_SIZE(omap44xx_timer10_slaves),
4540 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4541};
4542
4543/* timer11 */
4544static struct omap_hwmod omap44xx_timer11_hwmod;
4545static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
4546 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004547 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004548};
4549
4550static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
4551 {
4552 .pa_start = 0x48088000,
4553 .pa_end = 0x4808807f,
4554 .flags = ADDR_TYPE_RT
4555 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004556 { }
Benoit Cousson35d1a662011-02-11 11:17:14 +00004557};
4558
4559/* l4_per -> timer11 */
4560static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4561 .master = &omap44xx_l4_per_hwmod,
4562 .slave = &omap44xx_timer11_hwmod,
4563 .clk = "l4_div_ck",
4564 .addr = omap44xx_timer11_addrs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004565 .user = OCP_USER_MPU | OCP_USER_SDMA,
4566};
4567
4568/* timer11 slave ports */
4569static struct omap_hwmod_ocp_if *omap44xx_timer11_slaves[] = {
4570 &omap44xx_l4_per__timer11,
4571};
4572
4573static struct omap_hwmod omap44xx_timer11_hwmod = {
4574 .name = "timer11",
4575 .class = &omap44xx_timer_hwmod_class,
4576 .mpu_irqs = omap44xx_timer11_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00004577 .main_clk = "timer11_fck",
4578 .prcm = {
4579 .omap4 = {
4580 .clkctrl_reg = OMAP4430_CM_L4PER_DMTIMER11_CLKCTRL,
4581 },
4582 },
4583 .slaves = omap44xx_timer11_slaves,
4584 .slaves_cnt = ARRAY_SIZE(omap44xx_timer11_slaves),
4585 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4586};
4587
4588/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05304589 * 'uart' class
4590 * universal asynchronous receiver/transmitter (uart)
4591 */
4592
4593static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
4594 .rev_offs = 0x0050,
4595 .sysc_offs = 0x0054,
4596 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004597 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07004598 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
4599 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07004600 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4601 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05304602 .sysc_fields = &omap_hwmod_sysc_type1,
4603};
4604
4605static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00004606 .name = "uart",
4607 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304608};
4609
4610/* uart1 */
4611static struct omap_hwmod omap44xx_uart1_hwmod;
4612static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
4613 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004614 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304615};
4616
4617static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
4618 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
4619 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06004620 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304621};
4622
4623static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
4624 {
4625 .pa_start = 0x4806a000,
4626 .pa_end = 0x4806a0ff,
4627 .flags = ADDR_TYPE_RT
4628 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004629 { }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304630};
4631
4632/* l4_per -> uart1 */
4633static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4634 .master = &omap44xx_l4_per_hwmod,
4635 .slave = &omap44xx_uart1_hwmod,
4636 .clk = "l4_div_ck",
4637 .addr = omap44xx_uart1_addrs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304638 .user = OCP_USER_MPU | OCP_USER_SDMA,
4639};
4640
4641/* uart1 slave ports */
4642static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
4643 &omap44xx_l4_per__uart1,
4644};
4645
4646static struct omap_hwmod omap44xx_uart1_hwmod = {
4647 .name = "uart1",
4648 .class = &omap44xx_uart_hwmod_class,
4649 .mpu_irqs = omap44xx_uart1_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304650 .sdma_reqs = omap44xx_uart1_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304651 .main_clk = "uart1_fck",
4652 .prcm = {
4653 .omap4 = {
4654 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
4655 },
4656 },
4657 .slaves = omap44xx_uart1_slaves,
4658 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
4659 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4660};
4661
4662/* uart2 */
4663static struct omap_hwmod omap44xx_uart2_hwmod;
4664static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
4665 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004666 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304667};
4668
4669static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
4670 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
4671 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06004672 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304673};
4674
4675static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
4676 {
4677 .pa_start = 0x4806c000,
4678 .pa_end = 0x4806c0ff,
4679 .flags = ADDR_TYPE_RT
4680 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004681 { }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304682};
4683
4684/* l4_per -> uart2 */
4685static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4686 .master = &omap44xx_l4_per_hwmod,
4687 .slave = &omap44xx_uart2_hwmod,
4688 .clk = "l4_div_ck",
4689 .addr = omap44xx_uart2_addrs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304690 .user = OCP_USER_MPU | OCP_USER_SDMA,
4691};
4692
4693/* uart2 slave ports */
4694static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
4695 &omap44xx_l4_per__uart2,
4696};
4697
4698static struct omap_hwmod omap44xx_uart2_hwmod = {
4699 .name = "uart2",
4700 .class = &omap44xx_uart_hwmod_class,
4701 .mpu_irqs = omap44xx_uart2_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304702 .sdma_reqs = omap44xx_uart2_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304703 .main_clk = "uart2_fck",
4704 .prcm = {
4705 .omap4 = {
4706 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
4707 },
4708 },
4709 .slaves = omap44xx_uart2_slaves,
4710 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
4711 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4712};
4713
4714/* uart3 */
4715static struct omap_hwmod omap44xx_uart3_hwmod;
4716static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
4717 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004718 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304719};
4720
4721static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
4722 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
4723 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06004724 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304725};
4726
4727static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
4728 {
4729 .pa_start = 0x48020000,
4730 .pa_end = 0x480200ff,
4731 .flags = ADDR_TYPE_RT
4732 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004733 { }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304734};
4735
4736/* l4_per -> uart3 */
4737static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4738 .master = &omap44xx_l4_per_hwmod,
4739 .slave = &omap44xx_uart3_hwmod,
4740 .clk = "l4_div_ck",
4741 .addr = omap44xx_uart3_addrs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304742 .user = OCP_USER_MPU | OCP_USER_SDMA,
4743};
4744
4745/* uart3 slave ports */
4746static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
4747 &omap44xx_l4_per__uart3,
4748};
4749
4750static struct omap_hwmod omap44xx_uart3_hwmod = {
4751 .name = "uart3",
4752 .class = &omap44xx_uart_hwmod_class,
4753 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
4754 .mpu_irqs = omap44xx_uart3_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304755 .sdma_reqs = omap44xx_uart3_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304756 .main_clk = "uart3_fck",
4757 .prcm = {
4758 .omap4 = {
4759 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
4760 },
4761 },
4762 .slaves = omap44xx_uart3_slaves,
4763 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
4764 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4765};
4766
4767/* uart4 */
4768static struct omap_hwmod omap44xx_uart4_hwmod;
4769static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
4770 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004771 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304772};
4773
4774static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
4775 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
4776 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06004777 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304778};
4779
4780static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
4781 {
4782 .pa_start = 0x4806e000,
4783 .pa_end = 0x4806e0ff,
4784 .flags = ADDR_TYPE_RT
4785 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004786 { }
Benoit Coussondb12ba52010-09-27 20:19:19 +05304787};
4788
4789/* l4_per -> uart4 */
4790static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4791 .master = &omap44xx_l4_per_hwmod,
4792 .slave = &omap44xx_uart4_hwmod,
4793 .clk = "l4_div_ck",
4794 .addr = omap44xx_uart4_addrs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304795 .user = OCP_USER_MPU | OCP_USER_SDMA,
4796};
4797
4798/* uart4 slave ports */
4799static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
4800 &omap44xx_l4_per__uart4,
4801};
4802
4803static struct omap_hwmod omap44xx_uart4_hwmod = {
4804 .name = "uart4",
4805 .class = &omap44xx_uart_hwmod_class,
4806 .mpu_irqs = omap44xx_uart4_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304807 .sdma_reqs = omap44xx_uart4_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05304808 .main_clk = "uart4_fck",
4809 .prcm = {
4810 .omap4 = {
4811 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
4812 },
4813 },
4814 .slaves = omap44xx_uart4_slaves,
4815 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
4816 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4817};
4818
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004819/*
Benoit Cousson5844c4e2011-02-17 12:41:05 +00004820 * 'usb_otg_hs' class
4821 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
4822 */
4823
4824static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
4825 .rev_offs = 0x0400,
4826 .sysc_offs = 0x0404,
4827 .syss_offs = 0x0408,
4828 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
4829 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
4830 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
4831 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4832 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
4833 MSTANDBY_SMART),
4834 .sysc_fields = &omap_hwmod_sysc_type1,
4835};
4836
4837static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
4838 .name = "usb_otg_hs",
4839 .sysc = &omap44xx_usb_otg_hs_sysc,
4840};
4841
4842/* usb_otg_hs */
4843static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
4844 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
4845 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004846 { .irq = -1 }
Benoit Cousson5844c4e2011-02-17 12:41:05 +00004847};
4848
4849/* usb_otg_hs master ports */
4850static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_masters[] = {
4851 &omap44xx_usb_otg_hs__l3_main_2,
4852};
4853
4854static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
4855 {
4856 .pa_start = 0x4a0ab000,
4857 .pa_end = 0x4a0ab003,
4858 .flags = ADDR_TYPE_RT
4859 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004860 { }
Benoit Cousson5844c4e2011-02-17 12:41:05 +00004861};
4862
4863/* l4_cfg -> usb_otg_hs */
4864static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4865 .master = &omap44xx_l4_cfg_hwmod,
4866 .slave = &omap44xx_usb_otg_hs_hwmod,
4867 .clk = "l4_div_ck",
4868 .addr = omap44xx_usb_otg_hs_addrs,
Benoit Cousson5844c4e2011-02-17 12:41:05 +00004869 .user = OCP_USER_MPU | OCP_USER_SDMA,
4870};
4871
4872/* usb_otg_hs slave ports */
4873static struct omap_hwmod_ocp_if *omap44xx_usb_otg_hs_slaves[] = {
4874 &omap44xx_l4_cfg__usb_otg_hs,
4875};
4876
4877static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
4878 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
4879};
4880
4881static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
4882 .name = "usb_otg_hs",
4883 .class = &omap44xx_usb_otg_hs_hwmod_class,
4884 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
4885 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
Benoit Cousson5844c4e2011-02-17 12:41:05 +00004886 .main_clk = "usb_otg_hs_ick",
4887 .prcm = {
4888 .omap4 = {
4889 .clkctrl_reg = OMAP4430_CM_L3INIT_USB_OTG_CLKCTRL,
4890 },
4891 },
4892 .opt_clks = usb_otg_hs_opt_clks,
4893 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
4894 .slaves = omap44xx_usb_otg_hs_slaves,
4895 .slaves_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_slaves),
4896 .masters = omap44xx_usb_otg_hs_masters,
4897 .masters_cnt = ARRAY_SIZE(omap44xx_usb_otg_hs_masters),
4898 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4899};
4900
4901/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004902 * 'wd_timer' class
4903 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
4904 * overflow condition
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004905 */
4906
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004907static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004908 .rev_offs = 0x0000,
4909 .sysc_offs = 0x0010,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004910 .syss_offs = 0x0014,
4911 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07004912 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07004913 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
4914 SIDLE_SMART_WKUP),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004915 .sysc_fields = &omap_hwmod_sysc_type1,
4916};
4917
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004918static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
4919 .name = "wd_timer",
4920 .sysc = &omap44xx_wd_timer_sysc,
Benoit Coussonfe134712010-12-23 22:30:32 +00004921 .pre_shutdown = &omap2_wd_timer_disable,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004922};
4923
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004924/* wd_timer2 */
4925static struct omap_hwmod omap44xx_wd_timer2_hwmod;
4926static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
4927 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004928 { .irq = -1 }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004929};
4930
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004931static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004932 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004933 .pa_start = 0x4a314000,
4934 .pa_end = 0x4a31407f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004935 .flags = ADDR_TYPE_RT
4936 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004937 { }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004938};
4939
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004940/* l4_wkup -> wd_timer2 */
4941static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004942 .master = &omap44xx_l4_wkup_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004943 .slave = &omap44xx_wd_timer2_hwmod,
4944 .clk = "l4_wkup_clk_mux_ck",
4945 .addr = omap44xx_wd_timer2_addrs,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004946 .user = OCP_USER_MPU | OCP_USER_SDMA,
4947};
4948
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004949/* wd_timer2 slave ports */
4950static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
4951 &omap44xx_l4_wkup__wd_timer2,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004952};
4953
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004954static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
4955 .name = "wd_timer2",
4956 .class = &omap44xx_wd_timer_hwmod_class,
4957 .mpu_irqs = omap44xx_wd_timer2_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004958 .main_clk = "wd_timer2_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004959 .prcm = {
4960 .omap4 = {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004961 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004962 },
4963 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004964 .slaves = omap44xx_wd_timer2_slaves,
4965 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004966 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
4967};
4968
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004969/* wd_timer3 */
4970static struct omap_hwmod omap44xx_wd_timer3_hwmod;
4971static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
4972 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06004973 { .irq = -1 }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004974};
4975
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004976static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004977 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004978 .pa_start = 0x40130000,
4979 .pa_end = 0x4013007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004980 .flags = ADDR_TYPE_RT
4981 },
Paul Walmsley78183f32011-07-09 19:14:05 -06004982 { }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004983};
4984
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004985/* l4_abe -> wd_timer3 */
4986static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4987 .master = &omap44xx_l4_abe_hwmod,
4988 .slave = &omap44xx_wd_timer3_hwmod,
4989 .clk = "ocp_abe_iclk",
4990 .addr = omap44xx_wd_timer3_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004991 .user = OCP_USER_MPU,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004992};
4993
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004994static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004995 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07004996 .pa_start = 0x49030000,
4997 .pa_end = 0x4903007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08004998 .flags = ADDR_TYPE_RT
4999 },
Paul Walmsley78183f32011-07-09 19:14:05 -06005000 { }
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005001};
5002
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005003/* l4_abe -> wd_timer3 (dma) */
5004static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
5005 .master = &omap44xx_l4_abe_hwmod,
5006 .slave = &omap44xx_wd_timer3_hwmod,
5007 .clk = "ocp_abe_iclk",
5008 .addr = omap44xx_wd_timer3_dma_addrs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005009 .user = OCP_USER_SDMA,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005010};
5011
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005012/* wd_timer3 slave ports */
5013static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
5014 &omap44xx_l4_abe__wd_timer3,
5015 &omap44xx_l4_abe__wd_timer3_dma,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005016};
5017
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005018static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
5019 .name = "wd_timer3",
5020 .class = &omap44xx_wd_timer_hwmod_class,
5021 .mpu_irqs = omap44xx_wd_timer3_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005022 .main_clk = "wd_timer3_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005023 .prcm = {
5024 .omap4 = {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005025 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005026 },
5027 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005028 .slaves = omap44xx_wd_timer3_slaves,
5029 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005030 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
5031};
5032
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005033static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
Benoit Coussonfe134712010-12-23 22:30:32 +00005034
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005035 /* dmm class */
5036 &omap44xx_dmm_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005037
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005038 /* emif_fw class */
5039 &omap44xx_emif_fw_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005040
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005041 /* l3 class */
5042 &omap44xx_l3_instr_hwmod,
5043 &omap44xx_l3_main_1_hwmod,
5044 &omap44xx_l3_main_2_hwmod,
5045 &omap44xx_l3_main_3_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005046
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005047 /* l4 class */
5048 &omap44xx_l4_abe_hwmod,
5049 &omap44xx_l4_cfg_hwmod,
5050 &omap44xx_l4_per_hwmod,
5051 &omap44xx_l4_wkup_hwmod,
Benoit Cousson531ce0d2010-12-20 18:27:19 -08005052
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005053 /* mpu_bus class */
5054 &omap44xx_mpu_private_hwmod,
5055
Benoit Cousson407a6882011-02-15 22:39:48 +01005056 /* aess class */
5057/* &omap44xx_aess_hwmod, */
5058
5059 /* bandgap class */
5060 &omap44xx_bandgap_hwmod,
5061
5062 /* counter class */
5063/* &omap44xx_counter_32k_hwmod, */
5064
Benoit Coussond7cf5f32010-12-23 22:30:31 +00005065 /* dma class */
5066 &omap44xx_dma_system_hwmod,
5067
Benoit Cousson8ca476d2011-01-25 22:01:00 +00005068 /* dmic class */
5069 &omap44xx_dmic_hwmod,
5070
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07005071 /* dsp class */
5072 &omap44xx_dsp_hwmod,
5073 &omap44xx_dsp_c0_hwmod,
5074
Benoit Coussond63bd742011-01-27 11:17:03 +00005075 /* dss class */
5076 &omap44xx_dss_hwmod,
5077 &omap44xx_dss_dispc_hwmod,
5078 &omap44xx_dss_dsi1_hwmod,
5079 &omap44xx_dss_dsi2_hwmod,
5080 &omap44xx_dss_hdmi_hwmod,
5081 &omap44xx_dss_rfbi_hwmod,
5082 &omap44xx_dss_venc_hwmod,
5083
Benoit Cousson9780a9c2010-12-07 16:26:57 -08005084 /* gpio class */
5085 &omap44xx_gpio1_hwmod,
5086 &omap44xx_gpio2_hwmod,
5087 &omap44xx_gpio3_hwmod,
5088 &omap44xx_gpio4_hwmod,
5089 &omap44xx_gpio5_hwmod,
5090 &omap44xx_gpio6_hwmod,
5091
Benoit Cousson407a6882011-02-15 22:39:48 +01005092 /* hsi class */
5093/* &omap44xx_hsi_hwmod, */
5094
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005095 /* i2c class */
5096 &omap44xx_i2c1_hwmod,
5097 &omap44xx_i2c2_hwmod,
5098 &omap44xx_i2c3_hwmod,
5099 &omap44xx_i2c4_hwmod,
5100
Benoit Cousson407a6882011-02-15 22:39:48 +01005101 /* ipu class */
5102 &omap44xx_ipu_hwmod,
5103 &omap44xx_ipu_c0_hwmod,
5104 &omap44xx_ipu_c1_hwmod,
5105
5106 /* iss class */
5107/* &omap44xx_iss_hwmod, */
5108
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07005109 /* iva class */
5110 &omap44xx_iva_hwmod,
5111 &omap44xx_iva_seq0_hwmod,
5112 &omap44xx_iva_seq1_hwmod,
5113
Benoit Cousson407a6882011-02-15 22:39:48 +01005114 /* kbd class */
Shubhrajyoti D4998b2452011-05-04 14:57:44 -07005115 &omap44xx_kbd_hwmod,
Benoit Cousson407a6882011-02-15 22:39:48 +01005116
Benoit Coussonec5df922011-02-02 19:27:21 +00005117 /* mailbox class */
5118 &omap44xx_mailbox_hwmod,
5119
Benoit Cousson4ddff492011-01-31 14:50:30 +00005120 /* mcbsp class */
5121 &omap44xx_mcbsp1_hwmod,
5122 &omap44xx_mcbsp2_hwmod,
5123 &omap44xx_mcbsp3_hwmod,
5124 &omap44xx_mcbsp4_hwmod,
5125
Benoit Cousson407a6882011-02-15 22:39:48 +01005126 /* mcpdm class */
5127/* &omap44xx_mcpdm_hwmod, */
5128
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05305129 /* mcspi class */
5130 &omap44xx_mcspi1_hwmod,
5131 &omap44xx_mcspi2_hwmod,
5132 &omap44xx_mcspi3_hwmod,
5133 &omap44xx_mcspi4_hwmod,
5134
Benoit Cousson407a6882011-02-15 22:39:48 +01005135 /* mmc class */
Anand Gadiyar17203bd2011-03-01 13:12:56 -08005136 &omap44xx_mmc1_hwmod,
5137 &omap44xx_mmc2_hwmod,
5138 &omap44xx_mmc3_hwmod,
5139 &omap44xx_mmc4_hwmod,
5140 &omap44xx_mmc5_hwmod,
Benoit Cousson407a6882011-02-15 22:39:48 +01005141
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005142 /* mpu class */
5143 &omap44xx_mpu_hwmod,
Benoit Coussondb12ba52010-09-27 20:19:19 +05305144
Benoit Cousson1f6a7172010-12-23 22:30:30 +00005145 /* smartreflex class */
5146 &omap44xx_smartreflex_core_hwmod,
5147 &omap44xx_smartreflex_iva_hwmod,
5148 &omap44xx_smartreflex_mpu_hwmod,
5149
Benoit Coussond11c2172011-02-02 12:04:36 +00005150 /* spinlock class */
5151 &omap44xx_spinlock_hwmod,
5152
Benoit Cousson35d1a662011-02-11 11:17:14 +00005153 /* timer class */
5154 &omap44xx_timer1_hwmod,
5155 &omap44xx_timer2_hwmod,
5156 &omap44xx_timer3_hwmod,
5157 &omap44xx_timer4_hwmod,
5158 &omap44xx_timer5_hwmod,
5159 &omap44xx_timer6_hwmod,
5160 &omap44xx_timer7_hwmod,
5161 &omap44xx_timer8_hwmod,
5162 &omap44xx_timer9_hwmod,
5163 &omap44xx_timer10_hwmod,
5164 &omap44xx_timer11_hwmod,
5165
Benoit Coussondb12ba52010-09-27 20:19:19 +05305166 /* uart class */
5167 &omap44xx_uart1_hwmod,
5168 &omap44xx_uart2_hwmod,
5169 &omap44xx_uart3_hwmod,
5170 &omap44xx_uart4_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005171
Benoit Cousson5844c4e2011-02-17 12:41:05 +00005172 /* usb_otg_hs class */
5173 &omap44xx_usb_otg_hs_hwmod,
5174
Benoit Cousson3b54baa2010-12-21 21:08:33 -07005175 /* wd_timer class */
5176 &omap44xx_wd_timer2_hwmod,
5177 &omap44xx_wd_timer3_hwmod,
5178
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005179 NULL,
5180};
5181
5182int __init omap44xx_hwmod_init(void)
5183{
Paul Walmsley550c8092011-02-28 11:58:14 -07005184 return omap_hwmod_register(omap44xx_hwmods);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005185}
5186