blob: 378d4a73f9aa9644d64b9dffb53f002caadc4e11 [file] [log] [blame]
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001/*
2 * Hardware modules present on the OMAP44xx chips
3 *
4 * Copyright (C) 2009-2010 Texas Instruments, Inc.
5 * 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 Cousson55d2cb02010-05-12 17:54:36 +020027
28#include "omap_hwmod_common_data.h"
29
Paul Walmsleyd198b512010-12-21 15:30:54 -070030#include "cm1_44xx.h"
31#include "cm2_44xx.h"
32#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020033#include "prm-regbits-44xx.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070034#include "wd_timer.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020035
36/* Base offset for all OMAP4 interrupts external to MPUSS */
37#define OMAP44XX_IRQ_GIC_START 32
38
39/* Base offset for all OMAP4 dma requests */
40#define OMAP44XX_DMA_REQ_START 1
41
42/* Backward references (IPs with Bus Master capability) */
Benoit Cousson531ce0d2010-12-20 18:27:19 -080043static struct omap_hwmod omap44xx_dma_system_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020044static struct omap_hwmod omap44xx_dmm_hwmod;
Benoit Cousson8f25bdc2010-12-21 21:08:34 -070045static struct omap_hwmod omap44xx_dsp_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020046static struct omap_hwmod omap44xx_emif_fw_hwmod;
Benoit Cousson8f25bdc2010-12-21 21:08:34 -070047static struct omap_hwmod omap44xx_iva_hwmod;
Benoit Cousson55d2cb02010-05-12 17:54:36 +020048static struct omap_hwmod omap44xx_l3_instr_hwmod;
49static struct omap_hwmod omap44xx_l3_main_1_hwmod;
50static struct omap_hwmod omap44xx_l3_main_2_hwmod;
51static struct omap_hwmod omap44xx_l3_main_3_hwmod;
52static struct omap_hwmod omap44xx_l4_abe_hwmod;
53static struct omap_hwmod omap44xx_l4_cfg_hwmod;
54static struct omap_hwmod omap44xx_l4_per_hwmod;
55static struct omap_hwmod omap44xx_l4_wkup_hwmod;
56static struct omap_hwmod omap44xx_mpu_hwmod;
57static struct omap_hwmod omap44xx_mpu_private_hwmod;
58
59/*
60 * Interconnects omap_hwmod structures
61 * hwmods that compose the global OMAP interconnect
62 */
63
64/*
65 * 'dmm' class
66 * instance(s): dmm
67 */
68static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
69 .name = "dmm",
70};
71
72/* dmm interface data */
73/* l3_main_1 -> dmm */
74static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
75 .master = &omap44xx_l3_main_1_hwmod,
76 .slave = &omap44xx_dmm_hwmod,
77 .clk = "l3_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -070078 .user = OCP_USER_SDMA,
79};
80
81static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
82 {
83 .pa_start = 0x4e000000,
84 .pa_end = 0x4e0007ff,
85 .flags = ADDR_TYPE_RT
86 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020087};
88
89/* mpu -> dmm */
90static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
91 .master = &omap44xx_mpu_hwmod,
92 .slave = &omap44xx_dmm_hwmod,
93 .clk = "l3_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -070094 .addr = omap44xx_dmm_addrs,
95 .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs),
96 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +020097};
98
99/* dmm slave ports */
100static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
101 &omap44xx_l3_main_1__dmm,
102 &omap44xx_mpu__dmm,
103};
104
105static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
106 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
107};
108
109static struct omap_hwmod omap44xx_dmm_hwmod = {
110 .name = "dmm",
111 .class = &omap44xx_dmm_hwmod_class,
112 .slaves = omap44xx_dmm_slaves,
113 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
114 .mpu_irqs = omap44xx_dmm_irqs,
115 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
116 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
117};
118
119/*
120 * 'emif_fw' class
121 * instance(s): emif_fw
122 */
123static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
124 .name = "emif_fw",
125};
126
127/* emif_fw interface data */
128/* dmm -> emif_fw */
129static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
130 .master = &omap44xx_dmm_hwmod,
131 .slave = &omap44xx_emif_fw_hwmod,
132 .clk = "l3_div_ck",
133 .user = OCP_USER_MPU | OCP_USER_SDMA,
134};
135
Benoit Cousson659fa822010-12-21 21:08:34 -0700136static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
137 {
138 .pa_start = 0x4a20c000,
139 .pa_end = 0x4a20c0ff,
140 .flags = ADDR_TYPE_RT
141 },
142};
143
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200144/* l4_cfg -> emif_fw */
145static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
146 .master = &omap44xx_l4_cfg_hwmod,
147 .slave = &omap44xx_emif_fw_hwmod,
148 .clk = "l4_div_ck",
Benoit Cousson659fa822010-12-21 21:08:34 -0700149 .addr = omap44xx_emif_fw_addrs,
150 .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs),
151 .user = OCP_USER_MPU,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200152};
153
154/* emif_fw slave ports */
155static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
156 &omap44xx_dmm__emif_fw,
157 &omap44xx_l4_cfg__emif_fw,
158};
159
160static struct omap_hwmod omap44xx_emif_fw_hwmod = {
161 .name = "emif_fw",
162 .class = &omap44xx_emif_fw_hwmod_class,
163 .slaves = omap44xx_emif_fw_slaves,
164 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
165 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
166};
167
168/*
169 * 'l3' class
170 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
171 */
172static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
173 .name = "l3",
174};
175
176/* l3_instr interface data */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700177/* iva -> l3_instr */
178static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
179 .master = &omap44xx_iva_hwmod,
180 .slave = &omap44xx_l3_instr_hwmod,
181 .clk = "l3_div_ck",
182 .user = OCP_USER_MPU | OCP_USER_SDMA,
183};
184
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200185/* l3_main_3 -> l3_instr */
186static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
187 .master = &omap44xx_l3_main_3_hwmod,
188 .slave = &omap44xx_l3_instr_hwmod,
189 .clk = "l3_div_ck",
190 .user = OCP_USER_MPU | OCP_USER_SDMA,
191};
192
193/* l3_instr slave ports */
194static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700195 &omap44xx_iva__l3_instr,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200196 &omap44xx_l3_main_3__l3_instr,
197};
198
199static struct omap_hwmod omap44xx_l3_instr_hwmod = {
200 .name = "l3_instr",
201 .class = &omap44xx_l3_hwmod_class,
202 .slaves = omap44xx_l3_instr_slaves,
203 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
204 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
205};
206
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700207/* l3_main_1 interface data */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700208/* dsp -> l3_main_1 */
209static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
210 .master = &omap44xx_dsp_hwmod,
211 .slave = &omap44xx_l3_main_1_hwmod,
212 .clk = "l3_div_ck",
213 .user = OCP_USER_MPU | OCP_USER_SDMA,
214};
215
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200216/* l3_main_2 -> l3_main_1 */
217static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
218 .master = &omap44xx_l3_main_2_hwmod,
219 .slave = &omap44xx_l3_main_1_hwmod,
220 .clk = "l3_div_ck",
221 .user = OCP_USER_MPU | OCP_USER_SDMA,
222};
223
224/* l4_cfg -> l3_main_1 */
225static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
226 .master = &omap44xx_l4_cfg_hwmod,
227 .slave = &omap44xx_l3_main_1_hwmod,
228 .clk = "l4_div_ck",
229 .user = OCP_USER_MPU | OCP_USER_SDMA,
230};
231
232/* mpu -> l3_main_1 */
233static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
234 .master = &omap44xx_mpu_hwmod,
235 .slave = &omap44xx_l3_main_1_hwmod,
236 .clk = "l3_div_ck",
237 .user = OCP_USER_MPU | OCP_USER_SDMA,
238};
239
240/* l3_main_1 slave ports */
241static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700242 &omap44xx_dsp__l3_main_1,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200243 &omap44xx_l3_main_2__l3_main_1,
244 &omap44xx_l4_cfg__l3_main_1,
245 &omap44xx_mpu__l3_main_1,
246};
247
248static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
249 .name = "l3_main_1",
250 .class = &omap44xx_l3_hwmod_class,
251 .slaves = omap44xx_l3_main_1_slaves,
252 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
253 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
254};
255
256/* l3_main_2 interface data */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700257/* iva -> l3_main_2 */
258static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
259 .master = &omap44xx_iva_hwmod,
260 .slave = &omap44xx_l3_main_2_hwmod,
261 .clk = "l3_div_ck",
262 .user = OCP_USER_MPU | OCP_USER_SDMA,
263};
264
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200265/* l3_main_1 -> l3_main_2 */
266static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
267 .master = &omap44xx_l3_main_1_hwmod,
268 .slave = &omap44xx_l3_main_2_hwmod,
269 .clk = "l3_div_ck",
270 .user = OCP_USER_MPU | OCP_USER_SDMA,
271};
272
Benoit Cousson531ce0d2010-12-20 18:27:19 -0800273/* dma_system -> l3_main_2 */
274static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
275 .master = &omap44xx_dma_system_hwmod,
276 .slave = &omap44xx_l3_main_2_hwmod,
277 .clk = "l3_div_ck",
278 .user = OCP_USER_MPU | OCP_USER_SDMA,
279};
280
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200281/* l4_cfg -> l3_main_2 */
282static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
283 .master = &omap44xx_l4_cfg_hwmod,
284 .slave = &omap44xx_l3_main_2_hwmod,
285 .clk = "l4_div_ck",
286 .user = OCP_USER_MPU | OCP_USER_SDMA,
287};
288
289/* l3_main_2 slave ports */
290static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
Benoit Cousson531ce0d2010-12-20 18:27:19 -0800291 &omap44xx_dma_system__l3_main_2,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700292 &omap44xx_iva__l3_main_2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200293 &omap44xx_l3_main_1__l3_main_2,
294 &omap44xx_l4_cfg__l3_main_2,
295};
296
297static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
298 .name = "l3_main_2",
299 .class = &omap44xx_l3_hwmod_class,
300 .slaves = omap44xx_l3_main_2_slaves,
301 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
302 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
303};
304
305/* l3_main_3 interface data */
306/* l3_main_1 -> l3_main_3 */
307static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
308 .master = &omap44xx_l3_main_1_hwmod,
309 .slave = &omap44xx_l3_main_3_hwmod,
310 .clk = "l3_div_ck",
311 .user = OCP_USER_MPU | OCP_USER_SDMA,
312};
313
314/* l3_main_2 -> l3_main_3 */
315static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
316 .master = &omap44xx_l3_main_2_hwmod,
317 .slave = &omap44xx_l3_main_3_hwmod,
318 .clk = "l3_div_ck",
319 .user = OCP_USER_MPU | OCP_USER_SDMA,
320};
321
322/* l4_cfg -> l3_main_3 */
323static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
324 .master = &omap44xx_l4_cfg_hwmod,
325 .slave = &omap44xx_l3_main_3_hwmod,
326 .clk = "l4_div_ck",
327 .user = OCP_USER_MPU | OCP_USER_SDMA,
328};
329
330/* l3_main_3 slave ports */
331static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
332 &omap44xx_l3_main_1__l3_main_3,
333 &omap44xx_l3_main_2__l3_main_3,
334 &omap44xx_l4_cfg__l3_main_3,
335};
336
337static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
338 .name = "l3_main_3",
339 .class = &omap44xx_l3_hwmod_class,
340 .slaves = omap44xx_l3_main_3_slaves,
341 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
342 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
343};
344
345/*
346 * 'l4' class
347 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
348 */
349static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
350 .name = "l4",
351};
352
353/* l4_abe interface data */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700354/* dsp -> l4_abe */
355static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
356 .master = &omap44xx_dsp_hwmod,
357 .slave = &omap44xx_l4_abe_hwmod,
358 .clk = "ocp_abe_iclk",
359 .user = OCP_USER_MPU | OCP_USER_SDMA,
360};
361
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200362/* l3_main_1 -> l4_abe */
363static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
364 .master = &omap44xx_l3_main_1_hwmod,
365 .slave = &omap44xx_l4_abe_hwmod,
366 .clk = "l3_div_ck",
367 .user = OCP_USER_MPU | OCP_USER_SDMA,
368};
369
370/* mpu -> l4_abe */
371static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
372 .master = &omap44xx_mpu_hwmod,
373 .slave = &omap44xx_l4_abe_hwmod,
374 .clk = "ocp_abe_iclk",
375 .user = OCP_USER_MPU | OCP_USER_SDMA,
376};
377
378/* l4_abe slave ports */
379static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700380 &omap44xx_dsp__l4_abe,
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200381 &omap44xx_l3_main_1__l4_abe,
382 &omap44xx_mpu__l4_abe,
383};
384
385static struct omap_hwmod omap44xx_l4_abe_hwmod = {
386 .name = "l4_abe",
387 .class = &omap44xx_l4_hwmod_class,
388 .slaves = omap44xx_l4_abe_slaves,
389 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
390 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
391};
392
393/* l4_cfg interface data */
394/* l3_main_1 -> l4_cfg */
395static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
396 .master = &omap44xx_l3_main_1_hwmod,
397 .slave = &omap44xx_l4_cfg_hwmod,
398 .clk = "l3_div_ck",
399 .user = OCP_USER_MPU | OCP_USER_SDMA,
400};
401
402/* l4_cfg slave ports */
403static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
404 &omap44xx_l3_main_1__l4_cfg,
405};
406
407static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
408 .name = "l4_cfg",
409 .class = &omap44xx_l4_hwmod_class,
410 .slaves = omap44xx_l4_cfg_slaves,
411 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
412 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
413};
414
415/* l4_per interface data */
416/* l3_main_2 -> l4_per */
417static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
418 .master = &omap44xx_l3_main_2_hwmod,
419 .slave = &omap44xx_l4_per_hwmod,
420 .clk = "l3_div_ck",
421 .user = OCP_USER_MPU | OCP_USER_SDMA,
422};
423
424/* l4_per slave ports */
425static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
426 &omap44xx_l3_main_2__l4_per,
427};
428
429static struct omap_hwmod omap44xx_l4_per_hwmod = {
430 .name = "l4_per",
431 .class = &omap44xx_l4_hwmod_class,
432 .slaves = omap44xx_l4_per_slaves,
433 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
434 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
435};
436
437/* l4_wkup interface data */
438/* l4_cfg -> l4_wkup */
439static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
440 .master = &omap44xx_l4_cfg_hwmod,
441 .slave = &omap44xx_l4_wkup_hwmod,
442 .clk = "l4_div_ck",
443 .user = OCP_USER_MPU | OCP_USER_SDMA,
444};
445
446/* l4_wkup slave ports */
447static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
448 &omap44xx_l4_cfg__l4_wkup,
449};
450
451static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
452 .name = "l4_wkup",
453 .class = &omap44xx_l4_hwmod_class,
454 .slaves = omap44xx_l4_wkup_slaves,
455 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
456 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
457};
458
459/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700460 * 'mpu_bus' class
461 * instance(s): mpu_private
462 */
463static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
464 .name = "mpu_bus",
465};
466
467/* mpu_private interface data */
468/* mpu -> mpu_private */
469static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
470 .master = &omap44xx_mpu_hwmod,
471 .slave = &omap44xx_mpu_private_hwmod,
472 .clk = "l3_div_ck",
473 .user = OCP_USER_MPU | OCP_USER_SDMA,
474};
475
476/* mpu_private slave ports */
477static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
478 &omap44xx_mpu__mpu_private,
479};
480
481static struct omap_hwmod omap44xx_mpu_private_hwmod = {
482 .name = "mpu_private",
483 .class = &omap44xx_mpu_bus_hwmod_class,
484 .slaves = omap44xx_mpu_private_slaves,
485 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
486 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
487};
488
489/*
490 * Modules omap_hwmod structures
491 *
492 * The following IPs are excluded for the moment because:
493 * - They do not need an explicit SW control using omap_hwmod API.
494 * - They still need to be validated with the driver
495 * properly adapted to omap_hwmod / omap_device
496 *
497 * aess
498 * bandgap
499 * c2c
500 * c2c_target_fw
501 * cm_core
502 * cm_core_aon
503 * counter_32k
504 * ctrl_module_core
505 * ctrl_module_pad_core
506 * ctrl_module_pad_wkup
507 * ctrl_module_wkup
508 * debugss
509 * dma_system
510 * dmic
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700511 * dss
512 * dss_dispc
513 * dss_dsi1
514 * dss_dsi2
515 * dss_hdmi
516 * dss_rfbi
517 * dss_venc
518 * efuse_ctrl_cust
519 * efuse_ctrl_std
520 * elm
521 * emif1
522 * emif2
523 * fdif
524 * gpmc
525 * gpu
526 * hdq1w
527 * hsi
528 * ipu
529 * iss
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700530 * kbd
531 * mailbox
532 * mcasp
533 * mcbsp1
534 * mcbsp2
535 * mcbsp3
536 * mcbsp4
537 * mcpdm
538 * mcspi1
539 * mcspi2
540 * mcspi3
541 * mcspi4
542 * mmc1
543 * mmc2
544 * mmc3
545 * mmc4
546 * mmc5
547 * mpu_c0
548 * mpu_c1
549 * ocmc_ram
550 * ocp2scp_usb_phy
551 * ocp_wp_noc
552 * prcm
553 * prcm_mpu
554 * prm
555 * scrm
556 * sl2if
557 * slimbus1
558 * slimbus2
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700559 * spinlock
560 * timer1
561 * timer10
562 * timer11
563 * timer2
564 * timer3
565 * timer4
566 * timer5
567 * timer6
568 * timer7
569 * timer8
570 * timer9
571 * usb_host_fs
572 * usb_host_hs
573 * usb_otg_hs
574 * usb_phy_cm
575 * usb_tll_hs
576 * usim
577 */
578
579/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700580 * 'dsp' class
581 * dsp sub-system
582 */
583
584static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
585 .name = "dsp",
586};
587
588/* dsp */
589static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
590 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
591};
592
593static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
594 { .name = "mmu_cache", .rst_shift = 1 },
595};
596
597static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
598 { .name = "dsp", .rst_shift = 0 },
599};
600
601/* dsp -> iva */
602static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
603 .master = &omap44xx_dsp_hwmod,
604 .slave = &omap44xx_iva_hwmod,
605 .clk = "dpll_iva_m5x2_ck",
606};
607
608/* dsp master ports */
609static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
610 &omap44xx_dsp__l3_main_1,
611 &omap44xx_dsp__l4_abe,
612 &omap44xx_dsp__iva,
613};
614
615/* l4_cfg -> dsp */
616static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
617 .master = &omap44xx_l4_cfg_hwmod,
618 .slave = &omap44xx_dsp_hwmod,
619 .clk = "l4_div_ck",
620 .user = OCP_USER_MPU | OCP_USER_SDMA,
621};
622
623/* dsp slave ports */
624static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
625 &omap44xx_l4_cfg__dsp,
626};
627
628/* Pseudo hwmod for reset control purpose only */
629static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
630 .name = "dsp_c0",
631 .class = &omap44xx_dsp_hwmod_class,
632 .flags = HWMOD_INIT_NO_RESET,
633 .rst_lines = omap44xx_dsp_c0_resets,
634 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
635 .prcm = {
636 .omap4 = {
637 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
638 },
639 },
640 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
641};
642
643static struct omap_hwmod omap44xx_dsp_hwmod = {
644 .name = "dsp",
645 .class = &omap44xx_dsp_hwmod_class,
646 .mpu_irqs = omap44xx_dsp_irqs,
647 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
648 .rst_lines = omap44xx_dsp_resets,
649 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
650 .main_clk = "dsp_fck",
651 .prcm = {
652 .omap4 = {
653 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
654 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
655 },
656 },
657 .slaves = omap44xx_dsp_slaves,
658 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
659 .masters = omap44xx_dsp_masters,
660 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
661 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
662};
663
664/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700665 * 'gpio' class
666 * general purpose io module
667 */
668
669static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
670 .rev_offs = 0x0000,
671 .sysc_offs = 0x0010,
672 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -0700673 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
674 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
675 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -0700676 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
677 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700678 .sysc_fields = &omap_hwmod_sysc_type1,
679};
680
681static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
682 .name = "gpio",
683 .sysc = &omap44xx_gpio_sysc,
684 .rev = 2,
685};
686
687/* gpio dev_attr */
688static struct omap_gpio_dev_attr gpio_dev_attr = {
689 .bank_width = 32,
690 .dbck_flag = true,
691};
692
693/* gpio1 */
694static struct omap_hwmod omap44xx_gpio1_hwmod;
695static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
696 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
697};
698
699static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
700 {
701 .pa_start = 0x4a310000,
702 .pa_end = 0x4a3101ff,
703 .flags = ADDR_TYPE_RT
704 },
705};
706
707/* l4_wkup -> gpio1 */
708static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
709 .master = &omap44xx_l4_wkup_hwmod,
710 .slave = &omap44xx_gpio1_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700711 .clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700712 .addr = omap44xx_gpio1_addrs,
713 .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
714 .user = OCP_USER_MPU | OCP_USER_SDMA,
715};
716
717/* gpio1 slave ports */
718static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
719 &omap44xx_l4_wkup__gpio1,
720};
721
722static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700723 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700724};
725
726static struct omap_hwmod omap44xx_gpio1_hwmod = {
727 .name = "gpio1",
728 .class = &omap44xx_gpio_hwmod_class,
729 .mpu_irqs = omap44xx_gpio1_irqs,
730 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
731 .main_clk = "gpio1_ick",
732 .prcm = {
733 .omap4 = {
734 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
735 },
736 },
737 .opt_clks = gpio1_opt_clks,
738 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
739 .dev_attr = &gpio_dev_attr,
740 .slaves = omap44xx_gpio1_slaves,
741 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
742 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
743};
744
745/* gpio2 */
746static struct omap_hwmod omap44xx_gpio2_hwmod;
747static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
748 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
749};
750
751static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
752 {
753 .pa_start = 0x48055000,
754 .pa_end = 0x480551ff,
755 .flags = ADDR_TYPE_RT
756 },
757};
758
759/* l4_per -> gpio2 */
760static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
761 .master = &omap44xx_l4_per_hwmod,
762 .slave = &omap44xx_gpio2_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700763 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700764 .addr = omap44xx_gpio2_addrs,
765 .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
766 .user = OCP_USER_MPU | OCP_USER_SDMA,
767};
768
769/* gpio2 slave ports */
770static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
771 &omap44xx_l4_per__gpio2,
772};
773
774static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700775 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700776};
777
778static struct omap_hwmod omap44xx_gpio2_hwmod = {
779 .name = "gpio2",
780 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700781 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700782 .mpu_irqs = omap44xx_gpio2_irqs,
783 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
784 .main_clk = "gpio2_ick",
785 .prcm = {
786 .omap4 = {
787 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
788 },
789 },
790 .opt_clks = gpio2_opt_clks,
791 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
792 .dev_attr = &gpio_dev_attr,
793 .slaves = omap44xx_gpio2_slaves,
794 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
795 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
796};
797
798/* gpio3 */
799static struct omap_hwmod omap44xx_gpio3_hwmod;
800static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
801 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
802};
803
804static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
805 {
806 .pa_start = 0x48057000,
807 .pa_end = 0x480571ff,
808 .flags = ADDR_TYPE_RT
809 },
810};
811
812/* l4_per -> gpio3 */
813static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
814 .master = &omap44xx_l4_per_hwmod,
815 .slave = &omap44xx_gpio3_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700816 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700817 .addr = omap44xx_gpio3_addrs,
818 .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
819 .user = OCP_USER_MPU | OCP_USER_SDMA,
820};
821
822/* gpio3 slave ports */
823static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
824 &omap44xx_l4_per__gpio3,
825};
826
827static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700828 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700829};
830
831static struct omap_hwmod omap44xx_gpio3_hwmod = {
832 .name = "gpio3",
833 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700834 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700835 .mpu_irqs = omap44xx_gpio3_irqs,
836 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
837 .main_clk = "gpio3_ick",
838 .prcm = {
839 .omap4 = {
840 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
841 },
842 },
843 .opt_clks = gpio3_opt_clks,
844 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
845 .dev_attr = &gpio_dev_attr,
846 .slaves = omap44xx_gpio3_slaves,
847 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
848 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
849};
850
851/* gpio4 */
852static struct omap_hwmod omap44xx_gpio4_hwmod;
853static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
854 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
855};
856
857static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
858 {
859 .pa_start = 0x48059000,
860 .pa_end = 0x480591ff,
861 .flags = ADDR_TYPE_RT
862 },
863};
864
865/* l4_per -> gpio4 */
866static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
867 .master = &omap44xx_l4_per_hwmod,
868 .slave = &omap44xx_gpio4_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700869 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700870 .addr = omap44xx_gpio4_addrs,
871 .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
872 .user = OCP_USER_MPU | OCP_USER_SDMA,
873};
874
875/* gpio4 slave ports */
876static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
877 &omap44xx_l4_per__gpio4,
878};
879
880static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700881 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700882};
883
884static struct omap_hwmod omap44xx_gpio4_hwmod = {
885 .name = "gpio4",
886 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700887 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700888 .mpu_irqs = omap44xx_gpio4_irqs,
889 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
890 .main_clk = "gpio4_ick",
891 .prcm = {
892 .omap4 = {
893 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
894 },
895 },
896 .opt_clks = gpio4_opt_clks,
897 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
898 .dev_attr = &gpio_dev_attr,
899 .slaves = omap44xx_gpio4_slaves,
900 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
901 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
902};
903
904/* gpio5 */
905static struct omap_hwmod omap44xx_gpio5_hwmod;
906static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
907 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
908};
909
910static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
911 {
912 .pa_start = 0x4805b000,
913 .pa_end = 0x4805b1ff,
914 .flags = ADDR_TYPE_RT
915 },
916};
917
918/* l4_per -> gpio5 */
919static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
920 .master = &omap44xx_l4_per_hwmod,
921 .slave = &omap44xx_gpio5_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700922 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700923 .addr = omap44xx_gpio5_addrs,
924 .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
925 .user = OCP_USER_MPU | OCP_USER_SDMA,
926};
927
928/* gpio5 slave ports */
929static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
930 &omap44xx_l4_per__gpio5,
931};
932
933static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700934 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700935};
936
937static struct omap_hwmod omap44xx_gpio5_hwmod = {
938 .name = "gpio5",
939 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700940 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700941 .mpu_irqs = omap44xx_gpio5_irqs,
942 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
943 .main_clk = "gpio5_ick",
944 .prcm = {
945 .omap4 = {
946 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
947 },
948 },
949 .opt_clks = gpio5_opt_clks,
950 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
951 .dev_attr = &gpio_dev_attr,
952 .slaves = omap44xx_gpio5_slaves,
953 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
954 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
955};
956
957/* gpio6 */
958static struct omap_hwmod omap44xx_gpio6_hwmod;
959static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
960 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
961};
962
963static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
964 {
965 .pa_start = 0x4805d000,
966 .pa_end = 0x4805d1ff,
967 .flags = ADDR_TYPE_RT
968 },
969};
970
971/* l4_per -> gpio6 */
972static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
973 .master = &omap44xx_l4_per_hwmod,
974 .slave = &omap44xx_gpio6_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700975 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700976 .addr = omap44xx_gpio6_addrs,
977 .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
978 .user = OCP_USER_MPU | OCP_USER_SDMA,
979};
980
981/* gpio6 slave ports */
982static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
983 &omap44xx_l4_per__gpio6,
984};
985
986static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700987 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700988};
989
990static struct omap_hwmod omap44xx_gpio6_hwmod = {
991 .name = "gpio6",
992 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700993 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700994 .mpu_irqs = omap44xx_gpio6_irqs,
995 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
996 .main_clk = "gpio6_ick",
997 .prcm = {
998 .omap4 = {
999 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
1000 },
1001 },
1002 .opt_clks = gpio6_opt_clks,
1003 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1004 .dev_attr = &gpio_dev_attr,
1005 .slaves = omap44xx_gpio6_slaves,
1006 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
1007 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1008};
1009
1010/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301011 * 'i2c' class
1012 * multimaster high-speed i2c controller
1013 */
1014
1015static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1016 .sysc_offs = 0x0010,
1017 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001018 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1019 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001020 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001021 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1022 SIDLE_SMART_WKUP),
Benoit Coussonf7764712010-09-21 19:37:14 +05301023 .sysc_fields = &omap_hwmod_sysc_type1,
1024};
1025
1026static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
1027 .name = "i2c",
1028 .sysc = &omap44xx_i2c_sysc,
1029};
1030
1031/* i2c1 */
1032static struct omap_hwmod omap44xx_i2c1_hwmod;
1033static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
1034 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
1035};
1036
1037static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
1038 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
1039 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
1040};
1041
1042static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
1043 {
1044 .pa_start = 0x48070000,
1045 .pa_end = 0x480700ff,
1046 .flags = ADDR_TYPE_RT
1047 },
1048};
1049
1050/* l4_per -> i2c1 */
1051static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
1052 .master = &omap44xx_l4_per_hwmod,
1053 .slave = &omap44xx_i2c1_hwmod,
1054 .clk = "l4_div_ck",
1055 .addr = omap44xx_i2c1_addrs,
1056 .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
1057 .user = OCP_USER_MPU | OCP_USER_SDMA,
1058};
1059
1060/* i2c1 slave ports */
1061static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
1062 &omap44xx_l4_per__i2c1,
1063};
1064
1065static struct omap_hwmod omap44xx_i2c1_hwmod = {
1066 .name = "i2c1",
1067 .class = &omap44xx_i2c_hwmod_class,
1068 .flags = HWMOD_INIT_NO_RESET,
1069 .mpu_irqs = omap44xx_i2c1_irqs,
1070 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
1071 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
1072 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
1073 .main_clk = "i2c1_fck",
1074 .prcm = {
1075 .omap4 = {
1076 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
1077 },
1078 },
1079 .slaves = omap44xx_i2c1_slaves,
1080 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
1081 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1082};
1083
1084/* i2c2 */
1085static struct omap_hwmod omap44xx_i2c2_hwmod;
1086static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
1087 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
1088};
1089
1090static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
1091 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
1092 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
1093};
1094
1095static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
1096 {
1097 .pa_start = 0x48072000,
1098 .pa_end = 0x480720ff,
1099 .flags = ADDR_TYPE_RT
1100 },
1101};
1102
1103/* l4_per -> i2c2 */
1104static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
1105 .master = &omap44xx_l4_per_hwmod,
1106 .slave = &omap44xx_i2c2_hwmod,
1107 .clk = "l4_div_ck",
1108 .addr = omap44xx_i2c2_addrs,
1109 .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
1110 .user = OCP_USER_MPU | OCP_USER_SDMA,
1111};
1112
1113/* i2c2 slave ports */
1114static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
1115 &omap44xx_l4_per__i2c2,
1116};
1117
1118static struct omap_hwmod omap44xx_i2c2_hwmod = {
1119 .name = "i2c2",
1120 .class = &omap44xx_i2c_hwmod_class,
1121 .flags = HWMOD_INIT_NO_RESET,
1122 .mpu_irqs = omap44xx_i2c2_irqs,
1123 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
1124 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
1125 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
1126 .main_clk = "i2c2_fck",
1127 .prcm = {
1128 .omap4 = {
1129 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
1130 },
1131 },
1132 .slaves = omap44xx_i2c2_slaves,
1133 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
1134 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1135};
1136
1137/* i2c3 */
1138static struct omap_hwmod omap44xx_i2c3_hwmod;
1139static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
1140 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
1141};
1142
1143static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
1144 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
1145 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
1146};
1147
1148static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
1149 {
1150 .pa_start = 0x48060000,
1151 .pa_end = 0x480600ff,
1152 .flags = ADDR_TYPE_RT
1153 },
1154};
1155
1156/* l4_per -> i2c3 */
1157static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
1158 .master = &omap44xx_l4_per_hwmod,
1159 .slave = &omap44xx_i2c3_hwmod,
1160 .clk = "l4_div_ck",
1161 .addr = omap44xx_i2c3_addrs,
1162 .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
1163 .user = OCP_USER_MPU | OCP_USER_SDMA,
1164};
1165
1166/* i2c3 slave ports */
1167static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
1168 &omap44xx_l4_per__i2c3,
1169};
1170
1171static struct omap_hwmod omap44xx_i2c3_hwmod = {
1172 .name = "i2c3",
1173 .class = &omap44xx_i2c_hwmod_class,
1174 .flags = HWMOD_INIT_NO_RESET,
1175 .mpu_irqs = omap44xx_i2c3_irqs,
1176 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
1177 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
1178 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
1179 .main_clk = "i2c3_fck",
1180 .prcm = {
1181 .omap4 = {
1182 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
1183 },
1184 },
1185 .slaves = omap44xx_i2c3_slaves,
1186 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
1187 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1188};
1189
1190/* i2c4 */
1191static struct omap_hwmod omap44xx_i2c4_hwmod;
1192static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
1193 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
1194};
1195
1196static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
1197 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
1198 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
1199};
1200
1201static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
1202 {
1203 .pa_start = 0x48350000,
1204 .pa_end = 0x483500ff,
1205 .flags = ADDR_TYPE_RT
1206 },
1207};
1208
1209/* l4_per -> i2c4 */
1210static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
1211 .master = &omap44xx_l4_per_hwmod,
1212 .slave = &omap44xx_i2c4_hwmod,
1213 .clk = "l4_div_ck",
1214 .addr = omap44xx_i2c4_addrs,
1215 .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
1216 .user = OCP_USER_MPU | OCP_USER_SDMA,
1217};
1218
1219/* i2c4 slave ports */
1220static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
1221 &omap44xx_l4_per__i2c4,
1222};
1223
1224static struct omap_hwmod omap44xx_i2c4_hwmod = {
1225 .name = "i2c4",
1226 .class = &omap44xx_i2c_hwmod_class,
1227 .flags = HWMOD_INIT_NO_RESET,
1228 .mpu_irqs = omap44xx_i2c4_irqs,
1229 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
1230 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
1231 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
1232 .main_clk = "i2c4_fck",
1233 .prcm = {
1234 .omap4 = {
1235 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
1236 },
1237 },
1238 .slaves = omap44xx_i2c4_slaves,
1239 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
1240 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1241};
1242
1243/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001244 * 'iva' class
1245 * multi-standard video encoder/decoder hardware accelerator
1246 */
1247
1248static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1249 .name = "iva",
1250};
1251
1252/* iva */
1253static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
1254 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
1255 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
1256 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
1257};
1258
1259static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1260 { .name = "logic", .rst_shift = 2 },
1261};
1262
1263static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
1264 { .name = "seq0", .rst_shift = 0 },
1265};
1266
1267static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
1268 { .name = "seq1", .rst_shift = 1 },
1269};
1270
1271/* iva master ports */
1272static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
1273 &omap44xx_iva__l3_main_2,
1274 &omap44xx_iva__l3_instr,
1275};
1276
1277static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
1278 {
1279 .pa_start = 0x5a000000,
1280 .pa_end = 0x5a07ffff,
1281 .flags = ADDR_TYPE_RT
1282 },
1283};
1284
1285/* l3_main_2 -> iva */
1286static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
1287 .master = &omap44xx_l3_main_2_hwmod,
1288 .slave = &omap44xx_iva_hwmod,
1289 .clk = "l3_div_ck",
1290 .addr = omap44xx_iva_addrs,
1291 .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
1292 .user = OCP_USER_MPU,
1293};
1294
1295/* iva slave ports */
1296static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
1297 &omap44xx_dsp__iva,
1298 &omap44xx_l3_main_2__iva,
1299};
1300
1301/* Pseudo hwmod for reset control purpose only */
1302static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
1303 .name = "iva_seq0",
1304 .class = &omap44xx_iva_hwmod_class,
1305 .flags = HWMOD_INIT_NO_RESET,
1306 .rst_lines = omap44xx_iva_seq0_resets,
1307 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
1308 .prcm = {
1309 .omap4 = {
1310 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1311 },
1312 },
1313 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1314};
1315
1316/* Pseudo hwmod for reset control purpose only */
1317static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
1318 .name = "iva_seq1",
1319 .class = &omap44xx_iva_hwmod_class,
1320 .flags = HWMOD_INIT_NO_RESET,
1321 .rst_lines = omap44xx_iva_seq1_resets,
1322 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
1323 .prcm = {
1324 .omap4 = {
1325 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1326 },
1327 },
1328 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1329};
1330
1331static struct omap_hwmod omap44xx_iva_hwmod = {
1332 .name = "iva",
1333 .class = &omap44xx_iva_hwmod_class,
1334 .mpu_irqs = omap44xx_iva_irqs,
1335 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
1336 .rst_lines = omap44xx_iva_resets,
1337 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1338 .main_clk = "iva_fck",
1339 .prcm = {
1340 .omap4 = {
1341 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
1342 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1343 },
1344 },
1345 .slaves = omap44xx_iva_slaves,
1346 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
1347 .masters = omap44xx_iva_masters,
1348 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
1349 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1350};
1351
1352/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001353 * 'mpu' class
1354 * mpu sub-system
1355 */
1356
1357static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
1358 .name = "mpu",
1359};
1360
1361/* mpu */
1362static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
1363 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
1364 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
1365 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
1366};
1367
1368/* mpu master ports */
1369static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
1370 &omap44xx_mpu__l3_main_1,
1371 &omap44xx_mpu__l4_abe,
1372 &omap44xx_mpu__dmm,
1373};
1374
1375static struct omap_hwmod omap44xx_mpu_hwmod = {
1376 .name = "mpu",
1377 .class = &omap44xx_mpu_hwmod_class,
1378 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
1379 .mpu_irqs = omap44xx_mpu_irqs,
1380 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
1381 .main_clk = "dpll_mpu_m2_ck",
1382 .prcm = {
1383 .omap4 = {
1384 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
1385 },
1386 },
1387 .masters = omap44xx_mpu_masters,
1388 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
1389 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1390};
1391
Benoit Cousson92b18d12010-09-23 20:02:41 +05301392/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001393 * 'smartreflex' class
1394 * smartreflex module (monitor silicon performance and outputs a measure of
1395 * performance error)
1396 */
1397
1398/* The IP is not compliant to type1 / type2 scheme */
1399static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
1400 .sidle_shift = 24,
1401 .enwkup_shift = 26,
1402};
1403
1404static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
1405 .sysc_offs = 0x0038,
1406 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1407 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1408 SIDLE_SMART_WKUP),
1409 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
1410};
1411
1412static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
1413 .name = "smartreflex",
1414 .sysc = &omap44xx_smartreflex_sysc,
1415 .rev = 2,
1416};
1417
1418/* smartreflex_core */
1419static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
1420static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
1421 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
1422};
1423
1424static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
1425 {
1426 .pa_start = 0x4a0dd000,
1427 .pa_end = 0x4a0dd03f,
1428 .flags = ADDR_TYPE_RT
1429 },
1430};
1431
1432/* l4_cfg -> smartreflex_core */
1433static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
1434 .master = &omap44xx_l4_cfg_hwmod,
1435 .slave = &omap44xx_smartreflex_core_hwmod,
1436 .clk = "l4_div_ck",
1437 .addr = omap44xx_smartreflex_core_addrs,
1438 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
1439 .user = OCP_USER_MPU | OCP_USER_SDMA,
1440};
1441
1442/* smartreflex_core slave ports */
1443static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
1444 &omap44xx_l4_cfg__smartreflex_core,
1445};
1446
1447static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
1448 .name = "smartreflex_core",
1449 .class = &omap44xx_smartreflex_hwmod_class,
1450 .mpu_irqs = omap44xx_smartreflex_core_irqs,
1451 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
1452 .main_clk = "smartreflex_core_fck",
1453 .vdd_name = "core",
1454 .prcm = {
1455 .omap4 = {
1456 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
1457 },
1458 },
1459 .slaves = omap44xx_smartreflex_core_slaves,
1460 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
1461 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1462};
1463
1464/* smartreflex_iva */
1465static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
1466static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
1467 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
1468};
1469
1470static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
1471 {
1472 .pa_start = 0x4a0db000,
1473 .pa_end = 0x4a0db03f,
1474 .flags = ADDR_TYPE_RT
1475 },
1476};
1477
1478/* l4_cfg -> smartreflex_iva */
1479static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
1480 .master = &omap44xx_l4_cfg_hwmod,
1481 .slave = &omap44xx_smartreflex_iva_hwmod,
1482 .clk = "l4_div_ck",
1483 .addr = omap44xx_smartreflex_iva_addrs,
1484 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
1485 .user = OCP_USER_MPU | OCP_USER_SDMA,
1486};
1487
1488/* smartreflex_iva slave ports */
1489static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
1490 &omap44xx_l4_cfg__smartreflex_iva,
1491};
1492
1493static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
1494 .name = "smartreflex_iva",
1495 .class = &omap44xx_smartreflex_hwmod_class,
1496 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
1497 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
1498 .main_clk = "smartreflex_iva_fck",
1499 .vdd_name = "iva",
1500 .prcm = {
1501 .omap4 = {
1502 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
1503 },
1504 },
1505 .slaves = omap44xx_smartreflex_iva_slaves,
1506 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
1507 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1508};
1509
1510/* smartreflex_mpu */
1511static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
1512static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
1513 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
1514};
1515
1516static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
1517 {
1518 .pa_start = 0x4a0d9000,
1519 .pa_end = 0x4a0d903f,
1520 .flags = ADDR_TYPE_RT
1521 },
1522};
1523
1524/* l4_cfg -> smartreflex_mpu */
1525static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
1526 .master = &omap44xx_l4_cfg_hwmod,
1527 .slave = &omap44xx_smartreflex_mpu_hwmod,
1528 .clk = "l4_div_ck",
1529 .addr = omap44xx_smartreflex_mpu_addrs,
1530 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
1531 .user = OCP_USER_MPU | OCP_USER_SDMA,
1532};
1533
1534/* smartreflex_mpu slave ports */
1535static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
1536 &omap44xx_l4_cfg__smartreflex_mpu,
1537};
1538
1539static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
1540 .name = "smartreflex_mpu",
1541 .class = &omap44xx_smartreflex_hwmod_class,
1542 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
1543 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
1544 .main_clk = "smartreflex_mpu_fck",
1545 .vdd_name = "mpu",
1546 .prcm = {
1547 .omap4 = {
1548 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
1549 },
1550 },
1551 .slaves = omap44xx_smartreflex_mpu_slaves,
1552 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
1553 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1554};
1555
1556/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05301557 * 'uart' class
1558 * universal asynchronous receiver/transmitter (uart)
1559 */
1560
1561static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
1562 .rev_offs = 0x0050,
1563 .sysc_offs = 0x0054,
1564 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001565 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001566 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1567 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001568 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1569 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05301570 .sysc_fields = &omap_hwmod_sysc_type1,
1571};
1572
1573static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
1574 .name = "uart",
1575 .sysc = &omap44xx_uart_sysc,
1576};
1577
1578/* uart1 */
1579static struct omap_hwmod omap44xx_uart1_hwmod;
1580static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
1581 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
1582};
1583
1584static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
1585 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
1586 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
1587};
1588
1589static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
1590 {
1591 .pa_start = 0x4806a000,
1592 .pa_end = 0x4806a0ff,
1593 .flags = ADDR_TYPE_RT
1594 },
1595};
1596
1597/* l4_per -> uart1 */
1598static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
1599 .master = &omap44xx_l4_per_hwmod,
1600 .slave = &omap44xx_uart1_hwmod,
1601 .clk = "l4_div_ck",
1602 .addr = omap44xx_uart1_addrs,
1603 .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
1604 .user = OCP_USER_MPU | OCP_USER_SDMA,
1605};
1606
1607/* uart1 slave ports */
1608static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
1609 &omap44xx_l4_per__uart1,
1610};
1611
1612static struct omap_hwmod omap44xx_uart1_hwmod = {
1613 .name = "uart1",
1614 .class = &omap44xx_uart_hwmod_class,
1615 .mpu_irqs = omap44xx_uart1_irqs,
1616 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
1617 .sdma_reqs = omap44xx_uart1_sdma_reqs,
1618 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
1619 .main_clk = "uart1_fck",
1620 .prcm = {
1621 .omap4 = {
1622 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
1623 },
1624 },
1625 .slaves = omap44xx_uart1_slaves,
1626 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
1627 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1628};
1629
1630/* uart2 */
1631static struct omap_hwmod omap44xx_uart2_hwmod;
1632static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
1633 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
1634};
1635
1636static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
1637 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
1638 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
1639};
1640
1641static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
1642 {
1643 .pa_start = 0x4806c000,
1644 .pa_end = 0x4806c0ff,
1645 .flags = ADDR_TYPE_RT
1646 },
1647};
1648
1649/* l4_per -> uart2 */
1650static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
1651 .master = &omap44xx_l4_per_hwmod,
1652 .slave = &omap44xx_uart2_hwmod,
1653 .clk = "l4_div_ck",
1654 .addr = omap44xx_uart2_addrs,
1655 .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
1656 .user = OCP_USER_MPU | OCP_USER_SDMA,
1657};
1658
1659/* uart2 slave ports */
1660static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
1661 &omap44xx_l4_per__uart2,
1662};
1663
1664static struct omap_hwmod omap44xx_uart2_hwmod = {
1665 .name = "uart2",
1666 .class = &omap44xx_uart_hwmod_class,
1667 .mpu_irqs = omap44xx_uart2_irqs,
1668 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
1669 .sdma_reqs = omap44xx_uart2_sdma_reqs,
1670 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
1671 .main_clk = "uart2_fck",
1672 .prcm = {
1673 .omap4 = {
1674 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
1675 },
1676 },
1677 .slaves = omap44xx_uart2_slaves,
1678 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
1679 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1680};
1681
1682/* uart3 */
1683static struct omap_hwmod omap44xx_uart3_hwmod;
1684static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
1685 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
1686};
1687
1688static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
1689 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
1690 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
1691};
1692
1693static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
1694 {
1695 .pa_start = 0x48020000,
1696 .pa_end = 0x480200ff,
1697 .flags = ADDR_TYPE_RT
1698 },
1699};
1700
1701/* l4_per -> uart3 */
1702static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
1703 .master = &omap44xx_l4_per_hwmod,
1704 .slave = &omap44xx_uart3_hwmod,
1705 .clk = "l4_div_ck",
1706 .addr = omap44xx_uart3_addrs,
1707 .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
1708 .user = OCP_USER_MPU | OCP_USER_SDMA,
1709};
1710
1711/* uart3 slave ports */
1712static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
1713 &omap44xx_l4_per__uart3,
1714};
1715
1716static struct omap_hwmod omap44xx_uart3_hwmod = {
1717 .name = "uart3",
1718 .class = &omap44xx_uart_hwmod_class,
1719 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
1720 .mpu_irqs = omap44xx_uart3_irqs,
1721 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
1722 .sdma_reqs = omap44xx_uart3_sdma_reqs,
1723 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
1724 .main_clk = "uart3_fck",
1725 .prcm = {
1726 .omap4 = {
1727 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
1728 },
1729 },
1730 .slaves = omap44xx_uart3_slaves,
1731 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
1732 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1733};
1734
1735/* uart4 */
1736static struct omap_hwmod omap44xx_uart4_hwmod;
1737static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
1738 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
1739};
1740
1741static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
1742 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
1743 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
1744};
1745
1746static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
1747 {
1748 .pa_start = 0x4806e000,
1749 .pa_end = 0x4806e0ff,
1750 .flags = ADDR_TYPE_RT
1751 },
1752};
1753
1754/* l4_per -> uart4 */
1755static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
1756 .master = &omap44xx_l4_per_hwmod,
1757 .slave = &omap44xx_uart4_hwmod,
1758 .clk = "l4_div_ck",
1759 .addr = omap44xx_uart4_addrs,
1760 .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
1761 .user = OCP_USER_MPU | OCP_USER_SDMA,
1762};
1763
1764/* uart4 slave ports */
1765static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
1766 &omap44xx_l4_per__uart4,
1767};
1768
1769static struct omap_hwmod omap44xx_uart4_hwmod = {
1770 .name = "uart4",
1771 .class = &omap44xx_uart_hwmod_class,
1772 .mpu_irqs = omap44xx_uart4_irqs,
1773 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
1774 .sdma_reqs = omap44xx_uart4_sdma_reqs,
1775 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
1776 .main_clk = "uart4_fck",
1777 .prcm = {
1778 .omap4 = {
1779 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
1780 },
1781 },
1782 .slaves = omap44xx_uart4_slaves,
1783 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
1784 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1785};
1786
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001787/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001788 * 'wd_timer' class
1789 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1790 * overflow condition
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001791 */
1792
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001793static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001794 .rev_offs = 0x0000,
1795 .sysc_offs = 0x0010,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001796 .syss_offs = 0x0014,
1797 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001798 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001799 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1800 SIDLE_SMART_WKUP),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001801 .sysc_fields = &omap_hwmod_sysc_type1,
1802};
1803
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001804static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
1805 .name = "wd_timer",
1806 .sysc = &omap44xx_wd_timer_sysc,
1807 .pre_shutdown = &omap2_wd_timer_disable
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001808};
1809
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001810/* wd_timer2 */
1811static struct omap_hwmod omap44xx_wd_timer2_hwmod;
1812static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
1813 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001814};
1815
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001816static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001817 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001818 .pa_start = 0x4a314000,
1819 .pa_end = 0x4a31407f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001820 .flags = ADDR_TYPE_RT
1821 },
1822};
1823
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001824/* l4_wkup -> wd_timer2 */
1825static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001826 .master = &omap44xx_l4_wkup_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001827 .slave = &omap44xx_wd_timer2_hwmod,
1828 .clk = "l4_wkup_clk_mux_ck",
1829 .addr = omap44xx_wd_timer2_addrs,
1830 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001831 .user = OCP_USER_MPU | OCP_USER_SDMA,
1832};
1833
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001834/* wd_timer2 slave ports */
1835static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
1836 &omap44xx_l4_wkup__wd_timer2,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001837};
1838
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001839static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
1840 .name = "wd_timer2",
1841 .class = &omap44xx_wd_timer_hwmod_class,
1842 .mpu_irqs = omap44xx_wd_timer2_irqs,
1843 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
1844 .main_clk = "wd_timer2_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001845 .prcm = {
1846 .omap4 = {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001847 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001848 },
1849 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001850 .slaves = omap44xx_wd_timer2_slaves,
1851 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001852 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1853};
1854
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001855/* wd_timer3 */
1856static struct omap_hwmod omap44xx_wd_timer3_hwmod;
1857static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
1858 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001859};
1860
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001861static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001862 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001863 .pa_start = 0x40130000,
1864 .pa_end = 0x4013007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001865 .flags = ADDR_TYPE_RT
1866 },
1867};
1868
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001869/* l4_abe -> wd_timer3 */
1870static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
1871 .master = &omap44xx_l4_abe_hwmod,
1872 .slave = &omap44xx_wd_timer3_hwmod,
1873 .clk = "ocp_abe_iclk",
1874 .addr = omap44xx_wd_timer3_addrs,
1875 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
1876 .user = OCP_USER_MPU,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001877};
1878
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001879static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001880 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001881 .pa_start = 0x49030000,
1882 .pa_end = 0x4903007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001883 .flags = ADDR_TYPE_RT
1884 },
1885};
1886
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001887/* l4_abe -> wd_timer3 (dma) */
1888static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
1889 .master = &omap44xx_l4_abe_hwmod,
1890 .slave = &omap44xx_wd_timer3_hwmod,
1891 .clk = "ocp_abe_iclk",
1892 .addr = omap44xx_wd_timer3_dma_addrs,
1893 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
1894 .user = OCP_USER_SDMA,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001895};
1896
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001897/* wd_timer3 slave ports */
1898static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
1899 &omap44xx_l4_abe__wd_timer3,
1900 &omap44xx_l4_abe__wd_timer3_dma,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001901};
1902
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001903static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
1904 .name = "wd_timer3",
1905 .class = &omap44xx_wd_timer_hwmod_class,
1906 .mpu_irqs = omap44xx_wd_timer3_irqs,
1907 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
1908 .main_clk = "wd_timer3_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001909 .prcm = {
1910 .omap4 = {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001911 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001912 },
1913 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001914 .slaves = omap44xx_wd_timer3_slaves,
1915 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001916 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1917};
1918
Benoit Cousson531ce0d2010-12-20 18:27:19 -08001919
1920/*
1921 * 'dma' class
1922 * dma controller for data exchange between memory to memory (i.e. internal or
1923 * external memory) and gp peripherals to memory or memory to gp peripherals
1924 */
1925
1926static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
1927 .rev_offs = 0x0000,
1928 .sysc_offs = 0x002c,
1929 .syss_offs = 0x0028,
1930 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1931 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1932 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1933 SYSS_HAS_RESET_STATUS),
1934 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1935 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1936 .sysc_fields = &omap_hwmod_sysc_type1,
1937};
1938
1939/* dma attributes */
1940static struct omap_dma_dev_attr dma_dev_attr = {
1941 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1942 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1943 .lch_count = 32,
1944};
1945
1946static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
1947 .name = "dma",
1948 .sysc = &omap44xx_dma_sysc,
1949};
1950
1951/* dma_system */
1952static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
1953 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
1954 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
1955 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
1956 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
1957};
1958
1959/* dma_system master ports */
1960static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
1961 &omap44xx_dma_system__l3_main_2,
1962};
1963
1964static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
1965 {
1966 .pa_start = 0x4a056000,
1967 .pa_end = 0x4a0560ff,
1968 .flags = ADDR_TYPE_RT
1969 },
1970};
1971
1972/* l4_cfg -> dma_system */
1973static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
1974 .master = &omap44xx_l4_cfg_hwmod,
1975 .slave = &omap44xx_dma_system_hwmod,
1976 .clk = "l4_div_ck",
1977 .addr = omap44xx_dma_system_addrs,
1978 .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
1979 .user = OCP_USER_MPU | OCP_USER_SDMA,
1980};
1981
1982/* dma_system slave ports */
1983static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
1984 &omap44xx_l4_cfg__dma_system,
1985};
1986
1987static struct omap_hwmod omap44xx_dma_system_hwmod = {
1988 .name = "dma_system",
1989 .class = &omap44xx_dma_hwmod_class,
1990 .mpu_irqs = omap44xx_dma_system_irqs,
1991 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
1992 .main_clk = "l3_div_ck",
1993 .prcm = {
1994 .omap4 = {
1995 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
1996 },
1997 },
1998 .slaves = omap44xx_dma_system_slaves,
1999 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
2000 .masters = omap44xx_dma_system_masters,
2001 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
2002 .dev_attr = &dma_dev_attr,
2003 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2004};
2005
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002006static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
2007 /* dmm class */
2008 &omap44xx_dmm_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002009
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002010 /* emif_fw class */
2011 &omap44xx_emif_fw_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002012
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002013 /* l3 class */
2014 &omap44xx_l3_instr_hwmod,
2015 &omap44xx_l3_main_1_hwmod,
2016 &omap44xx_l3_main_2_hwmod,
2017 &omap44xx_l3_main_3_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002018
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002019 /* l4 class */
2020 &omap44xx_l4_abe_hwmod,
2021 &omap44xx_l4_cfg_hwmod,
2022 &omap44xx_l4_per_hwmod,
2023 &omap44xx_l4_wkup_hwmod,
Benoit Cousson531ce0d2010-12-20 18:27:19 -08002024
2025 /* dma class */
2026 &omap44xx_dma_system_hwmod,
2027
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002028 /* mpu_bus class */
2029 &omap44xx_mpu_private_hwmod,
2030
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002031 /* dsp class */
2032 &omap44xx_dsp_hwmod,
2033 &omap44xx_dsp_c0_hwmod,
2034
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002035 /* gpio class */
2036 &omap44xx_gpio1_hwmod,
2037 &omap44xx_gpio2_hwmod,
2038 &omap44xx_gpio3_hwmod,
2039 &omap44xx_gpio4_hwmod,
2040 &omap44xx_gpio5_hwmod,
2041 &omap44xx_gpio6_hwmod,
2042
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002043 /* i2c class */
2044 &omap44xx_i2c1_hwmod,
2045 &omap44xx_i2c2_hwmod,
2046 &omap44xx_i2c3_hwmod,
2047 &omap44xx_i2c4_hwmod,
2048
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002049 /* iva class */
2050 &omap44xx_iva_hwmod,
2051 &omap44xx_iva_seq0_hwmod,
2052 &omap44xx_iva_seq1_hwmod,
2053
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002054 /* mpu class */
2055 &omap44xx_mpu_hwmod,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302056
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002057 /* smartreflex class */
2058 &omap44xx_smartreflex_core_hwmod,
2059 &omap44xx_smartreflex_iva_hwmod,
2060 &omap44xx_smartreflex_mpu_hwmod,
2061
Benoit Coussondb12ba52010-09-27 20:19:19 +05302062 /* uart class */
2063 &omap44xx_uart1_hwmod,
2064 &omap44xx_uart2_hwmod,
2065 &omap44xx_uart3_hwmod,
2066 &omap44xx_uart4_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002067
2068 /* wd_timer class */
2069 &omap44xx_wd_timer2_hwmod,
2070 &omap44xx_wd_timer3_hwmod,
2071
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002072 NULL,
2073};
2074
2075int __init omap44xx_hwmod_init(void)
2076{
2077 return omap_hwmod_init(omap44xx_hwmods);
2078}
2079