blob: cc4ed9024372bcdd40b69243f999f3c3f1045450 [file] [log] [blame]
Paul Walmsley02bfc0302009-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 Walmsley02bfc0302009-09-03 20:14:05 +03003 *
Paul Walmsley78183f32011-07-09 19:14:05 -06004 * Copyright (C) 2009-2011 Nokia Corporation
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06005 * Copyright (C) 2012 Texas Instruments, Inc.
Paul Walmsley02bfc0302009-09-03 20:14:05 +03006 * Paul Walmsley
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 *
12 * XXX handle crossbar/shared link difference for L3?
Paul Walmsley73591542010-02-22 22:09:32 -070013 * XXX these should be marked initdata for multi-OMAP kernels
Paul Walmsley02bfc0302009-09-03 20:14:05 +030014 */
Tony Lindgrence491cf2009-10-20 09:40:47 -070015#include <plat/omap_hwmod.h>
Tony Lindgrence491cf2009-10-20 09:40:47 -070016#include <plat/dma.h>
Kevin Hilman046465b2010-09-27 20:19:30 +053017#include <plat/serial.h>
Paul Walmsley20042902010-09-30 02:40:12 +053018#include <plat/i2c.h>
Charulatha V37801b32011-02-24 12:51:46 -080019#include <plat/mcbsp.h>
Charulatha V7f904c72011-02-17 09:53:10 -080020#include <plat/mcspi.h>
Thara Gopinathb6b58222011-02-23 00:14:05 -070021#include <plat/dmtimer.h>
Kishore Kadiyala6ab89462011-03-01 13:12:56 -080022#include <plat/mmc.h>
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +020023#include <plat/l3_2xxx.h>
Paul Walmsley02bfc0302009-09-03 20:14:05 +030024
Tony Lindgrendbc04162012-08-31 10:59:07 -070025#include "soc.h"
Paul Walmsley43b40992010-02-22 22:09:34 -070026#include "omap_hwmod_common_data.h"
Paul Walmsley02bfc0302009-09-03 20:14:05 +030027#include "prm-regbits-24xx.h"
Varadarajan, Charulatha165e2162010-09-23 20:02:40 +053028#include "cm-regbits-24xx.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070029#include "wd_timer.h"
Paul Walmsley02bfc0302009-09-03 20:14:05 +030030
Paul Walmsley73591542010-02-22 22:09:32 -070031/*
32 * OMAP2430 hardware module integration data
33 *
Paul Walmsley844a3b62012-04-19 04:04:33 -060034 * All of the data in this section should be autogeneratable from the
Paul Walmsley73591542010-02-22 22:09:32 -070035 * TI hardware database or other technical documentation. Data that
36 * is driver-specific or driver-kernel integration-specific belongs
37 * elsewhere.
38 */
39
Paul Walmsley844a3b62012-04-19 04:04:33 -060040/*
41 * IP blocks
42 */
Senthilvadivu Guruswamyde56dbb2011-02-22 09:51:15 +020043
Paul Walmsley844a3b62012-04-19 04:04:33 -060044/* IVA2 (IVA2) */
Paul Walmsley3af35fb2012-04-19 04:04:38 -060045static struct omap_hwmod_rst_info omap2430_iva_resets[] = {
46 { .name = "logic", .rst_shift = 0 },
47 { .name = "mmu", .rst_shift = 1 },
48};
49
Paul Walmsley08072ac2010-07-26 16:34:33 -060050static struct omap_hwmod omap2430_iva_hwmod = {
51 .name = "iva",
52 .class = &iva_hwmod_class,
Paul Walmsley3af35fb2012-04-19 04:04:38 -060053 .clkdm_name = "dsp_clkdm",
54 .rst_lines = omap2430_iva_resets,
55 .rst_lines_cnt = ARRAY_SIZE(omap2430_iva_resets),
56 .main_clk = "dsp_fck",
Paul Walmsley08072ac2010-07-26 16:34:33 -060057};
58
Paul Walmsley20042902010-09-30 02:40:12 +053059/* I2C common */
60static struct omap_hwmod_class_sysconfig i2c_sysc = {
61 .rev_offs = 0x00,
62 .sysc_offs = 0x20,
63 .syss_offs = 0x10,
Avinash.H.Md73d65f2011-03-03 14:22:46 -070064 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE |
65 SYSS_HAS_RESET_STATUS),
Paul Walmsley20042902010-09-30 02:40:12 +053066 .sysc_fields = &omap_hwmod_sysc_type1,
67};
68
69static struct omap_hwmod_class i2c_class = {
70 .name = "i2c",
71 .sysc = &i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -060072 .rev = OMAP_I2C_IP_VERSION_1,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -060073 .reset = &omap_i2c_reset,
Paul Walmsley20042902010-09-30 02:40:12 +053074};
75
Benoit Cousson50ebb772010-12-21 21:08:34 -070076static struct omap_i2c_dev_attr i2c_dev_attr = {
Paul Walmsley20042902010-09-30 02:40:12 +053077 .fifo_depth = 8, /* bytes */
Andy Green4d4441a2011-07-10 05:27:16 -060078 .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 |
79 OMAP_I2C_FLAG_BUS_SHIFT_2 |
80 OMAP_I2C_FLAG_FORCE_19200_INT_CLK,
Paul Walmsley20042902010-09-30 02:40:12 +053081};
82
Benoit Cousson50ebb772010-12-21 21:08:34 -070083/* I2C1 */
Paul Walmsley20042902010-09-30 02:40:12 +053084static struct omap_hwmod omap2430_i2c1_hwmod = {
85 .name = "i2c1",
Andy Green3e600522011-07-10 05:27:14 -060086 .flags = HWMOD_16BIT_REG,
Paul Walmsley0d619a82011-07-09 19:14:07 -060087 .mpu_irqs = omap2_i2c1_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -060088 .sdma_reqs = omap2_i2c1_sdma_reqs,
Paul Walmsley20042902010-09-30 02:40:12 +053089 .main_clk = "i2chs1_fck",
90 .prcm = {
91 .omap2 = {
92 /*
93 * NOTE: The CM_FCLKEN* and CM_ICLKEN* for
94 * I2CHS IP's do not follow the usual pattern.
95 * prcm_reg_id alone cannot be used to program
96 * the iclk and fclk. Needs to be handled using
Lucas De Marchi25985ed2011-03-30 22:57:33 -030097 * additional flags when clk handling is moved
Paul Walmsley20042902010-09-30 02:40:12 +053098 * to hwmod framework.
99 */
100 .module_offs = CORE_MOD,
101 .prcm_reg_id = 1,
102 .module_bit = OMAP2430_EN_I2CHS1_SHIFT,
103 .idlest_reg_id = 1,
104 .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT,
105 },
106 },
Paul Walmsley20042902010-09-30 02:40:12 +0530107 .class = &i2c_class,
Benoit Cousson50ebb772010-12-21 21:08:34 -0700108 .dev_attr = &i2c_dev_attr,
Paul Walmsley20042902010-09-30 02:40:12 +0530109};
110
111/* I2C2 */
Paul Walmsley20042902010-09-30 02:40:12 +0530112static struct omap_hwmod omap2430_i2c2_hwmod = {
113 .name = "i2c2",
Andy Green3e600522011-07-10 05:27:14 -0600114 .flags = HWMOD_16BIT_REG,
Paul Walmsley0d619a82011-07-09 19:14:07 -0600115 .mpu_irqs = omap2_i2c2_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600116 .sdma_reqs = omap2_i2c2_sdma_reqs,
Paul Walmsley20042902010-09-30 02:40:12 +0530117 .main_clk = "i2chs2_fck",
118 .prcm = {
119 .omap2 = {
120 .module_offs = CORE_MOD,
121 .prcm_reg_id = 1,
122 .module_bit = OMAP2430_EN_I2CHS2_SHIFT,
123 .idlest_reg_id = 1,
124 .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT,
125 },
126 },
Paul Walmsley20042902010-09-30 02:40:12 +0530127 .class = &i2c_class,
Benoit Cousson50ebb772010-12-21 21:08:34 -0700128 .dev_attr = &i2c_dev_attr,
Paul Walmsley20042902010-09-30 02:40:12 +0530129};
130
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -0800131/* gpio5 */
132static struct omap_hwmod_irq_info omap243x_gpio5_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700133 { .irq = 33 + OMAP_INTC_START, }, /* INT_24XX_GPIO_BANK5 */
134 { .irq = -1 },
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -0800135};
136
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -0800137static struct omap_hwmod omap2430_gpio5_hwmod = {
138 .name = "gpio5",
Avinash.H.Mf95440c2011-04-05 21:10:15 +0530139 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -0800140 .mpu_irqs = omap243x_gpio5_irqs,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -0800141 .main_clk = "gpio5_fck",
142 .prcm = {
143 .omap2 = {
144 .prcm_reg_id = 2,
145 .module_bit = OMAP2430_EN_GPIO5_SHIFT,
146 .module_offs = CORE_MOD,
147 .idlest_reg_id = 2,
148 .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT,
149 },
150 },
Paul Walmsley273b9462011-07-09 19:14:08 -0600151 .class = &omap2xxx_gpio_hwmod_class,
Paul Walmsleycb484272012-04-19 04:04:33 -0600152 .dev_attr = &omap2xxx_gpio_dev_attr,
Varadarajan, Charulathaaeac0e42010-12-07 16:26:56 -0800153};
154
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -0800155/* dma attributes */
156static struct omap_dma_dev_attr dma_dev_attr = {
157 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
158 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
159 .lch_count = 32,
160};
161
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -0800162static struct omap_hwmod omap2430_dma_system_hwmod = {
163 .name = "dma",
Paul Walmsley273b9462011-07-09 19:14:08 -0600164 .class = &omap2xxx_dma_hwmod_class,
Paul Walmsley0d619a82011-07-09 19:14:07 -0600165 .mpu_irqs = omap2_dma_system_irqs,
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -0800166 .main_clk = "core_l3_ck",
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -0800167 .dev_attr = &dma_dev_attr,
G, Manjunath Kondaiah82cbd1a2010-12-20 18:27:18 -0800168 .flags = HWMOD_NO_IDLEST,
169};
170
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800171/* mailbox */
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800172static struct omap_hwmod_irq_info omap2430_mailbox_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700173 { .irq = 26 + OMAP_INTC_START, },
174 { .irq = -1 },
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800175};
176
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800177static struct omap_hwmod omap2430_mailbox_hwmod = {
178 .name = "mailbox",
Paul Walmsley273b9462011-07-09 19:14:08 -0600179 .class = &omap2xxx_mailbox_hwmod_class,
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800180 .mpu_irqs = omap2430_mailbox_irqs,
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800181 .main_clk = "mailboxes_ick",
182 .prcm = {
183 .omap2 = {
184 .prcm_reg_id = 1,
185 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
186 .module_offs = CORE_MOD,
187 .idlest_reg_id = 1,
188 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
189 },
190 },
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800191};
192
Charulatha V7f904c72011-02-17 09:53:10 -0800193/* mcspi3 */
194static struct omap_hwmod_irq_info omap2430_mcspi3_mpu_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700195 { .irq = 91 + OMAP_INTC_START, },
196 { .irq = -1 },
Charulatha V7f904c72011-02-17 09:53:10 -0800197};
198
199static struct omap_hwmod_dma_info omap2430_mcspi3_sdma_reqs[] = {
200 { .name = "tx0", .dma_req = 15 }, /* DMA_SPI3_TX0 */
201 { .name = "rx0", .dma_req = 16 }, /* DMA_SPI3_RX0 */
202 { .name = "tx1", .dma_req = 23 }, /* DMA_SPI3_TX1 */
203 { .name = "rx1", .dma_req = 24 }, /* DMA_SPI3_RX1 */
Paul Walmsleybc614952011-07-09 19:14:07 -0600204 { .dma_req = -1 }
Charulatha V7f904c72011-02-17 09:53:10 -0800205};
206
Charulatha V7f904c72011-02-17 09:53:10 -0800207static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = {
208 .num_chipselect = 2,
209};
210
211static struct omap_hwmod omap2430_mcspi3_hwmod = {
Paul Walmsleybec93812012-04-19 04:03:50 -0600212 .name = "mcspi3",
Charulatha V7f904c72011-02-17 09:53:10 -0800213 .mpu_irqs = omap2430_mcspi3_mpu_irqs,
Charulatha V7f904c72011-02-17 09:53:10 -0800214 .sdma_reqs = omap2430_mcspi3_sdma_reqs,
Charulatha V7f904c72011-02-17 09:53:10 -0800215 .main_clk = "mcspi3_fck",
216 .prcm = {
217 .omap2 = {
218 .module_offs = CORE_MOD,
219 .prcm_reg_id = 2,
220 .module_bit = OMAP2430_EN_MCSPI3_SHIFT,
221 .idlest_reg_id = 2,
222 .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT,
223 },
224 },
Paul Walmsley273b9462011-07-09 19:14:08 -0600225 .class = &omap2xxx_mcspi_class,
226 .dev_attr = &omap_mcspi3_dev_attr,
Charulatha V7f904c72011-02-17 09:53:10 -0800227};
228
Paul Walmsley844a3b62012-04-19 04:04:33 -0600229/* usbhsotg */
Hema HK44d02ac2011-02-17 12:07:17 +0530230static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = {
231 .rev_offs = 0x0400,
232 .sysc_offs = 0x0404,
233 .syss_offs = 0x0408,
234 .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE|
235 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
236 SYSC_HAS_AUTOIDLE),
237 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
238 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
239 .sysc_fields = &omap_hwmod_sysc_type1,
240};
241
242static struct omap_hwmod_class usbotg_class = {
243 .name = "usbotg",
244 .sysc = &omap2430_usbhsotg_sysc,
245};
246
247/* usb_otg_hs */
248static struct omap_hwmod_irq_info omap2430_usbhsotg_mpu_irqs[] = {
249
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700250 { .name = "mc", .irq = 92 + OMAP_INTC_START, },
251 { .name = "dma", .irq = 93 + OMAP_INTC_START, },
252 { .irq = -1 },
Hema HK44d02ac2011-02-17 12:07:17 +0530253};
254
255static struct omap_hwmod omap2430_usbhsotg_hwmod = {
256 .name = "usb_otg_hs",
257 .mpu_irqs = omap2430_usbhsotg_mpu_irqs,
Hema HK44d02ac2011-02-17 12:07:17 +0530258 .main_clk = "usbhs_ick",
259 .prcm = {
260 .omap2 = {
261 .prcm_reg_id = 1,
262 .module_bit = OMAP2430_EN_USBHS_MASK,
263 .module_offs = CORE_MOD,
264 .idlest_reg_id = 1,
265 .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT,
266 },
267 },
Hema HK44d02ac2011-02-17 12:07:17 +0530268 .class = &usbotg_class,
269 /*
270 * Erratum ID: i479 idle_req / idle_ack mechanism potentially
271 * broken when autoidle is enabled
272 * workaround is to disable the autoidle bit at module level.
273 */
274 .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE
275 | HWMOD_SWSUP_MSTANDBY,
Hema HK44d02ac2011-02-17 12:07:17 +0530276};
277
Charulatha V37801b32011-02-24 12:51:46 -0800278/*
279 * 'mcbsp' class
280 * multi channel buffered serial port controller
281 */
Tony Lindgren04aa67d2011-02-22 10:54:12 -0800282
Charulatha V37801b32011-02-24 12:51:46 -0800283static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = {
284 .rev_offs = 0x007C,
285 .sysc_offs = 0x008C,
286 .sysc_flags = (SYSC_HAS_SOFTRESET),
287 .sysc_fields = &omap_hwmod_sysc_type1,
288};
289
290static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = {
291 .name = "mcbsp",
292 .sysc = &omap2430_mcbsp_sysc,
293 .rev = MCBSP_CONFIG_TYPE2,
294};
295
Peter Ujfalusidb382a82012-06-18 16:18:43 -0600296static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = {
297 { .role = "pad_fck", .clk = "mcbsp_clks" },
298 { .role = "prcm_fck", .clk = "func_96m_ck" },
299};
300
Charulatha V37801b32011-02-24 12:51:46 -0800301/* mcbsp1 */
302static struct omap_hwmod_irq_info omap2430_mcbsp1_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700303 { .name = "tx", .irq = 59 + OMAP_INTC_START, },
304 { .name = "rx", .irq = 60 + OMAP_INTC_START, },
305 { .name = "ovr", .irq = 61 + OMAP_INTC_START, },
306 { .name = "common", .irq = 64 + OMAP_INTC_START, },
307 { .irq = -1 },
Charulatha V37801b32011-02-24 12:51:46 -0800308};
309
Charulatha V37801b32011-02-24 12:51:46 -0800310static struct omap_hwmod omap2430_mcbsp1_hwmod = {
311 .name = "mcbsp1",
312 .class = &omap2430_mcbsp_hwmod_class,
313 .mpu_irqs = omap2430_mcbsp1_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600314 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
Charulatha V37801b32011-02-24 12:51:46 -0800315 .main_clk = "mcbsp1_fck",
316 .prcm = {
317 .omap2 = {
318 .prcm_reg_id = 1,
319 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
320 .module_offs = CORE_MOD,
321 .idlest_reg_id = 1,
322 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
323 },
324 },
Peter Ujfalusidb382a82012-06-18 16:18:43 -0600325 .opt_clks = mcbsp_opt_clks,
326 .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
Charulatha V37801b32011-02-24 12:51:46 -0800327};
328
329/* mcbsp2 */
330static struct omap_hwmod_irq_info omap2430_mcbsp2_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700331 { .name = "tx", .irq = 62 + OMAP_INTC_START, },
332 { .name = "rx", .irq = 63 + OMAP_INTC_START, },
333 { .name = "common", .irq = 16 + OMAP_INTC_START, },
334 { .irq = -1 },
Charulatha V37801b32011-02-24 12:51:46 -0800335};
336
Charulatha V37801b32011-02-24 12:51:46 -0800337static struct omap_hwmod omap2430_mcbsp2_hwmod = {
338 .name = "mcbsp2",
339 .class = &omap2430_mcbsp_hwmod_class,
340 .mpu_irqs = omap2430_mcbsp2_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600341 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
Charulatha V37801b32011-02-24 12:51:46 -0800342 .main_clk = "mcbsp2_fck",
343 .prcm = {
344 .omap2 = {
345 .prcm_reg_id = 1,
346 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
347 .module_offs = CORE_MOD,
348 .idlest_reg_id = 1,
349 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
350 },
351 },
Peter Ujfalusidb382a82012-06-18 16:18:43 -0600352 .opt_clks = mcbsp_opt_clks,
353 .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
Charulatha V37801b32011-02-24 12:51:46 -0800354};
355
356/* mcbsp3 */
357static struct omap_hwmod_irq_info omap2430_mcbsp3_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700358 { .name = "tx", .irq = 89 + OMAP_INTC_START, },
359 { .name = "rx", .irq = 90 + OMAP_INTC_START, },
360 { .name = "common", .irq = 17 + OMAP_INTC_START, },
361 { .irq = -1 },
Charulatha V37801b32011-02-24 12:51:46 -0800362};
363
Charulatha V37801b32011-02-24 12:51:46 -0800364static struct omap_hwmod omap2430_mcbsp3_hwmod = {
365 .name = "mcbsp3",
366 .class = &omap2430_mcbsp_hwmod_class,
367 .mpu_irqs = omap2430_mcbsp3_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600368 .sdma_reqs = omap2_mcbsp3_sdma_reqs,
Charulatha V37801b32011-02-24 12:51:46 -0800369 .main_clk = "mcbsp3_fck",
370 .prcm = {
371 .omap2 = {
372 .prcm_reg_id = 1,
373 .module_bit = OMAP2430_EN_MCBSP3_SHIFT,
374 .module_offs = CORE_MOD,
375 .idlest_reg_id = 2,
376 .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT,
377 },
378 },
Peter Ujfalusidb382a82012-06-18 16:18:43 -0600379 .opt_clks = mcbsp_opt_clks,
380 .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
Charulatha V37801b32011-02-24 12:51:46 -0800381};
382
383/* mcbsp4 */
384static struct omap_hwmod_irq_info omap2430_mcbsp4_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700385 { .name = "tx", .irq = 54 + OMAP_INTC_START, },
386 { .name = "rx", .irq = 55 + OMAP_INTC_START, },
387 { .name = "common", .irq = 18 + OMAP_INTC_START, },
388 { .irq = -1 },
Charulatha V37801b32011-02-24 12:51:46 -0800389};
390
391static struct omap_hwmod_dma_info omap2430_mcbsp4_sdma_chs[] = {
392 { .name = "rx", .dma_req = 20 },
393 { .name = "tx", .dma_req = 19 },
Paul Walmsleybc614952011-07-09 19:14:07 -0600394 { .dma_req = -1 }
Charulatha V37801b32011-02-24 12:51:46 -0800395};
396
Charulatha V37801b32011-02-24 12:51:46 -0800397static struct omap_hwmod omap2430_mcbsp4_hwmod = {
398 .name = "mcbsp4",
399 .class = &omap2430_mcbsp_hwmod_class,
400 .mpu_irqs = omap2430_mcbsp4_irqs,
Charulatha V37801b32011-02-24 12:51:46 -0800401 .sdma_reqs = omap2430_mcbsp4_sdma_chs,
Charulatha V37801b32011-02-24 12:51:46 -0800402 .main_clk = "mcbsp4_fck",
403 .prcm = {
404 .omap2 = {
405 .prcm_reg_id = 1,
406 .module_bit = OMAP2430_EN_MCBSP4_SHIFT,
407 .module_offs = CORE_MOD,
408 .idlest_reg_id = 2,
409 .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT,
410 },
411 },
Peter Ujfalusidb382a82012-06-18 16:18:43 -0600412 .opt_clks = mcbsp_opt_clks,
413 .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
Charulatha V37801b32011-02-24 12:51:46 -0800414};
415
416/* mcbsp5 */
417static struct omap_hwmod_irq_info omap2430_mcbsp5_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700418 { .name = "tx", .irq = 81 + OMAP_INTC_START, },
419 { .name = "rx", .irq = 82 + OMAP_INTC_START, },
420 { .name = "common", .irq = 19 + OMAP_INTC_START, },
421 { .irq = -1 },
Charulatha V37801b32011-02-24 12:51:46 -0800422};
423
424static struct omap_hwmod_dma_info omap2430_mcbsp5_sdma_chs[] = {
425 { .name = "rx", .dma_req = 22 },
426 { .name = "tx", .dma_req = 21 },
Paul Walmsleybc614952011-07-09 19:14:07 -0600427 { .dma_req = -1 }
Charulatha V37801b32011-02-24 12:51:46 -0800428};
429
Charulatha V37801b32011-02-24 12:51:46 -0800430static struct omap_hwmod omap2430_mcbsp5_hwmod = {
431 .name = "mcbsp5",
432 .class = &omap2430_mcbsp_hwmod_class,
433 .mpu_irqs = omap2430_mcbsp5_irqs,
Charulatha V37801b32011-02-24 12:51:46 -0800434 .sdma_reqs = omap2430_mcbsp5_sdma_chs,
Charulatha V37801b32011-02-24 12:51:46 -0800435 .main_clk = "mcbsp5_fck",
436 .prcm = {
437 .omap2 = {
438 .prcm_reg_id = 1,
439 .module_bit = OMAP2430_EN_MCBSP5_SHIFT,
440 .module_offs = CORE_MOD,
441 .idlest_reg_id = 2,
442 .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT,
443 },
444 },
Peter Ujfalusidb382a82012-06-18 16:18:43 -0600445 .opt_clks = mcbsp_opt_clks,
446 .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks),
Charulatha V37801b32011-02-24 12:51:46 -0800447};
Tony Lindgren04aa67d2011-02-22 10:54:12 -0800448
Paul Walmsleybce06f32011-03-01 13:12:55 -0800449/* MMC/SD/SDIO common */
Paul Walmsleybce06f32011-03-01 13:12:55 -0800450static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = {
451 .rev_offs = 0x1fc,
452 .sysc_offs = 0x10,
453 .syss_offs = 0x14,
454 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
455 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
456 SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS),
457 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
458 .sysc_fields = &omap_hwmod_sysc_type1,
459};
460
461static struct omap_hwmod_class omap2430_mmc_class = {
462 .name = "mmc",
463 .sysc = &omap2430_mmc_sysc,
464};
465
466/* MMC/SD/SDIO1 */
Paul Walmsleybce06f32011-03-01 13:12:55 -0800467static struct omap_hwmod_irq_info omap2430_mmc1_mpu_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700468 { .irq = 83 + OMAP_INTC_START, },
469 { .irq = -1 },
Paul Walmsleybce06f32011-03-01 13:12:55 -0800470};
471
472static struct omap_hwmod_dma_info omap2430_mmc1_sdma_reqs[] = {
473 { .name = "tx", .dma_req = 61 }, /* DMA_MMC1_TX */
474 { .name = "rx", .dma_req = 62 }, /* DMA_MMC1_RX */
Paul Walmsleybc614952011-07-09 19:14:07 -0600475 { .dma_req = -1 }
Paul Walmsleybce06f32011-03-01 13:12:55 -0800476};
477
478static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = {
479 { .role = "dbck", .clk = "mmchsdb1_fck" },
480};
481
Kishore Kadiyala6ab89462011-03-01 13:12:56 -0800482static struct omap_mmc_dev_attr mmc1_dev_attr = {
483 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
484};
485
Paul Walmsleybce06f32011-03-01 13:12:55 -0800486static struct omap_hwmod omap2430_mmc1_hwmod = {
487 .name = "mmc1",
488 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
489 .mpu_irqs = omap2430_mmc1_mpu_irqs,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800490 .sdma_reqs = omap2430_mmc1_sdma_reqs,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800491 .opt_clks = omap2430_mmc1_opt_clks,
492 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks),
493 .main_clk = "mmchs1_fck",
494 .prcm = {
495 .omap2 = {
496 .module_offs = CORE_MOD,
497 .prcm_reg_id = 2,
498 .module_bit = OMAP2430_EN_MMCHS1_SHIFT,
499 .idlest_reg_id = 2,
500 .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT,
501 },
502 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -0800503 .dev_attr = &mmc1_dev_attr,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800504 .class = &omap2430_mmc_class,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800505};
506
507/* MMC/SD/SDIO2 */
Paul Walmsleybce06f32011-03-01 13:12:55 -0800508static struct omap_hwmod_irq_info omap2430_mmc2_mpu_irqs[] = {
Tony Lindgren7d7e1eb2012-08-27 17:43:01 -0700509 { .irq = 86 + OMAP_INTC_START, },
510 { .irq = -1 },
Paul Walmsleybce06f32011-03-01 13:12:55 -0800511};
512
513static struct omap_hwmod_dma_info omap2430_mmc2_sdma_reqs[] = {
514 { .name = "tx", .dma_req = 47 }, /* DMA_MMC2_TX */
515 { .name = "rx", .dma_req = 48 }, /* DMA_MMC2_RX */
Paul Walmsleybc614952011-07-09 19:14:07 -0600516 { .dma_req = -1 }
Paul Walmsleybce06f32011-03-01 13:12:55 -0800517};
518
519static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = {
520 { .role = "dbck", .clk = "mmchsdb2_fck" },
521};
522
Paul Walmsleybce06f32011-03-01 13:12:55 -0800523static struct omap_hwmod omap2430_mmc2_hwmod = {
524 .name = "mmc2",
525 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
526 .mpu_irqs = omap2430_mmc2_mpu_irqs,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800527 .sdma_reqs = omap2430_mmc2_sdma_reqs,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800528 .opt_clks = omap2430_mmc2_opt_clks,
529 .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks),
530 .main_clk = "mmchs2_fck",
531 .prcm = {
532 .omap2 = {
533 .module_offs = CORE_MOD,
534 .prcm_reg_id = 2,
535 .module_bit = OMAP2430_EN_MMCHS2_SHIFT,
536 .idlest_reg_id = 2,
537 .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT,
538 },
539 },
Paul Walmsleybce06f32011-03-01 13:12:55 -0800540 .class = &omap2430_mmc_class,
Paul Walmsleybce06f32011-03-01 13:12:55 -0800541};
Kevin Hilman046465b2010-09-27 20:19:30 +0530542
Paul Walmsleyf32bd772012-05-08 11:34:28 -0600543/* HDQ1W/1-wire */
544static struct omap_hwmod omap2430_hdq1w_hwmod = {
545 .name = "hdq1w",
546 .mpu_irqs = omap2_hdq1w_mpu_irqs,
547 .main_clk = "hdq_fck",
548 .prcm = {
549 .omap2 = {
550 .module_offs = CORE_MOD,
551 .prcm_reg_id = 1,
552 .module_bit = OMAP24XX_EN_HDQ_SHIFT,
553 .idlest_reg_id = 1,
554 .idlest_idle_bit = OMAP24XX_ST_HDQ_SHIFT,
555 },
556 },
557 .class = &omap2_hdq1w_class,
558};
559
Paul Walmsley844a3b62012-04-19 04:04:33 -0600560/*
561 * interfaces
562 */
563
564/* L3 -> L4_CORE interface */
Paul Walmsley844a3b62012-04-19 04:04:33 -0600565/* l3_core -> usbhsotg interface */
566static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = {
567 .master = &omap2430_usbhsotg_hwmod,
Paul Walmsleycb484272012-04-19 04:04:33 -0600568 .slave = &omap2xxx_l3_main_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600569 .clk = "core_l3_ck",
570 .user = OCP_USER_MPU,
571};
572
573/* L4 CORE -> I2C1 interface */
574static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600575 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600576 .slave = &omap2430_i2c1_hwmod,
577 .clk = "i2c1_ick",
578 .addr = omap2_i2c1_addr_space,
579 .user = OCP_USER_MPU | OCP_USER_SDMA,
580};
581
582/* L4 CORE -> I2C2 interface */
583static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600584 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600585 .slave = &omap2430_i2c2_hwmod,
586 .clk = "i2c2_ick",
587 .addr = omap2_i2c2_addr_space,
588 .user = OCP_USER_MPU | OCP_USER_SDMA,
589};
590
Paul Walmsley844a3b62012-04-19 04:04:33 -0600591static struct omap_hwmod_addr_space omap2430_usbhsotg_addrs[] = {
592 {
593 .pa_start = OMAP243X_HS_BASE,
594 .pa_end = OMAP243X_HS_BASE + SZ_4K - 1,
595 .flags = ADDR_TYPE_RT
596 },
597 { }
598};
599
600/* l4_core ->usbhsotg interface */
601static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600602 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600603 .slave = &omap2430_usbhsotg_hwmod,
604 .clk = "usb_l4_ick",
605 .addr = omap2430_usbhsotg_addrs,
606 .user = OCP_USER_MPU,
607};
608
609/* L4 CORE -> MMC1 interface */
610static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600611 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600612 .slave = &omap2430_mmc1_hwmod,
613 .clk = "mmchs1_ick",
614 .addr = omap2430_mmc1_addr_space,
615 .user = OCP_USER_MPU | OCP_USER_SDMA,
616};
617
618/* L4 CORE -> MMC2 interface */
619static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600620 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600621 .slave = &omap2430_mmc2_hwmod,
622 .clk = "mmchs2_ick",
623 .addr = omap2430_mmc2_addr_space,
624 .user = OCP_USER_MPU | OCP_USER_SDMA,
625};
626
Paul Walmsley844a3b62012-04-19 04:04:33 -0600627/* l4 core -> mcspi3 interface */
628static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600629 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600630 .slave = &omap2430_mcspi3_hwmod,
631 .clk = "mcspi3_ick",
632 .addr = omap2430_mcspi3_addr_space,
633 .user = OCP_USER_MPU | OCP_USER_SDMA,
634};
635
636/* IVA2 <- L3 interface */
637static struct omap_hwmod_ocp_if omap2430_l3__iva = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600638 .master = &omap2xxx_l3_main_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600639 .slave = &omap2430_iva_hwmod,
Paul Walmsley3af35fb2012-04-19 04:04:38 -0600640 .clk = "core_l3_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -0600641 .user = OCP_USER_MPU | OCP_USER_SDMA,
642};
643
644static struct omap_hwmod_addr_space omap2430_timer1_addrs[] = {
645 {
646 .pa_start = 0x49018000,
647 .pa_end = 0x49018000 + SZ_1K - 1,
648 .flags = ADDR_TYPE_RT
649 },
650 { }
651};
652
653/* l4_wkup -> timer1 */
654static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600655 .master = &omap2xxx_l4_wkup_hwmod,
656 .slave = &omap2xxx_timer1_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600657 .clk = "gpt1_ick",
658 .addr = omap2430_timer1_addrs,
659 .user = OCP_USER_MPU | OCP_USER_SDMA,
660};
661
Paul Walmsley844a3b62012-04-19 04:04:33 -0600662/* l4_wkup -> wd_timer2 */
663static struct omap_hwmod_addr_space omap2430_wd_timer2_addrs[] = {
664 {
665 .pa_start = 0x49016000,
666 .pa_end = 0x4901607f,
667 .flags = ADDR_TYPE_RT
668 },
669 { }
670};
671
672static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600673 .master = &omap2xxx_l4_wkup_hwmod,
674 .slave = &omap2xxx_wd_timer2_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600675 .clk = "mpu_wdt_ick",
676 .addr = omap2430_wd_timer2_addrs,
677 .user = OCP_USER_MPU | OCP_USER_SDMA,
678};
679
Paul Walmsley844a3b62012-04-19 04:04:33 -0600680/* l4_wkup -> gpio1 */
681static struct omap_hwmod_addr_space omap2430_gpio1_addr_space[] = {
682 {
683 .pa_start = 0x4900C000,
684 .pa_end = 0x4900C1ff,
685 .flags = ADDR_TYPE_RT
686 },
687 { }
688};
689
690static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600691 .master = &omap2xxx_l4_wkup_hwmod,
692 .slave = &omap2xxx_gpio1_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600693 .clk = "gpios_ick",
694 .addr = omap2430_gpio1_addr_space,
695 .user = OCP_USER_MPU | OCP_USER_SDMA,
696};
697
698/* l4_wkup -> gpio2 */
699static struct omap_hwmod_addr_space omap2430_gpio2_addr_space[] = {
700 {
701 .pa_start = 0x4900E000,
702 .pa_end = 0x4900E1ff,
703 .flags = ADDR_TYPE_RT
704 },
705 { }
706};
707
708static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600709 .master = &omap2xxx_l4_wkup_hwmod,
710 .slave = &omap2xxx_gpio2_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600711 .clk = "gpios_ick",
712 .addr = omap2430_gpio2_addr_space,
713 .user = OCP_USER_MPU | OCP_USER_SDMA,
714};
715
716/* l4_wkup -> gpio3 */
717static struct omap_hwmod_addr_space omap2430_gpio3_addr_space[] = {
718 {
719 .pa_start = 0x49010000,
720 .pa_end = 0x490101ff,
721 .flags = ADDR_TYPE_RT
722 },
723 { }
724};
725
726static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600727 .master = &omap2xxx_l4_wkup_hwmod,
728 .slave = &omap2xxx_gpio3_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600729 .clk = "gpios_ick",
730 .addr = omap2430_gpio3_addr_space,
731 .user = OCP_USER_MPU | OCP_USER_SDMA,
732};
733
734/* l4_wkup -> gpio4 */
735static struct omap_hwmod_addr_space omap2430_gpio4_addr_space[] = {
736 {
737 .pa_start = 0x49012000,
738 .pa_end = 0x490121ff,
739 .flags = ADDR_TYPE_RT
740 },
741 { }
742};
743
744static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600745 .master = &omap2xxx_l4_wkup_hwmod,
746 .slave = &omap2xxx_gpio4_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600747 .clk = "gpios_ick",
748 .addr = omap2430_gpio4_addr_space,
749 .user = OCP_USER_MPU | OCP_USER_SDMA,
750};
751
752/* l4_core -> gpio5 */
753static struct omap_hwmod_addr_space omap2430_gpio5_addr_space[] = {
754 {
755 .pa_start = 0x480B6000,
756 .pa_end = 0x480B61ff,
757 .flags = ADDR_TYPE_RT
758 },
759 { }
760};
761
762static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600763 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600764 .slave = &omap2430_gpio5_hwmod,
765 .clk = "gpio5_ick",
766 .addr = omap2430_gpio5_addr_space,
767 .user = OCP_USER_MPU | OCP_USER_SDMA,
768};
769
770/* dma_system -> L3 */
771static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = {
772 .master = &omap2430_dma_system_hwmod,
Paul Walmsleycb484272012-04-19 04:04:33 -0600773 .slave = &omap2xxx_l3_main_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600774 .clk = "core_l3_ck",
775 .user = OCP_USER_MPU | OCP_USER_SDMA,
776};
777
778/* l4_core -> dma_system */
779static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600780 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600781 .slave = &omap2430_dma_system_hwmod,
782 .clk = "sdma_ick",
783 .addr = omap2_dma_system_addrs,
784 .user = OCP_USER_MPU | OCP_USER_SDMA,
785};
786
787/* l4_core -> mailbox */
788static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600789 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600790 .slave = &omap2430_mailbox_hwmod,
791 .addr = omap2_mailbox_addrs,
792 .user = OCP_USER_MPU | OCP_USER_SDMA,
793};
794
795/* l4_core -> mcbsp1 */
796static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600797 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600798 .slave = &omap2430_mcbsp1_hwmod,
799 .clk = "mcbsp1_ick",
800 .addr = omap2_mcbsp1_addrs,
801 .user = OCP_USER_MPU | OCP_USER_SDMA,
802};
803
804/* l4_core -> mcbsp2 */
805static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600806 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600807 .slave = &omap2430_mcbsp2_hwmod,
808 .clk = "mcbsp2_ick",
809 .addr = omap2xxx_mcbsp2_addrs,
810 .user = OCP_USER_MPU | OCP_USER_SDMA,
811};
812
813static struct omap_hwmod_addr_space omap2430_mcbsp3_addrs[] = {
814 {
815 .name = "mpu",
816 .pa_start = 0x4808C000,
817 .pa_end = 0x4808C0ff,
818 .flags = ADDR_TYPE_RT
819 },
820 { }
821};
822
823/* l4_core -> mcbsp3 */
824static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600825 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600826 .slave = &omap2430_mcbsp3_hwmod,
827 .clk = "mcbsp3_ick",
828 .addr = omap2430_mcbsp3_addrs,
829 .user = OCP_USER_MPU | OCP_USER_SDMA,
830};
831
832static struct omap_hwmod_addr_space omap2430_mcbsp4_addrs[] = {
833 {
834 .name = "mpu",
835 .pa_start = 0x4808E000,
836 .pa_end = 0x4808E0ff,
837 .flags = ADDR_TYPE_RT
838 },
839 { }
840};
841
842/* l4_core -> mcbsp4 */
843static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600844 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600845 .slave = &omap2430_mcbsp4_hwmod,
846 .clk = "mcbsp4_ick",
847 .addr = omap2430_mcbsp4_addrs,
848 .user = OCP_USER_MPU | OCP_USER_SDMA,
849};
850
851static struct omap_hwmod_addr_space omap2430_mcbsp5_addrs[] = {
852 {
853 .name = "mpu",
854 .pa_start = 0x48096000,
855 .pa_end = 0x480960ff,
856 .flags = ADDR_TYPE_RT
857 },
858 { }
859};
860
861/* l4_core -> mcbsp5 */
862static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600863 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600864 .slave = &omap2430_mcbsp5_hwmod,
865 .clk = "mcbsp5_ick",
866 .addr = omap2430_mcbsp5_addrs,
867 .user = OCP_USER_MPU | OCP_USER_SDMA,
868};
869
Paul Walmsleyf32bd772012-05-08 11:34:28 -0600870/* l4_core -> hdq1w */
871static struct omap_hwmod_ocp_if omap2430_l4_core__hdq1w = {
872 .master = &omap2xxx_l4_core_hwmod,
873 .slave = &omap2430_hdq1w_hwmod,
874 .clk = "hdq_ick",
875 .addr = omap2_hdq1w_addr_space,
876 .user = OCP_USER_MPU | OCP_USER_SDMA,
877 .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE,
878};
879
Vaibhav Hiremathc8d82ff2012-05-08 11:34:30 -0600880/* l4_wkup -> 32ksync_counter */
881static struct omap_hwmod_addr_space omap2430_counter_32k_addrs[] = {
882 {
883 .pa_start = 0x49020000,
884 .pa_end = 0x4902001f,
885 .flags = ADDR_TYPE_RT
886 },
887 { }
888};
889
Afzal Mohammed49484a62012-09-23 17:28:24 -0600890static struct omap_hwmod_addr_space omap2430_gpmc_addrs[] = {
891 {
892 .pa_start = 0x6e000000,
893 .pa_end = 0x6e000fff,
894 .flags = ADDR_TYPE_RT
895 },
896 { }
897};
898
Vaibhav Hiremathc8d82ff2012-05-08 11:34:30 -0600899static struct omap_hwmod_ocp_if omap2430_l4_wkup__counter_32k = {
900 .master = &omap2xxx_l4_wkup_hwmod,
901 .slave = &omap2xxx_counter_32k_hwmod,
902 .clk = "sync_32k_ick",
903 .addr = omap2430_counter_32k_addrs,
904 .user = OCP_USER_MPU | OCP_USER_SDMA,
905};
906
Afzal Mohammed49484a62012-09-23 17:28:24 -0600907static struct omap_hwmod_ocp_if omap2430_l3__gpmc = {
908 .master = &omap2xxx_l3_main_hwmod,
909 .slave = &omap2xxx_gpmc_hwmod,
910 .clk = "core_l3_ck",
911 .addr = omap2430_gpmc_addrs,
912 .user = OCP_USER_MPU | OCP_USER_SDMA,
913};
914
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600915static struct omap_hwmod_ocp_if *omap2430_hwmod_ocp_ifs[] __initdata = {
Paul Walmsley6a297552012-04-19 04:04:34 -0600916 &omap2xxx_l3_main__l4_core,
917 &omap2xxx_mpu__l3_main,
918 &omap2xxx_dss__l3,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600919 &omap2430_usbhsotg__l3,
920 &omap2430_l4_core__i2c1,
921 &omap2430_l4_core__i2c2,
Paul Walmsley6a297552012-04-19 04:04:34 -0600922 &omap2xxx_l4_core__l4_wkup,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600923 &omap2_l4_core__uart1,
924 &omap2_l4_core__uart2,
925 &omap2_l4_core__uart3,
926 &omap2430_l4_core__usbhsotg,
927 &omap2430_l4_core__mmc1,
928 &omap2430_l4_core__mmc2,
Paul Walmsley6a297552012-04-19 04:04:34 -0600929 &omap2xxx_l4_core__mcspi1,
930 &omap2xxx_l4_core__mcspi2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600931 &omap2430_l4_core__mcspi3,
932 &omap2430_l3__iva,
933 &omap2430_l4_wkup__timer1,
Paul Walmsley6a297552012-04-19 04:04:34 -0600934 &omap2xxx_l4_core__timer2,
935 &omap2xxx_l4_core__timer3,
936 &omap2xxx_l4_core__timer4,
937 &omap2xxx_l4_core__timer5,
938 &omap2xxx_l4_core__timer6,
939 &omap2xxx_l4_core__timer7,
940 &omap2xxx_l4_core__timer8,
941 &omap2xxx_l4_core__timer9,
942 &omap2xxx_l4_core__timer10,
943 &omap2xxx_l4_core__timer11,
944 &omap2xxx_l4_core__timer12,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600945 &omap2430_l4_wkup__wd_timer2,
Paul Walmsley6a297552012-04-19 04:04:34 -0600946 &omap2xxx_l4_core__dss,
947 &omap2xxx_l4_core__dss_dispc,
948 &omap2xxx_l4_core__dss_rfbi,
949 &omap2xxx_l4_core__dss_venc,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600950 &omap2430_l4_wkup__gpio1,
951 &omap2430_l4_wkup__gpio2,
952 &omap2430_l4_wkup__gpio3,
953 &omap2430_l4_wkup__gpio4,
954 &omap2430_l4_core__gpio5,
955 &omap2430_dma_system__l3,
956 &omap2430_l4_core__dma_system,
957 &omap2430_l4_core__mailbox,
958 &omap2430_l4_core__mcbsp1,
959 &omap2430_l4_core__mcbsp2,
960 &omap2430_l4_core__mcbsp3,
961 &omap2430_l4_core__mcbsp4,
962 &omap2430_l4_core__mcbsp5,
Paul Walmsleyf32bd772012-05-08 11:34:28 -0600963 &omap2430_l4_core__hdq1w,
Paul Walmsleye9b0a2f2012-09-23 17:28:25 -0600964 &omap2xxx_l4_core__rng,
Vaibhav Hiremathc8d82ff2012-05-08 11:34:30 -0600965 &omap2430_l4_wkup__counter_32k,
Afzal Mohammed49484a62012-09-23 17:28:24 -0600966 &omap2430_l3__gpmc,
Paul Walmsley02bfc0302009-09-03 20:14:05 +0300967 NULL,
968};
969
Paul Walmsley73591542010-02-22 22:09:32 -0700970int __init omap2430_hwmod_init(void)
971{
Kevin Hilman9ebfd282012-06-18 12:12:23 -0600972 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600973 return omap_hwmod_register_links(omap2430_hwmod_ocp_ifs);
Paul Walmsley73591542010-02-22 22:09:32 -0700974}