blob: 43eebf2c59e2f71a375cdbc5d3dbf227f7b99378 [file] [log] [blame]
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001/*
2 * Hardware modules present on the OMAP44xx chips
3 *
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004 * Copyright (C) 2009-2012 Texas Instruments, Inc.
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005 * Copyright (C) 2009-2010 Nokia Corporation
6 *
7 * Paul Walmsley
8 * Benoit Cousson
9 *
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
Sricharan R3b9b1012013-06-07 17:26:15 +053015 * Note that this file is currently not in sync with autogeneration scripts.
16 * The above note to be removed, once it is synced up.
Benoit Cousson55d2cb02010-05-12 17:54:36 +020017 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License version 2 as
20 * published by the Free Software Foundation.
21 */
22
23#include <linux/io.h>
Tony Lindgren4b254082012-08-30 15:37:24 -070024#include <linux/platform_data/gpio-omap.h>
Andreas Fenkart55143432014-11-08 15:33:09 +010025#include <linux/platform_data/hsmmc-omap.h>
Jean Pihetb86aeaf2012-04-25 16:06:20 +053026#include <linux/power/smartreflex.h>
Tony Lindgren3a8761c2012-10-08 09:11:22 -070027#include <linux/i2c-omap.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020028
Tony Lindgren45c3eb72012-11-30 08:41:50 -080029#include <linux/omap-dma.h>
Tony Lindgren2a296c82012-10-02 17:41:35 -070030
Arnd Bergmann22037472012-08-24 15:21:06 +020031#include <linux/platform_data/spi-omap2-mcspi.h>
32#include <linux/platform_data/asoc-ti-mcbsp.h>
Tony Lindgren2ab7c842012-11-02 12:24:14 -070033#include <linux/platform_data/iommu-omap.h>
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +053034#include <plat/dmtimer.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020035
Tony Lindgren2a296c82012-10-02 17:41:35 -070036#include "omap_hwmod.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020037#include "omap_hwmod_common_data.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070038#include "cm1_44xx.h"
39#include "cm2_44xx.h"
40#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020041#include "prm-regbits-44xx.h"
Tony Lindgren3a8761c2012-10-08 09:11:22 -070042#include "i2c.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070043#include "wd_timer.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020044
45/* Base offset for all OMAP4 interrupts external to MPUSS */
46#define OMAP44XX_IRQ_GIC_START 32
47
48/* Base offset for all OMAP4 dma requests */
Paul Walmsley844a3b62012-04-19 04:04:33 -060049#define OMAP44XX_DMA_REQ_START 1
Benoit Cousson55d2cb02010-05-12 17:54:36 +020050
51/*
Paul Walmsley844a3b62012-04-19 04:04:33 -060052 * IP blocks
Benoit Cousson55d2cb02010-05-12 17:54:36 +020053 */
54
55/*
56 * 'dmm' class
57 * instance(s): dmm
58 */
59static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000060 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020061};
62
Benoit Cousson7e69ed92011-07-09 19:14:28 -060063/* dmm */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020064static struct omap_hwmod omap44xx_dmm_hwmod = {
65 .name = "dmm",
66 .class = &omap44xx_dmm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060067 .clkdm_name = "l3_emif_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060068 .prcm = {
69 .omap4 = {
70 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060071 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -060072 },
73 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020074};
75
76/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +020077 * 'l3' class
78 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
79 */
80static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000081 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020082};
83
Benoit Cousson7e69ed92011-07-09 19:14:28 -060084/* l3_instr */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020085static struct omap_hwmod omap44xx_l3_instr_hwmod = {
86 .name = "l3_instr",
87 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060088 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060089 .prcm = {
90 .omap4 = {
91 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060092 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -060093 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -060094 },
95 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020096};
97
Benoit Cousson7e69ed92011-07-09 19:14:28 -060098/* l3_main_1 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020099static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
100 .name = "l3_main_1",
101 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600102 .clkdm_name = "l3_1_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600103 .prcm = {
104 .omap4 = {
105 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600106 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600107 },
108 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200109};
110
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600111/* l3_main_2 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200112static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
113 .name = "l3_main_2",
114 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600115 .clkdm_name = "l3_2_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600116 .prcm = {
117 .omap4 = {
118 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600119 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600120 },
121 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200122};
123
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600124/* l3_main_3 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200125static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
126 .name = "l3_main_3",
127 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600128 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600129 .prcm = {
130 .omap4 = {
131 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600132 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600133 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600134 },
135 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200136};
137
138/*
139 * 'l4' class
140 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
141 */
142static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000143 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200144};
145
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600146/* l4_abe */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200147static struct omap_hwmod omap44xx_l4_abe_hwmod = {
148 .name = "l4_abe",
149 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600150 .clkdm_name = "abe_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600151 .prcm = {
152 .omap4 = {
153 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600154 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
155 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
Tero Kristo46b3af22012-09-23 17:28:20 -0600156 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
Benoit Coussond0f06312011-07-10 05:56:30 -0600157 },
158 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200159};
160
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600161/* l4_cfg */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200162static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
163 .name = "l4_cfg",
164 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600165 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600166 .prcm = {
167 .omap4 = {
168 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600169 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600170 },
171 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200172};
173
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600174/* l4_per */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200175static struct omap_hwmod omap44xx_l4_per_hwmod = {
176 .name = "l4_per",
177 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600178 .clkdm_name = "l4_per_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600179 .prcm = {
180 .omap4 = {
181 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600182 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600183 },
184 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200185};
186
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600187/* l4_wkup */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200188static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
189 .name = "l4_wkup",
190 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600191 .clkdm_name = "l4_wkup_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600192 .prcm = {
193 .omap4 = {
194 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600195 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600196 },
197 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200198};
199
200/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700201 * 'mpu_bus' class
202 * instance(s): mpu_private
203 */
204static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000205 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700206};
207
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600208/* mpu_private */
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700209static struct omap_hwmod omap44xx_mpu_private_hwmod = {
210 .name = "mpu_private",
211 .class = &omap44xx_mpu_bus_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600212 .clkdm_name = "mpuss_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600213 .prcm = {
214 .omap4 = {
215 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
216 },
217 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700218};
219
220/*
Benoît Cousson9a817bc2012-04-19 13:33:56 -0600221 * 'ocp_wp_noc' class
222 * instance(s): ocp_wp_noc
223 */
224static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
225 .name = "ocp_wp_noc",
226};
227
228/* ocp_wp_noc */
229static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
230 .name = "ocp_wp_noc",
231 .class = &omap44xx_ocp_wp_noc_hwmod_class,
232 .clkdm_name = "l3_instr_clkdm",
233 .prcm = {
234 .omap4 = {
235 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
236 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
237 .modulemode = MODULEMODE_HWCTRL,
238 },
239 },
240};
241
242/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700243 * Modules omap_hwmod structures
244 *
245 * The following IPs are excluded for the moment because:
246 * - They do not need an explicit SW control using omap_hwmod API.
247 * - They still need to be validated with the driver
248 * properly adapted to omap_hwmod / omap_device
249 *
Benoît Cousson96566042012-04-19 13:33:59 -0600250 * usim
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700251 */
252
253/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100254 * 'aess' class
255 * audio engine sub system
256 */
257
258static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
259 .rev_offs = 0x0000,
260 .sysc_offs = 0x0010,
261 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
262 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
Benoit Coussonc614ebf2011-07-01 22:54:01 +0200263 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
264 MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +0100265 .sysc_fields = &omap_hwmod_sysc_type2,
266};
267
268static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
269 .name = "aess",
270 .sysc = &omap44xx_aess_sysc,
Paul Walmsleyc02060d2013-02-10 11:22:23 -0700271 .enable_preprogram = omap_hwmod_aess_preprogram,
Benoit Cousson407a6882011-02-15 22:39:48 +0100272};
273
274/* aess */
Benoit Cousson407a6882011-02-15 22:39:48 +0100275static struct omap_hwmod omap44xx_aess_hwmod = {
276 .name = "aess",
277 .class = &omap44xx_aess_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600278 .clkdm_name = "abe_clkdm",
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -0700279 .main_clk = "aess_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600280 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100281 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600282 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600283 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600284 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600285 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +0100286 },
287 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100288};
289
290/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600291 * 'c2c' class
292 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
293 * soc
294 */
295
296static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
297 .name = "c2c",
298};
299
300/* c2c */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600301static struct omap_hwmod omap44xx_c2c_hwmod = {
302 .name = "c2c",
303 .class = &omap44xx_c2c_hwmod_class,
304 .clkdm_name = "d2d_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600305 .prcm = {
306 .omap4 = {
307 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
308 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
309 },
310 },
311};
312
313/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100314 * 'counter' class
315 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
316 */
317
318static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
319 .rev_offs = 0x0000,
320 .sysc_offs = 0x0004,
321 .sysc_flags = SYSC_HAS_SIDLEMODE,
Paul Walmsley252a4c52012-06-17 11:57:51 -0600322 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
Benoit Cousson407a6882011-02-15 22:39:48 +0100323 .sysc_fields = &omap_hwmod_sysc_type1,
324};
325
326static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
327 .name = "counter",
328 .sysc = &omap44xx_counter_sysc,
329};
330
331/* counter_32k */
Benoit Cousson407a6882011-02-15 22:39:48 +0100332static struct omap_hwmod omap44xx_counter_32k_hwmod = {
333 .name = "counter_32k",
334 .class = &omap44xx_counter_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600335 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100336 .flags = HWMOD_SWSUP_SIDLE,
337 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600338 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100339 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600340 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600341 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +0100342 },
343 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100344};
345
346/*
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600347 * 'ctrl_module' class
348 * attila core control module + core pad control module + wkup pad control
349 * module + attila wkup control module
350 */
351
352static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
353 .rev_offs = 0x0000,
354 .sysc_offs = 0x0010,
355 .sysc_flags = SYSC_HAS_SIDLEMODE,
356 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
357 SIDLE_SMART_WKUP),
358 .sysc_fields = &omap_hwmod_sysc_type2,
359};
360
361static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
362 .name = "ctrl_module",
363 .sysc = &omap44xx_ctrl_module_sysc,
364};
365
366/* ctrl_module_core */
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600367static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
368 .name = "ctrl_module_core",
369 .class = &omap44xx_ctrl_module_hwmod_class,
370 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600371 .prcm = {
372 .omap4 = {
373 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
374 },
375 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600376};
377
378/* ctrl_module_pad_core */
379static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
380 .name = "ctrl_module_pad_core",
381 .class = &omap44xx_ctrl_module_hwmod_class,
382 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600383 .prcm = {
384 .omap4 = {
385 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
386 },
387 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600388};
389
390/* ctrl_module_wkup */
391static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
392 .name = "ctrl_module_wkup",
393 .class = &omap44xx_ctrl_module_hwmod_class,
394 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600395 .prcm = {
396 .omap4 = {
397 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
398 },
399 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600400};
401
402/* ctrl_module_pad_wkup */
403static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
404 .name = "ctrl_module_pad_wkup",
405 .class = &omap44xx_ctrl_module_hwmod_class,
406 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600407 .prcm = {
408 .omap4 = {
409 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
410 },
411 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600412};
413
414/*
Benoît Cousson96566042012-04-19 13:33:59 -0600415 * 'debugss' class
416 * debug and emulation sub system
417 */
418
419static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
420 .name = "debugss",
421};
422
423/* debugss */
424static struct omap_hwmod omap44xx_debugss_hwmod = {
425 .name = "debugss",
426 .class = &omap44xx_debugss_hwmod_class,
427 .clkdm_name = "emu_sys_clkdm",
428 .main_clk = "trace_clk_div_ck",
429 .prcm = {
430 .omap4 = {
431 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
432 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
433 },
434 },
435};
436
437/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000438 * 'dma' class
439 * dma controller for data exchange between memory to memory (i.e. internal or
440 * external memory) and gp peripherals to memory or memory to gp peripherals
441 */
442
443static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
444 .rev_offs = 0x0000,
445 .sysc_offs = 0x002c,
446 .syss_offs = 0x0028,
447 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
448 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
449 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
450 SYSS_HAS_RESET_STATUS),
451 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
452 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
453 .sysc_fields = &omap_hwmod_sysc_type1,
454};
455
456static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
457 .name = "dma",
458 .sysc = &omap44xx_dma_sysc,
459};
460
461/* dma dev_attr */
462static struct omap_dma_dev_attr dma_dev_attr = {
463 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
464 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
465 .lch_count = 32,
466};
467
468/* dma_system */
469static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
470 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
471 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
472 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
473 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600474 { .irq = -1 }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000475};
476
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000477static struct omap_hwmod omap44xx_dma_system_hwmod = {
478 .name = "dma_system",
479 .class = &omap44xx_dma_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600480 .clkdm_name = "l3_dma_clkdm",
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000481 .mpu_irqs = omap44xx_dma_system_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000482 .xlate_irq = omap4_xlate_irq,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000483 .main_clk = "l3_div_ck",
484 .prcm = {
485 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600486 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600487 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000488 },
489 },
490 .dev_attr = &dma_dev_attr,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000491};
492
493/*
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000494 * 'dmic' class
495 * digital microphone controller
496 */
497
498static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
499 .rev_offs = 0x0000,
500 .sysc_offs = 0x0010,
501 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
502 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
503 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
504 SIDLE_SMART_WKUP),
505 .sysc_fields = &omap_hwmod_sysc_type2,
506};
507
508static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
509 .name = "dmic",
510 .sysc = &omap44xx_dmic_sysc,
511};
512
513/* dmic */
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000514static struct omap_hwmod omap44xx_dmic_hwmod = {
515 .name = "dmic",
516 .class = &omap44xx_dmic_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600517 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -0700518 .main_clk = "func_dmic_abe_gfclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600519 .prcm = {
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000520 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600521 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600522 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600523 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000524 },
525 },
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000526};
527
528/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700529 * 'dsp' class
530 * dsp sub-system
531 */
532
533static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000534 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700535};
536
537/* dsp */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700538static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700539 { .name = "dsp", .rst_shift = 0 },
540};
541
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700542static struct omap_hwmod omap44xx_dsp_hwmod = {
543 .name = "dsp",
544 .class = &omap44xx_dsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600545 .clkdm_name = "tesla_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700546 .rst_lines = omap44xx_dsp_resets,
547 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -0600548 .main_clk = "dpll_iva_m4x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700549 .prcm = {
550 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600551 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -0600552 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600553 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600554 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700555 },
556 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700557};
558
559/*
Benoit Coussond63bd742011-01-27 11:17:03 +0000560 * 'dss' class
561 * display sub-system
562 */
563
564static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
565 .rev_offs = 0x0000,
566 .syss_offs = 0x0014,
567 .sysc_flags = SYSS_HAS_RESET_STATUS,
568};
569
570static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
571 .name = "dss",
572 .sysc = &omap44xx_dss_sysc,
Tomi Valkeinen13662dc2011-11-08 03:16:13 -0700573 .reset = omap_dss_reset,
Benoit Coussond63bd742011-01-27 11:17:03 +0000574};
575
576/* dss */
Benoit Coussond63bd742011-01-27 11:17:03 +0000577static struct omap_hwmod_opt_clk dss_opt_clks[] = {
578 { .role = "sys_clk", .clk = "dss_sys_clk" },
579 { .role = "tv_clk", .clk = "dss_tv_clk" },
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700580 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Benoit Coussond63bd742011-01-27 11:17:03 +0000581};
582
583static struct omap_hwmod omap44xx_dss_hwmod = {
584 .name = "dss_core",
Tomi Valkeinen37ad0852011-11-08 03:16:11 -0700585 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000586 .class = &omap44xx_dss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600587 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600588 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000589 .prcm = {
590 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600591 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600592 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +0300593 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussond63bd742011-01-27 11:17:03 +0000594 },
595 },
596 .opt_clks = dss_opt_clks,
597 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000598};
599
600/*
601 * 'dispc' class
602 * display controller
603 */
604
605static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
606 .rev_offs = 0x0000,
607 .sysc_offs = 0x0010,
608 .syss_offs = 0x0014,
609 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
610 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
611 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
612 SYSS_HAS_RESET_STATUS),
613 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
614 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
615 .sysc_fields = &omap_hwmod_sysc_type1,
616};
617
618static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
619 .name = "dispc",
620 .sysc = &omap44xx_dispc_sysc,
621};
622
623/* dss_dispc */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300624static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
625 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
626 { .irq = -1 }
627};
628
629static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
630 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
631 { .dma_req = -1 }
632};
633
Archit Tanejab923d402011-10-06 18:04:08 -0600634static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
635 .manager_count = 3,
636 .has_framedonetv_irq = 1
637};
638
Benoit Coussond63bd742011-01-27 11:17:03 +0000639static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
640 .name = "dss_dispc",
641 .class = &omap44xx_dispc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600642 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300643 .mpu_irqs = omap44xx_dss_dispc_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000644 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300645 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600646 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000647 .prcm = {
648 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600649 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600650 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000651 },
652 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300653 .dev_attr = &omap44xx_dss_dispc_dev_attr,
654 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000655};
656
657/*
658 * 'dsi' class
659 * display serial interface controller
660 */
661
662static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
663 .rev_offs = 0x0000,
664 .sysc_offs = 0x0010,
665 .syss_offs = 0x0014,
666 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
667 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
668 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
669 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
670 .sysc_fields = &omap_hwmod_sysc_type1,
671};
672
673static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
674 .name = "dsi",
675 .sysc = &omap44xx_dsi_sysc,
676};
677
678/* dss_dsi1 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300679static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
680 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
681 { .irq = -1 }
682};
683
684static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
685 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
686 { .dma_req = -1 }
687};
688
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600689static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
690 { .role = "sys_clk", .clk = "dss_sys_clk" },
691};
692
Benoit Coussond63bd742011-01-27 11:17:03 +0000693static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
694 .name = "dss_dsi1",
695 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600696 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300697 .mpu_irqs = omap44xx_dss_dsi1_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000698 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300699 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600700 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000701 .prcm = {
702 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600703 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600704 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000705 },
706 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600707 .opt_clks = dss_dsi1_opt_clks,
708 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300709 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000710};
711
712/* dss_dsi2 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300713static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
714 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
715 { .irq = -1 }
716};
717
718static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
719 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
720 { .dma_req = -1 }
721};
722
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600723static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
724 { .role = "sys_clk", .clk = "dss_sys_clk" },
725};
726
Benoit Coussond63bd742011-01-27 11:17:03 +0000727static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
728 .name = "dss_dsi2",
729 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600730 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300731 .mpu_irqs = omap44xx_dss_dsi2_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000732 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300733 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600734 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000735 .prcm = {
736 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600737 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600738 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000739 },
740 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600741 .opt_clks = dss_dsi2_opt_clks,
742 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300743 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000744};
745
746/*
747 * 'hdmi' class
748 * hdmi controller
749 */
750
751static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
752 .rev_offs = 0x0000,
753 .sysc_offs = 0x0010,
754 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
755 SYSC_HAS_SOFTRESET),
756 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
757 SIDLE_SMART_WKUP),
758 .sysc_fields = &omap_hwmod_sysc_type2,
759};
760
761static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
762 .name = "hdmi",
763 .sysc = &omap44xx_hdmi_sysc,
764};
765
766/* dss_hdmi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300767static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
768 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
769 { .irq = -1 }
770};
771
772static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
773 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
774 { .dma_req = -1 }
775};
776
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600777static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
778 { .role = "sys_clk", .clk = "dss_sys_clk" },
779};
780
Benoit Coussond63bd742011-01-27 11:17:03 +0000781static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
782 .name = "dss_hdmi",
783 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600784 .clkdm_name = "l3_dss_clkdm",
Ricardo Neridc57aef2012-06-21 10:08:53 +0200785 /*
786 * HDMI audio requires to use no-idle mode. Hence,
787 * set idle mode by software.
788 */
789 .flags = HWMOD_SWSUP_SIDLE,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300790 .mpu_irqs = omap44xx_dss_hdmi_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000791 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300792 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700793 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000794 .prcm = {
795 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600796 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600797 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000798 },
799 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600800 .opt_clks = dss_hdmi_opt_clks,
801 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300802 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000803};
804
805/*
806 * 'rfbi' class
807 * remote frame buffer interface
808 */
809
810static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
811 .rev_offs = 0x0000,
812 .sysc_offs = 0x0010,
813 .syss_offs = 0x0014,
814 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
815 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
816 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
817 .sysc_fields = &omap_hwmod_sysc_type1,
818};
819
820static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
821 .name = "rfbi",
822 .sysc = &omap44xx_rfbi_sysc,
823};
824
825/* dss_rfbi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300826static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
827 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
828 { .dma_req = -1 }
829};
830
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600831static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
Tomi Valkeinen2cc84f42014-10-09 17:03:18 +0300832 { .role = "ick", .clk = "l3_div_ck" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600833};
834
Benoit Coussond63bd742011-01-27 11:17:03 +0000835static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
836 .name = "dss_rfbi",
837 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600838 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300839 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600840 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000841 .prcm = {
842 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600843 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600844 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000845 },
846 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600847 .opt_clks = dss_rfbi_opt_clks,
848 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300849 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000850};
851
852/*
853 * 'venc' class
854 * video encoder
855 */
856
857static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
858 .name = "venc",
859};
860
861/* dss_venc */
Benoit Coussond63bd742011-01-27 11:17:03 +0000862static struct omap_hwmod omap44xx_dss_venc_hwmod = {
863 .name = "dss_venc",
864 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600865 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700866 .main_clk = "dss_tv_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000867 .prcm = {
868 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600869 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600870 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000871 },
872 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300873 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000874};
875
876/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600877 * 'elm' class
878 * bch error location module
879 */
880
881static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
882 .rev_offs = 0x0000,
883 .sysc_offs = 0x0010,
884 .syss_offs = 0x0014,
885 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
886 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
887 SYSS_HAS_RESET_STATUS),
888 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
889 .sysc_fields = &omap_hwmod_sysc_type1,
890};
891
892static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
893 .name = "elm",
894 .sysc = &omap44xx_elm_sysc,
895};
896
897/* elm */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600898static struct omap_hwmod omap44xx_elm_hwmod = {
899 .name = "elm",
900 .class = &omap44xx_elm_hwmod_class,
901 .clkdm_name = "l4_per_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600902 .prcm = {
903 .omap4 = {
904 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
905 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
906 },
907 },
908};
909
910/*
Paul Walmsleybf30f952012-04-19 13:33:52 -0600911 * 'emif' class
912 * external memory interface no1
913 */
914
915static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
916 .rev_offs = 0x0000,
917};
918
919static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
920 .name = "emif",
921 .sysc = &omap44xx_emif_sysc,
922};
923
924/* emif1 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600925static struct omap_hwmod omap44xx_emif1_hwmod = {
926 .name = "emif1",
927 .class = &omap44xx_emif_hwmod_class,
928 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530929 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600930 .main_clk = "ddrphy_ck",
931 .prcm = {
932 .omap4 = {
933 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
934 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
935 .modulemode = MODULEMODE_HWCTRL,
936 },
937 },
938};
939
940/* emif2 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600941static struct omap_hwmod omap44xx_emif2_hwmod = {
942 .name = "emif2",
943 .class = &omap44xx_emif_hwmod_class,
944 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530945 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600946 .main_clk = "ddrphy_ck",
947 .prcm = {
948 .omap4 = {
949 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
950 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
951 .modulemode = MODULEMODE_HWCTRL,
952 },
953 },
954};
955
956/*
Ming Leib050f682012-04-19 13:33:50 -0600957 * 'fdif' class
958 * face detection hw accelerator module
959 */
960
961static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
962 .rev_offs = 0x0000,
963 .sysc_offs = 0x0010,
964 /*
965 * FDIF needs 100 OCP clk cycles delay after a softreset before
966 * accessing sysconfig again.
967 * The lowest frequency at the moment for L3 bus is 100 MHz, so
968 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
969 *
970 * TODO: Indicate errata when available.
971 */
972 .srst_udelay = 2,
973 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
974 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
975 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
976 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
977 .sysc_fields = &omap_hwmod_sysc_type2,
978};
979
980static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
981 .name = "fdif",
982 .sysc = &omap44xx_fdif_sysc,
983};
984
985/* fdif */
Ming Leib050f682012-04-19 13:33:50 -0600986static struct omap_hwmod omap44xx_fdif_hwmod = {
987 .name = "fdif",
988 .class = &omap44xx_fdif_hwmod_class,
989 .clkdm_name = "iss_clkdm",
Ming Leib050f682012-04-19 13:33:50 -0600990 .main_clk = "fdif_fck",
991 .prcm = {
992 .omap4 = {
993 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
994 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
995 .modulemode = MODULEMODE_SWCTRL,
996 },
997 },
998};
999
1000/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001001 * 'gpio' class
1002 * general purpose io module
1003 */
1004
1005static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1006 .rev_offs = 0x0000,
1007 .sysc_offs = 0x0010,
1008 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001009 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1010 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1011 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001012 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1013 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001014 .sysc_fields = &omap_hwmod_sysc_type1,
1015};
1016
1017static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001018 .name = "gpio",
1019 .sysc = &omap44xx_gpio_sysc,
1020 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001021};
1022
1023/* gpio dev_attr */
1024static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001025 .bank_width = 32,
1026 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001027};
1028
1029/* gpio1 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001030static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001031 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001032};
1033
1034static struct omap_hwmod omap44xx_gpio1_hwmod = {
1035 .name = "gpio1",
1036 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001037 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001038 .main_clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001039 .prcm = {
1040 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001041 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001042 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001043 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001044 },
1045 },
1046 .opt_clks = gpio1_opt_clks,
1047 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1048 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001049};
1050
1051/* gpio2 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001052static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001053 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001054};
1055
1056static struct omap_hwmod omap44xx_gpio2_hwmod = {
1057 .name = "gpio2",
1058 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001059 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001060 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001061 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001062 .prcm = {
1063 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001064 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001065 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001066 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001067 },
1068 },
1069 .opt_clks = gpio2_opt_clks,
1070 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1071 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001072};
1073
1074/* gpio3 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001075static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001076 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001077};
1078
1079static struct omap_hwmod omap44xx_gpio3_hwmod = {
1080 .name = "gpio3",
1081 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001082 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001083 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001084 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001085 .prcm = {
1086 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001087 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001088 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001089 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001090 },
1091 },
1092 .opt_clks = gpio3_opt_clks,
1093 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1094 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001095};
1096
1097/* gpio4 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001098static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001099 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001100};
1101
1102static struct omap_hwmod omap44xx_gpio4_hwmod = {
1103 .name = "gpio4",
1104 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001105 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001106 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001107 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001108 .prcm = {
1109 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001110 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001111 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001112 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001113 },
1114 },
1115 .opt_clks = gpio4_opt_clks,
1116 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1117 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001118};
1119
1120/* gpio5 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001121static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001122 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001123};
1124
1125static struct omap_hwmod omap44xx_gpio5_hwmod = {
1126 .name = "gpio5",
1127 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001128 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001129 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001130 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001131 .prcm = {
1132 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001133 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001134 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001135 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001136 },
1137 },
1138 .opt_clks = gpio5_opt_clks,
1139 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1140 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001141};
1142
1143/* gpio6 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001144static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001145 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001146};
1147
1148static struct omap_hwmod omap44xx_gpio6_hwmod = {
1149 .name = "gpio6",
1150 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001151 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001152 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001153 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001154 .prcm = {
1155 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001156 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001157 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001158 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001159 },
1160 },
1161 .opt_clks = gpio6_opt_clks,
1162 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1163 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001164};
1165
1166/*
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001167 * 'gpmc' class
1168 * general purpose memory controller
1169 */
1170
1171static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1172 .rev_offs = 0x0000,
1173 .sysc_offs = 0x0010,
1174 .syss_offs = 0x0014,
1175 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1176 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1177 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1178 .sysc_fields = &omap_hwmod_sysc_type1,
1179};
1180
1181static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1182 .name = "gpmc",
1183 .sysc = &omap44xx_gpmc_sysc,
1184};
1185
1186/* gpmc */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001187static struct omap_hwmod omap44xx_gpmc_hwmod = {
1188 .name = "gpmc",
1189 .class = &omap44xx_gpmc_hwmod_class,
1190 .clkdm_name = "l3_2_clkdm",
Tony Lindgren63aa9452015-06-01 19:22:10 -06001191 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1192 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001193 .prcm = {
1194 .omap4 = {
1195 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1196 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1197 .modulemode = MODULEMODE_HWCTRL,
1198 },
1199 },
1200};
1201
1202/*
Paul Walmsley9def3902012-04-19 13:33:53 -06001203 * 'gpu' class
1204 * 2d/3d graphics accelerator
1205 */
1206
1207static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1208 .rev_offs = 0x1fc00,
1209 .sysc_offs = 0x1fc10,
1210 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1211 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1212 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1213 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1214 .sysc_fields = &omap_hwmod_sysc_type2,
1215};
1216
1217static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1218 .name = "gpu",
1219 .sysc = &omap44xx_gpu_sysc,
1220};
1221
1222/* gpu */
Paul Walmsley9def3902012-04-19 13:33:53 -06001223static struct omap_hwmod omap44xx_gpu_hwmod = {
1224 .name = "gpu",
1225 .class = &omap44xx_gpu_hwmod_class,
1226 .clkdm_name = "l3_gfx_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001227 .main_clk = "sgx_clk_mux",
Paul Walmsley9def3902012-04-19 13:33:53 -06001228 .prcm = {
1229 .omap4 = {
1230 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1231 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1232 .modulemode = MODULEMODE_SWCTRL,
1233 },
1234 },
1235};
1236
1237/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001238 * 'hdq1w' class
1239 * hdq / 1-wire serial interface controller
1240 */
1241
1242static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1243 .rev_offs = 0x0000,
1244 .sysc_offs = 0x0014,
1245 .syss_offs = 0x0018,
1246 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1247 SYSS_HAS_RESET_STATUS),
1248 .sysc_fields = &omap_hwmod_sysc_type1,
1249};
1250
1251static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1252 .name = "hdq1w",
1253 .sysc = &omap44xx_hdq1w_sysc,
1254};
1255
1256/* hdq1w */
Paul Walmsleya091c082012-04-19 13:33:50 -06001257static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1258 .name = "hdq1w",
1259 .class = &omap44xx_hdq1w_hwmod_class,
1260 .clkdm_name = "l4_per_clkdm",
1261 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001262 .main_clk = "func_12m_fclk",
Paul Walmsleya091c082012-04-19 13:33:50 -06001263 .prcm = {
1264 .omap4 = {
1265 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1266 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1267 .modulemode = MODULEMODE_SWCTRL,
1268 },
1269 },
1270};
1271
1272/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001273 * 'hsi' class
1274 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1275 * serial if)
1276 */
1277
1278static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1279 .rev_offs = 0x0000,
1280 .sysc_offs = 0x0010,
1281 .syss_offs = 0x0014,
1282 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1283 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1284 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1285 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1286 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001287 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001288 .sysc_fields = &omap_hwmod_sysc_type1,
1289};
1290
1291static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1292 .name = "hsi",
1293 .sysc = &omap44xx_hsi_sysc,
1294};
1295
1296/* hsi */
Benoit Cousson407a6882011-02-15 22:39:48 +01001297static struct omap_hwmod omap44xx_hsi_hwmod = {
1298 .name = "hsi",
1299 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001300 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001301 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001302 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001303 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001304 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001305 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001306 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001307 },
1308 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001309};
1310
1311/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301312 * 'i2c' class
1313 * multimaster high-speed i2c controller
1314 */
1315
1316static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1317 .sysc_offs = 0x0010,
1318 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001319 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1320 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001321 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001322 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1323 SIDLE_SMART_WKUP),
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301324 .clockact = CLOCKACT_TEST_ICLK,
Benoit Coussonf7764712010-09-21 19:37:14 +05301325 .sysc_fields = &omap_hwmod_sysc_type1,
1326};
1327
1328static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001329 .name = "i2c",
1330 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06001331 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06001332 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05301333};
1334
Andy Green4d4441a2011-07-10 05:27:16 -06001335static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +05301336 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Andy Green4d4441a2011-07-10 05:27:16 -06001337};
1338
Benoit Coussonf7764712010-09-21 19:37:14 +05301339/* i2c1 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301340static struct omap_hwmod omap44xx_i2c1_hwmod = {
1341 .name = "i2c1",
1342 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001343 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301344 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001345 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301346 .prcm = {
1347 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001348 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001349 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001350 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301351 },
1352 },
Andy Green4d4441a2011-07-10 05:27:16 -06001353 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301354};
1355
1356/* i2c2 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301357static struct omap_hwmod omap44xx_i2c2_hwmod = {
1358 .name = "i2c2",
1359 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001360 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301361 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001362 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301363 .prcm = {
1364 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001365 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001366 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001367 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301368 },
1369 },
Andy Green4d4441a2011-07-10 05:27:16 -06001370 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301371};
1372
1373/* i2c3 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301374static struct omap_hwmod omap44xx_i2c3_hwmod = {
1375 .name = "i2c3",
1376 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001377 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301378 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001379 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301380 .prcm = {
1381 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001382 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001383 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001384 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301385 },
1386 },
Andy Green4d4441a2011-07-10 05:27:16 -06001387 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301388};
1389
1390/* i2c4 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301391static struct omap_hwmod omap44xx_i2c4_hwmod = {
1392 .name = "i2c4",
1393 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001394 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301395 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001396 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301397 .prcm = {
1398 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001399 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001400 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001401 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301402 },
1403 },
Andy Green4d4441a2011-07-10 05:27:16 -06001404 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301405};
1406
1407/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001408 * 'ipu' class
1409 * imaging processor unit
1410 */
1411
1412static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1413 .name = "ipu",
1414};
1415
1416/* ipu */
Benoit Cousson407a6882011-02-15 22:39:48 +01001417static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001418 { .name = "cpu0", .rst_shift = 0 },
1419 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001420};
1421
Benoit Cousson407a6882011-02-15 22:39:48 +01001422static struct omap_hwmod omap44xx_ipu_hwmod = {
1423 .name = "ipu",
1424 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001425 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001426 .rst_lines = omap44xx_ipu_resets,
1427 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001428 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001429 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001430 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001431 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001432 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001433 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001434 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001435 },
1436 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001437};
1438
1439/*
1440 * 'iss' class
1441 * external images sensor pixel data processor
1442 */
1443
1444static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1445 .rev_offs = 0x0000,
1446 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001447 /*
1448 * ISS needs 100 OCP clk cycles delay after a softreset before
1449 * accessing sysconfig again.
1450 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1451 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1452 *
1453 * TODO: Indicate errata when available.
1454 */
1455 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001456 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1457 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1458 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1459 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001460 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001461 .sysc_fields = &omap_hwmod_sysc_type2,
1462};
1463
1464static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1465 .name = "iss",
1466 .sysc = &omap44xx_iss_sysc,
1467};
1468
1469/* iss */
Benoit Cousson407a6882011-02-15 22:39:48 +01001470static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1471 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1472};
1473
1474static struct omap_hwmod omap44xx_iss_hwmod = {
1475 .name = "iss",
1476 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001477 .clkdm_name = "iss_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001478 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001479 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001480 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001481 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001482 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001483 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001484 },
1485 },
1486 .opt_clks = iss_opt_clks,
1487 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001488};
1489
1490/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001491 * 'iva' class
1492 * multi-standard video encoder/decoder hardware accelerator
1493 */
1494
1495static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001496 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001497};
1498
1499/* iva */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001500static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001501 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001502 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001503 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001504};
1505
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001506static struct omap_hwmod omap44xx_iva_hwmod = {
1507 .name = "iva",
1508 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001509 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001510 .rst_lines = omap44xx_iva_resets,
1511 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001512 .main_clk = "dpll_iva_m5x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001513 .prcm = {
1514 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001515 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001516 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001517 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001518 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001519 },
1520 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001521};
1522
1523/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001524 * 'kbd' class
1525 * keyboard controller
1526 */
1527
1528static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1529 .rev_offs = 0x0000,
1530 .sysc_offs = 0x0010,
1531 .syss_offs = 0x0014,
1532 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1533 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1534 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1535 SYSS_HAS_RESET_STATUS),
1536 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1537 .sysc_fields = &omap_hwmod_sysc_type1,
1538};
1539
1540static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1541 .name = "kbd",
1542 .sysc = &omap44xx_kbd_sysc,
1543};
1544
1545/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001546static struct omap_hwmod omap44xx_kbd_hwmod = {
1547 .name = "kbd",
1548 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001549 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001550 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001551 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001552 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001553 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001554 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001555 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001556 },
1557 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001558};
1559
1560/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001561 * 'mailbox' class
1562 * mailbox module allowing communication between the on-chip processors using a
1563 * queued mailbox-interrupt mechanism.
1564 */
1565
1566static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1567 .rev_offs = 0x0000,
1568 .sysc_offs = 0x0010,
1569 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1570 SYSC_HAS_SOFTRESET),
1571 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1572 .sysc_fields = &omap_hwmod_sysc_type2,
1573};
1574
1575static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1576 .name = "mailbox",
1577 .sysc = &omap44xx_mailbox_sysc,
1578};
1579
1580/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001581static struct omap_hwmod omap44xx_mailbox_hwmod = {
1582 .name = "mailbox",
1583 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001584 .clkdm_name = "l4_cfg_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001585 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001586 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001587 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001588 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001589 },
1590 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001591};
1592
1593/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001594 * 'mcasp' class
1595 * multi-channel audio serial port controller
1596 */
1597
1598/* The IP is not compliant to type1 / type2 scheme */
1599static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1600 .sidle_shift = 0,
1601};
1602
1603static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1604 .sysc_offs = 0x0004,
1605 .sysc_flags = SYSC_HAS_SIDLEMODE,
1606 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1607 SIDLE_SMART_WKUP),
1608 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1609};
1610
1611static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1612 .name = "mcasp",
1613 .sysc = &omap44xx_mcasp_sysc,
1614};
1615
1616/* mcasp */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001617static struct omap_hwmod omap44xx_mcasp_hwmod = {
1618 .name = "mcasp",
1619 .class = &omap44xx_mcasp_hwmod_class,
1620 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001621 .main_clk = "func_mcasp_abe_gfclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06001622 .prcm = {
1623 .omap4 = {
1624 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1625 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1626 .modulemode = MODULEMODE_SWCTRL,
1627 },
1628 },
1629};
1630
1631/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001632 * 'mcbsp' class
1633 * multi channel buffered serial port controller
1634 */
1635
1636static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1637 .sysc_offs = 0x008c,
1638 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1639 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1640 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1641 .sysc_fields = &omap_hwmod_sysc_type1,
1642};
1643
1644static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1645 .name = "mcbsp",
1646 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05301647 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001648};
1649
1650/* mcbsp1 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001651static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1652 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001653 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001654};
1655
Benoit Cousson4ddff492011-01-31 14:50:30 +00001656static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1657 .name = "mcbsp1",
1658 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001659 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001660 .main_clk = "func_mcbsp1_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001661 .prcm = {
1662 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001663 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001664 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001665 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001666 },
1667 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001668 .opt_clks = mcbsp1_opt_clks,
1669 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001670};
1671
1672/* mcbsp2 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001673static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1674 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001675 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001676};
1677
Benoit Cousson4ddff492011-01-31 14:50:30 +00001678static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1679 .name = "mcbsp2",
1680 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001681 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001682 .main_clk = "func_mcbsp2_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001683 .prcm = {
1684 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001685 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001686 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001687 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001688 },
1689 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001690 .opt_clks = mcbsp2_opt_clks,
1691 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001692};
1693
1694/* mcbsp3 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001695static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1696 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001697 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001698};
1699
Benoit Cousson4ddff492011-01-31 14:50:30 +00001700static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1701 .name = "mcbsp3",
1702 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001703 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001704 .main_clk = "func_mcbsp3_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001705 .prcm = {
1706 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001707 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001708 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001709 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001710 },
1711 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001712 .opt_clks = mcbsp3_opt_clks,
1713 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001714};
1715
1716/* mcbsp4 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001717static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1718 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001719 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001720};
1721
Benoit Cousson4ddff492011-01-31 14:50:30 +00001722static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1723 .name = "mcbsp4",
1724 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001725 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001726 .main_clk = "per_mcbsp4_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001727 .prcm = {
1728 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001729 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001730 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001731 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001732 },
1733 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001734 .opt_clks = mcbsp4_opt_clks,
1735 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001736};
1737
1738/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001739 * 'mcpdm' class
1740 * multi channel pdm controller (proprietary interface with phoenix power
1741 * ic)
1742 */
1743
1744static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1745 .rev_offs = 0x0000,
1746 .sysc_offs = 0x0010,
1747 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1748 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1749 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1750 SIDLE_SMART_WKUP),
1751 .sysc_fields = &omap_hwmod_sysc_type2,
1752};
1753
1754static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1755 .name = "mcpdm",
1756 .sysc = &omap44xx_mcpdm_sysc,
1757};
1758
1759/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01001760static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1761 .name = "mcpdm",
1762 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001763 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06001764 /*
1765 * It's suspected that the McPDM requires an off-chip main
1766 * functional clock, controlled via I2C. This IP block is
1767 * currently reset very early during boot, before I2C is
1768 * available, so it doesn't seem that we have any choice in
1769 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001770 *
1771 * Also, McPDM needs to be configured to NO_IDLE mode when it
1772 * is in used otherwise vital clocks will be gated which
1773 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06001774 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001775 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001776 .main_clk = "pad_clks_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001777 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001778 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001779 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001780 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001781 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001782 },
1783 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001784};
1785
1786/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301787 * 'mcspi' class
1788 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1789 * bus
1790 */
1791
1792static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1793 .rev_offs = 0x0000,
1794 .sysc_offs = 0x0010,
1795 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1796 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1797 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1798 SIDLE_SMART_WKUP),
1799 .sysc_fields = &omap_hwmod_sysc_type2,
1800};
1801
1802static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1803 .name = "mcspi",
1804 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01001805 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301806};
1807
1808/* mcspi1 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301809static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
1810 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
1811 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
1812 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
1813 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
1814 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
1815 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
1816 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
1817 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001818 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301819};
1820
Benoit Cousson905a74d2011-02-18 14:01:06 +01001821/* mcspi1 dev_attr */
1822static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1823 .num_chipselect = 4,
1824};
1825
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301826static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1827 .name = "mcspi1",
1828 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001829 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301830 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001831 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301832 .prcm = {
1833 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001834 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001835 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001836 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301837 },
1838 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001839 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301840};
1841
1842/* mcspi2 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301843static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
1844 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
1845 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
1846 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
1847 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001848 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301849};
1850
Benoit Cousson905a74d2011-02-18 14:01:06 +01001851/* mcspi2 dev_attr */
1852static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1853 .num_chipselect = 2,
1854};
1855
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301856static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1857 .name = "mcspi2",
1858 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001859 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301860 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001861 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301862 .prcm = {
1863 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001864 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001865 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001866 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301867 },
1868 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001869 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301870};
1871
1872/* mcspi3 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301873static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
1874 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
1875 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
1876 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
1877 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001878 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301879};
1880
Benoit Cousson905a74d2011-02-18 14:01:06 +01001881/* mcspi3 dev_attr */
1882static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1883 .num_chipselect = 2,
1884};
1885
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301886static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1887 .name = "mcspi3",
1888 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001889 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301890 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001891 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301892 .prcm = {
1893 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001894 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001895 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001896 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301897 },
1898 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001899 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301900};
1901
1902/* mcspi4 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301903static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
1904 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
1905 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001906 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301907};
1908
Benoit Cousson905a74d2011-02-18 14:01:06 +01001909/* mcspi4 dev_attr */
1910static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1911 .num_chipselect = 1,
1912};
1913
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301914static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1915 .name = "mcspi4",
1916 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001917 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301918 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001919 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301920 .prcm = {
1921 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001922 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001923 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001924 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301925 },
1926 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001927 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301928};
1929
1930/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001931 * 'mmc' class
1932 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1933 */
1934
1935static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
1936 .rev_offs = 0x0000,
1937 .sysc_offs = 0x0010,
1938 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1939 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1940 SYSC_HAS_SOFTRESET),
1941 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1942 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001943 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001944 .sysc_fields = &omap_hwmod_sysc_type2,
1945};
1946
1947static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
1948 .name = "mmc",
1949 .sysc = &omap44xx_mmc_sysc,
1950};
1951
1952/* mmc1 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001953static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
1954 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
1955 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001956 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001957};
1958
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001959/* mmc1 dev_attr */
Andreas Fenkart55143432014-11-08 15:33:09 +01001960static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001961 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1962};
1963
Benoit Cousson407a6882011-02-15 22:39:48 +01001964static struct omap_hwmod omap44xx_mmc1_hwmod = {
1965 .name = "mmc1",
1966 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001967 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001968 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001969 .main_clk = "hsmmc1_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001970 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001971 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001972 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001973 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001974 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001975 },
1976 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001977 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01001978};
1979
1980/* mmc2 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001981static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
1982 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
1983 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001984 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001985};
1986
Benoit Cousson407a6882011-02-15 22:39:48 +01001987static struct omap_hwmod omap44xx_mmc2_hwmod = {
1988 .name = "mmc2",
1989 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001990 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001991 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001992 .main_clk = "hsmmc2_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001993 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001994 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001995 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001996 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001997 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001998 },
1999 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002000};
2001
2002/* mmc3 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002003static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2004 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2005 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002006 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002007};
2008
Benoit Cousson407a6882011-02-15 22:39:48 +01002009static struct omap_hwmod omap44xx_mmc3_hwmod = {
2010 .name = "mmc3",
2011 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002012 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002013 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002014 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002015 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002016 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002017 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002018 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002019 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002020 },
2021 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002022};
2023
2024/* mmc4 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002025static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2026 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2027 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002028 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002029};
2030
Benoit Cousson407a6882011-02-15 22:39:48 +01002031static struct omap_hwmod omap44xx_mmc4_hwmod = {
2032 .name = "mmc4",
2033 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002034 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002035 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002036 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002037 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002038 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002039 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002040 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002041 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002042 },
2043 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002044};
2045
2046/* mmc5 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002047static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2048 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2049 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002050 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002051};
2052
Benoit Cousson407a6882011-02-15 22:39:48 +01002053static struct omap_hwmod omap44xx_mmc5_hwmod = {
2054 .name = "mmc5",
2055 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002056 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002057 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002058 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002059 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002060 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002061 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002062 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002063 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002064 },
2065 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002066};
2067
2068/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002069 * 'mmu' class
2070 * The memory management unit performs virtual to physical address translation
2071 * for its requestors.
2072 */
2073
2074static struct omap_hwmod_class_sysconfig mmu_sysc = {
2075 .rev_offs = 0x000,
2076 .sysc_offs = 0x010,
2077 .syss_offs = 0x014,
2078 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2079 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2080 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2081 .sysc_fields = &omap_hwmod_sysc_type1,
2082};
2083
2084static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2085 .name = "mmu",
2086 .sysc = &mmu_sysc,
2087};
2088
2089/* mmu ipu */
2090
2091static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002092 .nr_tlb_entries = 32,
2093};
2094
2095static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002096static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2097 { .name = "mmu_cache", .rst_shift = 2 },
2098};
2099
2100static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
2101 {
2102 .pa_start = 0x55082000,
2103 .pa_end = 0x550820ff,
2104 .flags = ADDR_TYPE_RT,
2105 },
2106 { }
2107};
2108
2109/* l3_main_2 -> mmu_ipu */
2110static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2111 .master = &omap44xx_l3_main_2_hwmod,
2112 .slave = &omap44xx_mmu_ipu_hwmod,
2113 .clk = "l3_div_ck",
2114 .addr = omap44xx_mmu_ipu_addrs,
2115 .user = OCP_USER_MPU | OCP_USER_SDMA,
2116};
2117
2118static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2119 .name = "mmu_ipu",
2120 .class = &omap44xx_mmu_hwmod_class,
2121 .clkdm_name = "ducati_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002122 .rst_lines = omap44xx_mmu_ipu_resets,
2123 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2124 .main_clk = "ducati_clk_mux_ck",
2125 .prcm = {
2126 .omap4 = {
2127 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2128 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2129 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2130 .modulemode = MODULEMODE_HWCTRL,
2131 },
2132 },
2133 .dev_attr = &mmu_ipu_dev_attr,
2134};
2135
2136/* mmu dsp */
2137
2138static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002139 .nr_tlb_entries = 32,
2140};
2141
2142static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002143static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2144 { .name = "mmu_cache", .rst_shift = 1 },
2145};
2146
2147static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
2148 {
2149 .pa_start = 0x4a066000,
2150 .pa_end = 0x4a0660ff,
2151 .flags = ADDR_TYPE_RT,
2152 },
2153 { }
2154};
2155
2156/* l4_cfg -> dsp */
2157static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2158 .master = &omap44xx_l4_cfg_hwmod,
2159 .slave = &omap44xx_mmu_dsp_hwmod,
2160 .clk = "l4_div_ck",
2161 .addr = omap44xx_mmu_dsp_addrs,
2162 .user = OCP_USER_MPU | OCP_USER_SDMA,
2163};
2164
2165static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2166 .name = "mmu_dsp",
2167 .class = &omap44xx_mmu_hwmod_class,
2168 .clkdm_name = "tesla_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002169 .rst_lines = omap44xx_mmu_dsp_resets,
2170 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2171 .main_clk = "dpll_iva_m4x2_ck",
2172 .prcm = {
2173 .omap4 = {
2174 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2175 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2176 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2177 .modulemode = MODULEMODE_HWCTRL,
2178 },
2179 },
2180 .dev_attr = &mmu_dsp_dev_attr,
2181};
2182
2183/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002184 * 'mpu' class
2185 * mpu sub-system
2186 */
2187
2188static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002189 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002190};
2191
2192/* mpu */
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002193static struct omap_hwmod omap44xx_mpu_hwmod = {
2194 .name = "mpu",
2195 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002196 .clkdm_name = "mpuss_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +05302197 .flags = HWMOD_INIT_NO_IDLE,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002198 .main_clk = "dpll_mpu_m2_ck",
2199 .prcm = {
2200 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002201 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002202 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002203 },
2204 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002205};
2206
Benoit Cousson92b18d12010-09-23 20:02:41 +05302207/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06002208 * 'ocmc_ram' class
2209 * top-level core on-chip ram
2210 */
2211
2212static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2213 .name = "ocmc_ram",
2214};
2215
2216/* ocmc_ram */
2217static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2218 .name = "ocmc_ram",
2219 .class = &omap44xx_ocmc_ram_hwmod_class,
2220 .clkdm_name = "l3_2_clkdm",
2221 .prcm = {
2222 .omap4 = {
2223 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2224 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2225 },
2226 },
2227};
2228
2229/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002230 * 'ocp2scp' class
2231 * bridge to transform ocp interface protocol to scp (serial control port)
2232 * protocol
2233 */
2234
Benoit Cousson33c976e2012-09-23 17:28:21 -06002235static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2236 .rev_offs = 0x0000,
2237 .sysc_offs = 0x0010,
2238 .syss_offs = 0x0014,
2239 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2240 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2241 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2242 .sysc_fields = &omap_hwmod_sysc_type1,
2243};
2244
Benoît Cousson0c668872012-04-19 13:33:55 -06002245static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2246 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06002247 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06002248};
2249
2250/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06002251static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2252 .name = "ocp2scp_usb_phy",
2253 .class = &omap44xx_ocp2scp_hwmod_class,
2254 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham If4d7a532013-04-10 19:41:38 +00002255 /*
2256 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2257 * block as an "optional clock," and normally should never be
2258 * specified as the main_clk for an OMAP IP block. However it
2259 * turns out that this clock is actually the main clock for
2260 * the ocp2scp_usb_phy IP block:
2261 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2262 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2263 * to be the best workaround.
2264 */
2265 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06002266 .prcm = {
2267 .omap4 = {
2268 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2269 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2270 .modulemode = MODULEMODE_HWCTRL,
2271 },
2272 },
Benoît Cousson0c668872012-04-19 13:33:55 -06002273};
2274
2275/*
Paul Walmsley794b4802012-04-19 13:33:58 -06002276 * 'prcm' class
2277 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2278 * + clock manager 1 (in always on power domain) + local prm in mpu
2279 */
2280
2281static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2282 .name = "prcm",
2283};
2284
2285/* prcm_mpu */
2286static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2287 .name = "prcm_mpu",
2288 .class = &omap44xx_prcm_hwmod_class,
2289 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06002290 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002291 .prcm = {
2292 .omap4 = {
2293 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2294 },
2295 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002296};
2297
2298/* cm_core_aon */
2299static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2300 .name = "cm_core_aon",
2301 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002302 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002303 .prcm = {
2304 .omap4 = {
2305 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2306 },
2307 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002308};
2309
2310/* cm_core */
2311static struct omap_hwmod omap44xx_cm_core_hwmod = {
2312 .name = "cm_core",
2313 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002314 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002315 .prcm = {
2316 .omap4 = {
2317 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2318 },
2319 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002320};
2321
2322/* prm */
Paul Walmsley794b4802012-04-19 13:33:58 -06002323static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2324 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2325 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2326};
2327
2328static struct omap_hwmod omap44xx_prm_hwmod = {
2329 .name = "prm",
2330 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06002331 .rst_lines = omap44xx_prm_resets,
2332 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2333};
2334
2335/*
2336 * 'scrm' class
2337 * system clock and reset manager
2338 */
2339
2340static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2341 .name = "scrm",
2342};
2343
2344/* scrm */
2345static struct omap_hwmod omap44xx_scrm_hwmod = {
2346 .name = "scrm",
2347 .class = &omap44xx_scrm_hwmod_class,
2348 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06002349 .prcm = {
2350 .omap4 = {
2351 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2352 },
2353 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002354};
2355
2356/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06002357 * 'sl2if' class
2358 * shared level 2 memory interface
2359 */
2360
2361static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2362 .name = "sl2if",
2363};
2364
2365/* sl2if */
2366static struct omap_hwmod omap44xx_sl2if_hwmod = {
2367 .name = "sl2if",
2368 .class = &omap44xx_sl2if_hwmod_class,
2369 .clkdm_name = "ivahd_clkdm",
2370 .prcm = {
2371 .omap4 = {
2372 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2373 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2374 .modulemode = MODULEMODE_HWCTRL,
2375 },
2376 },
2377};
2378
2379/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002380 * 'slimbus' class
2381 * bidirectional, multi-drop, multi-channel two-line serial interface between
2382 * the device and external components
2383 */
2384
2385static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2386 .rev_offs = 0x0000,
2387 .sysc_offs = 0x0010,
2388 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2389 SYSC_HAS_SOFTRESET),
2390 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2391 SIDLE_SMART_WKUP),
2392 .sysc_fields = &omap_hwmod_sysc_type2,
2393};
2394
2395static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2396 .name = "slimbus",
2397 .sysc = &omap44xx_slimbus_sysc,
2398};
2399
2400/* slimbus1 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002401static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2402 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2403 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2404 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2405 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2406};
2407
2408static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2409 .name = "slimbus1",
2410 .class = &omap44xx_slimbus_hwmod_class,
2411 .clkdm_name = "abe_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002412 .prcm = {
2413 .omap4 = {
2414 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2415 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2416 .modulemode = MODULEMODE_SWCTRL,
2417 },
2418 },
2419 .opt_clks = slimbus1_opt_clks,
2420 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2421};
2422
2423/* slimbus2 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002424static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2425 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2426 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2427 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2428};
2429
2430static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2431 .name = "slimbus2",
2432 .class = &omap44xx_slimbus_hwmod_class,
2433 .clkdm_name = "l4_per_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002434 .prcm = {
2435 .omap4 = {
2436 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2437 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2438 .modulemode = MODULEMODE_SWCTRL,
2439 },
2440 },
2441 .opt_clks = slimbus2_opt_clks,
2442 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2443};
2444
2445/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002446 * 'smartreflex' class
2447 * smartreflex module (monitor silicon performance and outputs a measure of
2448 * performance error)
2449 */
2450
2451/* The IP is not compliant to type1 / type2 scheme */
2452static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2453 .sidle_shift = 24,
2454 .enwkup_shift = 26,
2455};
2456
2457static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2458 .sysc_offs = 0x0038,
2459 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2460 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2461 SIDLE_SMART_WKUP),
2462 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2463};
2464
2465static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002466 .name = "smartreflex",
2467 .sysc = &omap44xx_smartreflex_sysc,
2468 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002469};
2470
2471/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002472static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2473 .sensor_voltdm_name = "core",
2474};
2475
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002476static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2477 .name = "smartreflex_core",
2478 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002479 .clkdm_name = "l4_ao_clkdm",
Paul Walmsley212738a2011-07-09 19:14:06 -06002480
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002481 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002482 .prcm = {
2483 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002484 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002485 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002486 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002487 },
2488 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002489 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002490};
2491
2492/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002493static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2494 .sensor_voltdm_name = "iva",
2495};
2496
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002497static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2498 .name = "smartreflex_iva",
2499 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002500 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002501 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002502 .prcm = {
2503 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002504 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002505 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002506 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002507 },
2508 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002509 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002510};
2511
2512/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002513static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2514 .sensor_voltdm_name = "mpu",
2515};
2516
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002517static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2518 .name = "smartreflex_mpu",
2519 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002520 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002521 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002522 .prcm = {
2523 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002524 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002525 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002526 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002527 },
2528 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002529 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002530};
2531
2532/*
Benoit Coussond11c2172011-02-02 12:04:36 +00002533 * 'spinlock' class
2534 * spinlock provides hardware assistance for synchronizing the processes
2535 * running on multiple processors
2536 */
2537
2538static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2539 .rev_offs = 0x0000,
2540 .sysc_offs = 0x0010,
2541 .syss_offs = 0x0014,
2542 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2543 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2544 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Suman Anna77319662013-12-23 16:48:48 -06002545 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Benoit Coussond11c2172011-02-02 12:04:36 +00002546 .sysc_fields = &omap_hwmod_sysc_type1,
2547};
2548
2549static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2550 .name = "spinlock",
2551 .sysc = &omap44xx_spinlock_sysc,
2552};
2553
2554/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00002555static struct omap_hwmod omap44xx_spinlock_hwmod = {
2556 .name = "spinlock",
2557 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002558 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00002559 .prcm = {
2560 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002561 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002562 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00002563 },
2564 },
Benoit Coussond11c2172011-02-02 12:04:36 +00002565};
2566
2567/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00002568 * 'timer' class
2569 * general purpose timer module with accurate 1ms tick
2570 * This class contains several variants: ['timer_1ms', 'timer']
2571 */
2572
2573static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2574 .rev_offs = 0x0000,
2575 .sysc_offs = 0x0010,
2576 .syss_offs = 0x0014,
2577 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2578 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2579 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2580 SYSS_HAS_RESET_STATUS),
2581 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Jon Hunter10759e82012-07-11 13:00:13 -05002582 .clockact = CLOCKACT_TEST_ICLK,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002583 .sysc_fields = &omap_hwmod_sysc_type1,
2584};
2585
2586static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2587 .name = "timer",
2588 .sysc = &omap44xx_timer_1ms_sysc,
2589};
2590
2591static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2592 .rev_offs = 0x0000,
2593 .sysc_offs = 0x0010,
2594 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2595 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2596 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2597 SIDLE_SMART_WKUP),
2598 .sysc_fields = &omap_hwmod_sysc_type2,
2599};
2600
2601static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2602 .name = "timer",
2603 .sysc = &omap44xx_timer_sysc,
2604};
2605
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302606/* always-on timers dev attribute */
2607static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
2608 .timer_capability = OMAP_TIMER_ALWON,
2609};
2610
2611/* pwm timers dev attribute */
2612static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
2613 .timer_capability = OMAP_TIMER_HAS_PWM,
2614};
2615
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002616/* timers with DSP interrupt dev attribute */
2617static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
2618 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
2619};
2620
2621/* pwm timers with DSP interrupt dev attribute */
2622static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
2623 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
2624};
2625
Benoit Cousson35d1a662011-02-11 11:17:14 +00002626/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002627static struct omap_hwmod omap44xx_timer1_hwmod = {
2628 .name = "timer1",
2629 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002630 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002631 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002632 .main_clk = "dmt1_clk_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002633 .prcm = {
2634 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002635 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002636 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002637 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002638 },
2639 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302640 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002641};
2642
2643/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002644static struct omap_hwmod omap44xx_timer2_hwmod = {
2645 .name = "timer2",
2646 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002647 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002648 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002649 .main_clk = "cm2_dm2_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002650 .prcm = {
2651 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002652 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002653 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002654 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002655 },
2656 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002657};
2658
2659/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002660static struct omap_hwmod omap44xx_timer3_hwmod = {
2661 .name = "timer3",
2662 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002663 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002664 .main_clk = "cm2_dm3_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002665 .prcm = {
2666 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002667 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002668 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002669 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002670 },
2671 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002672};
2673
2674/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002675static struct omap_hwmod omap44xx_timer4_hwmod = {
2676 .name = "timer4",
2677 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002678 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002679 .main_clk = "cm2_dm4_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002680 .prcm = {
2681 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002682 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002683 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002684 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002685 },
2686 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002687};
2688
2689/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002690static struct omap_hwmod omap44xx_timer5_hwmod = {
2691 .name = "timer5",
2692 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002693 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002694 .main_clk = "timer5_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002695 .prcm = {
2696 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002697 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002698 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002699 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002700 },
2701 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002702 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002703};
2704
2705/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002706static struct omap_hwmod omap44xx_timer6_hwmod = {
2707 .name = "timer6",
2708 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002709 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002710 .main_clk = "timer6_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002711 .prcm = {
2712 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002713 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002714 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002715 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002716 },
2717 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002718 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002719};
2720
2721/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002722static struct omap_hwmod omap44xx_timer7_hwmod = {
2723 .name = "timer7",
2724 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002725 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002726 .main_clk = "timer7_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002727 .prcm = {
2728 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002729 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002730 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002731 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002732 },
2733 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002734 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002735};
2736
2737/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002738static struct omap_hwmod omap44xx_timer8_hwmod = {
2739 .name = "timer8",
2740 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002741 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002742 .main_clk = "timer8_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002743 .prcm = {
2744 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002745 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002746 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002747 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002748 },
2749 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002750 .dev_attr = &capability_dsp_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002751};
2752
2753/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002754static struct omap_hwmod omap44xx_timer9_hwmod = {
2755 .name = "timer9",
2756 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002757 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002758 .main_clk = "cm2_dm9_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002759 .prcm = {
2760 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002761 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002762 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002763 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002764 },
2765 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302766 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002767};
2768
2769/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002770static struct omap_hwmod omap44xx_timer10_hwmod = {
2771 .name = "timer10",
2772 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002773 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002774 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002775 .main_clk = "cm2_dm10_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002776 .prcm = {
2777 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002778 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002779 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002780 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002781 },
2782 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302783 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002784};
2785
2786/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002787static struct omap_hwmod omap44xx_timer11_hwmod = {
2788 .name = "timer11",
2789 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002790 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002791 .main_clk = "cm2_dm11_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002792 .prcm = {
2793 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002794 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002795 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002796 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002797 },
2798 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302799 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002800};
2801
2802/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05302803 * 'uart' class
2804 * universal asynchronous receiver/transmitter (uart)
2805 */
2806
2807static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2808 .rev_offs = 0x0050,
2809 .sysc_offs = 0x0054,
2810 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002811 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002812 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2813 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002814 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2815 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05302816 .sysc_fields = &omap_hwmod_sysc_type1,
2817};
2818
2819static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002820 .name = "uart",
2821 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302822};
2823
2824/* uart1 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302825static struct omap_hwmod omap44xx_uart1_hwmod = {
2826 .name = "uart1",
2827 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002828 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302829 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002830 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302831 .prcm = {
2832 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002833 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002834 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002835 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302836 },
2837 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302838};
2839
2840/* uart2 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302841static struct omap_hwmod omap44xx_uart2_hwmod = {
2842 .name = "uart2",
2843 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002844 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302845 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002846 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302847 .prcm = {
2848 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002849 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002850 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002851 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302852 },
2853 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302854};
2855
2856/* uart3 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302857static struct omap_hwmod omap44xx_uart3_hwmod = {
2858 .name = "uart3",
2859 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002860 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002861 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002862 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302863 .prcm = {
2864 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002865 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002866 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002867 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302868 },
2869 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302870};
2871
2872/* uart4 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302873static struct omap_hwmod omap44xx_uart4_hwmod = {
2874 .name = "uart4",
2875 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002876 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002877 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002878 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302879 .prcm = {
2880 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002881 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002882 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002883 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302884 },
2885 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302886};
2887
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002888/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002889 * 'usb_host_fs' class
2890 * full-speed usb host controller
2891 */
2892
2893/* The IP is not compliant to type1 / type2 scheme */
2894static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
2895 .midle_shift = 4,
2896 .sidle_shift = 2,
2897 .srst_shift = 1,
2898};
2899
2900static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2901 .rev_offs = 0x0000,
2902 .sysc_offs = 0x0210,
2903 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2904 SYSC_HAS_SOFTRESET),
2905 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2906 SIDLE_SMART_WKUP),
2907 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2908};
2909
2910static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2911 .name = "usb_host_fs",
2912 .sysc = &omap44xx_usb_host_fs_sysc,
2913};
2914
2915/* usb_host_fs */
Benoît Cousson0c668872012-04-19 13:33:55 -06002916static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2917 .name = "usb_host_fs",
2918 .class = &omap44xx_usb_host_fs_hwmod_class,
2919 .clkdm_name = "l3_init_clkdm",
Benoît Cousson0c668872012-04-19 13:33:55 -06002920 .main_clk = "usb_host_fs_fck",
2921 .prcm = {
2922 .omap4 = {
2923 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2924 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2925 .modulemode = MODULEMODE_SWCTRL,
2926 },
2927 },
2928};
2929
2930/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002931 * 'usb_host_hs' class
2932 * high-speed multi-port usb host controller
2933 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002934
2935static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2936 .rev_offs = 0x0000,
2937 .sysc_offs = 0x0010,
2938 .syss_offs = 0x0014,
2939 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002940 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002941 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2942 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2943 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2944 .sysc_fields = &omap_hwmod_sysc_type2,
2945};
2946
2947static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002948 .name = "usb_host_hs",
2949 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002950};
2951
Paul Walmsley844a3b62012-04-19 04:04:33 -06002952/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002953static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2954 .name = "usb_host_hs",
2955 .class = &omap44xx_usb_host_hs_hwmod_class,
2956 .clkdm_name = "l3_init_clkdm",
2957 .main_clk = "usb_host_hs_fck",
2958 .prcm = {
2959 .omap4 = {
2960 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2961 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2962 .modulemode = MODULEMODE_SWCTRL,
2963 },
2964 },
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002965
2966 /*
2967 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2968 * id: i660
2969 *
2970 * Description:
2971 * In the following configuration :
2972 * - USBHOST module is set to smart-idle mode
2973 * - PRCM asserts idle_req to the USBHOST module ( This typically
2974 * happens when the system is going to a low power mode : all ports
2975 * have been suspended, the master part of the USBHOST module has
2976 * entered the standby state, and SW has cut the functional clocks)
2977 * - an USBHOST interrupt occurs before the module is able to answer
2978 * idle_ack, typically a remote wakeup IRQ.
2979 * Then the USB HOST module will enter a deadlock situation where it
2980 * is no more accessible nor functional.
2981 *
2982 * Workaround:
2983 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2984 */
2985
2986 /*
2987 * Errata: USB host EHCI may stall when entering smart-standby mode
2988 * Id: i571
2989 *
2990 * Description:
2991 * When the USBHOST module is set to smart-standby mode, and when it is
2992 * ready to enter the standby state (i.e. all ports are suspended and
2993 * all attached devices are in suspend mode), then it can wrongly assert
2994 * the Mstandby signal too early while there are still some residual OCP
2995 * transactions ongoing. If this condition occurs, the internal state
2996 * machine may go to an undefined state and the USB link may be stuck
2997 * upon the next resume.
2998 *
2999 * Workaround:
3000 * Don't use smart standby; use only force standby,
3001 * hence HWMOD_SWSUP_MSTANDBY
3002 */
3003
Roger Quadrosb483a4a2013-12-03 16:25:46 +02003004 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003005};
3006
3007/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06003008 * 'usb_otg_hs' class
3009 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3010 */
3011
3012static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3013 .rev_offs = 0x0400,
3014 .sysc_offs = 0x0404,
3015 .syss_offs = 0x0408,
3016 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3017 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3018 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3019 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3020 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3021 MSTANDBY_SMART),
3022 .sysc_fields = &omap_hwmod_sysc_type1,
3023};
3024
3025static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3026 .name = "usb_otg_hs",
3027 .sysc = &omap44xx_usb_otg_hs_sysc,
3028};
3029
3030/* usb_otg_hs */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003031static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3032 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3033};
3034
3035static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3036 .name = "usb_otg_hs",
3037 .class = &omap44xx_usb_otg_hs_hwmod_class,
3038 .clkdm_name = "l3_init_clkdm",
3039 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003040 .main_clk = "usb_otg_hs_ick",
3041 .prcm = {
3042 .omap4 = {
3043 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3044 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3045 .modulemode = MODULEMODE_HWCTRL,
3046 },
3047 },
3048 .opt_clks = usb_otg_hs_opt_clks,
3049 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3050};
3051
3052/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003053 * 'usb_tll_hs' class
3054 * usb_tll_hs module is the adapter on the usb_host_hs ports
3055 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003056
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003057static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3058 .rev_offs = 0x0000,
3059 .sysc_offs = 0x0010,
3060 .syss_offs = 0x0014,
3061 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3062 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3063 SYSC_HAS_AUTOIDLE),
3064 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3065 .sysc_fields = &omap_hwmod_sysc_type1,
3066};
3067
3068static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003069 .name = "usb_tll_hs",
3070 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003071};
3072
Paul Walmsley844a3b62012-04-19 04:04:33 -06003073static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3074 .name = "usb_tll_hs",
3075 .class = &omap44xx_usb_tll_hs_hwmod_class,
3076 .clkdm_name = "l3_init_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003077 .main_clk = "usb_tll_hs_ick",
3078 .prcm = {
3079 .omap4 = {
3080 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3081 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3082 .modulemode = MODULEMODE_HWCTRL,
3083 },
3084 },
3085};
3086
3087/*
3088 * 'wd_timer' class
3089 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3090 * overflow condition
3091 */
3092
3093static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3094 .rev_offs = 0x0000,
3095 .sysc_offs = 0x0010,
3096 .syss_offs = 0x0014,
3097 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3098 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3099 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3100 SIDLE_SMART_WKUP),
3101 .sysc_fields = &omap_hwmod_sysc_type1,
3102};
3103
3104static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3105 .name = "wd_timer",
3106 .sysc = &omap44xx_wd_timer_sysc,
3107 .pre_shutdown = &omap2_wd_timer_disable,
Kevin Hilman414e4122012-05-08 11:34:30 -06003108 .reset = &omap2_wd_timer_reset,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003109};
3110
3111/* wd_timer2 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003112static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3113 .name = "wd_timer2",
3114 .class = &omap44xx_wd_timer_hwmod_class,
3115 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003116 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003117 .prcm = {
3118 .omap4 = {
3119 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3120 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3121 .modulemode = MODULEMODE_SWCTRL,
3122 },
3123 },
3124};
3125
3126/* wd_timer3 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003127static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3128 .name = "wd_timer3",
3129 .class = &omap44xx_wd_timer_hwmod_class,
3130 .clkdm_name = "abe_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003131 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003132 .prcm = {
3133 .omap4 = {
3134 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3135 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3136 .modulemode = MODULEMODE_SWCTRL,
3137 },
3138 },
3139};
3140
3141
3142/*
3143 * interfaces
3144 */
3145
3146/* l3_main_1 -> dmm */
3147static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3148 .master = &omap44xx_l3_main_1_hwmod,
3149 .slave = &omap44xx_dmm_hwmod,
3150 .clk = "l3_div_ck",
3151 .user = OCP_USER_SDMA,
3152};
3153
Paul Walmsley844a3b62012-04-19 04:04:33 -06003154/* mpu -> dmm */
3155static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3156 .master = &omap44xx_mpu_hwmod,
3157 .slave = &omap44xx_dmm_hwmod,
3158 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003159 .user = OCP_USER_MPU,
3160};
3161
3162/* iva -> l3_instr */
3163static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3164 .master = &omap44xx_iva_hwmod,
3165 .slave = &omap44xx_l3_instr_hwmod,
3166 .clk = "l3_div_ck",
3167 .user = OCP_USER_MPU | OCP_USER_SDMA,
3168};
3169
3170/* l3_main_3 -> l3_instr */
3171static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3172 .master = &omap44xx_l3_main_3_hwmod,
3173 .slave = &omap44xx_l3_instr_hwmod,
3174 .clk = "l3_div_ck",
3175 .user = OCP_USER_MPU | OCP_USER_SDMA,
3176};
3177
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003178/* ocp_wp_noc -> l3_instr */
3179static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3180 .master = &omap44xx_ocp_wp_noc_hwmod,
3181 .slave = &omap44xx_l3_instr_hwmod,
3182 .clk = "l3_div_ck",
3183 .user = OCP_USER_MPU | OCP_USER_SDMA,
3184};
3185
Paul Walmsley844a3b62012-04-19 04:04:33 -06003186/* dsp -> l3_main_1 */
3187static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3188 .master = &omap44xx_dsp_hwmod,
3189 .slave = &omap44xx_l3_main_1_hwmod,
3190 .clk = "l3_div_ck",
3191 .user = OCP_USER_MPU | OCP_USER_SDMA,
3192};
3193
3194/* dss -> l3_main_1 */
3195static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3196 .master = &omap44xx_dss_hwmod,
3197 .slave = &omap44xx_l3_main_1_hwmod,
3198 .clk = "l3_div_ck",
3199 .user = OCP_USER_MPU | OCP_USER_SDMA,
3200};
3201
3202/* l3_main_2 -> l3_main_1 */
3203static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3204 .master = &omap44xx_l3_main_2_hwmod,
3205 .slave = &omap44xx_l3_main_1_hwmod,
3206 .clk = "l3_div_ck",
3207 .user = OCP_USER_MPU | OCP_USER_SDMA,
3208};
3209
3210/* l4_cfg -> l3_main_1 */
3211static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3212 .master = &omap44xx_l4_cfg_hwmod,
3213 .slave = &omap44xx_l3_main_1_hwmod,
3214 .clk = "l4_div_ck",
3215 .user = OCP_USER_MPU | OCP_USER_SDMA,
3216};
3217
3218/* mmc1 -> l3_main_1 */
3219static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3220 .master = &omap44xx_mmc1_hwmod,
3221 .slave = &omap44xx_l3_main_1_hwmod,
3222 .clk = "l3_div_ck",
3223 .user = OCP_USER_MPU | OCP_USER_SDMA,
3224};
3225
3226/* mmc2 -> l3_main_1 */
3227static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3228 .master = &omap44xx_mmc2_hwmod,
3229 .slave = &omap44xx_l3_main_1_hwmod,
3230 .clk = "l3_div_ck",
3231 .user = OCP_USER_MPU | OCP_USER_SDMA,
3232};
3233
Paul Walmsley844a3b62012-04-19 04:04:33 -06003234/* mpu -> l3_main_1 */
3235static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3236 .master = &omap44xx_mpu_hwmod,
3237 .slave = &omap44xx_l3_main_1_hwmod,
3238 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003239 .user = OCP_USER_MPU,
3240};
3241
Benoît Cousson96566042012-04-19 13:33:59 -06003242/* debugss -> l3_main_2 */
3243static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3244 .master = &omap44xx_debugss_hwmod,
3245 .slave = &omap44xx_l3_main_2_hwmod,
3246 .clk = "dbgclk_mux_ck",
3247 .user = OCP_USER_MPU | OCP_USER_SDMA,
3248};
3249
Paul Walmsley844a3b62012-04-19 04:04:33 -06003250/* dma_system -> l3_main_2 */
3251static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3252 .master = &omap44xx_dma_system_hwmod,
3253 .slave = &omap44xx_l3_main_2_hwmod,
3254 .clk = "l3_div_ck",
3255 .user = OCP_USER_MPU | OCP_USER_SDMA,
3256};
3257
Ming Leib050f682012-04-19 13:33:50 -06003258/* fdif -> l3_main_2 */
3259static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3260 .master = &omap44xx_fdif_hwmod,
3261 .slave = &omap44xx_l3_main_2_hwmod,
3262 .clk = "l3_div_ck",
3263 .user = OCP_USER_MPU | OCP_USER_SDMA,
3264};
3265
Paul Walmsley9def3902012-04-19 13:33:53 -06003266/* gpu -> l3_main_2 */
3267static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3268 .master = &omap44xx_gpu_hwmod,
3269 .slave = &omap44xx_l3_main_2_hwmod,
3270 .clk = "l3_div_ck",
3271 .user = OCP_USER_MPU | OCP_USER_SDMA,
3272};
3273
Paul Walmsley844a3b62012-04-19 04:04:33 -06003274/* hsi -> l3_main_2 */
3275static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3276 .master = &omap44xx_hsi_hwmod,
3277 .slave = &omap44xx_l3_main_2_hwmod,
3278 .clk = "l3_div_ck",
3279 .user = OCP_USER_MPU | OCP_USER_SDMA,
3280};
3281
3282/* ipu -> l3_main_2 */
3283static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3284 .master = &omap44xx_ipu_hwmod,
3285 .slave = &omap44xx_l3_main_2_hwmod,
3286 .clk = "l3_div_ck",
3287 .user = OCP_USER_MPU | OCP_USER_SDMA,
3288};
3289
3290/* iss -> l3_main_2 */
3291static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3292 .master = &omap44xx_iss_hwmod,
3293 .slave = &omap44xx_l3_main_2_hwmod,
3294 .clk = "l3_div_ck",
3295 .user = OCP_USER_MPU | OCP_USER_SDMA,
3296};
3297
3298/* iva -> l3_main_2 */
3299static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3300 .master = &omap44xx_iva_hwmod,
3301 .slave = &omap44xx_l3_main_2_hwmod,
3302 .clk = "l3_div_ck",
3303 .user = OCP_USER_MPU | OCP_USER_SDMA,
3304};
3305
Paul Walmsley844a3b62012-04-19 04:04:33 -06003306/* l3_main_1 -> l3_main_2 */
3307static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3308 .master = &omap44xx_l3_main_1_hwmod,
3309 .slave = &omap44xx_l3_main_2_hwmod,
3310 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003311 .user = OCP_USER_MPU,
3312};
3313
3314/* l4_cfg -> l3_main_2 */
3315static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3316 .master = &omap44xx_l4_cfg_hwmod,
3317 .slave = &omap44xx_l3_main_2_hwmod,
3318 .clk = "l4_div_ck",
3319 .user = OCP_USER_MPU | OCP_USER_SDMA,
3320};
3321
Benoît Cousson0c668872012-04-19 13:33:55 -06003322/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003323static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06003324 .master = &omap44xx_usb_host_fs_hwmod,
3325 .slave = &omap44xx_l3_main_2_hwmod,
3326 .clk = "l3_div_ck",
3327 .user = OCP_USER_MPU | OCP_USER_SDMA,
3328};
3329
Paul Walmsley844a3b62012-04-19 04:04:33 -06003330/* usb_host_hs -> l3_main_2 */
3331static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3332 .master = &omap44xx_usb_host_hs_hwmod,
3333 .slave = &omap44xx_l3_main_2_hwmod,
3334 .clk = "l3_div_ck",
3335 .user = OCP_USER_MPU | OCP_USER_SDMA,
3336};
3337
3338/* usb_otg_hs -> l3_main_2 */
3339static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3340 .master = &omap44xx_usb_otg_hs_hwmod,
3341 .slave = &omap44xx_l3_main_2_hwmod,
3342 .clk = "l3_div_ck",
3343 .user = OCP_USER_MPU | OCP_USER_SDMA,
3344};
3345
Paul Walmsley844a3b62012-04-19 04:04:33 -06003346/* l3_main_1 -> l3_main_3 */
3347static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3348 .master = &omap44xx_l3_main_1_hwmod,
3349 .slave = &omap44xx_l3_main_3_hwmod,
3350 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003351 .user = OCP_USER_MPU,
3352};
3353
3354/* l3_main_2 -> l3_main_3 */
3355static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3356 .master = &omap44xx_l3_main_2_hwmod,
3357 .slave = &omap44xx_l3_main_3_hwmod,
3358 .clk = "l3_div_ck",
3359 .user = OCP_USER_MPU | OCP_USER_SDMA,
3360};
3361
3362/* l4_cfg -> l3_main_3 */
3363static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3364 .master = &omap44xx_l4_cfg_hwmod,
3365 .slave = &omap44xx_l3_main_3_hwmod,
3366 .clk = "l4_div_ck",
3367 .user = OCP_USER_MPU | OCP_USER_SDMA,
3368};
3369
3370/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003371static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003372 .master = &omap44xx_aess_hwmod,
3373 .slave = &omap44xx_l4_abe_hwmod,
3374 .clk = "ocp_abe_iclk",
3375 .user = OCP_USER_MPU | OCP_USER_SDMA,
3376};
3377
3378/* dsp -> l4_abe */
3379static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3380 .master = &omap44xx_dsp_hwmod,
3381 .slave = &omap44xx_l4_abe_hwmod,
3382 .clk = "ocp_abe_iclk",
3383 .user = OCP_USER_MPU | OCP_USER_SDMA,
3384};
3385
3386/* l3_main_1 -> l4_abe */
3387static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3388 .master = &omap44xx_l3_main_1_hwmod,
3389 .slave = &omap44xx_l4_abe_hwmod,
3390 .clk = "l3_div_ck",
3391 .user = OCP_USER_MPU | OCP_USER_SDMA,
3392};
3393
3394/* mpu -> l4_abe */
3395static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3396 .master = &omap44xx_mpu_hwmod,
3397 .slave = &omap44xx_l4_abe_hwmod,
3398 .clk = "ocp_abe_iclk",
3399 .user = OCP_USER_MPU | OCP_USER_SDMA,
3400};
3401
3402/* l3_main_1 -> l4_cfg */
3403static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3404 .master = &omap44xx_l3_main_1_hwmod,
3405 .slave = &omap44xx_l4_cfg_hwmod,
3406 .clk = "l3_div_ck",
3407 .user = OCP_USER_MPU | OCP_USER_SDMA,
3408};
3409
3410/* l3_main_2 -> l4_per */
3411static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3412 .master = &omap44xx_l3_main_2_hwmod,
3413 .slave = &omap44xx_l4_per_hwmod,
3414 .clk = "l3_div_ck",
3415 .user = OCP_USER_MPU | OCP_USER_SDMA,
3416};
3417
3418/* l4_cfg -> l4_wkup */
3419static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3420 .master = &omap44xx_l4_cfg_hwmod,
3421 .slave = &omap44xx_l4_wkup_hwmod,
3422 .clk = "l4_div_ck",
3423 .user = OCP_USER_MPU | OCP_USER_SDMA,
3424};
3425
3426/* mpu -> mpu_private */
3427static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3428 .master = &omap44xx_mpu_hwmod,
3429 .slave = &omap44xx_mpu_private_hwmod,
3430 .clk = "l3_div_ck",
3431 .user = OCP_USER_MPU | OCP_USER_SDMA,
3432};
3433
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003434/* l4_cfg -> ocp_wp_noc */
3435static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3436 .master = &omap44xx_l4_cfg_hwmod,
3437 .slave = &omap44xx_ocp_wp_noc_hwmod,
3438 .clk = "l4_div_ck",
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003439 .user = OCP_USER_MPU | OCP_USER_SDMA,
3440};
3441
Paul Walmsley844a3b62012-04-19 04:04:33 -06003442static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
3443 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003444 .name = "dmem",
3445 .pa_start = 0x40180000,
3446 .pa_end = 0x4018ffff
3447 },
3448 {
3449 .name = "cmem",
3450 .pa_start = 0x401a0000,
3451 .pa_end = 0x401a1fff
3452 },
3453 {
3454 .name = "smem",
3455 .pa_start = 0x401c0000,
3456 .pa_end = 0x401c5fff
3457 },
3458 {
3459 .name = "pmem",
3460 .pa_start = 0x401e0000,
3461 .pa_end = 0x401e1fff
3462 },
3463 {
3464 .name = "mpu",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003465 .pa_start = 0x401f1000,
3466 .pa_end = 0x401f13ff,
3467 .flags = ADDR_TYPE_RT
3468 },
3469 { }
3470};
3471
3472/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003473static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003474 .master = &omap44xx_l4_abe_hwmod,
3475 .slave = &omap44xx_aess_hwmod,
3476 .clk = "ocp_abe_iclk",
3477 .addr = omap44xx_aess_addrs,
3478 .user = OCP_USER_MPU,
3479};
3480
3481static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
3482 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003483 .name = "dmem_dma",
3484 .pa_start = 0x49080000,
3485 .pa_end = 0x4908ffff
3486 },
3487 {
3488 .name = "cmem_dma",
3489 .pa_start = 0x490a0000,
3490 .pa_end = 0x490a1fff
3491 },
3492 {
3493 .name = "smem_dma",
3494 .pa_start = 0x490c0000,
3495 .pa_end = 0x490c5fff
3496 },
3497 {
3498 .name = "pmem_dma",
3499 .pa_start = 0x490e0000,
3500 .pa_end = 0x490e1fff
3501 },
3502 {
3503 .name = "dma",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003504 .pa_start = 0x490f1000,
3505 .pa_end = 0x490f13ff,
3506 .flags = ADDR_TYPE_RT
3507 },
3508 { }
3509};
3510
3511/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003512static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003513 .master = &omap44xx_l4_abe_hwmod,
3514 .slave = &omap44xx_aess_hwmod,
3515 .clk = "ocp_abe_iclk",
3516 .addr = omap44xx_aess_dma_addrs,
3517 .user = OCP_USER_SDMA,
3518};
3519
Paul Walmsley42b9e382012-04-19 13:33:54 -06003520/* l3_main_2 -> c2c */
3521static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3522 .master = &omap44xx_l3_main_2_hwmod,
3523 .slave = &omap44xx_c2c_hwmod,
3524 .clk = "l3_div_ck",
3525 .user = OCP_USER_MPU | OCP_USER_SDMA,
3526};
3527
Paul Walmsley844a3b62012-04-19 04:04:33 -06003528/* l4_wkup -> counter_32k */
3529static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3530 .master = &omap44xx_l4_wkup_hwmod,
3531 .slave = &omap44xx_counter_32k_hwmod,
3532 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003533 .user = OCP_USER_MPU | OCP_USER_SDMA,
3534};
3535
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003536static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
3537 {
3538 .pa_start = 0x4a002000,
3539 .pa_end = 0x4a0027ff,
3540 .flags = ADDR_TYPE_RT
3541 },
3542 { }
3543};
3544
3545/* l4_cfg -> ctrl_module_core */
3546static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3547 .master = &omap44xx_l4_cfg_hwmod,
3548 .slave = &omap44xx_ctrl_module_core_hwmod,
3549 .clk = "l4_div_ck",
3550 .addr = omap44xx_ctrl_module_core_addrs,
3551 .user = OCP_USER_MPU | OCP_USER_SDMA,
3552};
3553
3554static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
3555 {
3556 .pa_start = 0x4a100000,
3557 .pa_end = 0x4a1007ff,
3558 .flags = ADDR_TYPE_RT
3559 },
3560 { }
3561};
3562
3563/* l4_cfg -> ctrl_module_pad_core */
3564static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3565 .master = &omap44xx_l4_cfg_hwmod,
3566 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3567 .clk = "l4_div_ck",
3568 .addr = omap44xx_ctrl_module_pad_core_addrs,
3569 .user = OCP_USER_MPU | OCP_USER_SDMA,
3570};
3571
3572static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
3573 {
3574 .pa_start = 0x4a30c000,
3575 .pa_end = 0x4a30c7ff,
3576 .flags = ADDR_TYPE_RT
3577 },
3578 { }
3579};
3580
3581/* l4_wkup -> ctrl_module_wkup */
3582static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3583 .master = &omap44xx_l4_wkup_hwmod,
3584 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3585 .clk = "l4_wkup_clk_mux_ck",
3586 .addr = omap44xx_ctrl_module_wkup_addrs,
3587 .user = OCP_USER_MPU | OCP_USER_SDMA,
3588};
3589
3590static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
3591 {
3592 .pa_start = 0x4a31e000,
3593 .pa_end = 0x4a31e7ff,
3594 .flags = ADDR_TYPE_RT
3595 },
3596 { }
3597};
3598
3599/* l4_wkup -> ctrl_module_pad_wkup */
3600static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3601 .master = &omap44xx_l4_wkup_hwmod,
3602 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3603 .clk = "l4_wkup_clk_mux_ck",
3604 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
3605 .user = OCP_USER_MPU | OCP_USER_SDMA,
3606};
3607
Benoît Cousson96566042012-04-19 13:33:59 -06003608/* l3_instr -> debugss */
3609static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3610 .master = &omap44xx_l3_instr_hwmod,
3611 .slave = &omap44xx_debugss_hwmod,
3612 .clk = "l3_div_ck",
Benoît Cousson96566042012-04-19 13:33:59 -06003613 .user = OCP_USER_MPU | OCP_USER_SDMA,
3614};
3615
Paul Walmsley844a3b62012-04-19 04:04:33 -06003616static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
3617 {
3618 .pa_start = 0x4a056000,
3619 .pa_end = 0x4a056fff,
3620 .flags = ADDR_TYPE_RT
3621 },
3622 { }
3623};
3624
3625/* l4_cfg -> dma_system */
3626static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3627 .master = &omap44xx_l4_cfg_hwmod,
3628 .slave = &omap44xx_dma_system_hwmod,
3629 .clk = "l4_div_ck",
3630 .addr = omap44xx_dma_system_addrs,
3631 .user = OCP_USER_MPU | OCP_USER_SDMA,
3632};
3633
Paul Walmsley844a3b62012-04-19 04:04:33 -06003634/* l4_abe -> dmic */
3635static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3636 .master = &omap44xx_l4_abe_hwmod,
3637 .slave = &omap44xx_dmic_hwmod,
3638 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003639 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003640};
3641
3642/* dsp -> iva */
3643static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3644 .master = &omap44xx_dsp_hwmod,
3645 .slave = &omap44xx_iva_hwmod,
3646 .clk = "dpll_iva_m5x2_ck",
3647 .user = OCP_USER_DSP,
3648};
3649
Paul Walmsley42b9e382012-04-19 13:33:54 -06003650/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003651static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003652 .master = &omap44xx_dsp_hwmod,
3653 .slave = &omap44xx_sl2if_hwmod,
3654 .clk = "dpll_iva_m5x2_ck",
3655 .user = OCP_USER_DSP,
3656};
3657
Paul Walmsley844a3b62012-04-19 04:04:33 -06003658/* l4_cfg -> dsp */
3659static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3660 .master = &omap44xx_l4_cfg_hwmod,
3661 .slave = &omap44xx_dsp_hwmod,
3662 .clk = "l4_div_ck",
3663 .user = OCP_USER_MPU | OCP_USER_SDMA,
3664};
3665
3666static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
3667 {
3668 .pa_start = 0x58000000,
3669 .pa_end = 0x5800007f,
3670 .flags = ADDR_TYPE_RT
3671 },
3672 { }
3673};
3674
3675/* l3_main_2 -> dss */
3676static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3677 .master = &omap44xx_l3_main_2_hwmod,
3678 .slave = &omap44xx_dss_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003679 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003680 .addr = omap44xx_dss_dma_addrs,
3681 .user = OCP_USER_SDMA,
3682};
3683
3684static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
3685 {
3686 .pa_start = 0x48040000,
3687 .pa_end = 0x4804007f,
3688 .flags = ADDR_TYPE_RT
3689 },
3690 { }
3691};
3692
3693/* l4_per -> dss */
3694static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3695 .master = &omap44xx_l4_per_hwmod,
3696 .slave = &omap44xx_dss_hwmod,
3697 .clk = "l4_div_ck",
3698 .addr = omap44xx_dss_addrs,
3699 .user = OCP_USER_MPU,
3700};
3701
3702static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
3703 {
3704 .pa_start = 0x58001000,
3705 .pa_end = 0x58001fff,
3706 .flags = ADDR_TYPE_RT
3707 },
3708 { }
3709};
3710
3711/* l3_main_2 -> dss_dispc */
3712static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3713 .master = &omap44xx_l3_main_2_hwmod,
3714 .slave = &omap44xx_dss_dispc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003715 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003716 .addr = omap44xx_dss_dispc_dma_addrs,
3717 .user = OCP_USER_SDMA,
3718};
3719
3720static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
3721 {
3722 .pa_start = 0x48041000,
3723 .pa_end = 0x48041fff,
3724 .flags = ADDR_TYPE_RT
3725 },
3726 { }
3727};
3728
3729/* l4_per -> dss_dispc */
3730static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3731 .master = &omap44xx_l4_per_hwmod,
3732 .slave = &omap44xx_dss_dispc_hwmod,
3733 .clk = "l4_div_ck",
3734 .addr = omap44xx_dss_dispc_addrs,
3735 .user = OCP_USER_MPU,
3736};
3737
3738static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
3739 {
3740 .pa_start = 0x58004000,
3741 .pa_end = 0x580041ff,
3742 .flags = ADDR_TYPE_RT
3743 },
3744 { }
3745};
3746
3747/* l3_main_2 -> dss_dsi1 */
3748static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3749 .master = &omap44xx_l3_main_2_hwmod,
3750 .slave = &omap44xx_dss_dsi1_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003751 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003752 .addr = omap44xx_dss_dsi1_dma_addrs,
3753 .user = OCP_USER_SDMA,
3754};
3755
3756static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
3757 {
3758 .pa_start = 0x48044000,
3759 .pa_end = 0x480441ff,
3760 .flags = ADDR_TYPE_RT
3761 },
3762 { }
3763};
3764
3765/* l4_per -> dss_dsi1 */
3766static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3767 .master = &omap44xx_l4_per_hwmod,
3768 .slave = &omap44xx_dss_dsi1_hwmod,
3769 .clk = "l4_div_ck",
3770 .addr = omap44xx_dss_dsi1_addrs,
3771 .user = OCP_USER_MPU,
3772};
3773
3774static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
3775 {
3776 .pa_start = 0x58005000,
3777 .pa_end = 0x580051ff,
3778 .flags = ADDR_TYPE_RT
3779 },
3780 { }
3781};
3782
3783/* l3_main_2 -> dss_dsi2 */
3784static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3785 .master = &omap44xx_l3_main_2_hwmod,
3786 .slave = &omap44xx_dss_dsi2_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003787 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003788 .addr = omap44xx_dss_dsi2_dma_addrs,
3789 .user = OCP_USER_SDMA,
3790};
3791
3792static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
3793 {
3794 .pa_start = 0x48045000,
3795 .pa_end = 0x480451ff,
3796 .flags = ADDR_TYPE_RT
3797 },
3798 { }
3799};
3800
3801/* l4_per -> dss_dsi2 */
3802static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3803 .master = &omap44xx_l4_per_hwmod,
3804 .slave = &omap44xx_dss_dsi2_hwmod,
3805 .clk = "l4_div_ck",
3806 .addr = omap44xx_dss_dsi2_addrs,
3807 .user = OCP_USER_MPU,
3808};
3809
3810static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
3811 {
3812 .pa_start = 0x58006000,
3813 .pa_end = 0x58006fff,
3814 .flags = ADDR_TYPE_RT
3815 },
3816 { }
3817};
3818
3819/* l3_main_2 -> dss_hdmi */
3820static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3821 .master = &omap44xx_l3_main_2_hwmod,
3822 .slave = &omap44xx_dss_hdmi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003823 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003824 .addr = omap44xx_dss_hdmi_dma_addrs,
3825 .user = OCP_USER_SDMA,
3826};
3827
3828static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
3829 {
3830 .pa_start = 0x48046000,
3831 .pa_end = 0x48046fff,
3832 .flags = ADDR_TYPE_RT
3833 },
3834 { }
3835};
3836
3837/* l4_per -> dss_hdmi */
3838static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3839 .master = &omap44xx_l4_per_hwmod,
3840 .slave = &omap44xx_dss_hdmi_hwmod,
3841 .clk = "l4_div_ck",
3842 .addr = omap44xx_dss_hdmi_addrs,
3843 .user = OCP_USER_MPU,
3844};
3845
3846static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
3847 {
3848 .pa_start = 0x58002000,
3849 .pa_end = 0x580020ff,
3850 .flags = ADDR_TYPE_RT
3851 },
3852 { }
3853};
3854
3855/* l3_main_2 -> dss_rfbi */
3856static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3857 .master = &omap44xx_l3_main_2_hwmod,
3858 .slave = &omap44xx_dss_rfbi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003859 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003860 .addr = omap44xx_dss_rfbi_dma_addrs,
3861 .user = OCP_USER_SDMA,
3862};
3863
3864static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
3865 {
3866 .pa_start = 0x48042000,
3867 .pa_end = 0x480420ff,
3868 .flags = ADDR_TYPE_RT
3869 },
3870 { }
3871};
3872
3873/* l4_per -> dss_rfbi */
3874static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3875 .master = &omap44xx_l4_per_hwmod,
3876 .slave = &omap44xx_dss_rfbi_hwmod,
3877 .clk = "l4_div_ck",
3878 .addr = omap44xx_dss_rfbi_addrs,
3879 .user = OCP_USER_MPU,
3880};
3881
3882static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
3883 {
3884 .pa_start = 0x58003000,
3885 .pa_end = 0x580030ff,
3886 .flags = ADDR_TYPE_RT
3887 },
3888 { }
3889};
3890
3891/* l3_main_2 -> dss_venc */
3892static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3893 .master = &omap44xx_l3_main_2_hwmod,
3894 .slave = &omap44xx_dss_venc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003895 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003896 .addr = omap44xx_dss_venc_dma_addrs,
3897 .user = OCP_USER_SDMA,
3898};
3899
3900static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
3901 {
3902 .pa_start = 0x48043000,
3903 .pa_end = 0x480430ff,
3904 .flags = ADDR_TYPE_RT
3905 },
3906 { }
3907};
3908
3909/* l4_per -> dss_venc */
3910static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3911 .master = &omap44xx_l4_per_hwmod,
3912 .slave = &omap44xx_dss_venc_hwmod,
3913 .clk = "l4_div_ck",
3914 .addr = omap44xx_dss_venc_addrs,
3915 .user = OCP_USER_MPU,
3916};
3917
Paul Walmsley42b9e382012-04-19 13:33:54 -06003918static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
3919 {
3920 .pa_start = 0x48078000,
3921 .pa_end = 0x48078fff,
3922 .flags = ADDR_TYPE_RT
3923 },
3924 { }
3925};
3926
3927/* l4_per -> elm */
3928static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3929 .master = &omap44xx_l4_per_hwmod,
3930 .slave = &omap44xx_elm_hwmod,
3931 .clk = "l4_div_ck",
3932 .addr = omap44xx_elm_addrs,
3933 .user = OCP_USER_MPU | OCP_USER_SDMA,
3934};
3935
Ming Leib050f682012-04-19 13:33:50 -06003936static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
3937 {
3938 .pa_start = 0x4a10a000,
3939 .pa_end = 0x4a10a1ff,
3940 .flags = ADDR_TYPE_RT
3941 },
3942 { }
3943};
3944
3945/* l4_cfg -> fdif */
3946static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3947 .master = &omap44xx_l4_cfg_hwmod,
3948 .slave = &omap44xx_fdif_hwmod,
3949 .clk = "l4_div_ck",
3950 .addr = omap44xx_fdif_addrs,
3951 .user = OCP_USER_MPU | OCP_USER_SDMA,
3952};
3953
Paul Walmsley844a3b62012-04-19 04:04:33 -06003954/* l4_wkup -> gpio1 */
3955static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3956 .master = &omap44xx_l4_wkup_hwmod,
3957 .slave = &omap44xx_gpio1_hwmod,
3958 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003959 .user = OCP_USER_MPU | OCP_USER_SDMA,
3960};
3961
Paul Walmsley844a3b62012-04-19 04:04:33 -06003962/* l4_per -> gpio2 */
3963static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3964 .master = &omap44xx_l4_per_hwmod,
3965 .slave = &omap44xx_gpio2_hwmod,
3966 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003967 .user = OCP_USER_MPU | OCP_USER_SDMA,
3968};
3969
Paul Walmsley844a3b62012-04-19 04:04:33 -06003970/* l4_per -> gpio3 */
3971static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3972 .master = &omap44xx_l4_per_hwmod,
3973 .slave = &omap44xx_gpio3_hwmod,
3974 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003975 .user = OCP_USER_MPU | OCP_USER_SDMA,
3976};
3977
Paul Walmsley844a3b62012-04-19 04:04:33 -06003978/* l4_per -> gpio4 */
3979static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
3980 .master = &omap44xx_l4_per_hwmod,
3981 .slave = &omap44xx_gpio4_hwmod,
3982 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003983 .user = OCP_USER_MPU | OCP_USER_SDMA,
3984};
3985
Paul Walmsley844a3b62012-04-19 04:04:33 -06003986/* l4_per -> gpio5 */
3987static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
3988 .master = &omap44xx_l4_per_hwmod,
3989 .slave = &omap44xx_gpio5_hwmod,
3990 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003991 .user = OCP_USER_MPU | OCP_USER_SDMA,
3992};
3993
Paul Walmsley844a3b62012-04-19 04:04:33 -06003994/* l4_per -> gpio6 */
3995static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
3996 .master = &omap44xx_l4_per_hwmod,
3997 .slave = &omap44xx_gpio6_hwmod,
3998 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003999 .user = OCP_USER_MPU | OCP_USER_SDMA,
4000};
4001
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004002/* l3_main_2 -> gpmc */
4003static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4004 .master = &omap44xx_l3_main_2_hwmod,
4005 .slave = &omap44xx_gpmc_hwmod,
4006 .clk = "l3_div_ck",
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004007 .user = OCP_USER_MPU | OCP_USER_SDMA,
4008};
4009
Paul Walmsley9def3902012-04-19 13:33:53 -06004010static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4011 {
4012 .pa_start = 0x56000000,
4013 .pa_end = 0x5600ffff,
4014 .flags = ADDR_TYPE_RT
4015 },
4016 { }
4017};
4018
4019/* l3_main_2 -> gpu */
4020static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4021 .master = &omap44xx_l3_main_2_hwmod,
4022 .slave = &omap44xx_gpu_hwmod,
4023 .clk = "l3_div_ck",
4024 .addr = omap44xx_gpu_addrs,
4025 .user = OCP_USER_MPU | OCP_USER_SDMA,
4026};
4027
Paul Walmsleya091c082012-04-19 13:33:50 -06004028static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4029 {
4030 .pa_start = 0x480b2000,
4031 .pa_end = 0x480b201f,
4032 .flags = ADDR_TYPE_RT
4033 },
4034 { }
4035};
4036
4037/* l4_per -> hdq1w */
4038static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
4039 .master = &omap44xx_l4_per_hwmod,
4040 .slave = &omap44xx_hdq1w_hwmod,
4041 .clk = "l4_div_ck",
4042 .addr = omap44xx_hdq1w_addrs,
4043 .user = OCP_USER_MPU | OCP_USER_SDMA,
4044};
4045
Paul Walmsley844a3b62012-04-19 04:04:33 -06004046static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
4047 {
4048 .pa_start = 0x4a058000,
4049 .pa_end = 0x4a05bfff,
4050 .flags = ADDR_TYPE_RT
4051 },
4052 { }
4053};
4054
4055/* l4_cfg -> hsi */
4056static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
4057 .master = &omap44xx_l4_cfg_hwmod,
4058 .slave = &omap44xx_hsi_hwmod,
4059 .clk = "l4_div_ck",
4060 .addr = omap44xx_hsi_addrs,
4061 .user = OCP_USER_MPU | OCP_USER_SDMA,
4062};
4063
Paul Walmsley844a3b62012-04-19 04:04:33 -06004064/* l4_per -> i2c1 */
4065static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
4066 .master = &omap44xx_l4_per_hwmod,
4067 .slave = &omap44xx_i2c1_hwmod,
4068 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004069 .user = OCP_USER_MPU | OCP_USER_SDMA,
4070};
4071
Paul Walmsley844a3b62012-04-19 04:04:33 -06004072/* l4_per -> i2c2 */
4073static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
4074 .master = &omap44xx_l4_per_hwmod,
4075 .slave = &omap44xx_i2c2_hwmod,
4076 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004077 .user = OCP_USER_MPU | OCP_USER_SDMA,
4078};
4079
Paul Walmsley844a3b62012-04-19 04:04:33 -06004080/* l4_per -> i2c3 */
4081static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
4082 .master = &omap44xx_l4_per_hwmod,
4083 .slave = &omap44xx_i2c3_hwmod,
4084 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004085 .user = OCP_USER_MPU | OCP_USER_SDMA,
4086};
4087
Paul Walmsley844a3b62012-04-19 04:04:33 -06004088/* l4_per -> i2c4 */
4089static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
4090 .master = &omap44xx_l4_per_hwmod,
4091 .slave = &omap44xx_i2c4_hwmod,
4092 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004093 .user = OCP_USER_MPU | OCP_USER_SDMA,
4094};
4095
4096/* l3_main_2 -> ipu */
4097static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
4098 .master = &omap44xx_l3_main_2_hwmod,
4099 .slave = &omap44xx_ipu_hwmod,
4100 .clk = "l3_div_ck",
4101 .user = OCP_USER_MPU | OCP_USER_SDMA,
4102};
4103
4104static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
4105 {
4106 .pa_start = 0x52000000,
4107 .pa_end = 0x520000ff,
4108 .flags = ADDR_TYPE_RT
4109 },
4110 { }
4111};
4112
4113/* l3_main_2 -> iss */
4114static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
4115 .master = &omap44xx_l3_main_2_hwmod,
4116 .slave = &omap44xx_iss_hwmod,
4117 .clk = "l3_div_ck",
4118 .addr = omap44xx_iss_addrs,
4119 .user = OCP_USER_MPU | OCP_USER_SDMA,
4120};
4121
Paul Walmsley42b9e382012-04-19 13:33:54 -06004122/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004123static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004124 .master = &omap44xx_iva_hwmod,
4125 .slave = &omap44xx_sl2if_hwmod,
4126 .clk = "dpll_iva_m5x2_ck",
4127 .user = OCP_USER_IVA,
4128};
4129
Paul Walmsley844a3b62012-04-19 04:04:33 -06004130/* l3_main_2 -> iva */
4131static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
4132 .master = &omap44xx_l3_main_2_hwmod,
4133 .slave = &omap44xx_iva_hwmod,
4134 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004135 .user = OCP_USER_MPU,
4136};
4137
Paul Walmsley844a3b62012-04-19 04:04:33 -06004138/* l4_wkup -> kbd */
4139static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
4140 .master = &omap44xx_l4_wkup_hwmod,
4141 .slave = &omap44xx_kbd_hwmod,
4142 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004143 .user = OCP_USER_MPU | OCP_USER_SDMA,
4144};
4145
Paul Walmsley844a3b62012-04-19 04:04:33 -06004146/* l4_cfg -> mailbox */
4147static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
4148 .master = &omap44xx_l4_cfg_hwmod,
4149 .slave = &omap44xx_mailbox_hwmod,
4150 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004151 .user = OCP_USER_MPU | OCP_USER_SDMA,
4152};
4153
Benoît Cousson896d4e92012-04-19 13:33:54 -06004154static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
4155 {
4156 .pa_start = 0x40128000,
4157 .pa_end = 0x401283ff,
4158 .flags = ADDR_TYPE_RT
4159 },
4160 { }
4161};
4162
4163/* l4_abe -> mcasp */
4164static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
4165 .master = &omap44xx_l4_abe_hwmod,
4166 .slave = &omap44xx_mcasp_hwmod,
4167 .clk = "ocp_abe_iclk",
4168 .addr = omap44xx_mcasp_addrs,
4169 .user = OCP_USER_MPU,
4170};
4171
4172static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
4173 {
4174 .pa_start = 0x49028000,
4175 .pa_end = 0x490283ff,
4176 .flags = ADDR_TYPE_RT
4177 },
4178 { }
4179};
4180
4181/* l4_abe -> mcasp (dma) */
4182static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
4183 .master = &omap44xx_l4_abe_hwmod,
4184 .slave = &omap44xx_mcasp_hwmod,
4185 .clk = "ocp_abe_iclk",
4186 .addr = omap44xx_mcasp_dma_addrs,
4187 .user = OCP_USER_SDMA,
4188};
4189
Paul Walmsley844a3b62012-04-19 04:04:33 -06004190/* l4_abe -> mcbsp1 */
4191static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
4192 .master = &omap44xx_l4_abe_hwmod,
4193 .slave = &omap44xx_mcbsp1_hwmod,
4194 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004195 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004196};
4197
Paul Walmsley844a3b62012-04-19 04:04:33 -06004198/* l4_abe -> mcbsp2 */
4199static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
4200 .master = &omap44xx_l4_abe_hwmod,
4201 .slave = &omap44xx_mcbsp2_hwmod,
4202 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004203 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004204};
4205
Paul Walmsley844a3b62012-04-19 04:04:33 -06004206/* l4_abe -> mcbsp3 */
4207static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
4208 .master = &omap44xx_l4_abe_hwmod,
4209 .slave = &omap44xx_mcbsp3_hwmod,
4210 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004211 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004212};
4213
Paul Walmsley844a3b62012-04-19 04:04:33 -06004214/* l4_per -> mcbsp4 */
4215static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
4216 .master = &omap44xx_l4_per_hwmod,
4217 .slave = &omap44xx_mcbsp4_hwmod,
4218 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004219 .user = OCP_USER_MPU | OCP_USER_SDMA,
4220};
4221
Paul Walmsley844a3b62012-04-19 04:04:33 -06004222/* l4_abe -> mcpdm */
4223static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
4224 .master = &omap44xx_l4_abe_hwmod,
4225 .slave = &omap44xx_mcpdm_hwmod,
4226 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004227 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004228};
4229
Paul Walmsley844a3b62012-04-19 04:04:33 -06004230/* l4_per -> mcspi1 */
4231static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
4232 .master = &omap44xx_l4_per_hwmod,
4233 .slave = &omap44xx_mcspi1_hwmod,
4234 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004235 .user = OCP_USER_MPU | OCP_USER_SDMA,
4236};
4237
Paul Walmsley844a3b62012-04-19 04:04:33 -06004238/* l4_per -> mcspi2 */
4239static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
4240 .master = &omap44xx_l4_per_hwmod,
4241 .slave = &omap44xx_mcspi2_hwmod,
4242 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004243 .user = OCP_USER_MPU | OCP_USER_SDMA,
4244};
4245
Paul Walmsley844a3b62012-04-19 04:04:33 -06004246/* l4_per -> mcspi3 */
4247static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
4248 .master = &omap44xx_l4_per_hwmod,
4249 .slave = &omap44xx_mcspi3_hwmod,
4250 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004251 .user = OCP_USER_MPU | OCP_USER_SDMA,
4252};
4253
Paul Walmsley844a3b62012-04-19 04:04:33 -06004254/* l4_per -> mcspi4 */
4255static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
4256 .master = &omap44xx_l4_per_hwmod,
4257 .slave = &omap44xx_mcspi4_hwmod,
4258 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004259 .user = OCP_USER_MPU | OCP_USER_SDMA,
4260};
4261
Paul Walmsley844a3b62012-04-19 04:04:33 -06004262/* l4_per -> mmc1 */
4263static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
4264 .master = &omap44xx_l4_per_hwmod,
4265 .slave = &omap44xx_mmc1_hwmod,
4266 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004267 .user = OCP_USER_MPU | OCP_USER_SDMA,
4268};
4269
Paul Walmsley844a3b62012-04-19 04:04:33 -06004270/* l4_per -> mmc2 */
4271static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
4272 .master = &omap44xx_l4_per_hwmod,
4273 .slave = &omap44xx_mmc2_hwmod,
4274 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004275 .user = OCP_USER_MPU | OCP_USER_SDMA,
4276};
4277
Paul Walmsley844a3b62012-04-19 04:04:33 -06004278/* l4_per -> mmc3 */
4279static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
4280 .master = &omap44xx_l4_per_hwmod,
4281 .slave = &omap44xx_mmc3_hwmod,
4282 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004283 .user = OCP_USER_MPU | OCP_USER_SDMA,
4284};
4285
Paul Walmsley844a3b62012-04-19 04:04:33 -06004286/* l4_per -> mmc4 */
4287static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
4288 .master = &omap44xx_l4_per_hwmod,
4289 .slave = &omap44xx_mmc4_hwmod,
4290 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004291 .user = OCP_USER_MPU | OCP_USER_SDMA,
4292};
4293
Paul Walmsley844a3b62012-04-19 04:04:33 -06004294/* l4_per -> mmc5 */
4295static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
4296 .master = &omap44xx_l4_per_hwmod,
4297 .slave = &omap44xx_mmc5_hwmod,
4298 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004299 .user = OCP_USER_MPU | OCP_USER_SDMA,
4300};
4301
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004302/* l3_main_2 -> ocmc_ram */
4303static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
4304 .master = &omap44xx_l3_main_2_hwmod,
4305 .slave = &omap44xx_ocmc_ram_hwmod,
4306 .clk = "l3_div_ck",
4307 .user = OCP_USER_MPU | OCP_USER_SDMA,
4308};
4309
Benoît Cousson0c668872012-04-19 13:33:55 -06004310/* l4_cfg -> ocp2scp_usb_phy */
4311static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
4312 .master = &omap44xx_l4_cfg_hwmod,
4313 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
4314 .clk = "l4_div_ck",
4315 .user = OCP_USER_MPU | OCP_USER_SDMA,
4316};
4317
Paul Walmsley794b4802012-04-19 13:33:58 -06004318/* mpu_private -> prcm_mpu */
4319static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
4320 .master = &omap44xx_mpu_private_hwmod,
4321 .slave = &omap44xx_prcm_mpu_hwmod,
4322 .clk = "l3_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004323 .user = OCP_USER_MPU | OCP_USER_SDMA,
4324};
4325
Paul Walmsley794b4802012-04-19 13:33:58 -06004326/* l4_wkup -> cm_core_aon */
4327static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
4328 .master = &omap44xx_l4_wkup_hwmod,
4329 .slave = &omap44xx_cm_core_aon_hwmod,
4330 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004331 .user = OCP_USER_MPU | OCP_USER_SDMA,
4332};
4333
Paul Walmsley794b4802012-04-19 13:33:58 -06004334/* l4_cfg -> cm_core */
4335static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
4336 .master = &omap44xx_l4_cfg_hwmod,
4337 .slave = &omap44xx_cm_core_hwmod,
4338 .clk = "l4_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004339 .user = OCP_USER_MPU | OCP_USER_SDMA,
4340};
4341
Paul Walmsley794b4802012-04-19 13:33:58 -06004342/* l4_wkup -> prm */
4343static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
4344 .master = &omap44xx_l4_wkup_hwmod,
4345 .slave = &omap44xx_prm_hwmod,
4346 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004347 .user = OCP_USER_MPU | OCP_USER_SDMA,
4348};
4349
Paul Walmsley794b4802012-04-19 13:33:58 -06004350/* l4_wkup -> scrm */
4351static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
4352 .master = &omap44xx_l4_wkup_hwmod,
4353 .slave = &omap44xx_scrm_hwmod,
4354 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004355 .user = OCP_USER_MPU | OCP_USER_SDMA,
4356};
4357
Paul Walmsley42b9e382012-04-19 13:33:54 -06004358/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004359static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004360 .master = &omap44xx_l3_main_2_hwmod,
4361 .slave = &omap44xx_sl2if_hwmod,
4362 .clk = "l3_div_ck",
4363 .user = OCP_USER_MPU | OCP_USER_SDMA,
4364};
4365
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004366static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
4367 {
4368 .pa_start = 0x4012c000,
4369 .pa_end = 0x4012c3ff,
4370 .flags = ADDR_TYPE_RT
4371 },
4372 { }
4373};
4374
4375/* l4_abe -> slimbus1 */
4376static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
4377 .master = &omap44xx_l4_abe_hwmod,
4378 .slave = &omap44xx_slimbus1_hwmod,
4379 .clk = "ocp_abe_iclk",
4380 .addr = omap44xx_slimbus1_addrs,
4381 .user = OCP_USER_MPU,
4382};
4383
4384static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
4385 {
4386 .pa_start = 0x4902c000,
4387 .pa_end = 0x4902c3ff,
4388 .flags = ADDR_TYPE_RT
4389 },
4390 { }
4391};
4392
4393/* l4_abe -> slimbus1 (dma) */
4394static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
4395 .master = &omap44xx_l4_abe_hwmod,
4396 .slave = &omap44xx_slimbus1_hwmod,
4397 .clk = "ocp_abe_iclk",
4398 .addr = omap44xx_slimbus1_dma_addrs,
4399 .user = OCP_USER_SDMA,
4400};
4401
4402static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
4403 {
4404 .pa_start = 0x48076000,
4405 .pa_end = 0x480763ff,
4406 .flags = ADDR_TYPE_RT
4407 },
4408 { }
4409};
4410
4411/* l4_per -> slimbus2 */
4412static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
4413 .master = &omap44xx_l4_per_hwmod,
4414 .slave = &omap44xx_slimbus2_hwmod,
4415 .clk = "l4_div_ck",
4416 .addr = omap44xx_slimbus2_addrs,
4417 .user = OCP_USER_MPU | OCP_USER_SDMA,
4418};
4419
Paul Walmsley844a3b62012-04-19 04:04:33 -06004420static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
4421 {
4422 .pa_start = 0x4a0dd000,
4423 .pa_end = 0x4a0dd03f,
4424 .flags = ADDR_TYPE_RT
4425 },
4426 { }
4427};
4428
4429/* l4_cfg -> smartreflex_core */
4430static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
4431 .master = &omap44xx_l4_cfg_hwmod,
4432 .slave = &omap44xx_smartreflex_core_hwmod,
4433 .clk = "l4_div_ck",
4434 .addr = omap44xx_smartreflex_core_addrs,
4435 .user = OCP_USER_MPU | OCP_USER_SDMA,
4436};
4437
4438static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
4439 {
4440 .pa_start = 0x4a0db000,
4441 .pa_end = 0x4a0db03f,
4442 .flags = ADDR_TYPE_RT
4443 },
4444 { }
4445};
4446
4447/* l4_cfg -> smartreflex_iva */
4448static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4449 .master = &omap44xx_l4_cfg_hwmod,
4450 .slave = &omap44xx_smartreflex_iva_hwmod,
4451 .clk = "l4_div_ck",
4452 .addr = omap44xx_smartreflex_iva_addrs,
4453 .user = OCP_USER_MPU | OCP_USER_SDMA,
4454};
4455
4456static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4457 {
4458 .pa_start = 0x4a0d9000,
4459 .pa_end = 0x4a0d903f,
4460 .flags = ADDR_TYPE_RT
4461 },
4462 { }
4463};
4464
4465/* l4_cfg -> smartreflex_mpu */
4466static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4467 .master = &omap44xx_l4_cfg_hwmod,
4468 .slave = &omap44xx_smartreflex_mpu_hwmod,
4469 .clk = "l4_div_ck",
4470 .addr = omap44xx_smartreflex_mpu_addrs,
4471 .user = OCP_USER_MPU | OCP_USER_SDMA,
4472};
4473
4474static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
4475 {
4476 .pa_start = 0x4a0f6000,
4477 .pa_end = 0x4a0f6fff,
4478 .flags = ADDR_TYPE_RT
4479 },
4480 { }
4481};
4482
4483/* l4_cfg -> spinlock */
4484static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4485 .master = &omap44xx_l4_cfg_hwmod,
4486 .slave = &omap44xx_spinlock_hwmod,
4487 .clk = "l4_div_ck",
4488 .addr = omap44xx_spinlock_addrs,
4489 .user = OCP_USER_MPU | OCP_USER_SDMA,
4490};
4491
Paul Walmsley844a3b62012-04-19 04:04:33 -06004492/* l4_wkup -> timer1 */
4493static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4494 .master = &omap44xx_l4_wkup_hwmod,
4495 .slave = &omap44xx_timer1_hwmod,
4496 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004497 .user = OCP_USER_MPU | OCP_USER_SDMA,
4498};
4499
Paul Walmsley844a3b62012-04-19 04:04:33 -06004500/* l4_per -> timer2 */
4501static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4502 .master = &omap44xx_l4_per_hwmod,
4503 .slave = &omap44xx_timer2_hwmod,
4504 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004505 .user = OCP_USER_MPU | OCP_USER_SDMA,
4506};
4507
Paul Walmsley844a3b62012-04-19 04:04:33 -06004508/* l4_per -> timer3 */
4509static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4510 .master = &omap44xx_l4_per_hwmod,
4511 .slave = &omap44xx_timer3_hwmod,
4512 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004513 .user = OCP_USER_MPU | OCP_USER_SDMA,
4514};
4515
Paul Walmsley844a3b62012-04-19 04:04:33 -06004516/* l4_per -> timer4 */
4517static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4518 .master = &omap44xx_l4_per_hwmod,
4519 .slave = &omap44xx_timer4_hwmod,
4520 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004521 .user = OCP_USER_MPU | OCP_USER_SDMA,
4522};
4523
Paul Walmsley844a3b62012-04-19 04:04:33 -06004524/* l4_abe -> timer5 */
4525static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4526 .master = &omap44xx_l4_abe_hwmod,
4527 .slave = &omap44xx_timer5_hwmod,
4528 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004529 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004530};
4531
Paul Walmsley844a3b62012-04-19 04:04:33 -06004532/* l4_abe -> timer6 */
4533static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4534 .master = &omap44xx_l4_abe_hwmod,
4535 .slave = &omap44xx_timer6_hwmod,
4536 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004537 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004538};
4539
Paul Walmsley844a3b62012-04-19 04:04:33 -06004540/* l4_abe -> timer7 */
4541static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4542 .master = &omap44xx_l4_abe_hwmod,
4543 .slave = &omap44xx_timer7_hwmod,
4544 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004545 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004546};
4547
Paul Walmsley844a3b62012-04-19 04:04:33 -06004548/* l4_abe -> timer8 */
4549static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4550 .master = &omap44xx_l4_abe_hwmod,
4551 .slave = &omap44xx_timer8_hwmod,
4552 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004553 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004554};
4555
Paul Walmsley844a3b62012-04-19 04:04:33 -06004556/* l4_per -> timer9 */
4557static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4558 .master = &omap44xx_l4_per_hwmod,
4559 .slave = &omap44xx_timer9_hwmod,
4560 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004561 .user = OCP_USER_MPU | OCP_USER_SDMA,
4562};
4563
Paul Walmsley844a3b62012-04-19 04:04:33 -06004564/* l4_per -> timer10 */
4565static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4566 .master = &omap44xx_l4_per_hwmod,
4567 .slave = &omap44xx_timer10_hwmod,
4568 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004569 .user = OCP_USER_MPU | OCP_USER_SDMA,
4570};
4571
Paul Walmsley844a3b62012-04-19 04:04:33 -06004572/* l4_per -> timer11 */
4573static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4574 .master = &omap44xx_l4_per_hwmod,
4575 .slave = &omap44xx_timer11_hwmod,
4576 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004577 .user = OCP_USER_MPU | OCP_USER_SDMA,
4578};
4579
Paul Walmsley844a3b62012-04-19 04:04:33 -06004580/* l4_per -> uart1 */
4581static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4582 .master = &omap44xx_l4_per_hwmod,
4583 .slave = &omap44xx_uart1_hwmod,
4584 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004585 .user = OCP_USER_MPU | OCP_USER_SDMA,
4586};
4587
Paul Walmsley844a3b62012-04-19 04:04:33 -06004588/* l4_per -> uart2 */
4589static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4590 .master = &omap44xx_l4_per_hwmod,
4591 .slave = &omap44xx_uart2_hwmod,
4592 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004593 .user = OCP_USER_MPU | OCP_USER_SDMA,
4594};
4595
Paul Walmsley844a3b62012-04-19 04:04:33 -06004596/* l4_per -> uart3 */
4597static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4598 .master = &omap44xx_l4_per_hwmod,
4599 .slave = &omap44xx_uart3_hwmod,
4600 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004601 .user = OCP_USER_MPU | OCP_USER_SDMA,
4602};
4603
Paul Walmsley844a3b62012-04-19 04:04:33 -06004604/* l4_per -> uart4 */
4605static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4606 .master = &omap44xx_l4_per_hwmod,
4607 .slave = &omap44xx_uart4_hwmod,
4608 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004609 .user = OCP_USER_MPU | OCP_USER_SDMA,
4610};
4611
Benoît Cousson0c668872012-04-19 13:33:55 -06004612/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004613static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06004614 .master = &omap44xx_l4_cfg_hwmod,
4615 .slave = &omap44xx_usb_host_fs_hwmod,
4616 .clk = "l4_div_ck",
Benoît Cousson0c668872012-04-19 13:33:55 -06004617 .user = OCP_USER_MPU | OCP_USER_SDMA,
4618};
4619
Paul Walmsley844a3b62012-04-19 04:04:33 -06004620/* l4_cfg -> usb_host_hs */
4621static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4622 .master = &omap44xx_l4_cfg_hwmod,
4623 .slave = &omap44xx_usb_host_hs_hwmod,
4624 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004625 .user = OCP_USER_MPU | OCP_USER_SDMA,
4626};
4627
Paul Walmsley844a3b62012-04-19 04:04:33 -06004628/* l4_cfg -> usb_otg_hs */
4629static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4630 .master = &omap44xx_l4_cfg_hwmod,
4631 .slave = &omap44xx_usb_otg_hs_hwmod,
4632 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004633 .user = OCP_USER_MPU | OCP_USER_SDMA,
4634};
4635
Paul Walmsley844a3b62012-04-19 04:04:33 -06004636/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004637static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4638 .master = &omap44xx_l4_cfg_hwmod,
4639 .slave = &omap44xx_usb_tll_hs_hwmod,
4640 .clk = "l4_div_ck",
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004641 .user = OCP_USER_MPU | OCP_USER_SDMA,
4642};
4643
Paul Walmsley844a3b62012-04-19 04:04:33 -06004644/* l4_wkup -> wd_timer2 */
4645static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4646 .master = &omap44xx_l4_wkup_hwmod,
4647 .slave = &omap44xx_wd_timer2_hwmod,
4648 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004649 .user = OCP_USER_MPU | OCP_USER_SDMA,
4650};
4651
4652static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4653 {
4654 .pa_start = 0x40130000,
4655 .pa_end = 0x4013007f,
4656 .flags = ADDR_TYPE_RT
4657 },
4658 { }
4659};
4660
4661/* l4_abe -> wd_timer3 */
4662static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4663 .master = &omap44xx_l4_abe_hwmod,
4664 .slave = &omap44xx_wd_timer3_hwmod,
4665 .clk = "ocp_abe_iclk",
4666 .addr = omap44xx_wd_timer3_addrs,
4667 .user = OCP_USER_MPU,
4668};
4669
4670static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4671 {
4672 .pa_start = 0x49030000,
4673 .pa_end = 0x4903007f,
4674 .flags = ADDR_TYPE_RT
4675 },
4676 { }
4677};
4678
4679/* l4_abe -> wd_timer3 (dma) */
4680static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4681 .master = &omap44xx_l4_abe_hwmod,
4682 .slave = &omap44xx_wd_timer3_hwmod,
4683 .clk = "ocp_abe_iclk",
4684 .addr = omap44xx_wd_timer3_dma_addrs,
4685 .user = OCP_USER_SDMA,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004686};
4687
Sricharan R3b9b1012013-06-07 17:26:15 +05304688/* mpu -> emif1 */
4689static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4690 .master = &omap44xx_mpu_hwmod,
4691 .slave = &omap44xx_emif1_hwmod,
4692 .clk = "l3_div_ck",
4693 .user = OCP_USER_MPU | OCP_USER_SDMA,
4694};
4695
4696/* mpu -> emif2 */
4697static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4698 .master = &omap44xx_mpu_hwmod,
4699 .slave = &omap44xx_emif2_hwmod,
4700 .clk = "l3_div_ck",
4701 .user = OCP_USER_MPU | OCP_USER_SDMA,
4702};
4703
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004704static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4705 &omap44xx_l3_main_1__dmm,
4706 &omap44xx_mpu__dmm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004707 &omap44xx_iva__l3_instr,
4708 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004709 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004710 &omap44xx_dsp__l3_main_1,
4711 &omap44xx_dss__l3_main_1,
4712 &omap44xx_l3_main_2__l3_main_1,
4713 &omap44xx_l4_cfg__l3_main_1,
4714 &omap44xx_mmc1__l3_main_1,
4715 &omap44xx_mmc2__l3_main_1,
4716 &omap44xx_mpu__l3_main_1,
Benoît Cousson96566042012-04-19 13:33:59 -06004717 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004718 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06004719 &omap44xx_fdif__l3_main_2,
Paul Walmsley9def3902012-04-19 13:33:53 -06004720 &omap44xx_gpu__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004721 &omap44xx_hsi__l3_main_2,
4722 &omap44xx_ipu__l3_main_2,
4723 &omap44xx_iss__l3_main_2,
4724 &omap44xx_iva__l3_main_2,
4725 &omap44xx_l3_main_1__l3_main_2,
4726 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004727 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004728 &omap44xx_usb_host_hs__l3_main_2,
4729 &omap44xx_usb_otg_hs__l3_main_2,
4730 &omap44xx_l3_main_1__l3_main_3,
4731 &omap44xx_l3_main_2__l3_main_3,
4732 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004733 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004734 &omap44xx_dsp__l4_abe,
4735 &omap44xx_l3_main_1__l4_abe,
4736 &omap44xx_mpu__l4_abe,
4737 &omap44xx_l3_main_1__l4_cfg,
4738 &omap44xx_l3_main_2__l4_per,
4739 &omap44xx_l4_cfg__l4_wkup,
4740 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004741 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004742 &omap44xx_l4_abe__aess,
4743 &omap44xx_l4_abe__aess_dma,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004744 &omap44xx_l3_main_2__c2c,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004745 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06004746 &omap44xx_l4_cfg__ctrl_module_core,
4747 &omap44xx_l4_cfg__ctrl_module_pad_core,
4748 &omap44xx_l4_wkup__ctrl_module_wkup,
4749 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06004750 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004751 &omap44xx_l4_cfg__dma_system,
4752 &omap44xx_l4_abe__dmic,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004753 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06004754 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004755 &omap44xx_l4_cfg__dsp,
4756 &omap44xx_l3_main_2__dss,
4757 &omap44xx_l4_per__dss,
4758 &omap44xx_l3_main_2__dss_dispc,
4759 &omap44xx_l4_per__dss_dispc,
4760 &omap44xx_l3_main_2__dss_dsi1,
4761 &omap44xx_l4_per__dss_dsi1,
4762 &omap44xx_l3_main_2__dss_dsi2,
4763 &omap44xx_l4_per__dss_dsi2,
4764 &omap44xx_l3_main_2__dss_hdmi,
4765 &omap44xx_l4_per__dss_hdmi,
4766 &omap44xx_l3_main_2__dss_rfbi,
4767 &omap44xx_l4_per__dss_rfbi,
4768 &omap44xx_l3_main_2__dss_venc,
4769 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004770 &omap44xx_l4_per__elm,
Ming Leib050f682012-04-19 13:33:50 -06004771 &omap44xx_l4_cfg__fdif,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004772 &omap44xx_l4_wkup__gpio1,
4773 &omap44xx_l4_per__gpio2,
4774 &omap44xx_l4_per__gpio3,
4775 &omap44xx_l4_per__gpio4,
4776 &omap44xx_l4_per__gpio5,
4777 &omap44xx_l4_per__gpio6,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004778 &omap44xx_l3_main_2__gpmc,
Paul Walmsley9def3902012-04-19 13:33:53 -06004779 &omap44xx_l3_main_2__gpu,
Paul Walmsleya091c082012-04-19 13:33:50 -06004780 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004781 &omap44xx_l4_cfg__hsi,
4782 &omap44xx_l4_per__i2c1,
4783 &omap44xx_l4_per__i2c2,
4784 &omap44xx_l4_per__i2c3,
4785 &omap44xx_l4_per__i2c4,
4786 &omap44xx_l3_main_2__ipu,
4787 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06004788 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004789 &omap44xx_l3_main_2__iva,
4790 &omap44xx_l4_wkup__kbd,
4791 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06004792 &omap44xx_l4_abe__mcasp,
4793 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004794 &omap44xx_l4_abe__mcbsp1,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004795 &omap44xx_l4_abe__mcbsp2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004796 &omap44xx_l4_abe__mcbsp3,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004797 &omap44xx_l4_per__mcbsp4,
4798 &omap44xx_l4_abe__mcpdm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004799 &omap44xx_l4_per__mcspi1,
4800 &omap44xx_l4_per__mcspi2,
4801 &omap44xx_l4_per__mcspi3,
4802 &omap44xx_l4_per__mcspi4,
4803 &omap44xx_l4_per__mmc1,
4804 &omap44xx_l4_per__mmc2,
4805 &omap44xx_l4_per__mmc3,
4806 &omap44xx_l4_per__mmc4,
4807 &omap44xx_l4_per__mmc5,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06004808 &omap44xx_l3_main_2__mmu_ipu,
4809 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004810 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06004811 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06004812 &omap44xx_mpu_private__prcm_mpu,
4813 &omap44xx_l4_wkup__cm_core_aon,
4814 &omap44xx_l4_cfg__cm_core,
4815 &omap44xx_l4_wkup__prm,
4816 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06004817 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004818 &omap44xx_l4_abe__slimbus1,
4819 &omap44xx_l4_abe__slimbus1_dma,
4820 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004821 &omap44xx_l4_cfg__smartreflex_core,
4822 &omap44xx_l4_cfg__smartreflex_iva,
4823 &omap44xx_l4_cfg__smartreflex_mpu,
4824 &omap44xx_l4_cfg__spinlock,
4825 &omap44xx_l4_wkup__timer1,
4826 &omap44xx_l4_per__timer2,
4827 &omap44xx_l4_per__timer3,
4828 &omap44xx_l4_per__timer4,
4829 &omap44xx_l4_abe__timer5,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004830 &omap44xx_l4_abe__timer6,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004831 &omap44xx_l4_abe__timer7,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004832 &omap44xx_l4_abe__timer8,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004833 &omap44xx_l4_per__timer9,
4834 &omap44xx_l4_per__timer10,
4835 &omap44xx_l4_per__timer11,
4836 &omap44xx_l4_per__uart1,
4837 &omap44xx_l4_per__uart2,
4838 &omap44xx_l4_per__uart3,
4839 &omap44xx_l4_per__uart4,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004840 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004841 &omap44xx_l4_cfg__usb_host_hs,
4842 &omap44xx_l4_cfg__usb_otg_hs,
4843 &omap44xx_l4_cfg__usb_tll_hs,
4844 &omap44xx_l4_wkup__wd_timer2,
4845 &omap44xx_l4_abe__wd_timer3,
4846 &omap44xx_l4_abe__wd_timer3_dma,
Sricharan R3b9b1012013-06-07 17:26:15 +05304847 &omap44xx_mpu__emif1,
4848 &omap44xx_mpu__emif2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004849 NULL,
4850};
4851
4852int __init omap44xx_hwmod_init(void)
4853{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06004854 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004855 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004856}
4857