2 * omap_hwmod_2420_data.c - hardware modules present on the OMAP2420 chips
4 * Copyright (C) 2009-2010 Nokia Corporation
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * XXX handle crossbar/shared link difference for L3?
12 * XXX these should be marked initdata for multi-OMAP kernels
14 #include <plat/omap_hwmod.h>
15 #include <mach/irqs.h>
19 #include "omap_hwmod_common_data.h"
21 #include "prm-regbits-24xx.h"
24 * OMAP2420 hardware module integration data
26 * ALl of the data in this section should be autogeneratable from the
27 * TI hardware database or other technical documentation. Data that
28 * is driver-specific or driver-kernel integration-specific belongs
32 static struct omap_hwmod omap2420_mpu_hwmod;
33 static struct omap_hwmod omap2420_l3_hwmod;
34 static struct omap_hwmod omap2420_l4_core_hwmod;
36 /* L3 -> L4_CORE interface */
37 static struct omap_hwmod_ocp_if omap2420_l3__l4_core = {
38 .master = &omap2420_l3_hwmod,
39 .slave = &omap2420_l4_core_hwmod,
40 .user = OCP_USER_MPU | OCP_USER_SDMA,
43 /* MPU -> L3 interface */
44 static struct omap_hwmod_ocp_if omap2420_mpu__l3 = {
45 .master = &omap2420_mpu_hwmod,
46 .slave = &omap2420_l3_hwmod,
50 /* Slave interfaces on the L3 interconnect */
51 static struct omap_hwmod_ocp_if *omap2420_l3_slaves[] = {
55 /* Master interfaces on the L3 interconnect */
56 static struct omap_hwmod_ocp_if *omap2420_l3_masters[] = {
57 &omap2420_l3__l4_core,
61 static struct omap_hwmod omap2420_l3_hwmod = {
63 .class = &l3_hwmod_class,
64 .masters = omap2420_l3_masters,
65 .masters_cnt = ARRAY_SIZE(omap2420_l3_masters),
66 .slaves = omap2420_l3_slaves,
67 .slaves_cnt = ARRAY_SIZE(omap2420_l3_slaves),
68 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
69 .flags = HWMOD_NO_IDLEST,
72 static struct omap_hwmod omap2420_l4_wkup_hwmod;
74 /* L4_CORE -> L4_WKUP interface */
75 static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup = {
76 .master = &omap2420_l4_core_hwmod,
77 .slave = &omap2420_l4_wkup_hwmod,
78 .user = OCP_USER_MPU | OCP_USER_SDMA,
81 /* Slave interfaces on the L4_CORE interconnect */
82 static struct omap_hwmod_ocp_if *omap2420_l4_core_slaves[] = {
83 &omap2420_l3__l4_core,
86 /* Master interfaces on the L4_CORE interconnect */
87 static struct omap_hwmod_ocp_if *omap2420_l4_core_masters[] = {
88 &omap2420_l4_core__l4_wkup,
92 static struct omap_hwmod omap2420_l4_core_hwmod = {
94 .class = &l4_hwmod_class,
95 .masters = omap2420_l4_core_masters,
96 .masters_cnt = ARRAY_SIZE(omap2420_l4_core_masters),
97 .slaves = omap2420_l4_core_slaves,
98 .slaves_cnt = ARRAY_SIZE(omap2420_l4_core_slaves),
99 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
100 .flags = HWMOD_NO_IDLEST,
103 /* Slave interfaces on the L4_WKUP interconnect */
104 static struct omap_hwmod_ocp_if *omap2420_l4_wkup_slaves[] = {
105 &omap2420_l4_core__l4_wkup,
108 /* Master interfaces on the L4_WKUP interconnect */
109 static struct omap_hwmod_ocp_if *omap2420_l4_wkup_masters[] = {
113 static struct omap_hwmod omap2420_l4_wkup_hwmod = {
115 .class = &l4_hwmod_class,
116 .masters = omap2420_l4_wkup_masters,
117 .masters_cnt = ARRAY_SIZE(omap2420_l4_wkup_masters),
118 .slaves = omap2420_l4_wkup_slaves,
119 .slaves_cnt = ARRAY_SIZE(omap2420_l4_wkup_slaves),
120 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
121 .flags = HWMOD_NO_IDLEST,
124 /* Master interfaces on the MPU device */
125 static struct omap_hwmod_ocp_if *omap2420_mpu_masters[] = {
130 static struct omap_hwmod omap2420_mpu_hwmod = {
132 .class = &mpu_hwmod_class,
133 .main_clk = "mpu_ck",
134 .masters = omap2420_mpu_masters,
135 .masters_cnt = ARRAY_SIZE(omap2420_mpu_masters),
136 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
139 static __initdata struct omap_hwmod *omap2420_hwmods[] = {
141 &omap2420_l4_core_hwmod,
142 &omap2420_l4_wkup_hwmod,
147 int __init omap2420_hwmod_init(void)
149 return omap_hwmod_init(omap2420_hwmods);