OMAP4: UART: Add uart1-4 hwmods data for omap4
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / arm / mach-omap2 / omap_hwmod_44xx_data.c
blobafcbd483a6c462ccee71c17bdbf1b4b502c32eee
1 /*
2 * Hardware modules present on the OMAP44xx chips
4 * Copyright (C) 2009-2010 Texas Instruments, Inc.
5 * Copyright (C) 2009-2010 Nokia Corporation
7 * Paul Walmsley
8 * Benoit Cousson
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.
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.
21 #include <linux/io.h>
23 #include <plat/omap_hwmod.h>
24 #include <plat/cpu.h>
26 #include "omap_hwmod_common_data.h"
28 #include "cm.h"
29 #include "prm-regbits-44xx.h"
31 /* Base offset for all OMAP4 interrupts external to MPUSS */
32 #define OMAP44XX_IRQ_GIC_START 32
34 /* Base offset for all OMAP4 dma requests */
35 #define OMAP44XX_DMA_REQ_START 1
37 /* Backward references (IPs with Bus Master capability) */
38 static struct omap_hwmod omap44xx_dmm_hwmod;
39 static struct omap_hwmod omap44xx_emif_fw_hwmod;
40 static struct omap_hwmod omap44xx_l3_instr_hwmod;
41 static struct omap_hwmod omap44xx_l3_main_1_hwmod;
42 static struct omap_hwmod omap44xx_l3_main_2_hwmod;
43 static struct omap_hwmod omap44xx_l3_main_3_hwmod;
44 static struct omap_hwmod omap44xx_l4_abe_hwmod;
45 static struct omap_hwmod omap44xx_l4_cfg_hwmod;
46 static struct omap_hwmod omap44xx_l4_per_hwmod;
47 static struct omap_hwmod omap44xx_l4_wkup_hwmod;
48 static struct omap_hwmod omap44xx_mpu_hwmod;
49 static struct omap_hwmod omap44xx_mpu_private_hwmod;
52 * Interconnects omap_hwmod structures
53 * hwmods that compose the global OMAP interconnect
57 * 'dmm' class
58 * instance(s): dmm
60 static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
61 .name = "dmm",
64 /* dmm interface data */
65 /* l3_main_1 -> dmm */
66 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
67 .master = &omap44xx_l3_main_1_hwmod,
68 .slave = &omap44xx_dmm_hwmod,
69 .clk = "l3_div_ck",
70 .user = OCP_USER_MPU | OCP_USER_SDMA,
73 /* mpu -> dmm */
74 static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
75 .master = &omap44xx_mpu_hwmod,
76 .slave = &omap44xx_dmm_hwmod,
77 .clk = "l3_div_ck",
78 .user = OCP_USER_MPU | OCP_USER_SDMA,
81 /* dmm slave ports */
82 static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = {
83 &omap44xx_l3_main_1__dmm,
84 &omap44xx_mpu__dmm,
87 static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
88 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
91 static struct omap_hwmod omap44xx_dmm_hwmod = {
92 .name = "dmm",
93 .class = &omap44xx_dmm_hwmod_class,
94 .slaves = omap44xx_dmm_slaves,
95 .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves),
96 .mpu_irqs = omap44xx_dmm_irqs,
97 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs),
98 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
102 * 'emif_fw' class
103 * instance(s): emif_fw
105 static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
106 .name = "emif_fw",
109 /* emif_fw interface data */
110 /* dmm -> emif_fw */
111 static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
112 .master = &omap44xx_dmm_hwmod,
113 .slave = &omap44xx_emif_fw_hwmod,
114 .clk = "l3_div_ck",
115 .user = OCP_USER_MPU | OCP_USER_SDMA,
118 /* l4_cfg -> emif_fw */
119 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
120 .master = &omap44xx_l4_cfg_hwmod,
121 .slave = &omap44xx_emif_fw_hwmod,
122 .clk = "l4_div_ck",
123 .user = OCP_USER_MPU | OCP_USER_SDMA,
126 /* emif_fw slave ports */
127 static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = {
128 &omap44xx_dmm__emif_fw,
129 &omap44xx_l4_cfg__emif_fw,
132 static struct omap_hwmod omap44xx_emif_fw_hwmod = {
133 .name = "emif_fw",
134 .class = &omap44xx_emif_fw_hwmod_class,
135 .slaves = omap44xx_emif_fw_slaves,
136 .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves),
137 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
141 * 'l3' class
142 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
144 static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
145 .name = "l3",
148 /* l3_instr interface data */
149 /* l3_main_3 -> l3_instr */
150 static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
151 .master = &omap44xx_l3_main_3_hwmod,
152 .slave = &omap44xx_l3_instr_hwmod,
153 .clk = "l3_div_ck",
154 .user = OCP_USER_MPU | OCP_USER_SDMA,
157 /* l3_instr slave ports */
158 static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = {
159 &omap44xx_l3_main_3__l3_instr,
162 static struct omap_hwmod omap44xx_l3_instr_hwmod = {
163 .name = "l3_instr",
164 .class = &omap44xx_l3_hwmod_class,
165 .slaves = omap44xx_l3_instr_slaves,
166 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves),
167 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
170 /* l3_main_2 -> l3_main_1 */
171 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
172 .master = &omap44xx_l3_main_2_hwmod,
173 .slave = &omap44xx_l3_main_1_hwmod,
174 .clk = "l3_div_ck",
175 .user = OCP_USER_MPU | OCP_USER_SDMA,
178 /* l4_cfg -> l3_main_1 */
179 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
180 .master = &omap44xx_l4_cfg_hwmod,
181 .slave = &omap44xx_l3_main_1_hwmod,
182 .clk = "l4_div_ck",
183 .user = OCP_USER_MPU | OCP_USER_SDMA,
186 /* mpu -> l3_main_1 */
187 static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
188 .master = &omap44xx_mpu_hwmod,
189 .slave = &omap44xx_l3_main_1_hwmod,
190 .clk = "l3_div_ck",
191 .user = OCP_USER_MPU | OCP_USER_SDMA,
194 /* l3_main_1 slave ports */
195 static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = {
196 &omap44xx_l3_main_2__l3_main_1,
197 &omap44xx_l4_cfg__l3_main_1,
198 &omap44xx_mpu__l3_main_1,
201 static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
202 .name = "l3_main_1",
203 .class = &omap44xx_l3_hwmod_class,
204 .slaves = omap44xx_l3_main_1_slaves,
205 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves),
206 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
209 /* l3_main_2 interface data */
210 /* l3_main_1 -> l3_main_2 */
211 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
212 .master = &omap44xx_l3_main_1_hwmod,
213 .slave = &omap44xx_l3_main_2_hwmod,
214 .clk = "l3_div_ck",
215 .user = OCP_USER_MPU | OCP_USER_SDMA,
218 /* l4_cfg -> l3_main_2 */
219 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
220 .master = &omap44xx_l4_cfg_hwmod,
221 .slave = &omap44xx_l3_main_2_hwmod,
222 .clk = "l4_div_ck",
223 .user = OCP_USER_MPU | OCP_USER_SDMA,
226 /* l3_main_2 slave ports */
227 static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = {
228 &omap44xx_l3_main_1__l3_main_2,
229 &omap44xx_l4_cfg__l3_main_2,
232 static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
233 .name = "l3_main_2",
234 .class = &omap44xx_l3_hwmod_class,
235 .slaves = omap44xx_l3_main_2_slaves,
236 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves),
237 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
240 /* l3_main_3 interface data */
241 /* l3_main_1 -> l3_main_3 */
242 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
243 .master = &omap44xx_l3_main_1_hwmod,
244 .slave = &omap44xx_l3_main_3_hwmod,
245 .clk = "l3_div_ck",
246 .user = OCP_USER_MPU | OCP_USER_SDMA,
249 /* l3_main_2 -> l3_main_3 */
250 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
251 .master = &omap44xx_l3_main_2_hwmod,
252 .slave = &omap44xx_l3_main_3_hwmod,
253 .clk = "l3_div_ck",
254 .user = OCP_USER_MPU | OCP_USER_SDMA,
257 /* l4_cfg -> l3_main_3 */
258 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
259 .master = &omap44xx_l4_cfg_hwmod,
260 .slave = &omap44xx_l3_main_3_hwmod,
261 .clk = "l4_div_ck",
262 .user = OCP_USER_MPU | OCP_USER_SDMA,
265 /* l3_main_3 slave ports */
266 static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = {
267 &omap44xx_l3_main_1__l3_main_3,
268 &omap44xx_l3_main_2__l3_main_3,
269 &omap44xx_l4_cfg__l3_main_3,
272 static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
273 .name = "l3_main_3",
274 .class = &omap44xx_l3_hwmod_class,
275 .slaves = omap44xx_l3_main_3_slaves,
276 .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves),
277 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
281 * 'l4' class
282 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
284 static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
285 .name = "l4",
288 /* l4_abe interface data */
289 /* l3_main_1 -> l4_abe */
290 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
291 .master = &omap44xx_l3_main_1_hwmod,
292 .slave = &omap44xx_l4_abe_hwmod,
293 .clk = "l3_div_ck",
294 .user = OCP_USER_MPU | OCP_USER_SDMA,
297 /* mpu -> l4_abe */
298 static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
299 .master = &omap44xx_mpu_hwmod,
300 .slave = &omap44xx_l4_abe_hwmod,
301 .clk = "ocp_abe_iclk",
302 .user = OCP_USER_MPU | OCP_USER_SDMA,
305 /* l4_abe slave ports */
306 static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = {
307 &omap44xx_l3_main_1__l4_abe,
308 &omap44xx_mpu__l4_abe,
311 static struct omap_hwmod omap44xx_l4_abe_hwmod = {
312 .name = "l4_abe",
313 .class = &omap44xx_l4_hwmod_class,
314 .slaves = omap44xx_l4_abe_slaves,
315 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves),
316 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
319 /* l4_cfg interface data */
320 /* l3_main_1 -> l4_cfg */
321 static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
322 .master = &omap44xx_l3_main_1_hwmod,
323 .slave = &omap44xx_l4_cfg_hwmod,
324 .clk = "l3_div_ck",
325 .user = OCP_USER_MPU | OCP_USER_SDMA,
328 /* l4_cfg slave ports */
329 static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = {
330 &omap44xx_l3_main_1__l4_cfg,
333 static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
334 .name = "l4_cfg",
335 .class = &omap44xx_l4_hwmod_class,
336 .slaves = omap44xx_l4_cfg_slaves,
337 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves),
338 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
341 /* l4_per interface data */
342 /* l3_main_2 -> l4_per */
343 static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
344 .master = &omap44xx_l3_main_2_hwmod,
345 .slave = &omap44xx_l4_per_hwmod,
346 .clk = "l3_div_ck",
347 .user = OCP_USER_MPU | OCP_USER_SDMA,
350 /* l4_per slave ports */
351 static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = {
352 &omap44xx_l3_main_2__l4_per,
355 static struct omap_hwmod omap44xx_l4_per_hwmod = {
356 .name = "l4_per",
357 .class = &omap44xx_l4_hwmod_class,
358 .slaves = omap44xx_l4_per_slaves,
359 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves),
360 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
363 /* l4_wkup interface data */
364 /* l4_cfg -> l4_wkup */
365 static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
366 .master = &omap44xx_l4_cfg_hwmod,
367 .slave = &omap44xx_l4_wkup_hwmod,
368 .clk = "l4_div_ck",
369 .user = OCP_USER_MPU | OCP_USER_SDMA,
372 /* l4_wkup slave ports */
373 static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = {
374 &omap44xx_l4_cfg__l4_wkup,
377 static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
378 .name = "l4_wkup",
379 .class = &omap44xx_l4_hwmod_class,
380 .slaves = omap44xx_l4_wkup_slaves,
381 .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves),
382 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
386 * 'mpu_bus' class
387 * instance(s): mpu_private
389 static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
390 .name = "mpu_bus",
393 /* mpu_private interface data */
394 /* mpu -> mpu_private */
395 static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
396 .master = &omap44xx_mpu_hwmod,
397 .slave = &omap44xx_mpu_private_hwmod,
398 .clk = "l3_div_ck",
399 .user = OCP_USER_MPU | OCP_USER_SDMA,
402 /* mpu_private slave ports */
403 static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = {
404 &omap44xx_mpu__mpu_private,
407 static struct omap_hwmod omap44xx_mpu_private_hwmod = {
408 .name = "mpu_private",
409 .class = &omap44xx_mpu_bus_hwmod_class,
410 .slaves = omap44xx_mpu_private_slaves,
411 .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves),
412 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
416 * 'mpu' class
417 * mpu sub-system
420 static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
421 .name = "mpu",
424 /* mpu */
425 static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
426 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
427 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
428 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
431 /* mpu master ports */
432 static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = {
433 &omap44xx_mpu__l3_main_1,
434 &omap44xx_mpu__l4_abe,
435 &omap44xx_mpu__dmm,
438 static struct omap_hwmod omap44xx_mpu_hwmod = {
439 .name = "mpu",
440 .class = &omap44xx_mpu_hwmod_class,
441 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
442 .mpu_irqs = omap44xx_mpu_irqs,
443 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs),
444 .main_clk = "dpll_mpu_m2_ck",
445 .prcm = {
446 .omap4 = {
447 .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL,
450 .masters = omap44xx_mpu_masters,
451 .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters),
452 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
456 * 'uart' class
457 * universal asynchronous receiver/transmitter (uart)
460 static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
461 .rev_offs = 0x0050,
462 .sysc_offs = 0x0054,
463 .syss_offs = 0x0058,
464 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
465 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
466 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
467 .sysc_fields = &omap_hwmod_sysc_type1,
470 static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
471 .name = "uart",
472 .sysc = &omap44xx_uart_sysc,
475 /* uart1 */
476 static struct omap_hwmod omap44xx_uart1_hwmod;
477 static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
478 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
481 static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
482 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
483 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
486 static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
488 .pa_start = 0x4806a000,
489 .pa_end = 0x4806a0ff,
490 .flags = ADDR_TYPE_RT
494 /* l4_per -> uart1 */
495 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
496 .master = &omap44xx_l4_per_hwmod,
497 .slave = &omap44xx_uart1_hwmod,
498 .clk = "l4_div_ck",
499 .addr = omap44xx_uart1_addrs,
500 .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs),
501 .user = OCP_USER_MPU | OCP_USER_SDMA,
504 /* uart1 slave ports */
505 static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = {
506 &omap44xx_l4_per__uart1,
509 static struct omap_hwmod omap44xx_uart1_hwmod = {
510 .name = "uart1",
511 .class = &omap44xx_uart_hwmod_class,
512 .mpu_irqs = omap44xx_uart1_irqs,
513 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs),
514 .sdma_reqs = omap44xx_uart1_sdma_reqs,
515 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs),
516 .main_clk = "uart1_fck",
517 .prcm = {
518 .omap4 = {
519 .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL,
522 .slaves = omap44xx_uart1_slaves,
523 .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves),
524 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
527 /* uart2 */
528 static struct omap_hwmod omap44xx_uart2_hwmod;
529 static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
530 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
533 static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
534 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
535 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
538 static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
540 .pa_start = 0x4806c000,
541 .pa_end = 0x4806c0ff,
542 .flags = ADDR_TYPE_RT
546 /* l4_per -> uart2 */
547 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
548 .master = &omap44xx_l4_per_hwmod,
549 .slave = &omap44xx_uart2_hwmod,
550 .clk = "l4_div_ck",
551 .addr = omap44xx_uart2_addrs,
552 .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs),
553 .user = OCP_USER_MPU | OCP_USER_SDMA,
556 /* uart2 slave ports */
557 static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = {
558 &omap44xx_l4_per__uart2,
561 static struct omap_hwmod omap44xx_uart2_hwmod = {
562 .name = "uart2",
563 .class = &omap44xx_uart_hwmod_class,
564 .mpu_irqs = omap44xx_uart2_irqs,
565 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs),
566 .sdma_reqs = omap44xx_uart2_sdma_reqs,
567 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs),
568 .main_clk = "uart2_fck",
569 .prcm = {
570 .omap4 = {
571 .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL,
574 .slaves = omap44xx_uart2_slaves,
575 .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves),
576 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
579 /* uart3 */
580 static struct omap_hwmod omap44xx_uart3_hwmod;
581 static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
582 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
585 static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
586 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
587 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
590 static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
592 .pa_start = 0x48020000,
593 .pa_end = 0x480200ff,
594 .flags = ADDR_TYPE_RT
598 /* l4_per -> uart3 */
599 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
600 .master = &omap44xx_l4_per_hwmod,
601 .slave = &omap44xx_uart3_hwmod,
602 .clk = "l4_div_ck",
603 .addr = omap44xx_uart3_addrs,
604 .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs),
605 .user = OCP_USER_MPU | OCP_USER_SDMA,
608 /* uart3 slave ports */
609 static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = {
610 &omap44xx_l4_per__uart3,
613 static struct omap_hwmod omap44xx_uart3_hwmod = {
614 .name = "uart3",
615 .class = &omap44xx_uart_hwmod_class,
616 .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET),
617 .mpu_irqs = omap44xx_uart3_irqs,
618 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs),
619 .sdma_reqs = omap44xx_uart3_sdma_reqs,
620 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs),
621 .main_clk = "uart3_fck",
622 .prcm = {
623 .omap4 = {
624 .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL,
627 .slaves = omap44xx_uart3_slaves,
628 .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves),
629 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
632 /* uart4 */
633 static struct omap_hwmod omap44xx_uart4_hwmod;
634 static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
635 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
638 static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
639 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
640 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
643 static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
645 .pa_start = 0x4806e000,
646 .pa_end = 0x4806e0ff,
647 .flags = ADDR_TYPE_RT
651 /* l4_per -> uart4 */
652 static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
653 .master = &omap44xx_l4_per_hwmod,
654 .slave = &omap44xx_uart4_hwmod,
655 .clk = "l4_div_ck",
656 .addr = omap44xx_uart4_addrs,
657 .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs),
658 .user = OCP_USER_MPU | OCP_USER_SDMA,
661 /* uart4 slave ports */
662 static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = {
663 &omap44xx_l4_per__uart4,
666 static struct omap_hwmod omap44xx_uart4_hwmod = {
667 .name = "uart4",
668 .class = &omap44xx_uart_hwmod_class,
669 .mpu_irqs = omap44xx_uart4_irqs,
670 .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs),
671 .sdma_reqs = omap44xx_uart4_sdma_reqs,
672 .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs),
673 .main_clk = "uart4_fck",
674 .prcm = {
675 .omap4 = {
676 .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL,
679 .slaves = omap44xx_uart4_slaves,
680 .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves),
681 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430),
684 static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
685 /* dmm class */
686 &omap44xx_dmm_hwmod,
687 /* emif_fw class */
688 &omap44xx_emif_fw_hwmod,
689 /* l3 class */
690 &omap44xx_l3_instr_hwmod,
691 &omap44xx_l3_main_1_hwmod,
692 &omap44xx_l3_main_2_hwmod,
693 &omap44xx_l3_main_3_hwmod,
694 /* l4 class */
695 &omap44xx_l4_abe_hwmod,
696 &omap44xx_l4_cfg_hwmod,
697 &omap44xx_l4_per_hwmod,
698 &omap44xx_l4_wkup_hwmod,
699 /* mpu_bus class */
700 &omap44xx_mpu_private_hwmod,
702 /* mpu class */
703 &omap44xx_mpu_hwmod,
705 /* uart class */
706 &omap44xx_uart1_hwmod,
707 &omap44xx_uart2_hwmod,
708 &omap44xx_uart3_hwmod,
709 &omap44xx_uart4_hwmod,
710 NULL,
713 int __init omap44xx_hwmod_init(void)
715 return omap_hwmod_init(omap44xx_hwmods);