blob: a1c5839fc52d18f977604c5e6a0f9de7f533d9e8 [file] [log] [blame]
Paul Walmsley02bfc032009-09-03 20:14:05 +03001/*
Paul Walmsley73591542010-02-22 22:09:32 -07002 * omap_hwmod_2420_data.c - hardware modules present on the OMAP2420 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 * OMAP2420 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 omap2420_mpu_hwmod;
31static struct omap_hwmod omap2420_l3_hwmod;
32static struct omap_hwmod omap2420_l4_core_hwmod;
33
34/* L3 -> L4_CORE interface */
35static struct omap_hwmod_ocp_if omap2420_l3__l4_core = {
36 .master = &omap2420_l3_hwmod,
37 .slave = &omap2420_l4_core_hwmod,
38 .user = OCP_USER_MPU | OCP_USER_SDMA,
39};
40
41/* MPU -> L3 interface */
42static struct omap_hwmod_ocp_if omap2420_mpu__l3 = {
43 .master = &omap2420_mpu_hwmod,
44 .slave = &omap2420_l3_hwmod,
45 .user = OCP_USER_MPU,
46};
47
48/* Slave interfaces on the L3 interconnect */
49static struct omap_hwmod_ocp_if *omap2420_l3_slaves[] = {
50 &omap2420_mpu__l3,
51};
52
53/* Master interfaces on the L3 interconnect */
54static struct omap_hwmod_ocp_if *omap2420_l3_masters[] = {
55 &omap2420_l3__l4_core,
56};
57
58/* L3 */
59static struct omap_hwmod omap2420_l3_hwmod = {
60 .name = "l3_hwmod",
61 .masters = omap2420_l3_masters,
62 .masters_cnt = ARRAY_SIZE(omap2420_l3_masters),
63 .slaves = omap2420_l3_slaves,
64 .slaves_cnt = ARRAY_SIZE(omap2420_l3_slaves),
65 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
66};
67
68static struct omap_hwmod omap2420_l4_wkup_hwmod;
69
70/* L4_CORE -> L4_WKUP interface */
71static struct omap_hwmod_ocp_if omap2420_l4_core__l4_wkup = {
72 .master = &omap2420_l4_core_hwmod,
73 .slave = &omap2420_l4_wkup_hwmod,
74 .user = OCP_USER_MPU | OCP_USER_SDMA,
75};
76
77/* Slave interfaces on the L4_CORE interconnect */
78static struct omap_hwmod_ocp_if *omap2420_l4_core_slaves[] = {
79 &omap2420_l3__l4_core,
80};
81
82/* Master interfaces on the L4_CORE interconnect */
83static struct omap_hwmod_ocp_if *omap2420_l4_core_masters[] = {
84 &omap2420_l4_core__l4_wkup,
85};
86
87/* L4 CORE */
88static struct omap_hwmod omap2420_l4_core_hwmod = {
89 .name = "l4_core_hwmod",
90 .masters = omap2420_l4_core_masters,
91 .masters_cnt = ARRAY_SIZE(omap2420_l4_core_masters),
92 .slaves = omap2420_l4_core_slaves,
93 .slaves_cnt = ARRAY_SIZE(omap2420_l4_core_slaves),
94 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
95};
96
97/* Slave interfaces on the L4_WKUP interconnect */
98static struct omap_hwmod_ocp_if *omap2420_l4_wkup_slaves[] = {
99 &omap2420_l4_core__l4_wkup,
100};
101
102/* Master interfaces on the L4_WKUP interconnect */
103static struct omap_hwmod_ocp_if *omap2420_l4_wkup_masters[] = {
104};
105
106/* L4 WKUP */
107static struct omap_hwmod omap2420_l4_wkup_hwmod = {
108 .name = "l4_wkup_hwmod",
109 .masters = omap2420_l4_wkup_masters,
110 .masters_cnt = ARRAY_SIZE(omap2420_l4_wkup_masters),
111 .slaves = omap2420_l4_wkup_slaves,
112 .slaves_cnt = ARRAY_SIZE(omap2420_l4_wkup_slaves),
113 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420)
114};
115
116/* Master interfaces on the MPU device */
117static struct omap_hwmod_ocp_if *omap2420_mpu_masters[] = {
118 &omap2420_mpu__l3,
119};
120
121/* MPU */
122static struct omap_hwmod omap2420_mpu_hwmod = {
123 .name = "mpu_hwmod",
Paul Walmsley50ebdac2010-02-22 22:09:31 -0700124 .main_clk = "mpu_ck",
Paul Walmsley02bfc032009-09-03 20:14:05 +0300125 .masters = omap2420_mpu_masters,
126 .masters_cnt = ARRAY_SIZE(omap2420_mpu_masters),
127 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
128};
129
130static __initdata struct omap_hwmod *omap2420_hwmods[] = {
131 &omap2420_l3_hwmod,
132 &omap2420_l4_core_hwmod,
133 &omap2420_l4_wkup_hwmod,
134 &omap2420_mpu_hwmod,
135 NULL,
136};
137
Paul Walmsley73591542010-02-22 22:09:32 -0700138int __init omap2420_hwmod_init(void)
139{
140 return omap_hwmod_init(omap2420_hwmods);
141}
Paul Walmsley02bfc032009-09-03 20:14:05 +0300142
143