blob: 46da576ffaf8068c99e400f66b689b016a6bb2ad [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 = {
Benoit Coussonfe134712010-12-23 22:30:32 +000069 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020070};
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 = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000124 .name = "emif_fw",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200125};
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 = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000173 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200174};
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 Coussond7cf5f32010-12-23 22:30:31 +0000257/* dma_system -> l3_main_2 */
258static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
259 .master = &omap44xx_dma_system_hwmod,
260 .slave = &omap44xx_l3_main_2_hwmod,
261 .clk = "l3_div_ck",
262 .user = OCP_USER_MPU | OCP_USER_SDMA,
263};
264
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700265/* iva -> l3_main_2 */
266static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
267 .master = &omap44xx_iva_hwmod,
268 .slave = &omap44xx_l3_main_2_hwmod,
269 .clk = "l3_div_ck",
270 .user = OCP_USER_MPU | OCP_USER_SDMA,
271};
272
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200273/* l3_main_1 -> l3_main_2 */
274static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
275 .master = &omap44xx_l3_main_1_hwmod,
276 .slave = &omap44xx_l3_main_2_hwmod,
277 .clk = "l3_div_ck",
278 .user = OCP_USER_MPU | OCP_USER_SDMA,
279};
280
281/* 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 = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000350 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200351};
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 = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000464 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700465};
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
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700509 * dmic
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700510 * dss
511 * dss_dispc
512 * dss_dsi1
513 * dss_dsi2
514 * dss_hdmi
515 * dss_rfbi
516 * dss_venc
517 * efuse_ctrl_cust
518 * efuse_ctrl_std
519 * elm
520 * emif1
521 * emif2
522 * fdif
523 * gpmc
524 * gpu
525 * hdq1w
526 * hsi
527 * ipu
528 * iss
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700529 * kbd
530 * mailbox
531 * mcasp
532 * mcbsp1
533 * mcbsp2
534 * mcbsp3
535 * mcbsp4
536 * mcpdm
537 * mcspi1
538 * mcspi2
539 * mcspi3
540 * mcspi4
541 * mmc1
542 * mmc2
543 * mmc3
544 * mmc4
545 * mmc5
546 * mpu_c0
547 * mpu_c1
548 * ocmc_ram
549 * ocp2scp_usb_phy
550 * ocp_wp_noc
551 * prcm
552 * prcm_mpu
553 * prm
554 * scrm
555 * sl2if
556 * slimbus1
557 * slimbus2
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700558 * timer1
559 * timer10
560 * timer11
561 * timer2
562 * timer3
563 * timer4
564 * timer5
565 * timer6
566 * timer7
567 * timer8
568 * timer9
569 * usb_host_fs
570 * usb_host_hs
571 * usb_otg_hs
572 * usb_phy_cm
573 * usb_tll_hs
574 * usim
575 */
576
577/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000578 * 'dma' class
579 * dma controller for data exchange between memory to memory (i.e. internal or
580 * external memory) and gp peripherals to memory or memory to gp peripherals
581 */
582
583static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
584 .rev_offs = 0x0000,
585 .sysc_offs = 0x002c,
586 .syss_offs = 0x0028,
587 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
588 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
589 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
590 SYSS_HAS_RESET_STATUS),
591 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
592 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
593 .sysc_fields = &omap_hwmod_sysc_type1,
594};
595
596static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
597 .name = "dma",
598 .sysc = &omap44xx_dma_sysc,
599};
600
601/* dma dev_attr */
602static struct omap_dma_dev_attr dma_dev_attr = {
603 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
604 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
605 .lch_count = 32,
606};
607
608/* dma_system */
609static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
610 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
611 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
612 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
613 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
614};
615
616/* dma_system master ports */
617static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = {
618 &omap44xx_dma_system__l3_main_2,
619};
620
621static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
622 {
623 .pa_start = 0x4a056000,
624 .pa_end = 0x4a0560ff,
625 .flags = ADDR_TYPE_RT
626 },
627};
628
629/* l4_cfg -> dma_system */
630static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
631 .master = &omap44xx_l4_cfg_hwmod,
632 .slave = &omap44xx_dma_system_hwmod,
633 .clk = "l4_div_ck",
634 .addr = omap44xx_dma_system_addrs,
635 .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs),
636 .user = OCP_USER_MPU | OCP_USER_SDMA,
637};
638
639/* dma_system slave ports */
640static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = {
641 &omap44xx_l4_cfg__dma_system,
642};
643
644static struct omap_hwmod omap44xx_dma_system_hwmod = {
645 .name = "dma_system",
646 .class = &omap44xx_dma_hwmod_class,
647 .mpu_irqs = omap44xx_dma_system_irqs,
648 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs),
649 .main_clk = "l3_div_ck",
650 .prcm = {
651 .omap4 = {
652 .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL,
653 },
654 },
655 .dev_attr = &dma_dev_attr,
656 .slaves = omap44xx_dma_system_slaves,
657 .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves),
658 .masters = omap44xx_dma_system_masters,
659 .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters),
660 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
661};
662
663/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700664 * 'dsp' class
665 * dsp sub-system
666 */
667
668static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000669 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700670};
671
672/* dsp */
673static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
674 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
675};
676
677static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
678 { .name = "mmu_cache", .rst_shift = 1 },
679};
680
681static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = {
682 { .name = "dsp", .rst_shift = 0 },
683};
684
685/* dsp -> iva */
686static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
687 .master = &omap44xx_dsp_hwmod,
688 .slave = &omap44xx_iva_hwmod,
689 .clk = "dpll_iva_m5x2_ck",
690};
691
692/* dsp master ports */
693static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = {
694 &omap44xx_dsp__l3_main_1,
695 &omap44xx_dsp__l4_abe,
696 &omap44xx_dsp__iva,
697};
698
699/* l4_cfg -> dsp */
700static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
701 .master = &omap44xx_l4_cfg_hwmod,
702 .slave = &omap44xx_dsp_hwmod,
703 .clk = "l4_div_ck",
704 .user = OCP_USER_MPU | OCP_USER_SDMA,
705};
706
707/* dsp slave ports */
708static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = {
709 &omap44xx_l4_cfg__dsp,
710};
711
712/* Pseudo hwmod for reset control purpose only */
713static struct omap_hwmod omap44xx_dsp_c0_hwmod = {
714 .name = "dsp_c0",
715 .class = &omap44xx_dsp_hwmod_class,
716 .flags = HWMOD_INIT_NO_RESET,
717 .rst_lines = omap44xx_dsp_c0_resets,
718 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets),
719 .prcm = {
720 .omap4 = {
721 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
722 },
723 },
724 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
725};
726
727static struct omap_hwmod omap44xx_dsp_hwmod = {
728 .name = "dsp",
729 .class = &omap44xx_dsp_hwmod_class,
730 .mpu_irqs = omap44xx_dsp_irqs,
731 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs),
732 .rst_lines = omap44xx_dsp_resets,
733 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
734 .main_clk = "dsp_fck",
735 .prcm = {
736 .omap4 = {
737 .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL,
738 .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL,
739 },
740 },
741 .slaves = omap44xx_dsp_slaves,
742 .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves),
743 .masters = omap44xx_dsp_masters,
744 .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters),
745 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
746};
747
748/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700749 * 'gpio' class
750 * general purpose io module
751 */
752
753static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
754 .rev_offs = 0x0000,
755 .sysc_offs = 0x0010,
756 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -0700757 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
758 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
759 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -0700760 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
761 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700762 .sysc_fields = &omap_hwmod_sysc_type1,
763};
764
765static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000766 .name = "gpio",
767 .sysc = &omap44xx_gpio_sysc,
768 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700769};
770
771/* gpio dev_attr */
772static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000773 .bank_width = 32,
774 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700775};
776
777/* gpio1 */
778static struct omap_hwmod omap44xx_gpio1_hwmod;
779static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
780 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
781};
782
783static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
784 {
785 .pa_start = 0x4a310000,
786 .pa_end = 0x4a3101ff,
787 .flags = ADDR_TYPE_RT
788 },
789};
790
791/* l4_wkup -> gpio1 */
792static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
793 .master = &omap44xx_l4_wkup_hwmod,
794 .slave = &omap44xx_gpio1_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700795 .clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700796 .addr = omap44xx_gpio1_addrs,
797 .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs),
798 .user = OCP_USER_MPU | OCP_USER_SDMA,
799};
800
801/* gpio1 slave ports */
802static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = {
803 &omap44xx_l4_wkup__gpio1,
804};
805
806static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700807 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700808};
809
810static struct omap_hwmod omap44xx_gpio1_hwmod = {
811 .name = "gpio1",
812 .class = &omap44xx_gpio_hwmod_class,
813 .mpu_irqs = omap44xx_gpio1_irqs,
814 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs),
815 .main_clk = "gpio1_ick",
816 .prcm = {
817 .omap4 = {
818 .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL,
819 },
820 },
821 .opt_clks = gpio1_opt_clks,
822 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
823 .dev_attr = &gpio_dev_attr,
824 .slaves = omap44xx_gpio1_slaves,
825 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves),
826 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
827};
828
829/* gpio2 */
830static struct omap_hwmod omap44xx_gpio2_hwmod;
831static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
832 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
833};
834
835static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
836 {
837 .pa_start = 0x48055000,
838 .pa_end = 0x480551ff,
839 .flags = ADDR_TYPE_RT
840 },
841};
842
843/* l4_per -> gpio2 */
844static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
845 .master = &omap44xx_l4_per_hwmod,
846 .slave = &omap44xx_gpio2_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700847 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700848 .addr = omap44xx_gpio2_addrs,
849 .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs),
850 .user = OCP_USER_MPU | OCP_USER_SDMA,
851};
852
853/* gpio2 slave ports */
854static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = {
855 &omap44xx_l4_per__gpio2,
856};
857
858static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700859 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700860};
861
862static struct omap_hwmod omap44xx_gpio2_hwmod = {
863 .name = "gpio2",
864 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700865 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700866 .mpu_irqs = omap44xx_gpio2_irqs,
867 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs),
868 .main_clk = "gpio2_ick",
869 .prcm = {
870 .omap4 = {
871 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL,
872 },
873 },
874 .opt_clks = gpio2_opt_clks,
875 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
876 .dev_attr = &gpio_dev_attr,
877 .slaves = omap44xx_gpio2_slaves,
878 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves),
879 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
880};
881
882/* gpio3 */
883static struct omap_hwmod omap44xx_gpio3_hwmod;
884static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
885 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
886};
887
888static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
889 {
890 .pa_start = 0x48057000,
891 .pa_end = 0x480571ff,
892 .flags = ADDR_TYPE_RT
893 },
894};
895
896/* l4_per -> gpio3 */
897static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
898 .master = &omap44xx_l4_per_hwmod,
899 .slave = &omap44xx_gpio3_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700900 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700901 .addr = omap44xx_gpio3_addrs,
902 .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs),
903 .user = OCP_USER_MPU | OCP_USER_SDMA,
904};
905
906/* gpio3 slave ports */
907static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = {
908 &omap44xx_l4_per__gpio3,
909};
910
911static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700912 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700913};
914
915static struct omap_hwmod omap44xx_gpio3_hwmod = {
916 .name = "gpio3",
917 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700918 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700919 .mpu_irqs = omap44xx_gpio3_irqs,
920 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs),
921 .main_clk = "gpio3_ick",
922 .prcm = {
923 .omap4 = {
924 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL,
925 },
926 },
927 .opt_clks = gpio3_opt_clks,
928 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
929 .dev_attr = &gpio_dev_attr,
930 .slaves = omap44xx_gpio3_slaves,
931 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves),
932 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
933};
934
935/* gpio4 */
936static struct omap_hwmod omap44xx_gpio4_hwmod;
937static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
938 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
939};
940
941static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
942 {
943 .pa_start = 0x48059000,
944 .pa_end = 0x480591ff,
945 .flags = ADDR_TYPE_RT
946 },
947};
948
949/* l4_per -> gpio4 */
950static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
951 .master = &omap44xx_l4_per_hwmod,
952 .slave = &omap44xx_gpio4_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700953 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700954 .addr = omap44xx_gpio4_addrs,
955 .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs),
956 .user = OCP_USER_MPU | OCP_USER_SDMA,
957};
958
959/* gpio4 slave ports */
960static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = {
961 &omap44xx_l4_per__gpio4,
962};
963
964static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -0700965 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700966};
967
968static struct omap_hwmod omap44xx_gpio4_hwmod = {
969 .name = "gpio4",
970 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -0700971 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700972 .mpu_irqs = omap44xx_gpio4_irqs,
973 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs),
974 .main_clk = "gpio4_ick",
975 .prcm = {
976 .omap4 = {
977 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL,
978 },
979 },
980 .opt_clks = gpio4_opt_clks,
981 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
982 .dev_attr = &gpio_dev_attr,
983 .slaves = omap44xx_gpio4_slaves,
984 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves),
985 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
986};
987
988/* gpio5 */
989static struct omap_hwmod omap44xx_gpio5_hwmod;
990static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
991 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
992};
993
994static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
995 {
996 .pa_start = 0x4805b000,
997 .pa_end = 0x4805b1ff,
998 .flags = ADDR_TYPE_RT
999 },
1000};
1001
1002/* l4_per -> gpio5 */
1003static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
1004 .master = &omap44xx_l4_per_hwmod,
1005 .slave = &omap44xx_gpio5_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001006 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001007 .addr = omap44xx_gpio5_addrs,
1008 .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs),
1009 .user = OCP_USER_MPU | OCP_USER_SDMA,
1010};
1011
1012/* gpio5 slave ports */
1013static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = {
1014 &omap44xx_l4_per__gpio5,
1015};
1016
1017static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001018 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001019};
1020
1021static struct omap_hwmod omap44xx_gpio5_hwmod = {
1022 .name = "gpio5",
1023 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001024 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001025 .mpu_irqs = omap44xx_gpio5_irqs,
1026 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs),
1027 .main_clk = "gpio5_ick",
1028 .prcm = {
1029 .omap4 = {
1030 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL,
1031 },
1032 },
1033 .opt_clks = gpio5_opt_clks,
1034 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1035 .dev_attr = &gpio_dev_attr,
1036 .slaves = omap44xx_gpio5_slaves,
1037 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves),
1038 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1039};
1040
1041/* gpio6 */
1042static struct omap_hwmod omap44xx_gpio6_hwmod;
1043static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1044 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
1045};
1046
1047static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
1048 {
1049 .pa_start = 0x4805d000,
1050 .pa_end = 0x4805d1ff,
1051 .flags = ADDR_TYPE_RT
1052 },
1053};
1054
1055/* l4_per -> gpio6 */
1056static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
1057 .master = &omap44xx_l4_per_hwmod,
1058 .slave = &omap44xx_gpio6_hwmod,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001059 .clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001060 .addr = omap44xx_gpio6_addrs,
1061 .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs),
1062 .user = OCP_USER_MPU | OCP_USER_SDMA,
1063};
1064
1065/* gpio6 slave ports */
1066static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = {
1067 &omap44xx_l4_per__gpio6,
1068};
1069
1070static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001071 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001072};
1073
1074static struct omap_hwmod omap44xx_gpio6_hwmod = {
1075 .name = "gpio6",
1076 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussonb399bca2010-12-21 21:08:34 -07001077 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001078 .mpu_irqs = omap44xx_gpio6_irqs,
1079 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs),
1080 .main_clk = "gpio6_ick",
1081 .prcm = {
1082 .omap4 = {
1083 .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL,
1084 },
1085 },
1086 .opt_clks = gpio6_opt_clks,
1087 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1088 .dev_attr = &gpio_dev_attr,
1089 .slaves = omap44xx_gpio6_slaves,
1090 .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves),
1091 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1092};
1093
1094/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301095 * 'i2c' class
1096 * multimaster high-speed i2c controller
1097 */
1098
1099static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1100 .sysc_offs = 0x0010,
1101 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001102 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1103 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001104 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001105 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1106 SIDLE_SMART_WKUP),
Benoit Coussonf7764712010-09-21 19:37:14 +05301107 .sysc_fields = &omap_hwmod_sysc_type1,
1108};
1109
1110static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001111 .name = "i2c",
1112 .sysc = &omap44xx_i2c_sysc,
Benoit Coussonf7764712010-09-21 19:37:14 +05301113};
1114
1115/* i2c1 */
1116static struct omap_hwmod omap44xx_i2c1_hwmod;
1117static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
1118 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
1119};
1120
1121static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
1122 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
1123 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
1124};
1125
1126static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
1127 {
1128 .pa_start = 0x48070000,
1129 .pa_end = 0x480700ff,
1130 .flags = ADDR_TYPE_RT
1131 },
1132};
1133
1134/* l4_per -> i2c1 */
1135static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
1136 .master = &omap44xx_l4_per_hwmod,
1137 .slave = &omap44xx_i2c1_hwmod,
1138 .clk = "l4_div_ck",
1139 .addr = omap44xx_i2c1_addrs,
1140 .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs),
1141 .user = OCP_USER_MPU | OCP_USER_SDMA,
1142};
1143
1144/* i2c1 slave ports */
1145static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = {
1146 &omap44xx_l4_per__i2c1,
1147};
1148
1149static struct omap_hwmod omap44xx_i2c1_hwmod = {
1150 .name = "i2c1",
1151 .class = &omap44xx_i2c_hwmod_class,
1152 .flags = HWMOD_INIT_NO_RESET,
1153 .mpu_irqs = omap44xx_i2c1_irqs,
1154 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs),
1155 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
1156 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs),
1157 .main_clk = "i2c1_fck",
1158 .prcm = {
1159 .omap4 = {
1160 .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL,
1161 },
1162 },
1163 .slaves = omap44xx_i2c1_slaves,
1164 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves),
1165 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1166};
1167
1168/* i2c2 */
1169static struct omap_hwmod omap44xx_i2c2_hwmod;
1170static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
1171 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
1172};
1173
1174static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
1175 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
1176 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
1177};
1178
1179static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
1180 {
1181 .pa_start = 0x48072000,
1182 .pa_end = 0x480720ff,
1183 .flags = ADDR_TYPE_RT
1184 },
1185};
1186
1187/* l4_per -> i2c2 */
1188static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
1189 .master = &omap44xx_l4_per_hwmod,
1190 .slave = &omap44xx_i2c2_hwmod,
1191 .clk = "l4_div_ck",
1192 .addr = omap44xx_i2c2_addrs,
1193 .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs),
1194 .user = OCP_USER_MPU | OCP_USER_SDMA,
1195};
1196
1197/* i2c2 slave ports */
1198static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = {
1199 &omap44xx_l4_per__i2c2,
1200};
1201
1202static struct omap_hwmod omap44xx_i2c2_hwmod = {
1203 .name = "i2c2",
1204 .class = &omap44xx_i2c_hwmod_class,
1205 .flags = HWMOD_INIT_NO_RESET,
1206 .mpu_irqs = omap44xx_i2c2_irqs,
1207 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs),
1208 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
1209 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs),
1210 .main_clk = "i2c2_fck",
1211 .prcm = {
1212 .omap4 = {
1213 .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL,
1214 },
1215 },
1216 .slaves = omap44xx_i2c2_slaves,
1217 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves),
1218 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1219};
1220
1221/* i2c3 */
1222static struct omap_hwmod omap44xx_i2c3_hwmod;
1223static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
1224 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
1225};
1226
1227static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
1228 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
1229 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
1230};
1231
1232static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
1233 {
1234 .pa_start = 0x48060000,
1235 .pa_end = 0x480600ff,
1236 .flags = ADDR_TYPE_RT
1237 },
1238};
1239
1240/* l4_per -> i2c3 */
1241static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
1242 .master = &omap44xx_l4_per_hwmod,
1243 .slave = &omap44xx_i2c3_hwmod,
1244 .clk = "l4_div_ck",
1245 .addr = omap44xx_i2c3_addrs,
1246 .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs),
1247 .user = OCP_USER_MPU | OCP_USER_SDMA,
1248};
1249
1250/* i2c3 slave ports */
1251static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = {
1252 &omap44xx_l4_per__i2c3,
1253};
1254
1255static struct omap_hwmod omap44xx_i2c3_hwmod = {
1256 .name = "i2c3",
1257 .class = &omap44xx_i2c_hwmod_class,
1258 .flags = HWMOD_INIT_NO_RESET,
1259 .mpu_irqs = omap44xx_i2c3_irqs,
1260 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs),
1261 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
1262 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs),
1263 .main_clk = "i2c3_fck",
1264 .prcm = {
1265 .omap4 = {
1266 .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL,
1267 },
1268 },
1269 .slaves = omap44xx_i2c3_slaves,
1270 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves),
1271 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1272};
1273
1274/* i2c4 */
1275static struct omap_hwmod omap44xx_i2c4_hwmod;
1276static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
1277 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
1278};
1279
1280static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
1281 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
1282 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
1283};
1284
1285static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
1286 {
1287 .pa_start = 0x48350000,
1288 .pa_end = 0x483500ff,
1289 .flags = ADDR_TYPE_RT
1290 },
1291};
1292
1293/* l4_per -> i2c4 */
1294static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
1295 .master = &omap44xx_l4_per_hwmod,
1296 .slave = &omap44xx_i2c4_hwmod,
1297 .clk = "l4_div_ck",
1298 .addr = omap44xx_i2c4_addrs,
1299 .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs),
1300 .user = OCP_USER_MPU | OCP_USER_SDMA,
1301};
1302
1303/* i2c4 slave ports */
1304static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = {
1305 &omap44xx_l4_per__i2c4,
1306};
1307
1308static struct omap_hwmod omap44xx_i2c4_hwmod = {
1309 .name = "i2c4",
1310 .class = &omap44xx_i2c_hwmod_class,
1311 .flags = HWMOD_INIT_NO_RESET,
1312 .mpu_irqs = omap44xx_i2c4_irqs,
1313 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs),
1314 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
1315 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs),
1316 .main_clk = "i2c4_fck",
1317 .prcm = {
1318 .omap4 = {
1319 .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL,
1320 },
1321 },
1322 .slaves = omap44xx_i2c4_slaves,
1323 .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves),
1324 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1325};
1326
1327/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001328 * 'iva' class
1329 * multi-standard video encoder/decoder hardware accelerator
1330 */
1331
1332static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001333 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001334};
1335
1336/* iva */
1337static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
1338 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
1339 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
1340 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
1341};
1342
1343static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
1344 { .name = "logic", .rst_shift = 2 },
1345};
1346
1347static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = {
1348 { .name = "seq0", .rst_shift = 0 },
1349};
1350
1351static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = {
1352 { .name = "seq1", .rst_shift = 1 },
1353};
1354
1355/* iva master ports */
1356static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = {
1357 &omap44xx_iva__l3_main_2,
1358 &omap44xx_iva__l3_instr,
1359};
1360
1361static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
1362 {
1363 .pa_start = 0x5a000000,
1364 .pa_end = 0x5a07ffff,
1365 .flags = ADDR_TYPE_RT
1366 },
1367};
1368
1369/* l3_main_2 -> iva */
1370static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
1371 .master = &omap44xx_l3_main_2_hwmod,
1372 .slave = &omap44xx_iva_hwmod,
1373 .clk = "l3_div_ck",
1374 .addr = omap44xx_iva_addrs,
1375 .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs),
1376 .user = OCP_USER_MPU,
1377};
1378
1379/* iva slave ports */
1380static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = {
1381 &omap44xx_dsp__iva,
1382 &omap44xx_l3_main_2__iva,
1383};
1384
1385/* Pseudo hwmod for reset control purpose only */
1386static struct omap_hwmod omap44xx_iva_seq0_hwmod = {
1387 .name = "iva_seq0",
1388 .class = &omap44xx_iva_hwmod_class,
1389 .flags = HWMOD_INIT_NO_RESET,
1390 .rst_lines = omap44xx_iva_seq0_resets,
1391 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets),
1392 .prcm = {
1393 .omap4 = {
1394 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1395 },
1396 },
1397 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1398};
1399
1400/* Pseudo hwmod for reset control purpose only */
1401static struct omap_hwmod omap44xx_iva_seq1_hwmod = {
1402 .name = "iva_seq1",
1403 .class = &omap44xx_iva_hwmod_class,
1404 .flags = HWMOD_INIT_NO_RESET,
1405 .rst_lines = omap44xx_iva_seq1_resets,
1406 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets),
1407 .prcm = {
1408 .omap4 = {
1409 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1410 },
1411 },
1412 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1413};
1414
1415static struct omap_hwmod omap44xx_iva_hwmod = {
1416 .name = "iva",
1417 .class = &omap44xx_iva_hwmod_class,
1418 .mpu_irqs = omap44xx_iva_irqs,
1419 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs),
1420 .rst_lines = omap44xx_iva_resets,
1421 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1422 .main_clk = "iva_fck",
1423 .prcm = {
1424 .omap4 = {
1425 .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL,
1426 .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL,
1427 },
1428 },
1429 .slaves = omap44xx_iva_slaves,
1430 .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves),
1431 .masters = omap44xx_iva_masters,
1432 .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters),
1433 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1434};
1435
1436/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001437 * 'mpu' class
1438 * mpu sub-system
1439 */
1440
1441static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001442 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001443};
1444
1445/* mpu */
1446static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
1447 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
1448 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
1449 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
1450};
1451
1452/* mpu master ports */
1453static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
1454 &omap44xx_mpu__l3_main_1,
1455 &omap44xx_mpu__l4_abe,
1456 &omap44xx_mpu__dmm,
1457};
1458
1459static struct omap_hwmod omap44xx_mpu_hwmod = {
1460 .name = "mpu",
1461 .class = &omap44xx_mpu_hwmod_class,
1462 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
1463 .mpu_irqs = omap44xx_mpu_irqs,
1464 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
1465 .main_clk = "dpll_mpu_m2_ck",
1466 .prcm = {
1467 .omap4 = {
1468 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
1469 },
1470 },
1471 .masters = omap44xx_mpu_masters,
1472 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
1473 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1474};
1475
Benoit Cousson92b18d12010-09-23 20:02:41 +05301476/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001477 * 'smartreflex' class
1478 * smartreflex module (monitor silicon performance and outputs a measure of
1479 * performance error)
1480 */
1481
1482/* The IP is not compliant to type1 / type2 scheme */
1483static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
1484 .sidle_shift = 24,
1485 .enwkup_shift = 26,
1486};
1487
1488static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
1489 .sysc_offs = 0x0038,
1490 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1491 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1492 SIDLE_SMART_WKUP),
1493 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
1494};
1495
1496static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001497 .name = "smartreflex",
1498 .sysc = &omap44xx_smartreflex_sysc,
1499 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001500};
1501
1502/* smartreflex_core */
1503static struct omap_hwmod omap44xx_smartreflex_core_hwmod;
1504static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
1505 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
1506};
1507
1508static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
1509 {
1510 .pa_start = 0x4a0dd000,
1511 .pa_end = 0x4a0dd03f,
1512 .flags = ADDR_TYPE_RT
1513 },
1514};
1515
1516/* l4_cfg -> smartreflex_core */
1517static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
1518 .master = &omap44xx_l4_cfg_hwmod,
1519 .slave = &omap44xx_smartreflex_core_hwmod,
1520 .clk = "l4_div_ck",
1521 .addr = omap44xx_smartreflex_core_addrs,
1522 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs),
1523 .user = OCP_USER_MPU | OCP_USER_SDMA,
1524};
1525
1526/* smartreflex_core slave ports */
1527static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = {
1528 &omap44xx_l4_cfg__smartreflex_core,
1529};
1530
1531static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
1532 .name = "smartreflex_core",
1533 .class = &omap44xx_smartreflex_hwmod_class,
1534 .mpu_irqs = omap44xx_smartreflex_core_irqs,
1535 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs),
1536 .main_clk = "smartreflex_core_fck",
1537 .vdd_name = "core",
1538 .prcm = {
1539 .omap4 = {
1540 .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL,
1541 },
1542 },
1543 .slaves = omap44xx_smartreflex_core_slaves,
1544 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves),
1545 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1546};
1547
1548/* smartreflex_iva */
1549static struct omap_hwmod omap44xx_smartreflex_iva_hwmod;
1550static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
1551 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
1552};
1553
1554static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
1555 {
1556 .pa_start = 0x4a0db000,
1557 .pa_end = 0x4a0db03f,
1558 .flags = ADDR_TYPE_RT
1559 },
1560};
1561
1562/* l4_cfg -> smartreflex_iva */
1563static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
1564 .master = &omap44xx_l4_cfg_hwmod,
1565 .slave = &omap44xx_smartreflex_iva_hwmod,
1566 .clk = "l4_div_ck",
1567 .addr = omap44xx_smartreflex_iva_addrs,
1568 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs),
1569 .user = OCP_USER_MPU | OCP_USER_SDMA,
1570};
1571
1572/* smartreflex_iva slave ports */
1573static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = {
1574 &omap44xx_l4_cfg__smartreflex_iva,
1575};
1576
1577static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
1578 .name = "smartreflex_iva",
1579 .class = &omap44xx_smartreflex_hwmod_class,
1580 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
1581 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs),
1582 .main_clk = "smartreflex_iva_fck",
1583 .vdd_name = "iva",
1584 .prcm = {
1585 .omap4 = {
1586 .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL,
1587 },
1588 },
1589 .slaves = omap44xx_smartreflex_iva_slaves,
1590 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves),
1591 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1592};
1593
1594/* smartreflex_mpu */
1595static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod;
1596static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
1597 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
1598};
1599
1600static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
1601 {
1602 .pa_start = 0x4a0d9000,
1603 .pa_end = 0x4a0d903f,
1604 .flags = ADDR_TYPE_RT
1605 },
1606};
1607
1608/* l4_cfg -> smartreflex_mpu */
1609static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
1610 .master = &omap44xx_l4_cfg_hwmod,
1611 .slave = &omap44xx_smartreflex_mpu_hwmod,
1612 .clk = "l4_div_ck",
1613 .addr = omap44xx_smartreflex_mpu_addrs,
1614 .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs),
1615 .user = OCP_USER_MPU | OCP_USER_SDMA,
1616};
1617
1618/* smartreflex_mpu slave ports */
1619static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = {
1620 &omap44xx_l4_cfg__smartreflex_mpu,
1621};
1622
1623static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
1624 .name = "smartreflex_mpu",
1625 .class = &omap44xx_smartreflex_hwmod_class,
1626 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
1627 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs),
1628 .main_clk = "smartreflex_mpu_fck",
1629 .vdd_name = "mpu",
1630 .prcm = {
1631 .omap4 = {
1632 .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL,
1633 },
1634 },
1635 .slaves = omap44xx_smartreflex_mpu_slaves,
1636 .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves),
1637 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1638};
1639
1640/*
Benoit Coussond11c2172011-02-02 12:04:36 +00001641 * 'spinlock' class
1642 * spinlock provides hardware assistance for synchronizing the processes
1643 * running on multiple processors
1644 */
1645
1646static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
1647 .rev_offs = 0x0000,
1648 .sysc_offs = 0x0010,
1649 .syss_offs = 0x0014,
1650 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1651 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1652 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1653 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1654 SIDLE_SMART_WKUP),
1655 .sysc_fields = &omap_hwmod_sysc_type1,
1656};
1657
1658static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
1659 .name = "spinlock",
1660 .sysc = &omap44xx_spinlock_sysc,
1661};
1662
1663/* spinlock */
1664static struct omap_hwmod omap44xx_spinlock_hwmod;
1665static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
1666 {
1667 .pa_start = 0x4a0f6000,
1668 .pa_end = 0x4a0f6fff,
1669 .flags = ADDR_TYPE_RT
1670 },
1671};
1672
1673/* l4_cfg -> spinlock */
1674static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
1675 .master = &omap44xx_l4_cfg_hwmod,
1676 .slave = &omap44xx_spinlock_hwmod,
1677 .clk = "l4_div_ck",
1678 .addr = omap44xx_spinlock_addrs,
1679 .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs),
1680 .user = OCP_USER_MPU | OCP_USER_SDMA,
1681};
1682
1683/* spinlock slave ports */
1684static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = {
1685 &omap44xx_l4_cfg__spinlock,
1686};
1687
1688static struct omap_hwmod omap44xx_spinlock_hwmod = {
1689 .name = "spinlock",
1690 .class = &omap44xx_spinlock_hwmod_class,
1691 .prcm = {
1692 .omap4 = {
1693 .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL,
1694 },
1695 },
1696 .slaves = omap44xx_spinlock_slaves,
1697 .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves),
1698 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1699};
1700
1701/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05301702 * 'uart' class
1703 * universal asynchronous receiver/transmitter (uart)
1704 */
1705
1706static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
1707 .rev_offs = 0x0050,
1708 .sysc_offs = 0x0054,
1709 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001710 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001711 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1712 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001713 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1714 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05301715 .sysc_fields = &omap_hwmod_sysc_type1,
1716};
1717
1718static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001719 .name = "uart",
1720 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05301721};
1722
1723/* uart1 */
1724static struct omap_hwmod omap44xx_uart1_hwmod;
1725static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
1726 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
1727};
1728
1729static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
1730 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
1731 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
1732};
1733
1734static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
1735 {
1736 .pa_start = 0x4806a000,
1737 .pa_end = 0x4806a0ff,
1738 .flags = ADDR_TYPE_RT
1739 },
1740};
1741
1742/* l4_per -> uart1 */
1743static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
1744 .master = &omap44xx_l4_per_hwmod,
1745 .slave = &omap44xx_uart1_hwmod,
1746 .clk = "l4_div_ck",
1747 .addr = omap44xx_uart1_addrs,
1748 .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
1749 .user = OCP_USER_MPU | OCP_USER_SDMA,
1750};
1751
1752/* uart1 slave ports */
1753static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
1754 &omap44xx_l4_per__uart1,
1755};
1756
1757static struct omap_hwmod omap44xx_uart1_hwmod = {
1758 .name = "uart1",
1759 .class = &omap44xx_uart_hwmod_class,
1760 .mpu_irqs = omap44xx_uart1_irqs,
1761 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
1762 .sdma_reqs = omap44xx_uart1_sdma_reqs,
1763 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
1764 .main_clk = "uart1_fck",
1765 .prcm = {
1766 .omap4 = {
1767 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
1768 },
1769 },
1770 .slaves = omap44xx_uart1_slaves,
1771 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
1772 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1773};
1774
1775/* uart2 */
1776static struct omap_hwmod omap44xx_uart2_hwmod;
1777static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
1778 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
1779};
1780
1781static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
1782 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
1783 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
1784};
1785
1786static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
1787 {
1788 .pa_start = 0x4806c000,
1789 .pa_end = 0x4806c0ff,
1790 .flags = ADDR_TYPE_RT
1791 },
1792};
1793
1794/* l4_per -> uart2 */
1795static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
1796 .master = &omap44xx_l4_per_hwmod,
1797 .slave = &omap44xx_uart2_hwmod,
1798 .clk = "l4_div_ck",
1799 .addr = omap44xx_uart2_addrs,
1800 .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
1801 .user = OCP_USER_MPU | OCP_USER_SDMA,
1802};
1803
1804/* uart2 slave ports */
1805static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
1806 &omap44xx_l4_per__uart2,
1807};
1808
1809static struct omap_hwmod omap44xx_uart2_hwmod = {
1810 .name = "uart2",
1811 .class = &omap44xx_uart_hwmod_class,
1812 .mpu_irqs = omap44xx_uart2_irqs,
1813 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
1814 .sdma_reqs = omap44xx_uart2_sdma_reqs,
1815 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
1816 .main_clk = "uart2_fck",
1817 .prcm = {
1818 .omap4 = {
1819 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
1820 },
1821 },
1822 .slaves = omap44xx_uart2_slaves,
1823 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
1824 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1825};
1826
1827/* uart3 */
1828static struct omap_hwmod omap44xx_uart3_hwmod;
1829static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
1830 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
1831};
1832
1833static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
1834 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
1835 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
1836};
1837
1838static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
1839 {
1840 .pa_start = 0x48020000,
1841 .pa_end = 0x480200ff,
1842 .flags = ADDR_TYPE_RT
1843 },
1844};
1845
1846/* l4_per -> uart3 */
1847static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
1848 .master = &omap44xx_l4_per_hwmod,
1849 .slave = &omap44xx_uart3_hwmod,
1850 .clk = "l4_div_ck",
1851 .addr = omap44xx_uart3_addrs,
1852 .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
1853 .user = OCP_USER_MPU | OCP_USER_SDMA,
1854};
1855
1856/* uart3 slave ports */
1857static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
1858 &omap44xx_l4_per__uart3,
1859};
1860
1861static struct omap_hwmod omap44xx_uart3_hwmod = {
1862 .name = "uart3",
1863 .class = &omap44xx_uart_hwmod_class,
1864 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
1865 .mpu_irqs = omap44xx_uart3_irqs,
1866 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
1867 .sdma_reqs = omap44xx_uart3_sdma_reqs,
1868 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
1869 .main_clk = "uart3_fck",
1870 .prcm = {
1871 .omap4 = {
1872 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
1873 },
1874 },
1875 .slaves = omap44xx_uart3_slaves,
1876 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
1877 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1878};
1879
1880/* uart4 */
1881static struct omap_hwmod omap44xx_uart4_hwmod;
1882static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
1883 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
1884};
1885
1886static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
1887 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
1888 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
1889};
1890
1891static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
1892 {
1893 .pa_start = 0x4806e000,
1894 .pa_end = 0x4806e0ff,
1895 .flags = ADDR_TYPE_RT
1896 },
1897};
1898
1899/* l4_per -> uart4 */
1900static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
1901 .master = &omap44xx_l4_per_hwmod,
1902 .slave = &omap44xx_uart4_hwmod,
1903 .clk = "l4_div_ck",
1904 .addr = omap44xx_uart4_addrs,
1905 .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
1906 .user = OCP_USER_MPU | OCP_USER_SDMA,
1907};
1908
1909/* uart4 slave ports */
1910static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
1911 &omap44xx_l4_per__uart4,
1912};
1913
1914static struct omap_hwmod omap44xx_uart4_hwmod = {
1915 .name = "uart4",
1916 .class = &omap44xx_uart_hwmod_class,
1917 .mpu_irqs = omap44xx_uart4_irqs,
1918 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
1919 .sdma_reqs = omap44xx_uart4_sdma_reqs,
1920 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
1921 .main_clk = "uart4_fck",
1922 .prcm = {
1923 .omap4 = {
1924 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
1925 },
1926 },
1927 .slaves = omap44xx_uart4_slaves,
1928 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
1929 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1930};
1931
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001932/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001933 * 'wd_timer' class
1934 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
1935 * overflow condition
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001936 */
1937
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001938static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001939 .rev_offs = 0x0000,
1940 .sysc_offs = 0x0010,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001941 .syss_offs = 0x0014,
1942 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001943 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001944 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1945 SIDLE_SMART_WKUP),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001946 .sysc_fields = &omap_hwmod_sysc_type1,
1947};
1948
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001949static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
1950 .name = "wd_timer",
1951 .sysc = &omap44xx_wd_timer_sysc,
Benoit Coussonfe134712010-12-23 22:30:32 +00001952 .pre_shutdown = &omap2_wd_timer_disable,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001953};
1954
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001955/* wd_timer2 */
1956static struct omap_hwmod omap44xx_wd_timer2_hwmod;
1957static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
1958 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001959};
1960
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001961static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001962 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001963 .pa_start = 0x4a314000,
1964 .pa_end = 0x4a31407f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001965 .flags = ADDR_TYPE_RT
1966 },
1967};
1968
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001969/* l4_wkup -> wd_timer2 */
1970static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001971 .master = &omap44xx_l4_wkup_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001972 .slave = &omap44xx_wd_timer2_hwmod,
1973 .clk = "l4_wkup_clk_mux_ck",
1974 .addr = omap44xx_wd_timer2_addrs,
1975 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001976 .user = OCP_USER_MPU | OCP_USER_SDMA,
1977};
1978
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001979/* wd_timer2 slave ports */
1980static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = {
1981 &omap44xx_l4_wkup__wd_timer2,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001982};
1983
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001984static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
1985 .name = "wd_timer2",
1986 .class = &omap44xx_wd_timer_hwmod_class,
1987 .mpu_irqs = omap44xx_wd_timer2_irqs,
1988 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs),
1989 .main_clk = "wd_timer2_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001990 .prcm = {
1991 .omap4 = {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001992 .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001993 },
1994 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001995 .slaves = omap44xx_wd_timer2_slaves,
1996 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08001997 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
1998};
1999
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002000/* wd_timer3 */
2001static struct omap_hwmod omap44xx_wd_timer3_hwmod;
2002static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
2003 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002004};
2005
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002006static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002007 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002008 .pa_start = 0x40130000,
2009 .pa_end = 0x4013007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002010 .flags = ADDR_TYPE_RT
2011 },
2012};
2013
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002014/* l4_abe -> wd_timer3 */
2015static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
2016 .master = &omap44xx_l4_abe_hwmod,
2017 .slave = &omap44xx_wd_timer3_hwmod,
2018 .clk = "ocp_abe_iclk",
2019 .addr = omap44xx_wd_timer3_addrs,
2020 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs),
2021 .user = OCP_USER_MPU,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002022};
2023
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002024static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002025 {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002026 .pa_start = 0x49030000,
2027 .pa_end = 0x4903007f,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002028 .flags = ADDR_TYPE_RT
2029 },
2030};
2031
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002032/* l4_abe -> wd_timer3 (dma) */
2033static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
2034 .master = &omap44xx_l4_abe_hwmod,
2035 .slave = &omap44xx_wd_timer3_hwmod,
2036 .clk = "ocp_abe_iclk",
2037 .addr = omap44xx_wd_timer3_dma_addrs,
2038 .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs),
2039 .user = OCP_USER_SDMA,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002040};
2041
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002042/* wd_timer3 slave ports */
2043static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = {
2044 &omap44xx_l4_abe__wd_timer3,
2045 &omap44xx_l4_abe__wd_timer3_dma,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002046};
2047
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002048static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
2049 .name = "wd_timer3",
2050 .class = &omap44xx_wd_timer_hwmod_class,
2051 .mpu_irqs = omap44xx_wd_timer3_irqs,
2052 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs),
2053 .main_clk = "wd_timer3_fck",
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002054 .prcm = {
2055 .omap4 = {
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002056 .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL,
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002057 },
2058 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002059 .slaves = omap44xx_wd_timer3_slaves,
2060 .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves),
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002061 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
2062};
2063
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002064static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002065
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002066 /* dmm class */
2067 &omap44xx_dmm_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002068
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002069 /* emif_fw class */
2070 &omap44xx_emif_fw_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002071
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002072 /* l3 class */
2073 &omap44xx_l3_instr_hwmod,
2074 &omap44xx_l3_main_1_hwmod,
2075 &omap44xx_l3_main_2_hwmod,
2076 &omap44xx_l3_main_3_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002077
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002078 /* l4 class */
2079 &omap44xx_l4_abe_hwmod,
2080 &omap44xx_l4_cfg_hwmod,
2081 &omap44xx_l4_per_hwmod,
2082 &omap44xx_l4_wkup_hwmod,
Benoit Cousson531ce0d2010-12-20 18:27:19 -08002083
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002084 /* mpu_bus class */
2085 &omap44xx_mpu_private_hwmod,
2086
Benoit Coussond7cf5f32010-12-23 22:30:31 +00002087 /* dma class */
2088 &omap44xx_dma_system_hwmod,
2089
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002090 /* dsp class */
2091 &omap44xx_dsp_hwmod,
2092 &omap44xx_dsp_c0_hwmod,
2093
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002094 /* gpio class */
2095 &omap44xx_gpio1_hwmod,
2096 &omap44xx_gpio2_hwmod,
2097 &omap44xx_gpio3_hwmod,
2098 &omap44xx_gpio4_hwmod,
2099 &omap44xx_gpio5_hwmod,
2100 &omap44xx_gpio6_hwmod,
2101
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002102 /* i2c class */
2103 &omap44xx_i2c1_hwmod,
2104 &omap44xx_i2c2_hwmod,
2105 &omap44xx_i2c3_hwmod,
2106 &omap44xx_i2c4_hwmod,
2107
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07002108 /* iva class */
2109 &omap44xx_iva_hwmod,
2110 &omap44xx_iva_seq0_hwmod,
2111 &omap44xx_iva_seq1_hwmod,
2112
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002113 /* mpu class */
2114 &omap44xx_mpu_hwmod,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302115
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002116 /* smartreflex class */
2117 &omap44xx_smartreflex_core_hwmod,
2118 &omap44xx_smartreflex_iva_hwmod,
2119 &omap44xx_smartreflex_mpu_hwmod,
2120
Benoit Coussond11c2172011-02-02 12:04:36 +00002121 /* spinlock class */
2122 &omap44xx_spinlock_hwmod,
2123
Benoit Coussondb12ba52010-09-27 20:19:19 +05302124 /* uart class */
2125 &omap44xx_uart1_hwmod,
2126 &omap44xx_uart2_hwmod,
2127 &omap44xx_uart3_hwmod,
2128 &omap44xx_uart4_hwmod,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002129
2130 /* wd_timer class */
2131 &omap44xx_wd_timer2_hwmod,
2132 &omap44xx_wd_timer3_hwmod,
2133
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002134 NULL,
2135};
2136
2137int __init omap44xx_hwmod_init(void)
2138{
2139 return omap_hwmod_init(omap44xx_hwmods);
2140}
2141