blob: ed2de7936c10db9a30212fa840d1756aa353b269 [file] [log] [blame]
Paul Walmsley02bfc032009-09-03 20:14:05 +03001/*
Paul Walmsley73591542010-02-22 22:09:32 -07002 * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips
Paul Walmsley02bfc032009-09-03 20:14:05 +03003 *
Paul Walmsley73591542010-02-22 22:09:32 -07004 * Copyright (C) 2009-2010 Nokia Corporation
Paul Walmsley02bfc032009-09-03 20:14:05 +03005 * Paul Walmsley
6 *
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.
10 *
11 * XXX handle crossbar/shared link difference for L3?
Paul Walmsley73591542010-02-22 22:09:32 -070012 * XXX these should be marked initdata for multi-OMAP kernels
Paul Walmsley02bfc032009-09-03 20:14:05 +030013 */
Tony Lindgrence491cf2009-10-20 09:40:47 -070014#include <plat/omap_hwmod.h>
Paul Walmsley02bfc032009-09-03 20:14:05 +030015#include <mach/irqs.h>
Tony Lindgrence491cf2009-10-20 09:40:47 -070016#include <plat/cpu.h>
17#include <plat/dma.h>
Paul Walmsley02bfc032009-09-03 20:14:05 +030018
19#include "prm-regbits-24xx.h"
20
Paul Walmsley73591542010-02-22 22:09:32 -070021/*
22 * OMAP2430 hardware module integration data
23 *
24 * ALl of the data in this section should be autogeneratable from the
25 * TI hardware database or other technical documentation. Data that
26 * is driver-specific or driver-kernel integration-specific belongs
27 * elsewhere.
28 */
29
Paul Walmsley02bfc032009-09-03 20:14:05 +030030static struct omap_hwmod omap2430_mpu_hwmod;
31static struct omap_hwmod omap2430_l3_hwmod;
32static struct omap_hwmod omap2430_l4_core_hwmod;
33
34/* L3 -> L4_CORE interface */
35static struct omap_hwmod_ocp_if omap2430_l3__l4_core = {
36 .master = &omap2430_l3_hwmod,
37 .slave = &omap2430_l4_core_hwmod,
38 .user = OCP_USER_MPU | OCP_USER_SDMA,
39};
40
41/* MPU -> L3 interface */
42static struct omap_hwmod_ocp_if omap2430_mpu__l3 = {
43 .master = &omap2430_mpu_hwmod,
44 .slave = &omap2430_l3_hwmod,
45 .user = OCP_USER_MPU,
46};
47
48/* Slave interfaces on the L3 interconnect */
49static struct omap_hwmod_ocp_if *omap2430_l3_slaves[] = {
50 &omap2430_mpu__l3,
51};
52
53/* Master interfaces on the L3 interconnect */
54static struct omap_hwmod_ocp_if *omap2430_l3_masters[] = {
55 &omap2430_l3__l4_core,
56};
57
58/* L3 */
59static struct omap_hwmod omap2430_l3_hwmod = {
60 .name = "l3_hwmod",
61 .masters = omap2430_l3_masters,
62 .masters_cnt = ARRAY_SIZE(omap2430_l3_masters),
63 .slaves = omap2430_l3_slaves,
64 .slaves_cnt = ARRAY_SIZE(omap2430_l3_slaves),
65 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
66};
67
68static struct omap_hwmod omap2430_l4_wkup_hwmod;
69static struct omap_hwmod omap2430_mmc1_hwmod;
70static struct omap_hwmod omap2430_mmc2_hwmod;
71
72/* L4_CORE -> L4_WKUP interface */
73static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
74 .master = &omap2430_l4_core_hwmod,
75 .slave = &omap2430_l4_wkup_hwmod,
76 .user = OCP_USER_MPU | OCP_USER_SDMA,
77};
78
79/* Slave interfaces on the L4_CORE interconnect */
80static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
81 &omap2430_l3__l4_core,
82};
83
84/* Master interfaces on the L4_CORE interconnect */
85static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
86 &omap2430_l4_core__l4_wkup,
87};
88
89/* L4 CORE */
90static struct omap_hwmod omap2430_l4_core_hwmod = {
91 .name = "l4_core_hwmod",
92 .masters = omap2430_l4_core_masters,
93 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
94 .slaves = omap2430_l4_core_slaves,
95 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
96 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
97};
98
99/* Slave interfaces on the L4_WKUP interconnect */
100static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
101 &omap2430_l4_core__l4_wkup,
102};
103
104/* Master interfaces on the L4_WKUP interconnect */
105static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
106};
107
108/* L4 WKUP */
109static struct omap_hwmod omap2430_l4_wkup_hwmod = {
110 .name = "l4_wkup_hwmod",
111 .masters = omap2430_l4_wkup_masters,
112 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
113 .slaves = omap2430_l4_wkup_slaves,
114 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
115 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430)
116};
117
118/* Master interfaces on the MPU device */
119static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
120 &omap2430_mpu__l3,
121};
122
123/* MPU */
124static struct omap_hwmod omap2430_mpu_hwmod = {
125 .name = "mpu_hwmod",
Paul Walmsley50ebdac2010-02-22 22:09:31 -0700126 .main_clk = "mpu_ck",
Paul Walmsley02bfc032009-09-03 20:14:05 +0300127 .masters = omap2430_mpu_masters,
128 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
129 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
130};
131
132static __initdata struct omap_hwmod *omap2430_hwmods[] = {
133 &omap2430_l3_hwmod,
134 &omap2430_l4_core_hwmod,
135 &omap2430_l4_wkup_hwmod,
136 &omap2430_mpu_hwmod,
137 NULL,
138};
139
Paul Walmsley73591542010-02-22 22:09:32 -0700140int __init omap2430_hwmod_init(void)
141{
142 return omap_hwmod_init(omap2430_hwmods);
143}
Paul Walmsley02bfc032009-09-03 20:14:05 +0300144
145