2 * omap_hwmod_34xx.h - hardware modules present on the OMAP34xx chips
4 * Copyright (C) 2009 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.
12 #ifndef __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_OMAP_HWMOD34XX_H
13 #define __ARCH_ARM_PLAT_OMAP_INCLUDE_MACH_OMAP_HWMOD34XX_H
15 #ifdef CONFIG_ARCH_OMAP34XX
17 #include <mach/omap_hwmod.h>
18 #include <mach/irqs.h>
22 #include "prm-regbits-34xx.h"
24 static struct omap_hwmod omap34xx_mpu_hwmod
;
25 static struct omap_hwmod omap34xx_l3_hwmod
;
26 static struct omap_hwmod omap34xx_l4_core_hwmod
;
27 static struct omap_hwmod omap34xx_l4_per_hwmod
;
29 /* L3 -> L4_CORE interface */
30 static struct omap_hwmod_ocp_if omap34xx_l3__l4_core
= {
31 .master
= &omap34xx_l3_hwmod
,
32 .slave
= &omap34xx_l4_core_hwmod
,
33 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
36 /* L3 -> L4_PER interface */
37 static struct omap_hwmod_ocp_if omap34xx_l3__l4_per
= {
38 .master
= &omap34xx_l3_hwmod
,
39 .slave
= &omap34xx_l4_per_hwmod
,
40 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
43 /* MPU -> L3 interface */
44 static struct omap_hwmod_ocp_if omap34xx_mpu__l3
= {
45 .master
= &omap34xx_mpu_hwmod
,
46 .slave
= &omap34xx_l3_hwmod
,
50 /* Slave interfaces on the L3 interconnect */
51 static struct omap_hwmod_ocp_if
*omap34xx_l3_slaves
[] = {
55 /* Master interfaces on the L3 interconnect */
56 static struct omap_hwmod_ocp_if
*omap34xx_l3_masters
[] = {
57 &omap34xx_l3__l4_core
,
62 static struct omap_hwmod omap34xx_l3_hwmod
= {
64 .masters
= omap34xx_l3_masters
,
65 .masters_cnt
= ARRAY_SIZE(omap34xx_l3_masters
),
66 .slaves
= omap34xx_l3_slaves
,
67 .slaves_cnt
= ARRAY_SIZE(omap34xx_l3_slaves
),
68 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP3430
)
71 static struct omap_hwmod omap34xx_l4_wkup_hwmod
;
73 /* L4_CORE -> L4_WKUP interface */
74 static struct omap_hwmod_ocp_if omap34xx_l4_core__l4_wkup
= {
75 .master
= &omap34xx_l4_core_hwmod
,
76 .slave
= &omap34xx_l4_wkup_hwmod
,
77 .user
= OCP_USER_MPU
| OCP_USER_SDMA
,
80 /* Slave interfaces on the L4_CORE interconnect */
81 static struct omap_hwmod_ocp_if
*omap34xx_l4_core_slaves
[] = {
82 &omap34xx_l3__l4_core
,
85 /* Master interfaces on the L4_CORE interconnect */
86 static struct omap_hwmod_ocp_if
*omap34xx_l4_core_masters
[] = {
87 &omap34xx_l4_core__l4_wkup
,
91 static struct omap_hwmod omap34xx_l4_core_hwmod
= {
92 .name
= "l4_core_hwmod",
93 .masters
= omap34xx_l4_core_masters
,
94 .masters_cnt
= ARRAY_SIZE(omap34xx_l4_core_masters
),
95 .slaves
= omap34xx_l4_core_slaves
,
96 .slaves_cnt
= ARRAY_SIZE(omap34xx_l4_core_slaves
),
97 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP3430
)
100 /* Slave interfaces on the L4_PER interconnect */
101 static struct omap_hwmod_ocp_if
*omap34xx_l4_per_slaves
[] = {
102 &omap34xx_l3__l4_per
,
105 /* Master interfaces on the L4_PER interconnect */
106 static struct omap_hwmod_ocp_if
*omap34xx_l4_per_masters
[] = {
110 static struct omap_hwmod omap34xx_l4_per_hwmod
= {
111 .name
= "l4_per_hwmod",
112 .masters
= omap34xx_l4_per_masters
,
113 .masters_cnt
= ARRAY_SIZE(omap34xx_l4_per_masters
),
114 .slaves
= omap34xx_l4_per_slaves
,
115 .slaves_cnt
= ARRAY_SIZE(omap34xx_l4_per_slaves
),
116 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP3430
)
119 /* Slave interfaces on the L4_WKUP interconnect */
120 static struct omap_hwmod_ocp_if
*omap34xx_l4_wkup_slaves
[] = {
121 &omap34xx_l4_core__l4_wkup
,
124 /* Master interfaces on the L4_WKUP interconnect */
125 static struct omap_hwmod_ocp_if
*omap34xx_l4_wkup_masters
[] = {
129 static struct omap_hwmod omap34xx_l4_wkup_hwmod
= {
130 .name
= "l4_wkup_hwmod",
131 .masters
= omap34xx_l4_wkup_masters
,
132 .masters_cnt
= ARRAY_SIZE(omap34xx_l4_wkup_masters
),
133 .slaves
= omap34xx_l4_wkup_slaves
,
134 .slaves_cnt
= ARRAY_SIZE(omap34xx_l4_wkup_slaves
),
135 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP3430
)
138 /* Master interfaces on the MPU device */
139 static struct omap_hwmod_ocp_if
*omap34xx_mpu_masters
[] = {
144 static struct omap_hwmod omap34xx_mpu_hwmod
= {
146 .clkdev_dev_id
= NULL
,
147 .clkdev_con_id
= "arm_fck",
148 .masters
= omap34xx_mpu_masters
,
149 .masters_cnt
= ARRAY_SIZE(omap34xx_mpu_masters
),
150 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP3430
),
153 static __initdata
struct omap_hwmod
*omap34xx_hwmods
[] = {
155 &omap34xx_l4_core_hwmod
,
156 &omap34xx_l4_per_hwmod
,
157 &omap34xx_l4_wkup_hwmod
,
163 # define omap34xx_hwmods 0