2 * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 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 * OMAP2430 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 omap2430_mpu_hwmod;
33 static struct omap_hwmod omap2430_l3_hwmod;
34 static struct omap_hwmod omap2430_l4_core_hwmod;
36 /* L3 -> L4_CORE interface */
37 static struct omap_hwmod_ocp_if omap2430_l3__l4_core = {
38 .master = &omap2430_l3_hwmod,
39 .slave = &omap2430_l4_core_hwmod,
40 .user = OCP_USER_MPU | OCP_USER_SDMA,
43 /* MPU -> L3 interface */
44 static struct omap_hwmod_ocp_if omap2430_mpu__l3 = {
45 .master = &omap2430_mpu_hwmod,
46 .slave = &omap2430_l3_hwmod,
50 /* Slave interfaces on the L3 interconnect */
51 static struct omap_hwmod_ocp_if *omap2430_l3_slaves[] = {
55 /* Master interfaces on the L3 interconnect */
56 static struct omap_hwmod_ocp_if *omap2430_l3_masters[] = {
57 &omap2430_l3__l4_core,
61 static struct omap_hwmod omap2430_l3_hwmod = {
63 .class = &l3_hwmod_class,
64 .masters = omap2430_l3_masters,
65 .masters_cnt = ARRAY_SIZE(omap2430_l3_masters),
66 .slaves = omap2430_l3_slaves,
67 .slaves_cnt = ARRAY_SIZE(omap2430_l3_slaves),
68 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
71 static struct omap_hwmod omap2430_l4_wkup_hwmod;
72 static struct omap_hwmod omap2430_mmc1_hwmod;
73 static struct omap_hwmod omap2430_mmc2_hwmod;
75 /* L4_CORE -> L4_WKUP interface */
76 static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
77 .master = &omap2430_l4_core_hwmod,
78 .slave = &omap2430_l4_wkup_hwmod,
79 .user = OCP_USER_MPU | OCP_USER_SDMA,
82 /* Slave interfaces on the L4_CORE interconnect */
83 static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
84 &omap2430_l3__l4_core,
87 /* Master interfaces on the L4_CORE interconnect */
88 static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
89 &omap2430_l4_core__l4_wkup,
93 static struct omap_hwmod omap2430_l4_core_hwmod = {
94 .name = "l4_core_hwmod",
95 .class = &l4_hwmod_class,
96 .masters = omap2430_l4_core_masters,
97 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
98 .slaves = omap2430_l4_core_slaves,
99 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
100 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
103 /* Slave interfaces on the L4_WKUP interconnect */
104 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
105 &omap2430_l4_core__l4_wkup,
108 /* Master interfaces on the L4_WKUP interconnect */
109 static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
113 static struct omap_hwmod omap2430_l4_wkup_hwmod = {
114 .name = "l4_wkup_hwmod",
115 .class = &l4_hwmod_class,
116 .masters = omap2430_l4_wkup_masters,
117 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
118 .slaves = omap2430_l4_wkup_slaves,
119 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
120 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
123 /* Master interfaces on the MPU device */
124 static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
129 static struct omap_hwmod omap2430_mpu_hwmod = {
131 .class = &mpu_hwmod_class,
132 .main_clk = "mpu_ck",
133 .masters = omap2430_mpu_masters,
134 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
135 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
138 static __initdata struct omap_hwmod *omap2430_hwmods[] = {
140 &omap2430_l4_core_hwmod,
141 &omap2430_l4_wkup_hwmod,
146 int __init omap2430_hwmod_init(void)
148 return omap_hwmod_init(omap2430_hwmods);