blob: c0f3311d5b5e02ebb9669feaa90e3fa86e4b7731 [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
Paul Walmsley43b40992010-02-22 22:09:34 -070019#include "omap_hwmod_common_data.h"
20
Paul Walmsley02bfc032009-09-03 20:14:05 +030021#include "prm-regbits-24xx.h"
22
Paul Walmsley73591542010-02-22 22:09:32 -070023/*
24 * OMAP2430 hardware module integration data
25 *
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
29 * elsewhere.
30 */
31
Paul Walmsley02bfc032009-09-03 20:14:05 +030032static struct omap_hwmod omap2430_mpu_hwmod;
Kevin Hilman4a7cf902010-07-26 16:34:32 -060033static struct omap_hwmod omap2430_l3_main_hwmod;
Paul Walmsley02bfc032009-09-03 20:14:05 +030034static struct omap_hwmod omap2430_l4_core_hwmod;
35
36/* L3 -> L4_CORE interface */
Kevin Hilman4a7cf902010-07-26 16:34:32 -060037static struct omap_hwmod_ocp_if omap2430_l3_main__l4_core = {
38 .master = &omap2430_l3_main_hwmod,
Paul Walmsley02bfc032009-09-03 20:14:05 +030039 .slave = &omap2430_l4_core_hwmod,
40 .user = OCP_USER_MPU | OCP_USER_SDMA,
41};
42
43/* MPU -> L3 interface */
Kevin Hilman4a7cf902010-07-26 16:34:32 -060044static struct omap_hwmod_ocp_if omap2430_mpu__l3_main = {
Paul Walmsley02bfc032009-09-03 20:14:05 +030045 .master = &omap2430_mpu_hwmod,
Kevin Hilman4a7cf902010-07-26 16:34:32 -060046 .slave = &omap2430_l3_main_hwmod,
Paul Walmsley02bfc032009-09-03 20:14:05 +030047 .user = OCP_USER_MPU,
48};
49
50/* Slave interfaces on the L3 interconnect */
Kevin Hilman4a7cf902010-07-26 16:34:32 -060051static struct omap_hwmod_ocp_if *omap2430_l3_main_slaves[] = {
52 &omap2430_mpu__l3_main,
Paul Walmsley02bfc032009-09-03 20:14:05 +030053};
54
55/* Master interfaces on the L3 interconnect */
Kevin Hilman4a7cf902010-07-26 16:34:32 -060056static struct omap_hwmod_ocp_if *omap2430_l3_main_masters[] = {
57 &omap2430_l3_main__l4_core,
Paul Walmsley02bfc032009-09-03 20:14:05 +030058};
59
60/* L3 */
Kevin Hilman4a7cf902010-07-26 16:34:32 -060061static struct omap_hwmod omap2430_l3_main_hwmod = {
Benoit Coussonfa983472010-07-26 16:34:29 -060062 .name = "l3_main",
Paul Walmsley43b40992010-02-22 22:09:34 -070063 .class = &l3_hwmod_class,
Kevin Hilman4a7cf902010-07-26 16:34:32 -060064 .masters = omap2430_l3_main_masters,
65 .masters_cnt = ARRAY_SIZE(omap2430_l3_main_masters),
66 .slaves = omap2430_l3_main_slaves,
67 .slaves_cnt = ARRAY_SIZE(omap2430_l3_main_slaves),
Kevin Hilman2eb18752010-07-26 16:34:28 -060068 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
69 .flags = HWMOD_NO_IDLEST,
Paul Walmsley02bfc032009-09-03 20:14:05 +030070};
71
72static struct omap_hwmod omap2430_l4_wkup_hwmod;
73static struct omap_hwmod omap2430_mmc1_hwmod;
74static struct omap_hwmod omap2430_mmc2_hwmod;
75
76/* L4_CORE -> L4_WKUP interface */
77static struct omap_hwmod_ocp_if omap2430_l4_core__l4_wkup = {
78 .master = &omap2430_l4_core_hwmod,
79 .slave = &omap2430_l4_wkup_hwmod,
80 .user = OCP_USER_MPU | OCP_USER_SDMA,
81};
82
83/* Slave interfaces on the L4_CORE interconnect */
84static struct omap_hwmod_ocp_if *omap2430_l4_core_slaves[] = {
Kevin Hilman4a7cf902010-07-26 16:34:32 -060085 &omap2430_l3_main__l4_core,
Paul Walmsley02bfc032009-09-03 20:14:05 +030086};
87
88/* Master interfaces on the L4_CORE interconnect */
89static struct omap_hwmod_ocp_if *omap2430_l4_core_masters[] = {
90 &omap2430_l4_core__l4_wkup,
91};
92
93/* L4 CORE */
94static struct omap_hwmod omap2430_l4_core_hwmod = {
Benoit Coussonfa983472010-07-26 16:34:29 -060095 .name = "l4_core",
Paul Walmsley43b40992010-02-22 22:09:34 -070096 .class = &l4_hwmod_class,
Paul Walmsley02bfc032009-09-03 20:14:05 +030097 .masters = omap2430_l4_core_masters,
98 .masters_cnt = ARRAY_SIZE(omap2430_l4_core_masters),
99 .slaves = omap2430_l4_core_slaves,
100 .slaves_cnt = ARRAY_SIZE(omap2430_l4_core_slaves),
Kevin Hilman2eb18752010-07-26 16:34:28 -0600101 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
102 .flags = HWMOD_NO_IDLEST,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300103};
104
105/* Slave interfaces on the L4_WKUP interconnect */
106static struct omap_hwmod_ocp_if *omap2430_l4_wkup_slaves[] = {
107 &omap2430_l4_core__l4_wkup,
108};
109
110/* Master interfaces on the L4_WKUP interconnect */
111static struct omap_hwmod_ocp_if *omap2430_l4_wkup_masters[] = {
112};
113
114/* L4 WKUP */
115static struct omap_hwmod omap2430_l4_wkup_hwmod = {
Benoit Coussonfa983472010-07-26 16:34:29 -0600116 .name = "l4_wkup",
Paul Walmsley43b40992010-02-22 22:09:34 -0700117 .class = &l4_hwmod_class,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300118 .masters = omap2430_l4_wkup_masters,
119 .masters_cnt = ARRAY_SIZE(omap2430_l4_wkup_masters),
120 .slaves = omap2430_l4_wkup_slaves,
121 .slaves_cnt = ARRAY_SIZE(omap2430_l4_wkup_slaves),
Kevin Hilman2eb18752010-07-26 16:34:28 -0600122 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
123 .flags = HWMOD_NO_IDLEST,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300124};
125
126/* Master interfaces on the MPU device */
127static struct omap_hwmod_ocp_if *omap2430_mpu_masters[] = {
Kevin Hilman4a7cf902010-07-26 16:34:32 -0600128 &omap2430_mpu__l3_main,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300129};
130
131/* MPU */
132static struct omap_hwmod omap2430_mpu_hwmod = {
Benoit Cousson5c2c0292010-05-20 12:31:10 -0600133 .name = "mpu",
Paul Walmsley43b40992010-02-22 22:09:34 -0700134 .class = &mpu_hwmod_class,
Paul Walmsley50ebdac2010-02-22 22:09:31 -0700135 .main_clk = "mpu_ck",
Paul Walmsley02bfc032009-09-03 20:14:05 +0300136 .masters = omap2430_mpu_masters,
137 .masters_cnt = ARRAY_SIZE(omap2430_mpu_masters),
138 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
139};
140
141static __initdata struct omap_hwmod *omap2430_hwmods[] = {
Kevin Hilman4a7cf902010-07-26 16:34:32 -0600142 &omap2430_l3_main_hwmod,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300143 &omap2430_l4_core_hwmod,
144 &omap2430_l4_wkup_hwmod,
145 &omap2430_mpu_hwmod,
146 NULL,
147};
148
Paul Walmsley73591542010-02-22 22:09:32 -0700149int __init omap2430_hwmod_init(void)
150{
151 return omap_hwmod_init(omap2430_hwmods);
152}
Paul Walmsley02bfc032009-09-03 20:14:05 +0300153
154