blob: 0c08d3f11f6981d1ca1527c285c6f7a42b5b9660 [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 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 Walmsley02bfc032009-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 Walmsley02bfc032009-09-03 20:14:05 +030014 */
Tony Lindgrence491cf2009-10-20 09:40:47 -070015#include <plat/omap_hwmod.h>
Paul Walmsley02bfc032009-09-03 20:14:05 +030016#include <mach/irqs.h>
Tony Lindgrence491cf2009-10-20 09:40:47 -070017#include <plat/cpu.h>
18#include <plat/dma.h>
Kevin Hilman046465b2010-09-27 20:19:30 +053019#include <plat/serial.h>
Paul Walmsley20042902010-09-30 02:40:12 +053020#include <plat/i2c.h>
Varadarajan, Charulatha59c348c2010-12-07 16:26:56 -080021#include <plat/gpio.h>
Charulatha V617871d2011-02-17 09:53:09 -080022#include <plat/mcspi.h>
Thara Gopinatheddb1262011-02-23 00:14:04 -070023#include <plat/dmtimer.h>
Senthilvadivu Guruswamy996746c2011-02-22 09:50:36 +020024#include <plat/l3_2xxx.h>
25#include <plat/l4_2xxx.h>
Tony Lindgrenad1b6662012-05-08 17:23:33 -060026#include <plat/mmc.h>
Paul Walmsley02bfc032009-09-03 20:14:05 +030027
Paul Walmsley43b40992010-02-22 22:09:34 -070028#include "omap_hwmod_common_data.h"
29
Varadarajan, Charulathaa714b9c2010-09-23 20:02:39 +053030#include "cm-regbits-24xx.h"
Paul Walmsley20042902010-09-30 02:40:12 +053031#include "prm-regbits-24xx.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070032#include "wd_timer.h"
Paul Walmsley02bfc032009-09-03 20:14:05 +030033
Paul Walmsley73591542010-02-22 22:09:32 -070034/*
35 * OMAP2420 hardware module integration data
36 *
Paul Walmsley844a3b62012-04-19 04:04:33 -060037 * All of the data in this section should be autogeneratable from the
Paul Walmsley73591542010-02-22 22:09:32 -070038 * TI hardware database or other technical documentation. Data that
39 * is driver-specific or driver-kernel integration-specific belongs
40 * elsewhere.
41 */
42
Paul Walmsley844a3b62012-04-19 04:04:33 -060043/*
44 * IP blocks
45 */
Senthilvadivu Guruswamy996746c2011-02-22 09:50:36 +020046
Paul Walmsley3af35fb2012-04-19 04:04:38 -060047/* IVA1 (IVA1) */
48static struct omap_hwmod_class iva1_hwmod_class = {
49 .name = "iva1",
50};
51
52static struct omap_hwmod_rst_info omap2420_iva_resets[] = {
53 { .name = "iva", .rst_shift = 8 },
54};
55
Paul Walmsley08072ac2010-07-26 16:34:33 -060056static struct omap_hwmod omap2420_iva_hwmod = {
57 .name = "iva",
Paul Walmsley3af35fb2012-04-19 04:04:38 -060058 .class = &iva1_hwmod_class,
59 .clkdm_name = "iva1_clkdm",
60 .rst_lines = omap2420_iva_resets,
61 .rst_lines_cnt = ARRAY_SIZE(omap2420_iva_resets),
62 .main_clk = "iva1_ifck",
63};
64
65/* DSP */
66static struct omap_hwmod_class dsp_hwmod_class = {
67 .name = "dsp",
68};
69
70static struct omap_hwmod_rst_info omap2420_dsp_resets[] = {
71 { .name = "logic", .rst_shift = 0 },
72 { .name = "mmu", .rst_shift = 1 },
73};
74
75static struct omap_hwmod omap2420_dsp_hwmod = {
76 .name = "dsp",
77 .class = &dsp_hwmod_class,
78 .clkdm_name = "dsp_clkdm",
79 .rst_lines = omap2420_dsp_resets,
80 .rst_lines_cnt = ARRAY_SIZE(omap2420_dsp_resets),
81 .main_clk = "dsp_fck",
Paul Walmsley08072ac2010-07-26 16:34:33 -060082};
83
Paul Walmsley20042902010-09-30 02:40:12 +053084/* I2C common */
85static struct omap_hwmod_class_sysconfig i2c_sysc = {
86 .rev_offs = 0x00,
87 .sysc_offs = 0x20,
88 .syss_offs = 0x10,
Avinash.H.Md73d65f2011-03-03 14:22:46 -070089 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Paul Walmsley20042902010-09-30 02:40:12 +053090 .sysc_fields = &omap_hwmod_sysc_type1,
91};
92
93static struct omap_hwmod_class i2c_class = {
94 .name = "i2c",
95 .sysc = &i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -060096 .rev = OMAP_I2C_IP_VERSION_1,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -060097 .reset = &omap_i2c_reset,
Paul Walmsley20042902010-09-30 02:40:12 +053098};
99
Andy Green4d4441a2011-07-10 05:27:16 -0600100static struct omap_i2c_dev_attr i2c_dev_attr = {
101 .flags = OMAP_I2C_FLAG_NO_FIFO |
102 OMAP_I2C_FLAG_SIMPLE_CLOCK |
103 OMAP_I2C_FLAG_16BIT_DATA_REG |
104 OMAP_I2C_FLAG_BUS_SHIFT_2,
105};
Paul Walmsley20042902010-09-30 02:40:12 +0530106
107/* I2C1 */
Paul Walmsley20042902010-09-30 02:40:12 +0530108static struct omap_hwmod omap2420_i2c1_hwmod = {
109 .name = "i2c1",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600110 .mpu_irqs = omap2_i2c1_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600111 .sdma_reqs = omap2_i2c1_sdma_reqs,
Paul Walmsley20042902010-09-30 02:40:12 +0530112 .main_clk = "i2c1_fck",
113 .prcm = {
114 .omap2 = {
115 .module_offs = CORE_MOD,
116 .prcm_reg_id = 1,
117 .module_bit = OMAP2420_EN_I2C1_SHIFT,
118 .idlest_reg_id = 1,
119 .idlest_idle_bit = OMAP2420_ST_I2C1_SHIFT,
120 },
121 },
Paul Walmsley20042902010-09-30 02:40:12 +0530122 .class = &i2c_class,
123 .dev_attr = &i2c_dev_attr,
Paul Walmsley20042902010-09-30 02:40:12 +0530124 .flags = HWMOD_16BIT_REG,
125};
126
127/* I2C2 */
Paul Walmsley20042902010-09-30 02:40:12 +0530128static struct omap_hwmod omap2420_i2c2_hwmod = {
129 .name = "i2c2",
Paul Walmsley0d619a82011-07-09 19:14:07 -0600130 .mpu_irqs = omap2_i2c2_mpu_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600131 .sdma_reqs = omap2_i2c2_sdma_reqs,
Paul Walmsley20042902010-09-30 02:40:12 +0530132 .main_clk = "i2c2_fck",
133 .prcm = {
134 .omap2 = {
135 .module_offs = CORE_MOD,
136 .prcm_reg_id = 1,
137 .module_bit = OMAP2420_EN_I2C2_SHIFT,
138 .idlest_reg_id = 1,
139 .idlest_idle_bit = OMAP2420_ST_I2C2_SHIFT,
140 },
141 },
Paul Walmsley20042902010-09-30 02:40:12 +0530142 .class = &i2c_class,
143 .dev_attr = &i2c_dev_attr,
Paul Walmsley20042902010-09-30 02:40:12 +0530144 .flags = HWMOD_16BIT_REG,
145};
146
G, Manjunath Kondaiah745685df92010-12-20 18:27:18 -0800147/* dma attributes */
148static struct omap_dma_dev_attr dma_dev_attr = {
149 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
150 IS_CSSA_32 | IS_CDSA_32,
151 .lch_count = 32,
152};
153
G, Manjunath Kondaiah745685df92010-12-20 18:27:18 -0800154static struct omap_hwmod omap2420_dma_system_hwmod = {
155 .name = "dma",
Paul Walmsley273b9462011-07-09 19:14:08 -0600156 .class = &omap2xxx_dma_hwmod_class,
Paul Walmsley0d619a82011-07-09 19:14:07 -0600157 .mpu_irqs = omap2_dma_system_irqs,
G, Manjunath Kondaiah745685df92010-12-20 18:27:18 -0800158 .main_clk = "core_l3_ck",
G, Manjunath Kondaiah745685df92010-12-20 18:27:18 -0800159 .dev_attr = &dma_dev_attr,
G, Manjunath Kondaiah745685df92010-12-20 18:27:18 -0800160 .flags = HWMOD_NO_IDLEST,
161};
162
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800163/* mailbox */
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800164static struct omap_hwmod_irq_info omap2420_mailbox_irqs[] = {
165 { .name = "dsp", .irq = 26 },
166 { .name = "iva", .irq = 34 },
Paul Walmsley212738a2011-07-09 19:14:06 -0600167 { .irq = -1 }
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800168};
169
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800170static struct omap_hwmod omap2420_mailbox_hwmod = {
171 .name = "mailbox",
Paul Walmsley273b9462011-07-09 19:14:08 -0600172 .class = &omap2xxx_mailbox_hwmod_class,
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800173 .mpu_irqs = omap2420_mailbox_irqs,
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800174 .main_clk = "mailboxes_ick",
175 .prcm = {
176 .omap2 = {
177 .prcm_reg_id = 1,
178 .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT,
179 .module_offs = CORE_MOD,
180 .idlest_reg_id = 1,
181 .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT,
182 },
183 },
Omar Ramirez Lunafca1ab52011-02-24 12:51:32 -0800184};
185
Charulatha V3cb72fa2011-02-24 12:51:46 -0800186/*
187 * 'mcbsp' class
188 * multi channel buffered serial port controller
189 */
190
191static struct omap_hwmod_class omap2420_mcbsp_hwmod_class = {
192 .name = "mcbsp",
193};
194
195/* mcbsp1 */
196static struct omap_hwmod_irq_info omap2420_mcbsp1_irqs[] = {
197 { .name = "tx", .irq = 59 },
198 { .name = "rx", .irq = 60 },
Paul Walmsley212738a2011-07-09 19:14:06 -0600199 { .irq = -1 }
Charulatha V3cb72fa2011-02-24 12:51:46 -0800200};
201
Charulatha V3cb72fa2011-02-24 12:51:46 -0800202static struct omap_hwmod omap2420_mcbsp1_hwmod = {
203 .name = "mcbsp1",
204 .class = &omap2420_mcbsp_hwmod_class,
205 .mpu_irqs = omap2420_mcbsp1_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600206 .sdma_reqs = omap2_mcbsp1_sdma_reqs,
Charulatha V3cb72fa2011-02-24 12:51:46 -0800207 .main_clk = "mcbsp1_fck",
208 .prcm = {
209 .omap2 = {
210 .prcm_reg_id = 1,
211 .module_bit = OMAP24XX_EN_MCBSP1_SHIFT,
212 .module_offs = CORE_MOD,
213 .idlest_reg_id = 1,
214 .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT,
215 },
216 },
Charulatha V3cb72fa2011-02-24 12:51:46 -0800217};
218
219/* mcbsp2 */
220static struct omap_hwmod_irq_info omap2420_mcbsp2_irqs[] = {
221 { .name = "tx", .irq = 62 },
222 { .name = "rx", .irq = 63 },
Paul Walmsley212738a2011-07-09 19:14:06 -0600223 { .irq = -1 }
Charulatha V3cb72fa2011-02-24 12:51:46 -0800224};
225
Charulatha V3cb72fa2011-02-24 12:51:46 -0800226static struct omap_hwmod omap2420_mcbsp2_hwmod = {
227 .name = "mcbsp2",
228 .class = &omap2420_mcbsp_hwmod_class,
229 .mpu_irqs = omap2420_mcbsp2_irqs,
Paul Walmsleyd826ebf2011-07-09 19:14:07 -0600230 .sdma_reqs = omap2_mcbsp2_sdma_reqs,
Charulatha V3cb72fa2011-02-24 12:51:46 -0800231 .main_clk = "mcbsp2_fck",
232 .prcm = {
233 .omap2 = {
234 .prcm_reg_id = 1,
235 .module_bit = OMAP24XX_EN_MCBSP2_SHIFT,
236 .module_offs = CORE_MOD,
237 .idlest_reg_id = 1,
238 .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT,
239 },
240 },
Charulatha V3cb72fa2011-02-24 12:51:46 -0800241};
242
Tony Lindgrenad1b6662012-05-08 17:23:33 -0600243static struct omap_hwmod_class_sysconfig omap2420_msdi_sysc = {
244 .rev_offs = 0x3c,
245 .sysc_offs = 0x64,
246 .syss_offs = 0x68,
247 .sysc_flags = (SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
248 .sysc_fields = &omap_hwmod_sysc_type1,
249};
250
251static struct omap_hwmod_class omap2420_msdi_hwmod_class = {
252 .name = "msdi",
253 .sysc = &omap2420_msdi_sysc,
254 .reset = &omap_msdi_reset,
255};
256
257/* msdi1 */
258static struct omap_hwmod_irq_info omap2420_msdi1_irqs[] = {
259 { .irq = 83 },
260 { .irq = -1 }
261};
262
263static struct omap_hwmod_dma_info omap2420_msdi1_sdma_reqs[] = {
264 { .name = "tx", .dma_req = 61 }, /* OMAP24XX_DMA_MMC1_TX */
265 { .name = "rx", .dma_req = 62 }, /* OMAP24XX_DMA_MMC1_RX */
266 { .dma_req = -1 }
267};
268
269static struct omap_hwmod omap2420_msdi1_hwmod = {
270 .name = "msdi1",
271 .class = &omap2420_msdi_hwmod_class,
272 .mpu_irqs = omap2420_msdi1_irqs,
273 .sdma_reqs = omap2420_msdi1_sdma_reqs,
274 .main_clk = "mmc_fck",
275 .prcm = {
276 .omap2 = {
277 .prcm_reg_id = 1,
278 .module_bit = OMAP2420_EN_MMC_SHIFT,
279 .module_offs = CORE_MOD,
280 .idlest_reg_id = 1,
281 .idlest_idle_bit = OMAP2420_ST_MMC_SHIFT,
282 },
283 },
284 .flags = HWMOD_16BIT_REG,
285};
286
Paul Walmsley844a3b62012-04-19 04:04:33 -0600287/*
288 * interfaces
289 */
290
Paul Walmsley844a3b62012-04-19 04:04:33 -0600291/* L4 CORE -> I2C1 interface */
292static struct omap_hwmod_ocp_if omap2420_l4_core__i2c1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600293 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600294 .slave = &omap2420_i2c1_hwmod,
295 .clk = "i2c1_ick",
296 .addr = omap2_i2c1_addr_space,
297 .user = OCP_USER_MPU | OCP_USER_SDMA,
298};
299
300/* L4 CORE -> I2C2 interface */
301static struct omap_hwmod_ocp_if omap2420_l4_core__i2c2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600302 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600303 .slave = &omap2420_i2c2_hwmod,
304 .clk = "i2c2_ick",
305 .addr = omap2_i2c2_addr_space,
306 .user = OCP_USER_MPU | OCP_USER_SDMA,
307};
308
309/* IVA <- L3 interface */
310static struct omap_hwmod_ocp_if omap2420_l3__iva = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600311 .master = &omap2xxx_l3_main_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600312 .slave = &omap2420_iva_hwmod,
Paul Walmsley3af35fb2012-04-19 04:04:38 -0600313 .clk = "core_l3_ck",
314 .user = OCP_USER_MPU | OCP_USER_SDMA,
315};
316
317/* DSP <- L3 interface */
318static struct omap_hwmod_ocp_if omap2420_l3__dsp = {
319 .master = &omap2xxx_l3_main_hwmod,
320 .slave = &omap2420_dsp_hwmod,
321 .clk = "dsp_ick",
Paul Walmsley844a3b62012-04-19 04:04:33 -0600322 .user = OCP_USER_MPU | OCP_USER_SDMA,
323};
324
325static struct omap_hwmod_addr_space omap2420_timer1_addrs[] = {
326 {
327 .pa_start = 0x48028000,
328 .pa_end = 0x48028000 + SZ_1K - 1,
329 .flags = ADDR_TYPE_RT
330 },
331 { }
332};
333
334/* l4_wkup -> timer1 */
335static struct omap_hwmod_ocp_if omap2420_l4_wkup__timer1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600336 .master = &omap2xxx_l4_wkup_hwmod,
337 .slave = &omap2xxx_timer1_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600338 .clk = "gpt1_ick",
339 .addr = omap2420_timer1_addrs,
340 .user = OCP_USER_MPU | OCP_USER_SDMA,
341};
342
Paul Walmsley844a3b62012-04-19 04:04:33 -0600343/* l4_wkup -> wd_timer2 */
344static struct omap_hwmod_addr_space omap2420_wd_timer2_addrs[] = {
345 {
346 .pa_start = 0x48022000,
347 .pa_end = 0x4802207f,
348 .flags = ADDR_TYPE_RT
349 },
350 { }
351};
352
353static struct omap_hwmod_ocp_if omap2420_l4_wkup__wd_timer2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600354 .master = &omap2xxx_l4_wkup_hwmod,
355 .slave = &omap2xxx_wd_timer2_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600356 .clk = "mpu_wdt_ick",
357 .addr = omap2420_wd_timer2_addrs,
358 .user = OCP_USER_MPU | OCP_USER_SDMA,
359};
360
Paul Walmsley844a3b62012-04-19 04:04:33 -0600361/* l4_wkup -> gpio1 */
362static struct omap_hwmod_addr_space omap2420_gpio1_addr_space[] = {
363 {
364 .pa_start = 0x48018000,
365 .pa_end = 0x480181ff,
366 .flags = ADDR_TYPE_RT
367 },
368 { }
369};
370
371static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600372 .master = &omap2xxx_l4_wkup_hwmod,
373 .slave = &omap2xxx_gpio1_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600374 .clk = "gpios_ick",
375 .addr = omap2420_gpio1_addr_space,
376 .user = OCP_USER_MPU | OCP_USER_SDMA,
377};
378
379/* l4_wkup -> gpio2 */
380static struct omap_hwmod_addr_space omap2420_gpio2_addr_space[] = {
381 {
382 .pa_start = 0x4801a000,
383 .pa_end = 0x4801a1ff,
384 .flags = ADDR_TYPE_RT
385 },
386 { }
387};
388
389static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600390 .master = &omap2xxx_l4_wkup_hwmod,
391 .slave = &omap2xxx_gpio2_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600392 .clk = "gpios_ick",
393 .addr = omap2420_gpio2_addr_space,
394 .user = OCP_USER_MPU | OCP_USER_SDMA,
395};
396
397/* l4_wkup -> gpio3 */
398static struct omap_hwmod_addr_space omap2420_gpio3_addr_space[] = {
399 {
400 .pa_start = 0x4801c000,
401 .pa_end = 0x4801c1ff,
402 .flags = ADDR_TYPE_RT
403 },
404 { }
405};
406
407static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio3 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600408 .master = &omap2xxx_l4_wkup_hwmod,
409 .slave = &omap2xxx_gpio3_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600410 .clk = "gpios_ick",
411 .addr = omap2420_gpio3_addr_space,
412 .user = OCP_USER_MPU | OCP_USER_SDMA,
413};
414
415/* l4_wkup -> gpio4 */
416static struct omap_hwmod_addr_space omap2420_gpio4_addr_space[] = {
417 {
418 .pa_start = 0x4801e000,
419 .pa_end = 0x4801e1ff,
420 .flags = ADDR_TYPE_RT
421 },
422 { }
423};
424
425static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio4 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600426 .master = &omap2xxx_l4_wkup_hwmod,
427 .slave = &omap2xxx_gpio4_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600428 .clk = "gpios_ick",
429 .addr = omap2420_gpio4_addr_space,
430 .user = OCP_USER_MPU | OCP_USER_SDMA,
431};
432
433/* dma_system -> L3 */
434static struct omap_hwmod_ocp_if omap2420_dma_system__l3 = {
435 .master = &omap2420_dma_system_hwmod,
Paul Walmsleycb484272012-04-19 04:04:33 -0600436 .slave = &omap2xxx_l3_main_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600437 .clk = "core_l3_ck",
438 .user = OCP_USER_MPU | OCP_USER_SDMA,
439};
440
441/* l4_core -> dma_system */
442static struct omap_hwmod_ocp_if omap2420_l4_core__dma_system = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600443 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600444 .slave = &omap2420_dma_system_hwmod,
445 .clk = "sdma_ick",
446 .addr = omap2_dma_system_addrs,
447 .user = OCP_USER_MPU | OCP_USER_SDMA,
448};
449
450/* l4_core -> mailbox */
451static struct omap_hwmod_ocp_if omap2420_l4_core__mailbox = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600452 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600453 .slave = &omap2420_mailbox_hwmod,
454 .addr = omap2_mailbox_addrs,
455 .user = OCP_USER_MPU | OCP_USER_SDMA,
456};
457
458/* l4_core -> mcbsp1 */
459static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp1 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600460 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600461 .slave = &omap2420_mcbsp1_hwmod,
462 .clk = "mcbsp1_ick",
463 .addr = omap2_mcbsp1_addrs,
464 .user = OCP_USER_MPU | OCP_USER_SDMA,
465};
466
467/* l4_core -> mcbsp2 */
468static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp2 = {
Paul Walmsleycb484272012-04-19 04:04:33 -0600469 .master = &omap2xxx_l4_core_hwmod,
Paul Walmsley844a3b62012-04-19 04:04:33 -0600470 .slave = &omap2420_mcbsp2_hwmod,
471 .clk = "mcbsp2_ick",
472 .addr = omap2xxx_mcbsp2_addrs,
473 .user = OCP_USER_MPU | OCP_USER_SDMA,
474};
475
Tony Lindgrenad1b6662012-05-08 17:23:33 -0600476static struct omap_hwmod_addr_space omap2420_msdi1_addrs[] = {
477 {
478 .pa_start = 0x4809c000,
479 .pa_end = 0x4809c000 + SZ_128 - 1,
480 .flags = ADDR_TYPE_RT,
481 },
482 { }
483};
484
485/* l4_core -> msdi1 */
486static struct omap_hwmod_ocp_if omap2420_l4_core__msdi1 = {
487 .master = &omap2xxx_l4_core_hwmod,
488 .slave = &omap2420_msdi1_hwmod,
489 .clk = "mmc_ick",
490 .addr = omap2420_msdi1_addrs,
491 .user = OCP_USER_MPU | OCP_USER_SDMA,
492};
493
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600494static struct omap_hwmod_ocp_if *omap2420_hwmod_ocp_ifs[] __initdata = {
Paul Walmsley6a297552012-04-19 04:04:34 -0600495 &omap2xxx_l3_main__l4_core,
496 &omap2xxx_mpu__l3_main,
497 &omap2xxx_dss__l3,
498 &omap2xxx_l4_core__mcspi1,
499 &omap2xxx_l4_core__mcspi2,
500 &omap2xxx_l4_core__l4_wkup,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600501 &omap2_l4_core__uart1,
502 &omap2_l4_core__uart2,
503 &omap2_l4_core__uart3,
504 &omap2420_l4_core__i2c1,
505 &omap2420_l4_core__i2c2,
506 &omap2420_l3__iva,
Paul Walmsley3af35fb2012-04-19 04:04:38 -0600507 &omap2420_l3__dsp,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600508 &omap2420_l4_wkup__timer1,
Paul Walmsley6a297552012-04-19 04:04:34 -0600509 &omap2xxx_l4_core__timer2,
510 &omap2xxx_l4_core__timer3,
511 &omap2xxx_l4_core__timer4,
512 &omap2xxx_l4_core__timer5,
513 &omap2xxx_l4_core__timer6,
514 &omap2xxx_l4_core__timer7,
515 &omap2xxx_l4_core__timer8,
516 &omap2xxx_l4_core__timer9,
517 &omap2xxx_l4_core__timer10,
518 &omap2xxx_l4_core__timer11,
519 &omap2xxx_l4_core__timer12,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600520 &omap2420_l4_wkup__wd_timer2,
Paul Walmsley6a297552012-04-19 04:04:34 -0600521 &omap2xxx_l4_core__dss,
522 &omap2xxx_l4_core__dss_dispc,
523 &omap2xxx_l4_core__dss_rfbi,
524 &omap2xxx_l4_core__dss_venc,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600525 &omap2420_l4_wkup__gpio1,
526 &omap2420_l4_wkup__gpio2,
527 &omap2420_l4_wkup__gpio3,
528 &omap2420_l4_wkup__gpio4,
529 &omap2420_dma_system__l3,
530 &omap2420_l4_core__dma_system,
531 &omap2420_l4_core__mailbox,
532 &omap2420_l4_core__mcbsp1,
533 &omap2420_l4_core__mcbsp2,
Tony Lindgrenad1b6662012-05-08 17:23:33 -0600534 &omap2420_l4_core__msdi1,
Paul Walmsley02bfc032009-09-03 20:14:05 +0300535 NULL,
536};
537
Paul Walmsley73591542010-02-22 22:09:32 -0700538int __init omap2420_hwmod_init(void)
539{
Paul Walmsley0a78c5c2012-04-19 04:04:31 -0600540 return omap_hwmod_register_links(omap2420_hwmod_ocp_ifs);
Paul Walmsley73591542010-02-22 22:09:32 -0700541}