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
)
71 static struct omap_hwmod omap2420_l4_wkup_hwmod
;
73 /* L4_CORE -> L4_WKUP interface */
74 static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup
= {
75 .master
= &omap2420_l4_core_hwmod
,
76 .slave
= &omap2420_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
*omap2420_l4_core_slaves
[] = {
82 &omap2420_l3__l4_core
,
85 /* Master interfaces on the L4_CORE interconnect */
86 static struct omap_hwmod_ocp_if
*omap2420_l4_core_masters
[] = {
87 &omap2420_l4_core__l4_wkup
,
91 static struct omap_hwmod omap2420_l4_core_hwmod
= {
92 .name
= "l4_core_hwmod",
93 .class = &l4_hwmod_class
,
94 .masters
= omap2420_l4_core_masters
,
95 .masters_cnt
= ARRAY_SIZE(omap2420_l4_core_masters
),
96 .slaves
= omap2420_l4_core_slaves
,
97 .slaves_cnt
= ARRAY_SIZE(omap2420_l4_core_slaves
),
98 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
101 /* Slave interfaces on the L4_WKUP interconnect */
102 static struct omap_hwmod_ocp_if
*omap2420_l4_wkup_slaves
[] = {
103 &omap2420_l4_core__l4_wkup
,
106 /* Master interfaces on the L4_WKUP interconnect */
107 static struct omap_hwmod_ocp_if
*omap2420_l4_wkup_masters
[] = {
111 static struct omap_hwmod omap2420_l4_wkup_hwmod
= {
112 .name
= "l4_wkup_hwmod",
113 .class = &l4_hwmod_class
,
114 .masters
= omap2420_l4_wkup_masters
,
115 .masters_cnt
= ARRAY_SIZE(omap2420_l4_wkup_masters
),
116 .slaves
= omap2420_l4_wkup_slaves
,
117 .slaves_cnt
= ARRAY_SIZE(omap2420_l4_wkup_slaves
),
118 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
)
121 /* Master interfaces on the MPU device */
122 static struct omap_hwmod_ocp_if
*omap2420_mpu_masters
[] = {
127 static struct omap_hwmod omap2420_mpu_hwmod
= {
129 .class = &mpu_hwmod_class
,
130 .main_clk
= "mpu_ck",
131 .masters
= omap2420_mpu_masters
,
132 .masters_cnt
= ARRAY_SIZE(omap2420_mpu_masters
),
133 .omap_chip
= OMAP_CHIP_INIT(CHIP_IS_OMAP2420
),
136 static __initdata
struct omap_hwmod
*omap2420_hwmods
[] = {
138 &omap2420_l4_core_hwmod
,
139 &omap2420_l4_wkup_hwmod
,
144 int __init
omap2420_hwmod_init(void)
146 return omap_hwmod_init(omap2420_hwmods
);