blob: e2ad1b6b9c0afca456d2a0e968aba3fb16ed3b71 [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
559 * smartreflex_core
560 * smartreflex_iva
561 * smartreflex_mpu
562 * spinlock
563 * timer1
564 * timer10
565 * timer11
566 * timer2
567 * timer3
568 * timer4
569 * timer5
570 * timer6
571 * timer7
572 * timer8
573 * timer9
574 * usb_host_fs
575 * usb_host_hs
576 * usb_otg_hs
577 * usb_phy_cm
578 * usb_tll_hs
579 * usim
580 */
581
582/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700583 * 'dsp' class
584 * dsp sub-system
585 */
586
587static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
588 .name = "dsp",
589};
590
591/* dsp */
592static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
593 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
594};
595
596static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
597 { .name = "mmu_cache", .rst_shift = 1 },
598};
599
600static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
601 { .name = "dsp", .rst_shift = 0 },
602};
603
604/* dsp -> iva */
605static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
606 .master = &omap44xx_dsp_hwmod,
607 .slave = &omap44xx_iva_hwmod,
608 .clk = "dpll_iva_m5x2_ck",
609};
610
611/* dsp master ports */
612static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
613 &omap44xx_dsp__l3_main_1,
614 &omap44xx_dsp__l4_abe,
615 &omap44xx_dsp__iva,
616};
617
618/* l4_cfg -> dsp */
619static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
620 .master = &omap44xx_l4_cfg_hwmod,
621 .slave = &omap44xx_dsp_hwmod,
622 .clk = "l4_div_ck",
623 .user = OCP_USER_MPU | OCP_USER_SDMA,
624};
625
626/* dsp slave ports */
627static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
628 &omap44xx_l4_cfg__dsp,
629};
630
631/* Pseudo hwmod for reset control purpose only */
632static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
633 .name = "dsp_c0",
634 .class = &omap44xx_dsp_hwmod_class,
635 .flags = HWMOD_INIT_NO_RESET,
636 .rst_lines = omap44xx_dsp_c0_resets,
637 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
638 .prcm = {
639 .omap4 = {
640 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
641 },
642 },
643 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
644};
645
646static struct omap_hwmod omap44xx_dsp_hwmod = {
647 .name = "dsp",
648 .class = &omap44xx_dsp_hwmod_class,
649 .mpu_irqs = omap44xx_dsp_irqs,
650 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
651 .rst_lines = omap44xx_dsp_resets,
652 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
653 .main_clk = "dsp_fck",
654 .prcm = {
655 .omap4 = {
656 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
657 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
658 },
659 },
660 .slaves = omap44xx_dsp_slaves,
661 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
662 .masters = omap44xx_dsp_masters,
663 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
664 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
665};
666
667/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700668 * 'gpio' class
669 * general purpose io module
670 */
671
672static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
673 .rev_offs = 0x0000,
674 .sysc_offs = 0x0010,
675 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -0700676 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
677 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
678 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -0700679 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
680 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700681 .sysc_fields = &omap_hwmod_sysc_type1,
682};
683
684static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
685 .name = "gpio",
686 .sysc = &omap44xx_gpio_sysc,
687 .rev = 2,
688};
689
690/* gpio dev_attr */
691static struct omap_gpio_dev_attr gpio_dev_attr = {
692 .bank_width = 32,
693 .dbck_flag = true,
694};
695
696/* gpio1 */
697static struct omap_hwmod omap44xx_gpio1_hwmod;
698static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
699 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
700};
701
702static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
703 {
704 .pa_start = 0x4a310000,
705 .pa_end = 0x4a3101ff,
706 .flags = ADDR_TYPE_RT
707 },
708};
709
710/* l4_wkup -> gpio1 */
711static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
712 .master = &omap44xx_l4_wkup_hwmod,
713 .slave = &omap44xx_gpio1_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700714 .clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700715 .addr = omap44xx_gpio1_addrs,
716 .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
717 .user = OCP_USER_MPU | OCP_USER_SDMA,
718};
719
720/* gpio1 slave ports */
721static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
722 &omap44xx_l4_wkup__gpio1,
723};
724
725static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700726 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700727};
728
729static struct omap_hwmod omap44xx_gpio1_hwmod = {
730 .name = "gpio1",
731 .class = &omap44xx_gpio_hwmod_class,
732 .mpu_irqs = omap44xx_gpio1_irqs,
733 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
734 .main_clk = "gpio1_ick",
735 .prcm = {
736 .omap4 = {
737 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
738 },
739 },
740 .opt_clks = gpio1_opt_clks,
741 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
742 .dev_attr = &gpio_dev_attr,
743 .slaves = omap44xx_gpio1_slaves,
744 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
745 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
746};
747
748/* gpio2 */
749static struct omap_hwmod omap44xx_gpio2_hwmod;
750static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
751 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
752};
753
754static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
755 {
756 .pa_start = 0x48055000,
757 .pa_end = 0x480551ff,
758 .flags = ADDR_TYPE_RT
759 },
760};
761
762/* l4_per -> gpio2 */
763static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
764 .master = &omap44xx_l4_per_hwmod,
765 .slave = &omap44xx_gpio2_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700766 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700767 .addr = omap44xx_gpio2_addrs,
768 .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
769 .user = OCP_USER_MPU | OCP_USER_SDMA,
770};
771
772/* gpio2 slave ports */
773static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
774 &omap44xx_l4_per__gpio2,
775};
776
777static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700778 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700779};
780
781static struct omap_hwmod omap44xx_gpio2_hwmod = {
782 .name = "gpio2",
783 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700784 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700785 .mpu_irqs = omap44xx_gpio2_irqs,
786 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
787 .main_clk = "gpio2_ick",
788 .prcm = {
789 .omap4 = {
790 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
791 },
792 },
793 .opt_clks = gpio2_opt_clks,
794 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
795 .dev_attr = &gpio_dev_attr,
796 .slaves = omap44xx_gpio2_slaves,
797 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
798 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
799};
800
801/* gpio3 */
802static struct omap_hwmod omap44xx_gpio3_hwmod;
803static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
804 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
805};
806
807static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
808 {
809 .pa_start = 0x48057000,
810 .pa_end = 0x480571ff,
811 .flags = ADDR_TYPE_RT
812 },
813};
814
815/* l4_per -> gpio3 */
816static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
817 .master = &omap44xx_l4_per_hwmod,
818 .slave = &omap44xx_gpio3_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700819 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700820 .addr = omap44xx_gpio3_addrs,
821 .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
822 .user = OCP_USER_MPU | OCP_USER_SDMA,
823};
824
825/* gpio3 slave ports */
826static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
827 &omap44xx_l4_per__gpio3,
828};
829
830static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700831 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700832};
833
834static struct omap_hwmod omap44xx_gpio3_hwmod = {
835 .name = "gpio3",
836 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700837 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700838 .mpu_irqs = omap44xx_gpio3_irqs,
839 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
840 .main_clk = "gpio3_ick",
841 .prcm = {
842 .omap4 = {
843 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
844 },
845 },
846 .opt_clks = gpio3_opt_clks,
847 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
848 .dev_attr = &gpio_dev_attr,
849 .slaves = omap44xx_gpio3_slaves,
850 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
851 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
852};
853
854/* gpio4 */
855static struct omap_hwmod omap44xx_gpio4_hwmod;
856static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
857 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
858};
859
860static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
861 {
862 .pa_start = 0x48059000,
863 .pa_end = 0x480591ff,
864 .flags = ADDR_TYPE_RT
865 },
866};
867
868/* l4_per -> gpio4 */
869static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
870 .master = &omap44xx_l4_per_hwmod,
871 .slave = &omap44xx_gpio4_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700872 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700873 .addr = omap44xx_gpio4_addrs,
874 .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
875 .user = OCP_USER_MPU | OCP_USER_SDMA,
876};
877
878/* gpio4 slave ports */
879static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
880 &omap44xx_l4_per__gpio4,
881};
882
883static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700884 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700885};
886
887static struct omap_hwmod omap44xx_gpio4_hwmod = {
888 .name = "gpio4",
889 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700890 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700891 .mpu_irqs = omap44xx_gpio4_irqs,
892 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
893 .main_clk = "gpio4_ick",
894 .prcm = {
895 .omap4 = {
896 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
897 },
898 },
899 .opt_clks = gpio4_opt_clks,
900 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
901 .dev_attr = &gpio_dev_attr,
902 .slaves = omap44xx_gpio4_slaves,
903 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
904 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
905};
906
907/* gpio5 */
908static struct omap_hwmod omap44xx_gpio5_hwmod;
909static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
910 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
911};
912
913static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
914 {
915 .pa_start = 0x4805b000,
916 .pa_end = 0x4805b1ff,
917 .flags = ADDR_TYPE_RT
918 },
919};
920
921/* l4_per -> gpio5 */
922static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
923 .master = &omap44xx_l4_per_hwmod,
924 .slave = &omap44xx_gpio5_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700925 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700926 .addr = omap44xx_gpio5_addrs,
927 .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
928 .user = OCP_USER_MPU | OCP_USER_SDMA,
929};
930
931/* gpio5 slave ports */
932static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
933 &omap44xx_l4_per__gpio5,
934};
935
936static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700937 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700938};
939
940static struct omap_hwmod omap44xx_gpio5_hwmod = {
941 .name = "gpio5",
942 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700943 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700944 .mpu_irqs = omap44xx_gpio5_irqs,
945 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
946 .main_clk = "gpio5_ick",
947 .prcm = {
948 .omap4 = {
949 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
950 },
951 },
952 .opt_clks = gpio5_opt_clks,
953 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
954 .dev_attr = &gpio_dev_attr,
955 .slaves = omap44xx_gpio5_slaves,
956 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
957 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
958};
959
960/* gpio6 */
961static struct omap_hwmod omap44xx_gpio6_hwmod;
962static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
963 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
964};
965
966static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
967 {
968 .pa_start = 0x4805d000,
969 .pa_end = 0x4805d1ff,
970 .flags = ADDR_TYPE_RT
971 },
972};
973
974/* l4_per -> gpio6 */
975static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
976 .master = &omap44xx_l4_per_hwmod,
977 .slave = &omap44xx_gpio6_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700978 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700979 .addr = omap44xx_gpio6_addrs,
980 .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
981 .user = OCP_USER_MPU | OCP_USER_SDMA,
982};
983
984/* gpio6 slave ports */
985static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
986 &omap44xx_l4_per__gpio6,
987};
988
989static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700990 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700991};
992
993static struct omap_hwmod omap44xx_gpio6_hwmod = {
994 .name = "gpio6",
995 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700996 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700997 .mpu_irqs = omap44xx_gpio6_irqs,
998 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
999 .main_clk = "gpio6_ick",
1000 .prcm = {
1001 .omap4 = {
1002 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
1003 },
1004 },
1005 .opt_clks = gpio6_opt_clks,
1006 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1007 .dev_attr = &gpio_dev_attr,
1008 .slaves = omap44xx_gpio6_slaves,
1009 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
1010 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1011};
1012
1013/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301014 * 'i2c' class
1015 * multimaster high-speed i2c controller
1016 */
1017
1018static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1019 .sysc_offs = 0x0010,
1020 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001021 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1022 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001023 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001024 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1025 SIDLE_SMART_WKUP),
Benoit Coussonf7764712010-09-21 19:37:14 +05301026 .sysc_fields = &omap_hwmod_sysc_type1,
1027};
1028
1029static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
1030 .name = "i2c",
1031 .sysc = &omap44xx_i2c_sysc,
1032};
1033
1034/* i2c1 */
1035static struct omap_hwmod omap44xx_i2c1_hwmod;
1036static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
1037 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
1038};
1039
1040static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
1041 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
1042 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
1043};
1044
1045static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
1046 {
1047 .pa_start = 0x48070000,
1048 .pa_end = 0x480700ff,
1049 .flags = ADDR_TYPE_RT
1050 },
1051};
1052
1053/* l4_per -> i2c1 */
1054static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
1055 .master = &omap44xx_l4_per_hwmod,
1056 .slave = &omap44xx_i2c1_hwmod,
1057 .clk = "l4_div_ck",
1058 .addr = omap44xx_i2c1_addrs,
1059 .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
1060 .user = OCP_USER_MPU | OCP_USER_SDMA,
1061};
1062
1063/* i2c1 slave ports */
1064static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
1065 &omap44xx_l4_per__i2c1,
1066};
1067
1068static struct omap_hwmod omap44xx_i2c1_hwmod = {
1069 .name = "i2c1",
1070 .class = &omap44xx_i2c_hwmod_class,
1071 .flags = HWMOD_INIT_NO_RESET,
1072 .mpu_irqs = omap44xx_i2c1_irqs,
1073 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
1074 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
1075 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
1076 .main_clk = "i2c1_fck",
1077 .prcm = {
1078 .omap4 = {
1079 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
1080 },
1081 },
1082 .slaves = omap44xx_i2c1_slaves,
1083 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
1084 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1085};
1086
1087/* i2c2 */
1088static struct omap_hwmod omap44xx_i2c2_hwmod;
1089static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
1090 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
1091};
1092
1093static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
1094 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
1095 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
1096};
1097
1098static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
1099 {
1100 .pa_start = 0x48072000,
1101 .pa_end = 0x480720ff,
1102 .flags = ADDR_TYPE_RT
1103 },
1104};
1105
1106/* l4_per -> i2c2 */
1107static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
1108 .master = &omap44xx_l4_per_hwmod,
1109 .slave = &omap44xx_i2c2_hwmod,
1110 .clk = "l4_div_ck",
1111 .addr = omap44xx_i2c2_addrs,
1112 .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
1113 .user = OCP_USER_MPU | OCP_USER_SDMA,
1114};
1115
1116/* i2c2 slave ports */
1117static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
1118 &omap44xx_l4_per__i2c2,
1119};
1120
1121static struct omap_hwmod omap44xx_i2c2_hwmod = {
1122 .name = "i2c2",
1123 .class = &omap44xx_i2c_hwmod_class,
1124 .flags = HWMOD_INIT_NO_RESET,
1125 .mpu_irqs = omap44xx_i2c2_irqs,
1126 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
1127 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
1128 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
1129 .main_clk = "i2c2_fck",
1130 .prcm = {
1131 .omap4 = {
1132 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
1133 },
1134 },
1135 .slaves = omap44xx_i2c2_slaves,
1136 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
1137 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1138};
1139
1140/* i2c3 */
1141static struct omap_hwmod omap44xx_i2c3_hwmod;
1142static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
1143 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
1144};
1145
1146static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
1147 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
1148 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
1149};
1150
1151static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
1152 {
1153 .pa_start = 0x48060000,
1154 .pa_end = 0x480600ff,
1155 .flags = ADDR_TYPE_RT
1156 },
1157};
1158
1159/* l4_per -> i2c3 */
1160static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
1161 .master = &omap44xx_l4_per_hwmod,
1162 .slave = &omap44xx_i2c3_hwmod,
1163 .clk = "l4_div_ck",
1164 .addr = omap44xx_i2c3_addrs,
1165 .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
1166 .user = OCP_USER_MPU | OCP_USER_SDMA,
1167};
1168
1169/* i2c3 slave ports */
1170static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
1171 &omap44xx_l4_per__i2c3,
1172};
1173
1174static struct omap_hwmod omap44xx_i2c3_hwmod = {
1175 .name = "i2c3",
1176 .class = &omap44xx_i2c_hwmod_class,
1177 .flags = HWMOD_INIT_NO_RESET,
1178 .mpu_irqs = omap44xx_i2c3_irqs,
1179 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
1180 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
1181 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
1182 .main_clk = "i2c3_fck",
1183 .prcm = {
1184 .omap4 = {
1185 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
1186 },
1187 },
1188 .slaves = omap44xx_i2c3_slaves,
1189 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
1190 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1191};
1192
1193/* i2c4 */
1194static struct omap_hwmod omap44xx_i2c4_hwmod;
1195static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
1196 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
1197};
1198
1199static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
1200 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
1201 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
1202};
1203
1204static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
1205 {
1206 .pa_start = 0x48350000,
1207 .pa_end = 0x483500ff,
1208 .flags = ADDR_TYPE_RT
1209 },
1210};
1211
1212/* l4_per -> i2c4 */
1213static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
1214 .master = &omap44xx_l4_per_hwmod,
1215 .slave = &omap44xx_i2c4_hwmod,
1216 .clk = "l4_div_ck",
1217 .addr = omap44xx_i2c4_addrs,
1218 .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
1219 .user = OCP_USER_MPU | OCP_USER_SDMA,
1220};
1221
1222/* i2c4 slave ports */
1223static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
1224 &omap44xx_l4_per__i2c4,
1225};
1226
1227static struct omap_hwmod omap44xx_i2c4_hwmod = {
1228 .name = "i2c4",
1229 .class = &omap44xx_i2c_hwmod_class,
1230 .flags = HWMOD_INIT_NO_RESET,
1231 .mpu_irqs = omap44xx_i2c4_irqs,
1232 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
1233 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
1234 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
1235 .main_clk = "i2c4_fck",
1236 .prcm = {
1237 .omap4 = {
1238 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
1239 },
1240 },
1241 .slaves = omap44xx_i2c4_slaves,
1242 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
1243 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1244};
1245
1246/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001247 * 'iva' class
1248 * multi-standard video encoder/decoder hardware accelerator
1249 */
1250
1251static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1252 .name = "iva",
1253};
1254
1255/* iva */
1256static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
1257 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
1258 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
1259 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
1260};
1261
1262static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1263 { .name = "logic", .rst_shift = 2 },
1264};
1265
1266static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
1267 { .name = "seq0", .rst_shift = 0 },
1268};
1269
1270static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
1271 { .name = "seq1", .rst_shift = 1 },
1272};
1273
1274/* iva master ports */
1275static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
1276 &omap44xx_iva__l3_main_2,
1277 &omap44xx_iva__l3_instr,
1278};
1279
1280static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
1281 {
1282 .pa_start = 0x5a000000,
1283 .pa_end = 0x5a07ffff,
1284 .flags = ADDR_TYPE_RT
1285 },
1286};
1287
1288/* l3_main_2 -> iva */
1289static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
1290 .master = &omap44xx_l3_main_2_hwmod,
1291 .slave = &omap44xx_iva_hwmod,
1292 .clk = "l3_div_ck",
1293 .addr = omap44xx_iva_addrs,
1294 .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
1295 .user = OCP_USER_MPU,
1296};
1297
1298/* iva slave ports */
1299static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
1300 &omap44xx_dsp__iva,
1301 &omap44xx_l3_main_2__iva,
1302};
1303
1304/* Pseudo hwmod for reset control purpose only */
1305static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
1306 .name = "iva_seq0",
1307 .class = &omap44xx_iva_hwmod_class,
1308 .flags = HWMOD_INIT_NO_RESET,
1309 .rst_lines = omap44xx_iva_seq0_resets,
1310 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
1311 .prcm = {
1312 .omap4 = {
1313 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1314 },
1315 },
1316 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1317};
1318
1319/* Pseudo hwmod for reset control purpose only */
1320static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
1321 .name = "iva_seq1",
1322 .class = &omap44xx_iva_hwmod_class,
1323 .flags = HWMOD_INIT_NO_RESET,
1324 .rst_lines = omap44xx_iva_seq1_resets,
1325 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
1326 .prcm = {
1327 .omap4 = {
1328 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1329 },
1330 },
1331 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1332};
1333
1334static struct omap_hwmod omap44xx_iva_hwmod = {
1335 .name = "iva",
1336 .class = &omap44xx_iva_hwmod_class,
1337 .mpu_irqs = omap44xx_iva_irqs,
1338 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
1339 .rst_lines = omap44xx_iva_resets,
1340 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1341 .main_clk = "iva_fck",
1342 .prcm = {
1343 .omap4 = {
1344 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
1345 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1346 },
1347 },
1348 .slaves = omap44xx_iva_slaves,
1349 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
1350 .masters = omap44xx_iva_masters,
1351 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
1352 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1353};
1354
1355/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001356 * 'mpu' class
1357 * mpu sub-system
1358 */
1359
1360static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
1361 .name = "mpu",
1362};
1363
1364/* mpu */
1365static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
1366 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
1367 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
1368 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
1369};
1370
1371/* mpu master ports */
1372static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
1373 &omap44xx_mpu__l3_main_1,
1374 &omap44xx_mpu__l4_abe,
1375 &omap44xx_mpu__dmm,
1376};
1377
1378static struct omap_hwmod omap44xx_mpu_hwmod = {
1379 .name = "mpu",
1380 .class = &omap44xx_mpu_hwmod_class,
1381 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
1382 .mpu_irqs = omap44xx_mpu_irqs,
1383 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
1384 .main_clk = "dpll_mpu_m2_ck",
1385 .prcm = {
1386 .omap4 = {
1387 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
1388 },
1389 },
1390 .masters = omap44xx_mpu_masters,
1391 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
1392 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1393};
1394
Benoit Cousson92b18d12010-09-23 20:02:41 +05301395/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05301396 * 'uart' class
1397 * universal asynchronous receiver/transmitter (uart)
1398 */
1399
1400static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
1401 .rev_offs = 0x0050,
1402 .sysc_offs = 0x0054,
1403 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001404 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001405 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1406 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001407 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1408 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05301409 .sysc_fields = &omap_hwmod_sysc_type1,
1410};
1411
1412static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
1413 .name = "uart",
1414 .sysc = &omap44xx_uart_sysc,
1415};
1416
1417/* uart1 */
1418static struct omap_hwmod omap44xx_uart1_hwmod;
1419static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
1420 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
1421};
1422
1423static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
1424 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
1425 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
1426};
1427
1428static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
1429 {
1430 .pa_start = 0x4806a000,
1431 .pa_end = 0x4806a0ff,
1432 .flags = ADDR_TYPE_RT
1433 },
1434};
1435
1436/* l4_per -> uart1 */
1437static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
1438 .master = &omap44xx_l4_per_hwmod,
1439 .slave = &omap44xx_uart1_hwmod,
1440 .clk = "l4_div_ck",
1441 .addr = omap44xx_uart1_addrs,
1442 .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
1443 .user = OCP_USER_MPU | OCP_USER_SDMA,
1444};
1445
1446/* uart1 slave ports */
1447static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
1448 &omap44xx_l4_per__uart1,
1449};
1450
1451static struct omap_hwmod omap44xx_uart1_hwmod = {
1452 .name = "uart1",
1453 .class = &omap44xx_uart_hwmod_class,
1454 .mpu_irqs = omap44xx_uart1_irqs,
1455 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
1456 .sdma_reqs = omap44xx_uart1_sdma_reqs,
1457 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
1458 .main_clk = "uart1_fck",
1459 .prcm = {
1460 .omap4 = {
1461 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
1462 },
1463 },
1464 .slaves = omap44xx_uart1_slaves,
1465 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
1466 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1467};
1468
1469/* uart2 */
1470static struct omap_hwmod omap44xx_uart2_hwmod;
1471static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
1472 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
1473};
1474
1475static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
1476 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
1477 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
1478};
1479
1480static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
1481 {
1482 .pa_start = 0x4806c000,
1483 .pa_end = 0x4806c0ff,
1484 .flags = ADDR_TYPE_RT
1485 },
1486};
1487
1488/* l4_per -> uart2 */
1489static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
1490 .master = &omap44xx_l4_per_hwmod,
1491 .slave = &omap44xx_uart2_hwmod,
1492 .clk = "l4_div_ck",
1493 .addr = omap44xx_uart2_addrs,
1494 .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
1495 .user = OCP_USER_MPU | OCP_USER_SDMA,
1496};
1497
1498/* uart2 slave ports */
1499static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
1500 &omap44xx_l4_per__uart2,
1501};
1502
1503static struct omap_hwmod omap44xx_uart2_hwmod = {
1504 .name = "uart2",
1505 .class = &omap44xx_uart_hwmod_class,
1506 .mpu_irqs = omap44xx_uart2_irqs,
1507 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
1508 .sdma_reqs = omap44xx_uart2_sdma_reqs,
1509 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
1510 .main_clk = "uart2_fck",
1511 .prcm = {
1512 .omap4 = {
1513 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
1514 },
1515 },
1516 .slaves = omap44xx_uart2_slaves,
1517 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
1518 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1519};
1520
1521/* uart3 */
1522static struct omap_hwmod omap44xx_uart3_hwmod;
1523static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
1524 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
1525};
1526
1527static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
1528 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
1529 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
1530};
1531
1532static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
1533 {
1534 .pa_start = 0x48020000,
1535 .pa_end = 0x480200ff,
1536 .flags = ADDR_TYPE_RT
1537 },
1538};
1539
1540/* l4_per -> uart3 */
1541static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
1542 .master = &omap44xx_l4_per_hwmod,
1543 .slave = &omap44xx_uart3_hwmod,
1544 .clk = "l4_div_ck",
1545 .addr = omap44xx_uart3_addrs,
1546 .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
1547 .user = OCP_USER_MPU | OCP_USER_SDMA,
1548};
1549
1550/* uart3 slave ports */
1551static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
1552 &omap44xx_l4_per__uart3,
1553};
1554
1555static struct omap_hwmod omap44xx_uart3_hwmod = {
1556 .name = "uart3",
1557 .class = &omap44xx_uart_hwmod_class,
1558 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
1559 .mpu_irqs = omap44xx_uart3_irqs,
1560 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
1561 .sdma_reqs = omap44xx_uart3_sdma_reqs,
1562 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
1563 .main_clk = "uart3_fck",
1564 .prcm = {
1565 .omap4 = {
1566 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
1567 },
1568 },
1569 .slaves = omap44xx_uart3_slaves,
1570 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
1571 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1572};
1573
1574/* uart4 */
1575static struct omap_hwmod omap44xx_uart4_hwmod;
1576static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
1577 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
1578};
1579
1580static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
1581 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
1582 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
1583};
1584
1585static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
1586 {
1587 .pa_start = 0x4806e000,
1588 .pa_end = 0x4806e0ff,
1589 .flags = ADDR_TYPE_RT
1590 },
1591};
1592
1593/* l4_per -> uart4 */
1594static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
1595 .master = &omap44xx_l4_per_hwmod,
1596 .slave = &omap44xx_uart4_hwmod,
1597 .clk = "l4_div_ck",
1598 .addr = omap44xx_uart4_addrs,
1599 .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
1600 .user = OCP_USER_MPU | OCP_USER_SDMA,
1601};
1602
1603/* uart4 slave ports */
1604static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
1605 &omap44xx_l4_per__uart4,
1606};
1607
1608static struct omap_hwmod omap44xx_uart4_hwmod = {
1609 .name = "uart4",
1610 .class = &omap44xx_uart_hwmod_class,
1611 .mpu_irqs = omap44xx_uart4_irqs,
1612 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
1613 .sdma_reqs = omap44xx_uart4_sdma_reqs,
1614 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
1615 .main_clk = "uart4_fck",
1616 .prcm = {
1617 .omap4 = {
1618 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
1619 },
1620 },
1621 .slaves = omap44xx_uart4_slaves,
1622 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
1623 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1624};
1625
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001626/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001627 * 'wd_timer' class
1628 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1629 * overflow condition
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001630 */
1631
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001632static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001633 .rev_offs = 0x0000,
1634 .sysc_offs = 0x0010,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001635 .syss_offs = 0x0014,
1636 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001637 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001638 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1639 SIDLE_SMART_WKUP),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001640 .sysc_fields = &omap_hwmod_sysc_type1,
1641};
1642
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001643static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
1644 .name = "wd_timer",
1645 .sysc = &omap44xx_wd_timer_sysc,
1646 .pre_shutdown = &omap2_wd_timer_disable
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001647};
1648
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001649/* wd_timer2 */
1650static struct omap_hwmod omap44xx_wd_timer2_hwmod;
1651static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
1652 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001653};
1654
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001655static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001656 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001657 .pa_start = 0x4a314000,
1658 .pa_end = 0x4a31407f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001659 .flags = ADDR_TYPE_RT
1660 },
1661};
1662
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001663/* l4_wkup -> wd_timer2 */
1664static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001665 .master = &omap44xx_l4_wkup_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001666 .slave = &omap44xx_wd_timer2_hwmod,
1667 .clk = "l4_wkup_clk_mux_ck",
1668 .addr = omap44xx_wd_timer2_addrs,
1669 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001670 .user = OCP_USER_MPU | OCP_USER_SDMA,
1671};
1672
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001673/* wd_timer2 slave ports */
1674static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
1675 &omap44xx_l4_wkup__wd_timer2,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001676};
1677
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001678static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
1679 .name = "wd_timer2",
1680 .class = &omap44xx_wd_timer_hwmod_class,
1681 .mpu_irqs = omap44xx_wd_timer2_irqs,
1682 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
1683 .main_clk = "wd_timer2_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001684 .prcm = {
1685 .omap4 = {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001686 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001687 },
1688 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001689 .slaves = omap44xx_wd_timer2_slaves,
1690 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001691 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1692};
1693
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001694/* wd_timer3 */
1695static struct omap_hwmod omap44xx_wd_timer3_hwmod;
1696static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
1697 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001698};
1699
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001700static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001701 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001702 .pa_start = 0x40130000,
1703 .pa_end = 0x4013007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001704 .flags = ADDR_TYPE_RT
1705 },
1706};
1707
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001708/* l4_abe -> wd_timer3 */
1709static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
1710 .master = &omap44xx_l4_abe_hwmod,
1711 .slave = &omap44xx_wd_timer3_hwmod,
1712 .clk = "ocp_abe_iclk",
1713 .addr = omap44xx_wd_timer3_addrs,
1714 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
1715 .user = OCP_USER_MPU,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001716};
1717
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001718static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001719 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001720 .pa_start = 0x49030000,
1721 .pa_end = 0x4903007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001722 .flags = ADDR_TYPE_RT
1723 },
1724};
1725
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001726/* l4_abe -> wd_timer3 (dma) */
1727static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
1728 .master = &omap44xx_l4_abe_hwmod,
1729 .slave = &omap44xx_wd_timer3_hwmod,
1730 .clk = "ocp_abe_iclk",
1731 .addr = omap44xx_wd_timer3_dma_addrs,
1732 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
1733 .user = OCP_USER_SDMA,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001734};
1735
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001736/* wd_timer3 slave ports */
1737static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
1738 &omap44xx_l4_abe__wd_timer3,
1739 &omap44xx_l4_abe__wd_timer3_dma,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001740};
1741
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001742static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
1743 .name = "wd_timer3",
1744 .class = &omap44xx_wd_timer_hwmod_class,
1745 .mpu_irqs = omap44xx_wd_timer3_irqs,
1746 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
1747 .main_clk = "wd_timer3_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001748 .prcm = {
1749 .omap4 = {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001750 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001751 },
1752 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001753 .slaves = omap44xx_wd_timer3_slaves,
1754 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001755 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1756};
1757
Benoit Cousson531ce0d2010-12-20 18:27:19 -08001758
1759/*
1760 * 'dma' class
1761 * dma controller for data exchange between memory to memory (i.e. internal or
1762 * external memory) and gp peripherals to memory or memory to gp peripherals
1763 */
1764
1765static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
1766 .rev_offs = 0x0000,
1767 .sysc_offs = 0x002c,
1768 .syss_offs = 0x0028,
1769 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1770 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1771 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1772 SYSS_HAS_RESET_STATUS),
1773 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1774 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1775 .sysc_fields = &omap_hwmod_sysc_type1,
1776};
1777
1778/* dma attributes */
1779static struct omap_dma_dev_attr dma_dev_attr = {
1780 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
1781 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
1782 .lch_count = 32,
1783};
1784
1785static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
1786 .name = "dma",
1787 .sysc = &omap44xx_dma_sysc,
1788};
1789
1790/* dma_system */
1791static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
1792 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
1793 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
1794 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
1795 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
1796};
1797
1798/* dma_system master ports */
1799static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
1800 &omap44xx_dma_system__l3_main_2,
1801};
1802
1803static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
1804 {
1805 .pa_start = 0x4a056000,
1806 .pa_end = 0x4a0560ff,
1807 .flags = ADDR_TYPE_RT
1808 },
1809};
1810
1811/* l4_cfg -> dma_system */
1812static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
1813 .master = &omap44xx_l4_cfg_hwmod,
1814 .slave = &omap44xx_dma_system_hwmod,
1815 .clk = "l4_div_ck",
1816 .addr = omap44xx_dma_system_addrs,
1817 .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
1818 .user = OCP_USER_MPU | OCP_USER_SDMA,
1819};
1820
1821/* dma_system slave ports */
1822static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
1823 &omap44xx_l4_cfg__dma_system,
1824};
1825
1826static struct omap_hwmod omap44xx_dma_system_hwmod = {
1827 .name = "dma_system",
1828 .class = &omap44xx_dma_hwmod_class,
1829 .mpu_irqs = omap44xx_dma_system_irqs,
1830 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
1831 .main_clk = "l3_div_ck",
1832 .prcm = {
1833 .omap4 = {
1834 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
1835 },
1836 },
1837 .slaves = omap44xx_dma_system_slaves,
1838 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
1839 .masters = omap44xx_dma_system_masters,
1840 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
1841 .dev_attr = &dma_dev_attr,
1842 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1843};
1844
Benoit Coussonfb200cf2010-08-18 12:22:52 +05301845/*
1846 * 'smartreflex' class
1847 * smartreflex module (monitor silicon performance and outputs a measure of
1848 * performance error)
1849 */
1850
1851/* The IP is not compliant to type1 / type2 scheme */
1852static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
1853 .sidle_shift = 24,
1854 .enwkup_shift = 26,
1855};
1856
1857static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
1858 .sysc_offs = 0x0038,
1859 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1860 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1861 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
1862};
1863
1864static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
1865 .name = "smartreflex",
1866 .sysc = &omap44xx_smartreflex_sysc,
1867 .rev = 2,
1868};
1869
1870/* smartreflex_core */
1871static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
1872static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
1873 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
1874};
1875
1876static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
1877 {
1878 .pa_start = 0x4a0dd000,
1879 .pa_end = 0x4a0dd03f,
1880 .flags = ADDR_TYPE_RT
1881 },
1882};
1883
1884/* l4_cfg -> smartreflex_core */
1885static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
1886 .master = &omap44xx_l4_cfg_hwmod,
1887 .slave = &omap44xx_smartreflex_core_hwmod,
1888 .clk = "l4_div_ck",
1889 .addr = omap44xx_smartreflex_core_addrs,
1890 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
1891 .user = OCP_USER_MPU | OCP_USER_SDMA,
1892};
1893
1894/* smartreflex_core slave ports */
1895static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
1896 &omap44xx_l4_cfg__smartreflex_core,
1897};
1898
1899static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
1900 .name = "smartreflex_core",
1901 .class = &omap44xx_smartreflex_hwmod_class,
1902 .mpu_irqs = omap44xx_smartreflex_core_irqs,
1903 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
1904 .main_clk = "smartreflex_core_fck",
1905 .vdd_name = "core",
1906 .prcm = {
1907 .omap4 = {
1908 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
1909 },
1910 },
1911 .slaves = omap44xx_smartreflex_core_slaves,
1912 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
1913 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1914};
1915
1916/* smartreflex_iva */
1917static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
1918static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
1919 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
1920};
1921
1922static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
1923 {
1924 .pa_start = 0x4a0db000,
1925 .pa_end = 0x4a0db03f,
1926 .flags = ADDR_TYPE_RT
1927 },
1928};
1929
1930/* l4_cfg -> smartreflex_iva */
1931static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
1932 .master = &omap44xx_l4_cfg_hwmod,
1933 .slave = &omap44xx_smartreflex_iva_hwmod,
1934 .clk = "l4_div_ck",
1935 .addr = omap44xx_smartreflex_iva_addrs,
1936 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
1937 .user = OCP_USER_MPU | OCP_USER_SDMA,
1938};
1939
1940/* smartreflex_iva slave ports */
1941static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
1942 &omap44xx_l4_cfg__smartreflex_iva,
1943};
1944
1945static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
1946 .name = "smartreflex_iva",
1947 .class = &omap44xx_smartreflex_hwmod_class,
1948 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
1949 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
1950 .main_clk = "smartreflex_iva_fck",
1951 .vdd_name = "iva",
1952 .prcm = {
1953 .omap4 = {
1954 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
1955 },
1956 },
1957 .slaves = omap44xx_smartreflex_iva_slaves,
1958 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
1959 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1960};
1961
1962/* smartreflex_mpu */
1963static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
1964static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
1965 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
1966};
1967
1968static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
1969 {
1970 .pa_start = 0x4a0d9000,
1971 .pa_end = 0x4a0d903f,
1972 .flags = ADDR_TYPE_RT
1973 },
1974};
1975
1976/* l4_cfg -> smartreflex_mpu */
1977static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
1978 .master = &omap44xx_l4_cfg_hwmod,
1979 .slave = &omap44xx_smartreflex_mpu_hwmod,
1980 .clk = "l4_div_ck",
1981 .addr = omap44xx_smartreflex_mpu_addrs,
1982 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
1983 .user = OCP_USER_MPU | OCP_USER_SDMA,
1984};
1985
1986/* smartreflex_mpu slave ports */
1987static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
1988 &omap44xx_l4_cfg__smartreflex_mpu,
1989};
1990
1991static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
1992 .name = "smartreflex_mpu",
1993 .class = &omap44xx_smartreflex_hwmod_class,
1994 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
1995 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
1996 .main_clk = "smartreflex_mpu_fck",
1997 .vdd_name = "mpu",
1998 .prcm = {
1999 .omap4 = {
2000 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
2001 },
2002 },
2003 .slaves = omap44xx_smartreflex_mpu_slaves,
2004 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
2005 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2006};
2007
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002008static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
2009 /* dmm class */
2010 &omap44xx_dmm_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002011
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002012 /* emif_fw class */
2013 &omap44xx_emif_fw_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002014
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002015 /* l3 class */
2016 &omap44xx_l3_instr_hwmod,
2017 &omap44xx_l3_main_1_hwmod,
2018 &omap44xx_l3_main_2_hwmod,
2019 &omap44xx_l3_main_3_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002020
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002021 /* l4 class */
2022 &omap44xx_l4_abe_hwmod,
2023 &omap44xx_l4_cfg_hwmod,
2024 &omap44xx_l4_per_hwmod,
2025 &omap44xx_l4_wkup_hwmod,
Benoit Cousson531ce0d2010-12-20 18:27:19 -08002026
2027 /* dma class */
2028 &omap44xx_dma_system_hwmod,
2029
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002030 /* mpu_bus class */
2031 &omap44xx_mpu_private_hwmod,
2032
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002033 /* dsp class */
2034 &omap44xx_dsp_hwmod,
2035 &omap44xx_dsp_c0_hwmod,
2036
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002037 /* gpio class */
2038 &omap44xx_gpio1_hwmod,
2039 &omap44xx_gpio2_hwmod,
2040 &omap44xx_gpio3_hwmod,
2041 &omap44xx_gpio4_hwmod,
2042 &omap44xx_gpio5_hwmod,
2043 &omap44xx_gpio6_hwmod,
2044
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002045 /* i2c class */
2046 &omap44xx_i2c1_hwmod,
2047 &omap44xx_i2c2_hwmod,
2048 &omap44xx_i2c3_hwmod,
2049 &omap44xx_i2c4_hwmod,
2050
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002051 /* iva class */
2052 &omap44xx_iva_hwmod,
2053 &omap44xx_iva_seq0_hwmod,
2054 &omap44xx_iva_seq1_hwmod,
2055
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002056 /* mpu class */
2057 &omap44xx_mpu_hwmod,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302058
2059 /* uart class */
2060 &omap44xx_uart1_hwmod,
2061 &omap44xx_uart2_hwmod,
2062 &omap44xx_uart3_hwmod,
2063 &omap44xx_uart4_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002064
2065 /* wd_timer class */
2066 &omap44xx_wd_timer2_hwmod,
2067 &omap44xx_wd_timer3_hwmod,
2068
Benoit Coussonfb200cf2010-08-18 12:22:52 +05302069 /* smartreflex class */
2070 &omap44xx_smartreflex_core_hwmod,
2071 &omap44xx_smartreflex_iva_hwmod,
2072 &omap44xx_smartreflex_mpu_hwmod,
2073
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002074 NULL,
2075};
2076
2077int __init omap44xx_hwmod_init(void)
2078{
2079 return omap_hwmod_init(omap44xx_hwmods);
2080}
2081