blob: f5e68a7820251360dc1aad459e259ee1c6d217ae [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 Fenkart551434382014-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 Cousson9a817bc82012-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",
Afzal Mohammed49484a62012-09-23 17:28:24 -06001191 /*
1192 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
1193 * block. It is not being added due to any known bugs with
1194 * resetting the GPMC IP block, but rather because any timings
1195 * set by the bootloader are not being correctly programmed by
1196 * the kernel from the board file or DT data.
1197 * HWMOD_INIT_NO_RESET should be removed ASAP.
1198 */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001199 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001200 .prcm = {
1201 .omap4 = {
1202 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1203 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1204 .modulemode = MODULEMODE_HWCTRL,
1205 },
1206 },
1207};
1208
1209/*
Paul Walmsley9def3902012-04-19 13:33:53 -06001210 * 'gpu' class
1211 * 2d/3d graphics accelerator
1212 */
1213
1214static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1215 .rev_offs = 0x1fc00,
1216 .sysc_offs = 0x1fc10,
1217 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1218 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1219 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1220 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1221 .sysc_fields = &omap_hwmod_sysc_type2,
1222};
1223
1224static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1225 .name = "gpu",
1226 .sysc = &omap44xx_gpu_sysc,
1227};
1228
1229/* gpu */
Paul Walmsley9def3902012-04-19 13:33:53 -06001230static struct omap_hwmod omap44xx_gpu_hwmod = {
1231 .name = "gpu",
1232 .class = &omap44xx_gpu_hwmod_class,
1233 .clkdm_name = "l3_gfx_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001234 .main_clk = "sgx_clk_mux",
Paul Walmsley9def3902012-04-19 13:33:53 -06001235 .prcm = {
1236 .omap4 = {
1237 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1238 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1239 .modulemode = MODULEMODE_SWCTRL,
1240 },
1241 },
1242};
1243
1244/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001245 * 'hdq1w' class
1246 * hdq / 1-wire serial interface controller
1247 */
1248
1249static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1250 .rev_offs = 0x0000,
1251 .sysc_offs = 0x0014,
1252 .syss_offs = 0x0018,
1253 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1254 SYSS_HAS_RESET_STATUS),
1255 .sysc_fields = &omap_hwmod_sysc_type1,
1256};
1257
1258static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1259 .name = "hdq1w",
1260 .sysc = &omap44xx_hdq1w_sysc,
1261};
1262
1263/* hdq1w */
Paul Walmsleya091c082012-04-19 13:33:50 -06001264static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1265 .name = "hdq1w",
1266 .class = &omap44xx_hdq1w_hwmod_class,
1267 .clkdm_name = "l4_per_clkdm",
1268 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001269 .main_clk = "func_12m_fclk",
Paul Walmsleya091c082012-04-19 13:33:50 -06001270 .prcm = {
1271 .omap4 = {
1272 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1273 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1274 .modulemode = MODULEMODE_SWCTRL,
1275 },
1276 },
1277};
1278
1279/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001280 * 'hsi' class
1281 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1282 * serial if)
1283 */
1284
1285static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1286 .rev_offs = 0x0000,
1287 .sysc_offs = 0x0010,
1288 .syss_offs = 0x0014,
1289 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1290 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1291 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1292 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1293 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001294 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001295 .sysc_fields = &omap_hwmod_sysc_type1,
1296};
1297
1298static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1299 .name = "hsi",
1300 .sysc = &omap44xx_hsi_sysc,
1301};
1302
1303/* hsi */
Benoit Cousson407a6882011-02-15 22:39:48 +01001304static struct omap_hwmod omap44xx_hsi_hwmod = {
1305 .name = "hsi",
1306 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001307 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001308 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001309 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001310 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001311 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001312 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001313 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001314 },
1315 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001316};
1317
1318/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301319 * 'i2c' class
1320 * multimaster high-speed i2c controller
1321 */
1322
1323static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1324 .sysc_offs = 0x0010,
1325 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001326 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1327 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001328 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001329 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1330 SIDLE_SMART_WKUP),
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301331 .clockact = CLOCKACT_TEST_ICLK,
Benoit Coussonf7764712010-09-21 19:37:14 +05301332 .sysc_fields = &omap_hwmod_sysc_type1,
1333};
1334
1335static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001336 .name = "i2c",
1337 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06001338 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06001339 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05301340};
1341
Andy Green4d4441a2011-07-10 05:27:16 -06001342static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +05301343 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Andy Green4d4441a2011-07-10 05:27:16 -06001344};
1345
Benoit Coussonf7764712010-09-21 19:37:14 +05301346/* i2c1 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301347static struct omap_hwmod omap44xx_i2c1_hwmod = {
1348 .name = "i2c1",
1349 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001350 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301351 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001352 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301353 .prcm = {
1354 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001355 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001356 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001357 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301358 },
1359 },
Andy Green4d4441a2011-07-10 05:27:16 -06001360 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301361};
1362
1363/* i2c2 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301364static struct omap_hwmod omap44xx_i2c2_hwmod = {
1365 .name = "i2c2",
1366 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001367 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301368 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001369 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301370 .prcm = {
1371 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001372 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001373 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001374 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301375 },
1376 },
Andy Green4d4441a2011-07-10 05:27:16 -06001377 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301378};
1379
1380/* i2c3 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301381static struct omap_hwmod omap44xx_i2c3_hwmod = {
1382 .name = "i2c3",
1383 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001384 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301385 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001386 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301387 .prcm = {
1388 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001389 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001390 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001391 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301392 },
1393 },
Andy Green4d4441a2011-07-10 05:27:16 -06001394 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301395};
1396
1397/* i2c4 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301398static struct omap_hwmod omap44xx_i2c4_hwmod = {
1399 .name = "i2c4",
1400 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001401 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301402 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001403 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301404 .prcm = {
1405 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001406 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001407 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001408 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301409 },
1410 },
Andy Green4d4441a2011-07-10 05:27:16 -06001411 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301412};
1413
1414/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001415 * 'ipu' class
1416 * imaging processor unit
1417 */
1418
1419static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1420 .name = "ipu",
1421};
1422
1423/* ipu */
Benoit Cousson407a6882011-02-15 22:39:48 +01001424static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001425 { .name = "cpu0", .rst_shift = 0 },
1426 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001427};
1428
Benoit Cousson407a6882011-02-15 22:39:48 +01001429static struct omap_hwmod omap44xx_ipu_hwmod = {
1430 .name = "ipu",
1431 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001432 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001433 .rst_lines = omap44xx_ipu_resets,
1434 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001435 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001436 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001437 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001438 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001439 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001440 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001441 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001442 },
1443 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001444};
1445
1446/*
1447 * 'iss' class
1448 * external images sensor pixel data processor
1449 */
1450
1451static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1452 .rev_offs = 0x0000,
1453 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001454 /*
1455 * ISS needs 100 OCP clk cycles delay after a softreset before
1456 * accessing sysconfig again.
1457 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1458 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1459 *
1460 * TODO: Indicate errata when available.
1461 */
1462 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001463 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1464 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1465 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1466 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001467 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001468 .sysc_fields = &omap_hwmod_sysc_type2,
1469};
1470
1471static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1472 .name = "iss",
1473 .sysc = &omap44xx_iss_sysc,
1474};
1475
1476/* iss */
Benoit Cousson407a6882011-02-15 22:39:48 +01001477static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1478 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1479};
1480
1481static struct omap_hwmod omap44xx_iss_hwmod = {
1482 .name = "iss",
1483 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001484 .clkdm_name = "iss_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001485 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001486 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001487 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001488 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001489 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001490 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001491 },
1492 },
1493 .opt_clks = iss_opt_clks,
1494 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001495};
1496
1497/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001498 * 'iva' class
1499 * multi-standard video encoder/decoder hardware accelerator
1500 */
1501
1502static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001503 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001504};
1505
1506/* iva */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001507static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001508 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001509 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001510 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001511};
1512
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001513static struct omap_hwmod omap44xx_iva_hwmod = {
1514 .name = "iva",
1515 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001516 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001517 .rst_lines = omap44xx_iva_resets,
1518 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001519 .main_clk = "dpll_iva_m5x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001520 .prcm = {
1521 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001522 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001523 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001524 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001525 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001526 },
1527 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001528};
1529
1530/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001531 * 'kbd' class
1532 * keyboard controller
1533 */
1534
1535static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1536 .rev_offs = 0x0000,
1537 .sysc_offs = 0x0010,
1538 .syss_offs = 0x0014,
1539 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1540 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1541 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1542 SYSS_HAS_RESET_STATUS),
1543 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1544 .sysc_fields = &omap_hwmod_sysc_type1,
1545};
1546
1547static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1548 .name = "kbd",
1549 .sysc = &omap44xx_kbd_sysc,
1550};
1551
1552/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001553static struct omap_hwmod omap44xx_kbd_hwmod = {
1554 .name = "kbd",
1555 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001556 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001557 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001558 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001559 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001560 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001561 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001562 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001563 },
1564 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001565};
1566
1567/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001568 * 'mailbox' class
1569 * mailbox module allowing communication between the on-chip processors using a
1570 * queued mailbox-interrupt mechanism.
1571 */
1572
1573static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1574 .rev_offs = 0x0000,
1575 .sysc_offs = 0x0010,
1576 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1577 SYSC_HAS_SOFTRESET),
1578 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1579 .sysc_fields = &omap_hwmod_sysc_type2,
1580};
1581
1582static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1583 .name = "mailbox",
1584 .sysc = &omap44xx_mailbox_sysc,
1585};
1586
1587/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001588static struct omap_hwmod omap44xx_mailbox_hwmod = {
1589 .name = "mailbox",
1590 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001591 .clkdm_name = "l4_cfg_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001592 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001593 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001594 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001595 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001596 },
1597 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001598};
1599
1600/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001601 * 'mcasp' class
1602 * multi-channel audio serial port controller
1603 */
1604
1605/* The IP is not compliant to type1 / type2 scheme */
1606static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1607 .sidle_shift = 0,
1608};
1609
1610static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1611 .sysc_offs = 0x0004,
1612 .sysc_flags = SYSC_HAS_SIDLEMODE,
1613 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1614 SIDLE_SMART_WKUP),
1615 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1616};
1617
1618static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1619 .name = "mcasp",
1620 .sysc = &omap44xx_mcasp_sysc,
1621};
1622
1623/* mcasp */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001624static struct omap_hwmod omap44xx_mcasp_hwmod = {
1625 .name = "mcasp",
1626 .class = &omap44xx_mcasp_hwmod_class,
1627 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001628 .main_clk = "func_mcasp_abe_gfclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06001629 .prcm = {
1630 .omap4 = {
1631 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1632 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1633 .modulemode = MODULEMODE_SWCTRL,
1634 },
1635 },
1636};
1637
1638/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001639 * 'mcbsp' class
1640 * multi channel buffered serial port controller
1641 */
1642
1643static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1644 .sysc_offs = 0x008c,
1645 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1646 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1647 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1648 .sysc_fields = &omap_hwmod_sysc_type1,
1649};
1650
1651static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1652 .name = "mcbsp",
1653 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05301654 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001655};
1656
1657/* mcbsp1 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001658static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1659 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001660 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001661};
1662
Benoit Cousson4ddff492011-01-31 14:50:30 +00001663static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1664 .name = "mcbsp1",
1665 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001666 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001667 .main_clk = "func_mcbsp1_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001668 .prcm = {
1669 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001670 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001671 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001672 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001673 },
1674 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001675 .opt_clks = mcbsp1_opt_clks,
1676 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001677};
1678
1679/* mcbsp2 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001680static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1681 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001682 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001683};
1684
Benoit Cousson4ddff492011-01-31 14:50:30 +00001685static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1686 .name = "mcbsp2",
1687 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001688 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001689 .main_clk = "func_mcbsp2_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001690 .prcm = {
1691 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001692 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001693 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001694 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001695 },
1696 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001697 .opt_clks = mcbsp2_opt_clks,
1698 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001699};
1700
1701/* mcbsp3 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001702static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1703 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001704 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001705};
1706
Benoit Cousson4ddff492011-01-31 14:50:30 +00001707static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1708 .name = "mcbsp3",
1709 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001710 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001711 .main_clk = "func_mcbsp3_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001712 .prcm = {
1713 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001714 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001715 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001716 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001717 },
1718 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001719 .opt_clks = mcbsp3_opt_clks,
1720 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001721};
1722
1723/* mcbsp4 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001724static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1725 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001726 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001727};
1728
Benoit Cousson4ddff492011-01-31 14:50:30 +00001729static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1730 .name = "mcbsp4",
1731 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001732 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001733 .main_clk = "per_mcbsp4_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001734 .prcm = {
1735 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001736 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001737 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001738 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001739 },
1740 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001741 .opt_clks = mcbsp4_opt_clks,
1742 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001743};
1744
1745/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001746 * 'mcpdm' class
1747 * multi channel pdm controller (proprietary interface with phoenix power
1748 * ic)
1749 */
1750
1751static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1752 .rev_offs = 0x0000,
1753 .sysc_offs = 0x0010,
1754 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1755 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1756 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1757 SIDLE_SMART_WKUP),
1758 .sysc_fields = &omap_hwmod_sysc_type2,
1759};
1760
1761static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1762 .name = "mcpdm",
1763 .sysc = &omap44xx_mcpdm_sysc,
1764};
1765
1766/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01001767static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1768 .name = "mcpdm",
1769 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001770 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06001771 /*
1772 * It's suspected that the McPDM requires an off-chip main
1773 * functional clock, controlled via I2C. This IP block is
1774 * currently reset very early during boot, before I2C is
1775 * available, so it doesn't seem that we have any choice in
1776 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001777 *
1778 * Also, McPDM needs to be configured to NO_IDLE mode when it
1779 * is in used otherwise vital clocks will be gated which
1780 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06001781 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001782 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001783 .main_clk = "pad_clks_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001784 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001785 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001786 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001787 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001788 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001789 },
1790 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001791};
1792
1793/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301794 * 'mcspi' class
1795 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1796 * bus
1797 */
1798
1799static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1800 .rev_offs = 0x0000,
1801 .sysc_offs = 0x0010,
1802 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1803 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1804 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1805 SIDLE_SMART_WKUP),
1806 .sysc_fields = &omap_hwmod_sysc_type2,
1807};
1808
1809static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1810 .name = "mcspi",
1811 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01001812 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301813};
1814
1815/* mcspi1 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301816static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
1817 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
1818 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
1819 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
1820 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
1821 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
1822 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
1823 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
1824 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001825 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301826};
1827
Benoit Cousson905a74d2011-02-18 14:01:06 +01001828/* mcspi1 dev_attr */
1829static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1830 .num_chipselect = 4,
1831};
1832
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301833static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1834 .name = "mcspi1",
1835 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001836 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301837 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001838 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301839 .prcm = {
1840 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001841 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001842 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001843 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301844 },
1845 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001846 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301847};
1848
1849/* mcspi2 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301850static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
1851 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
1852 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
1853 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
1854 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001855 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301856};
1857
Benoit Cousson905a74d2011-02-18 14:01:06 +01001858/* mcspi2 dev_attr */
1859static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1860 .num_chipselect = 2,
1861};
1862
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301863static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1864 .name = "mcspi2",
1865 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001866 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301867 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001868 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301869 .prcm = {
1870 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001871 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001872 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001873 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301874 },
1875 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001876 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301877};
1878
1879/* mcspi3 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301880static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
1881 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
1882 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
1883 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
1884 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001885 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301886};
1887
Benoit Cousson905a74d2011-02-18 14:01:06 +01001888/* mcspi3 dev_attr */
1889static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1890 .num_chipselect = 2,
1891};
1892
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301893static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1894 .name = "mcspi3",
1895 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001896 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301897 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001898 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301899 .prcm = {
1900 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001901 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001902 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001903 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301904 },
1905 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001906 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301907};
1908
1909/* mcspi4 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301910static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
1911 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
1912 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001913 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301914};
1915
Benoit Cousson905a74d2011-02-18 14:01:06 +01001916/* mcspi4 dev_attr */
1917static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1918 .num_chipselect = 1,
1919};
1920
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301921static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1922 .name = "mcspi4",
1923 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001924 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301925 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001926 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301927 .prcm = {
1928 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001929 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001930 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001931 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301932 },
1933 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001934 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301935};
1936
1937/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001938 * 'mmc' class
1939 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1940 */
1941
1942static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
1943 .rev_offs = 0x0000,
1944 .sysc_offs = 0x0010,
1945 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1946 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1947 SYSC_HAS_SOFTRESET),
1948 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1949 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001950 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001951 .sysc_fields = &omap_hwmod_sysc_type2,
1952};
1953
1954static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
1955 .name = "mmc",
1956 .sysc = &omap44xx_mmc_sysc,
1957};
1958
1959/* mmc1 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001960static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
1961 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
1962 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001963 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001964};
1965
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001966/* mmc1 dev_attr */
Andreas Fenkart551434382014-11-08 15:33:09 +01001967static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001968 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1969};
1970
Benoit Cousson407a6882011-02-15 22:39:48 +01001971static struct omap_hwmod omap44xx_mmc1_hwmod = {
1972 .name = "mmc1",
1973 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001974 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001975 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001976 .main_clk = "hsmmc1_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001977 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001978 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001979 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001980 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001981 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001982 },
1983 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001984 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01001985};
1986
1987/* mmc2 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001988static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
1989 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
1990 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001991 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001992};
1993
Benoit Cousson407a6882011-02-15 22:39:48 +01001994static struct omap_hwmod omap44xx_mmc2_hwmod = {
1995 .name = "mmc2",
1996 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001997 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001998 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001999 .main_clk = "hsmmc2_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002000 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002001 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002002 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002003 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002004 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002005 },
2006 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002007};
2008
2009/* mmc3 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002010static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2011 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2012 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002013 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002014};
2015
Benoit Cousson407a6882011-02-15 22:39:48 +01002016static struct omap_hwmod omap44xx_mmc3_hwmod = {
2017 .name = "mmc3",
2018 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002019 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002020 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002021 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002022 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002023 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002024 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002025 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002026 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002027 },
2028 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002029};
2030
2031/* mmc4 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002032static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2033 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2034 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002035 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002036};
2037
Benoit Cousson407a6882011-02-15 22:39:48 +01002038static struct omap_hwmod omap44xx_mmc4_hwmod = {
2039 .name = "mmc4",
2040 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002041 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002042 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002043 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002044 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002045 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002046 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002047 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002048 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002049 },
2050 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002051};
2052
2053/* mmc5 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002054static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2055 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2056 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002057 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002058};
2059
Benoit Cousson407a6882011-02-15 22:39:48 +01002060static struct omap_hwmod omap44xx_mmc5_hwmod = {
2061 .name = "mmc5",
2062 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002063 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002064 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002065 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002066 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002067 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002068 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002069 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002070 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002071 },
2072 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002073};
2074
2075/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002076 * 'mmu' class
2077 * The memory management unit performs virtual to physical address translation
2078 * for its requestors.
2079 */
2080
2081static struct omap_hwmod_class_sysconfig mmu_sysc = {
2082 .rev_offs = 0x000,
2083 .sysc_offs = 0x010,
2084 .syss_offs = 0x014,
2085 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2086 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2087 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2088 .sysc_fields = &omap_hwmod_sysc_type1,
2089};
2090
2091static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2092 .name = "mmu",
2093 .sysc = &mmu_sysc,
2094};
2095
2096/* mmu ipu */
2097
2098static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002099 .nr_tlb_entries = 32,
2100};
2101
2102static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002103static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2104 { .name = "mmu_cache", .rst_shift = 2 },
2105};
2106
2107static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
2108 {
2109 .pa_start = 0x55082000,
2110 .pa_end = 0x550820ff,
2111 .flags = ADDR_TYPE_RT,
2112 },
2113 { }
2114};
2115
2116/* l3_main_2 -> mmu_ipu */
2117static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2118 .master = &omap44xx_l3_main_2_hwmod,
2119 .slave = &omap44xx_mmu_ipu_hwmod,
2120 .clk = "l3_div_ck",
2121 .addr = omap44xx_mmu_ipu_addrs,
2122 .user = OCP_USER_MPU | OCP_USER_SDMA,
2123};
2124
2125static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2126 .name = "mmu_ipu",
2127 .class = &omap44xx_mmu_hwmod_class,
2128 .clkdm_name = "ducati_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002129 .rst_lines = omap44xx_mmu_ipu_resets,
2130 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2131 .main_clk = "ducati_clk_mux_ck",
2132 .prcm = {
2133 .omap4 = {
2134 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2135 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2136 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2137 .modulemode = MODULEMODE_HWCTRL,
2138 },
2139 },
2140 .dev_attr = &mmu_ipu_dev_attr,
2141};
2142
2143/* mmu dsp */
2144
2145static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002146 .nr_tlb_entries = 32,
2147};
2148
2149static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002150static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2151 { .name = "mmu_cache", .rst_shift = 1 },
2152};
2153
2154static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
2155 {
2156 .pa_start = 0x4a066000,
2157 .pa_end = 0x4a0660ff,
2158 .flags = ADDR_TYPE_RT,
2159 },
2160 { }
2161};
2162
2163/* l4_cfg -> dsp */
2164static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2165 .master = &omap44xx_l4_cfg_hwmod,
2166 .slave = &omap44xx_mmu_dsp_hwmod,
2167 .clk = "l4_div_ck",
2168 .addr = omap44xx_mmu_dsp_addrs,
2169 .user = OCP_USER_MPU | OCP_USER_SDMA,
2170};
2171
2172static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2173 .name = "mmu_dsp",
2174 .class = &omap44xx_mmu_hwmod_class,
2175 .clkdm_name = "tesla_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002176 .rst_lines = omap44xx_mmu_dsp_resets,
2177 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2178 .main_clk = "dpll_iva_m4x2_ck",
2179 .prcm = {
2180 .omap4 = {
2181 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2182 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2183 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2184 .modulemode = MODULEMODE_HWCTRL,
2185 },
2186 },
2187 .dev_attr = &mmu_dsp_dev_attr,
2188};
2189
2190/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002191 * 'mpu' class
2192 * mpu sub-system
2193 */
2194
2195static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002196 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002197};
2198
2199/* mpu */
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002200static struct omap_hwmod omap44xx_mpu_hwmod = {
2201 .name = "mpu",
2202 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002203 .clkdm_name = "mpuss_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +05302204 .flags = HWMOD_INIT_NO_IDLE,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002205 .main_clk = "dpll_mpu_m2_ck",
2206 .prcm = {
2207 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002208 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002209 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002210 },
2211 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002212};
2213
Benoit Cousson92b18d12010-09-23 20:02:41 +05302214/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06002215 * 'ocmc_ram' class
2216 * top-level core on-chip ram
2217 */
2218
2219static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2220 .name = "ocmc_ram",
2221};
2222
2223/* ocmc_ram */
2224static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2225 .name = "ocmc_ram",
2226 .class = &omap44xx_ocmc_ram_hwmod_class,
2227 .clkdm_name = "l3_2_clkdm",
2228 .prcm = {
2229 .omap4 = {
2230 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2231 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2232 },
2233 },
2234};
2235
2236/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002237 * 'ocp2scp' class
2238 * bridge to transform ocp interface protocol to scp (serial control port)
2239 * protocol
2240 */
2241
Benoit Cousson33c976e2012-09-23 17:28:21 -06002242static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2243 .rev_offs = 0x0000,
2244 .sysc_offs = 0x0010,
2245 .syss_offs = 0x0014,
2246 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2247 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2248 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2249 .sysc_fields = &omap_hwmod_sysc_type1,
2250};
2251
Benoît Cousson0c668872012-04-19 13:33:55 -06002252static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2253 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06002254 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06002255};
2256
2257/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06002258static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2259 .name = "ocp2scp_usb_phy",
2260 .class = &omap44xx_ocp2scp_hwmod_class,
2261 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham If4d7a532013-04-10 19:41:38 +00002262 /*
2263 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2264 * block as an "optional clock," and normally should never be
2265 * specified as the main_clk for an OMAP IP block. However it
2266 * turns out that this clock is actually the main clock for
2267 * the ocp2scp_usb_phy IP block:
2268 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2269 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2270 * to be the best workaround.
2271 */
2272 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06002273 .prcm = {
2274 .omap4 = {
2275 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2276 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2277 .modulemode = MODULEMODE_HWCTRL,
2278 },
2279 },
Benoît Cousson0c668872012-04-19 13:33:55 -06002280};
2281
2282/*
Paul Walmsley794b4802012-04-19 13:33:58 -06002283 * 'prcm' class
2284 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2285 * + clock manager 1 (in always on power domain) + local prm in mpu
2286 */
2287
2288static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2289 .name = "prcm",
2290};
2291
2292/* prcm_mpu */
2293static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2294 .name = "prcm_mpu",
2295 .class = &omap44xx_prcm_hwmod_class,
2296 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06002297 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002298 .prcm = {
2299 .omap4 = {
2300 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2301 },
2302 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002303};
2304
2305/* cm_core_aon */
2306static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2307 .name = "cm_core_aon",
2308 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002309 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002310 .prcm = {
2311 .omap4 = {
2312 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2313 },
2314 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002315};
2316
2317/* cm_core */
2318static struct omap_hwmod omap44xx_cm_core_hwmod = {
2319 .name = "cm_core",
2320 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002321 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002322 .prcm = {
2323 .omap4 = {
2324 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2325 },
2326 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002327};
2328
2329/* prm */
Paul Walmsley794b4802012-04-19 13:33:58 -06002330static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2331 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2332 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2333};
2334
2335static struct omap_hwmod omap44xx_prm_hwmod = {
2336 .name = "prm",
2337 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06002338 .rst_lines = omap44xx_prm_resets,
2339 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2340};
2341
2342/*
2343 * 'scrm' class
2344 * system clock and reset manager
2345 */
2346
2347static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2348 .name = "scrm",
2349};
2350
2351/* scrm */
2352static struct omap_hwmod omap44xx_scrm_hwmod = {
2353 .name = "scrm",
2354 .class = &omap44xx_scrm_hwmod_class,
2355 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06002356 .prcm = {
2357 .omap4 = {
2358 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2359 },
2360 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002361};
2362
2363/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06002364 * 'sl2if' class
2365 * shared level 2 memory interface
2366 */
2367
2368static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2369 .name = "sl2if",
2370};
2371
2372/* sl2if */
2373static struct omap_hwmod omap44xx_sl2if_hwmod = {
2374 .name = "sl2if",
2375 .class = &omap44xx_sl2if_hwmod_class,
2376 .clkdm_name = "ivahd_clkdm",
2377 .prcm = {
2378 .omap4 = {
2379 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2380 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2381 .modulemode = MODULEMODE_HWCTRL,
2382 },
2383 },
2384};
2385
2386/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002387 * 'slimbus' class
2388 * bidirectional, multi-drop, multi-channel two-line serial interface between
2389 * the device and external components
2390 */
2391
2392static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2393 .rev_offs = 0x0000,
2394 .sysc_offs = 0x0010,
2395 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2396 SYSC_HAS_SOFTRESET),
2397 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2398 SIDLE_SMART_WKUP),
2399 .sysc_fields = &omap_hwmod_sysc_type2,
2400};
2401
2402static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2403 .name = "slimbus",
2404 .sysc = &omap44xx_slimbus_sysc,
2405};
2406
2407/* slimbus1 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002408static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2409 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2410 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2411 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2412 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2413};
2414
2415static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2416 .name = "slimbus1",
2417 .class = &omap44xx_slimbus_hwmod_class,
2418 .clkdm_name = "abe_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002419 .prcm = {
2420 .omap4 = {
2421 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2422 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2423 .modulemode = MODULEMODE_SWCTRL,
2424 },
2425 },
2426 .opt_clks = slimbus1_opt_clks,
2427 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2428};
2429
2430/* slimbus2 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002431static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2432 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2433 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2434 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2435};
2436
2437static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2438 .name = "slimbus2",
2439 .class = &omap44xx_slimbus_hwmod_class,
2440 .clkdm_name = "l4_per_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002441 .prcm = {
2442 .omap4 = {
2443 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2444 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2445 .modulemode = MODULEMODE_SWCTRL,
2446 },
2447 },
2448 .opt_clks = slimbus2_opt_clks,
2449 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2450};
2451
2452/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002453 * 'smartreflex' class
2454 * smartreflex module (monitor silicon performance and outputs a measure of
2455 * performance error)
2456 */
2457
2458/* The IP is not compliant to type1 / type2 scheme */
2459static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2460 .sidle_shift = 24,
2461 .enwkup_shift = 26,
2462};
2463
2464static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2465 .sysc_offs = 0x0038,
2466 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2467 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2468 SIDLE_SMART_WKUP),
2469 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2470};
2471
2472static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002473 .name = "smartreflex",
2474 .sysc = &omap44xx_smartreflex_sysc,
2475 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002476};
2477
2478/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002479static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2480 .sensor_voltdm_name = "core",
2481};
2482
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002483static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2484 .name = "smartreflex_core",
2485 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002486 .clkdm_name = "l4_ao_clkdm",
Paul Walmsley212738a2011-07-09 19:14:06 -06002487
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002488 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002489 .prcm = {
2490 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002491 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002492 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002493 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002494 },
2495 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002496 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002497};
2498
2499/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002500static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2501 .sensor_voltdm_name = "iva",
2502};
2503
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002504static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2505 .name = "smartreflex_iva",
2506 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002507 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002508 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002509 .prcm = {
2510 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002511 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002512 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002513 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002514 },
2515 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002516 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002517};
2518
2519/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002520static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2521 .sensor_voltdm_name = "mpu",
2522};
2523
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002524static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2525 .name = "smartreflex_mpu",
2526 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002527 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002528 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002529 .prcm = {
2530 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002531 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002532 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002533 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002534 },
2535 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002536 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002537};
2538
2539/*
Benoit Coussond11c2172011-02-02 12:04:36 +00002540 * 'spinlock' class
2541 * spinlock provides hardware assistance for synchronizing the processes
2542 * running on multiple processors
2543 */
2544
2545static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2546 .rev_offs = 0x0000,
2547 .sysc_offs = 0x0010,
2548 .syss_offs = 0x0014,
2549 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2550 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2551 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Suman Anna77319662013-12-23 16:48:48 -06002552 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Benoit Coussond11c2172011-02-02 12:04:36 +00002553 .sysc_fields = &omap_hwmod_sysc_type1,
2554};
2555
2556static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2557 .name = "spinlock",
2558 .sysc = &omap44xx_spinlock_sysc,
2559};
2560
2561/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00002562static struct omap_hwmod omap44xx_spinlock_hwmod = {
2563 .name = "spinlock",
2564 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002565 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00002566 .prcm = {
2567 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002568 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002569 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00002570 },
2571 },
Benoit Coussond11c2172011-02-02 12:04:36 +00002572};
2573
2574/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00002575 * 'timer' class
2576 * general purpose timer module with accurate 1ms tick
2577 * This class contains several variants: ['timer_1ms', 'timer']
2578 */
2579
2580static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2581 .rev_offs = 0x0000,
2582 .sysc_offs = 0x0010,
2583 .syss_offs = 0x0014,
2584 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2585 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2586 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2587 SYSS_HAS_RESET_STATUS),
2588 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Jon Hunter10759e82012-07-11 13:00:13 -05002589 .clockact = CLOCKACT_TEST_ICLK,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002590 .sysc_fields = &omap_hwmod_sysc_type1,
2591};
2592
2593static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2594 .name = "timer",
2595 .sysc = &omap44xx_timer_1ms_sysc,
2596};
2597
2598static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2599 .rev_offs = 0x0000,
2600 .sysc_offs = 0x0010,
2601 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2602 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2603 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2604 SIDLE_SMART_WKUP),
2605 .sysc_fields = &omap_hwmod_sysc_type2,
2606};
2607
2608static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2609 .name = "timer",
2610 .sysc = &omap44xx_timer_sysc,
2611};
2612
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302613/* always-on timers dev attribute */
2614static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
2615 .timer_capability = OMAP_TIMER_ALWON,
2616};
2617
2618/* pwm timers dev attribute */
2619static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
2620 .timer_capability = OMAP_TIMER_HAS_PWM,
2621};
2622
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002623/* timers with DSP interrupt dev attribute */
2624static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
2625 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
2626};
2627
2628/* pwm timers with DSP interrupt dev attribute */
2629static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
2630 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
2631};
2632
Benoit Cousson35d1a662011-02-11 11:17:14 +00002633/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002634static struct omap_hwmod omap44xx_timer1_hwmod = {
2635 .name = "timer1",
2636 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002637 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002638 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002639 .main_clk = "dmt1_clk_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002640 .prcm = {
2641 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002642 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002643 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002644 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002645 },
2646 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302647 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002648};
2649
2650/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002651static struct omap_hwmod omap44xx_timer2_hwmod = {
2652 .name = "timer2",
2653 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002654 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002655 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002656 .main_clk = "cm2_dm2_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002657 .prcm = {
2658 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002659 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002660 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002661 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002662 },
2663 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002664};
2665
2666/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002667static struct omap_hwmod omap44xx_timer3_hwmod = {
2668 .name = "timer3",
2669 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002670 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002671 .main_clk = "cm2_dm3_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002672 .prcm = {
2673 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002674 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002675 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002676 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002677 },
2678 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002679};
2680
2681/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002682static struct omap_hwmod omap44xx_timer4_hwmod = {
2683 .name = "timer4",
2684 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002685 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002686 .main_clk = "cm2_dm4_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002687 .prcm = {
2688 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002689 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002690 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002691 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002692 },
2693 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002694};
2695
2696/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002697static struct omap_hwmod omap44xx_timer5_hwmod = {
2698 .name = "timer5",
2699 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002700 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002701 .main_clk = "timer5_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002702 .prcm = {
2703 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002704 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002705 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002706 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002707 },
2708 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002709 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002710};
2711
2712/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002713static struct omap_hwmod omap44xx_timer6_hwmod = {
2714 .name = "timer6",
2715 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002716 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002717 .main_clk = "timer6_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002718 .prcm = {
2719 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002720 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002721 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002722 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002723 },
2724 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002725 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002726};
2727
2728/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002729static struct omap_hwmod omap44xx_timer7_hwmod = {
2730 .name = "timer7",
2731 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002732 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002733 .main_clk = "timer7_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002734 .prcm = {
2735 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002736 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002737 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002738 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002739 },
2740 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002741 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002742};
2743
2744/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002745static struct omap_hwmod omap44xx_timer8_hwmod = {
2746 .name = "timer8",
2747 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002748 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002749 .main_clk = "timer8_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002750 .prcm = {
2751 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002752 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002753 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002754 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002755 },
2756 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002757 .dev_attr = &capability_dsp_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002758};
2759
2760/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002761static struct omap_hwmod omap44xx_timer9_hwmod = {
2762 .name = "timer9",
2763 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002764 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002765 .main_clk = "cm2_dm9_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002766 .prcm = {
2767 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002768 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002769 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002770 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002771 },
2772 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302773 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002774};
2775
2776/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002777static struct omap_hwmod omap44xx_timer10_hwmod = {
2778 .name = "timer10",
2779 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002780 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002781 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002782 .main_clk = "cm2_dm10_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002783 .prcm = {
2784 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002785 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002786 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002787 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002788 },
2789 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302790 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002791};
2792
2793/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002794static struct omap_hwmod omap44xx_timer11_hwmod = {
2795 .name = "timer11",
2796 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002797 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002798 .main_clk = "cm2_dm11_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002799 .prcm = {
2800 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002801 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002802 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002803 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002804 },
2805 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302806 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002807};
2808
2809/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05302810 * 'uart' class
2811 * universal asynchronous receiver/transmitter (uart)
2812 */
2813
2814static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2815 .rev_offs = 0x0050,
2816 .sysc_offs = 0x0054,
2817 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002818 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002819 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2820 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002821 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2822 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05302823 .sysc_fields = &omap_hwmod_sysc_type1,
2824};
2825
2826static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002827 .name = "uart",
2828 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302829};
2830
2831/* uart1 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302832static struct omap_hwmod omap44xx_uart1_hwmod = {
2833 .name = "uart1",
2834 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002835 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302836 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002837 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302838 .prcm = {
2839 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002840 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002841 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002842 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302843 },
2844 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302845};
2846
2847/* uart2 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302848static struct omap_hwmod omap44xx_uart2_hwmod = {
2849 .name = "uart2",
2850 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002851 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302852 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002853 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302854 .prcm = {
2855 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002856 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002857 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002858 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302859 },
2860 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302861};
2862
2863/* uart3 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302864static struct omap_hwmod omap44xx_uart3_hwmod = {
2865 .name = "uart3",
2866 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002867 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002868 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002869 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302870 .prcm = {
2871 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002872 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002873 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002874 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302875 },
2876 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302877};
2878
2879/* uart4 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302880static struct omap_hwmod omap44xx_uart4_hwmod = {
2881 .name = "uart4",
2882 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002883 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002884 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002885 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302886 .prcm = {
2887 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002888 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002889 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002890 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302891 },
2892 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302893};
2894
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002895/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002896 * 'usb_host_fs' class
2897 * full-speed usb host controller
2898 */
2899
2900/* The IP is not compliant to type1 / type2 scheme */
2901static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
2902 .midle_shift = 4,
2903 .sidle_shift = 2,
2904 .srst_shift = 1,
2905};
2906
2907static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2908 .rev_offs = 0x0000,
2909 .sysc_offs = 0x0210,
2910 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2911 SYSC_HAS_SOFTRESET),
2912 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2913 SIDLE_SMART_WKUP),
2914 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2915};
2916
2917static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2918 .name = "usb_host_fs",
2919 .sysc = &omap44xx_usb_host_fs_sysc,
2920};
2921
2922/* usb_host_fs */
Benoît Cousson0c668872012-04-19 13:33:55 -06002923static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2924 .name = "usb_host_fs",
2925 .class = &omap44xx_usb_host_fs_hwmod_class,
2926 .clkdm_name = "l3_init_clkdm",
Benoît Cousson0c668872012-04-19 13:33:55 -06002927 .main_clk = "usb_host_fs_fck",
2928 .prcm = {
2929 .omap4 = {
2930 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2931 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2932 .modulemode = MODULEMODE_SWCTRL,
2933 },
2934 },
2935};
2936
2937/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002938 * 'usb_host_hs' class
2939 * high-speed multi-port usb host controller
2940 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002941
2942static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2943 .rev_offs = 0x0000,
2944 .sysc_offs = 0x0010,
2945 .syss_offs = 0x0014,
2946 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002947 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002948 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2949 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2950 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2951 .sysc_fields = &omap_hwmod_sysc_type2,
2952};
2953
2954static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002955 .name = "usb_host_hs",
2956 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002957};
2958
Paul Walmsley844a3b62012-04-19 04:04:33 -06002959/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002960static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2961 .name = "usb_host_hs",
2962 .class = &omap44xx_usb_host_hs_hwmod_class,
2963 .clkdm_name = "l3_init_clkdm",
2964 .main_clk = "usb_host_hs_fck",
2965 .prcm = {
2966 .omap4 = {
2967 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2968 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2969 .modulemode = MODULEMODE_SWCTRL,
2970 },
2971 },
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002972
2973 /*
2974 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2975 * id: i660
2976 *
2977 * Description:
2978 * In the following configuration :
2979 * - USBHOST module is set to smart-idle mode
2980 * - PRCM asserts idle_req to the USBHOST module ( This typically
2981 * happens when the system is going to a low power mode : all ports
2982 * have been suspended, the master part of the USBHOST module has
2983 * entered the standby state, and SW has cut the functional clocks)
2984 * - an USBHOST interrupt occurs before the module is able to answer
2985 * idle_ack, typically a remote wakeup IRQ.
2986 * Then the USB HOST module will enter a deadlock situation where it
2987 * is no more accessible nor functional.
2988 *
2989 * Workaround:
2990 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2991 */
2992
2993 /*
2994 * Errata: USB host EHCI may stall when entering smart-standby mode
2995 * Id: i571
2996 *
2997 * Description:
2998 * When the USBHOST module is set to smart-standby mode, and when it is
2999 * ready to enter the standby state (i.e. all ports are suspended and
3000 * all attached devices are in suspend mode), then it can wrongly assert
3001 * the Mstandby signal too early while there are still some residual OCP
3002 * transactions ongoing. If this condition occurs, the internal state
3003 * machine may go to an undefined state and the USB link may be stuck
3004 * upon the next resume.
3005 *
3006 * Workaround:
3007 * Don't use smart standby; use only force standby,
3008 * hence HWMOD_SWSUP_MSTANDBY
3009 */
3010
Roger Quadrosb483a4a2013-12-03 16:25:46 +02003011 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003012};
3013
3014/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06003015 * 'usb_otg_hs' class
3016 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3017 */
3018
3019static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3020 .rev_offs = 0x0400,
3021 .sysc_offs = 0x0404,
3022 .syss_offs = 0x0408,
3023 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3024 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3025 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3026 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3027 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3028 MSTANDBY_SMART),
3029 .sysc_fields = &omap_hwmod_sysc_type1,
3030};
3031
3032static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3033 .name = "usb_otg_hs",
3034 .sysc = &omap44xx_usb_otg_hs_sysc,
3035};
3036
3037/* usb_otg_hs */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003038static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3039 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3040};
3041
3042static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3043 .name = "usb_otg_hs",
3044 .class = &omap44xx_usb_otg_hs_hwmod_class,
3045 .clkdm_name = "l3_init_clkdm",
3046 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003047 .main_clk = "usb_otg_hs_ick",
3048 .prcm = {
3049 .omap4 = {
3050 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3051 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3052 .modulemode = MODULEMODE_HWCTRL,
3053 },
3054 },
3055 .opt_clks = usb_otg_hs_opt_clks,
3056 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3057};
3058
3059/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003060 * 'usb_tll_hs' class
3061 * usb_tll_hs module is the adapter on the usb_host_hs ports
3062 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003063
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003064static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3065 .rev_offs = 0x0000,
3066 .sysc_offs = 0x0010,
3067 .syss_offs = 0x0014,
3068 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3069 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3070 SYSC_HAS_AUTOIDLE),
3071 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3072 .sysc_fields = &omap_hwmod_sysc_type1,
3073};
3074
3075static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003076 .name = "usb_tll_hs",
3077 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003078};
3079
Paul Walmsley844a3b62012-04-19 04:04:33 -06003080static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3081 .name = "usb_tll_hs",
3082 .class = &omap44xx_usb_tll_hs_hwmod_class,
3083 .clkdm_name = "l3_init_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003084 .main_clk = "usb_tll_hs_ick",
3085 .prcm = {
3086 .omap4 = {
3087 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3088 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3089 .modulemode = MODULEMODE_HWCTRL,
3090 },
3091 },
3092};
3093
3094/*
3095 * 'wd_timer' class
3096 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3097 * overflow condition
3098 */
3099
3100static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3101 .rev_offs = 0x0000,
3102 .sysc_offs = 0x0010,
3103 .syss_offs = 0x0014,
3104 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3105 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3106 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3107 SIDLE_SMART_WKUP),
3108 .sysc_fields = &omap_hwmod_sysc_type1,
3109};
3110
3111static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3112 .name = "wd_timer",
3113 .sysc = &omap44xx_wd_timer_sysc,
3114 .pre_shutdown = &omap2_wd_timer_disable,
Kevin Hilman414e4122012-05-08 11:34:30 -06003115 .reset = &omap2_wd_timer_reset,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003116};
3117
3118/* wd_timer2 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003119static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3120 .name = "wd_timer2",
3121 .class = &omap44xx_wd_timer_hwmod_class,
3122 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003123 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003124 .prcm = {
3125 .omap4 = {
3126 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3127 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3128 .modulemode = MODULEMODE_SWCTRL,
3129 },
3130 },
3131};
3132
3133/* wd_timer3 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003134static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3135 .name = "wd_timer3",
3136 .class = &omap44xx_wd_timer_hwmod_class,
3137 .clkdm_name = "abe_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003138 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003139 .prcm = {
3140 .omap4 = {
3141 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3142 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3143 .modulemode = MODULEMODE_SWCTRL,
3144 },
3145 },
3146};
3147
3148
3149/*
3150 * interfaces
3151 */
3152
3153/* l3_main_1 -> dmm */
3154static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3155 .master = &omap44xx_l3_main_1_hwmod,
3156 .slave = &omap44xx_dmm_hwmod,
3157 .clk = "l3_div_ck",
3158 .user = OCP_USER_SDMA,
3159};
3160
Paul Walmsley844a3b62012-04-19 04:04:33 -06003161/* mpu -> dmm */
3162static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3163 .master = &omap44xx_mpu_hwmod,
3164 .slave = &omap44xx_dmm_hwmod,
3165 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003166 .user = OCP_USER_MPU,
3167};
3168
3169/* iva -> l3_instr */
3170static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3171 .master = &omap44xx_iva_hwmod,
3172 .slave = &omap44xx_l3_instr_hwmod,
3173 .clk = "l3_div_ck",
3174 .user = OCP_USER_MPU | OCP_USER_SDMA,
3175};
3176
3177/* l3_main_3 -> l3_instr */
3178static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3179 .master = &omap44xx_l3_main_3_hwmod,
3180 .slave = &omap44xx_l3_instr_hwmod,
3181 .clk = "l3_div_ck",
3182 .user = OCP_USER_MPU | OCP_USER_SDMA,
3183};
3184
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003185/* ocp_wp_noc -> l3_instr */
3186static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3187 .master = &omap44xx_ocp_wp_noc_hwmod,
3188 .slave = &omap44xx_l3_instr_hwmod,
3189 .clk = "l3_div_ck",
3190 .user = OCP_USER_MPU | OCP_USER_SDMA,
3191};
3192
Paul Walmsley844a3b62012-04-19 04:04:33 -06003193/* dsp -> l3_main_1 */
3194static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3195 .master = &omap44xx_dsp_hwmod,
3196 .slave = &omap44xx_l3_main_1_hwmod,
3197 .clk = "l3_div_ck",
3198 .user = OCP_USER_MPU | OCP_USER_SDMA,
3199};
3200
3201/* dss -> l3_main_1 */
3202static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3203 .master = &omap44xx_dss_hwmod,
3204 .slave = &omap44xx_l3_main_1_hwmod,
3205 .clk = "l3_div_ck",
3206 .user = OCP_USER_MPU | OCP_USER_SDMA,
3207};
3208
3209/* l3_main_2 -> l3_main_1 */
3210static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3211 .master = &omap44xx_l3_main_2_hwmod,
3212 .slave = &omap44xx_l3_main_1_hwmod,
3213 .clk = "l3_div_ck",
3214 .user = OCP_USER_MPU | OCP_USER_SDMA,
3215};
3216
3217/* l4_cfg -> l3_main_1 */
3218static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3219 .master = &omap44xx_l4_cfg_hwmod,
3220 .slave = &omap44xx_l3_main_1_hwmod,
3221 .clk = "l4_div_ck",
3222 .user = OCP_USER_MPU | OCP_USER_SDMA,
3223};
3224
3225/* mmc1 -> l3_main_1 */
3226static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3227 .master = &omap44xx_mmc1_hwmod,
3228 .slave = &omap44xx_l3_main_1_hwmod,
3229 .clk = "l3_div_ck",
3230 .user = OCP_USER_MPU | OCP_USER_SDMA,
3231};
3232
3233/* mmc2 -> l3_main_1 */
3234static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3235 .master = &omap44xx_mmc2_hwmod,
3236 .slave = &omap44xx_l3_main_1_hwmod,
3237 .clk = "l3_div_ck",
3238 .user = OCP_USER_MPU | OCP_USER_SDMA,
3239};
3240
Paul Walmsley844a3b62012-04-19 04:04:33 -06003241/* mpu -> l3_main_1 */
3242static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3243 .master = &omap44xx_mpu_hwmod,
3244 .slave = &omap44xx_l3_main_1_hwmod,
3245 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003246 .user = OCP_USER_MPU,
3247};
3248
Benoît Cousson96566042012-04-19 13:33:59 -06003249/* debugss -> l3_main_2 */
3250static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3251 .master = &omap44xx_debugss_hwmod,
3252 .slave = &omap44xx_l3_main_2_hwmod,
3253 .clk = "dbgclk_mux_ck",
3254 .user = OCP_USER_MPU | OCP_USER_SDMA,
3255};
3256
Paul Walmsley844a3b62012-04-19 04:04:33 -06003257/* dma_system -> l3_main_2 */
3258static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3259 .master = &omap44xx_dma_system_hwmod,
3260 .slave = &omap44xx_l3_main_2_hwmod,
3261 .clk = "l3_div_ck",
3262 .user = OCP_USER_MPU | OCP_USER_SDMA,
3263};
3264
Ming Leib050f682012-04-19 13:33:50 -06003265/* fdif -> l3_main_2 */
3266static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3267 .master = &omap44xx_fdif_hwmod,
3268 .slave = &omap44xx_l3_main_2_hwmod,
3269 .clk = "l3_div_ck",
3270 .user = OCP_USER_MPU | OCP_USER_SDMA,
3271};
3272
Paul Walmsley9def3902012-04-19 13:33:53 -06003273/* gpu -> l3_main_2 */
3274static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3275 .master = &omap44xx_gpu_hwmod,
3276 .slave = &omap44xx_l3_main_2_hwmod,
3277 .clk = "l3_div_ck",
3278 .user = OCP_USER_MPU | OCP_USER_SDMA,
3279};
3280
Paul Walmsley844a3b62012-04-19 04:04:33 -06003281/* hsi -> l3_main_2 */
3282static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3283 .master = &omap44xx_hsi_hwmod,
3284 .slave = &omap44xx_l3_main_2_hwmod,
3285 .clk = "l3_div_ck",
3286 .user = OCP_USER_MPU | OCP_USER_SDMA,
3287};
3288
3289/* ipu -> l3_main_2 */
3290static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3291 .master = &omap44xx_ipu_hwmod,
3292 .slave = &omap44xx_l3_main_2_hwmod,
3293 .clk = "l3_div_ck",
3294 .user = OCP_USER_MPU | OCP_USER_SDMA,
3295};
3296
3297/* iss -> l3_main_2 */
3298static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3299 .master = &omap44xx_iss_hwmod,
3300 .slave = &omap44xx_l3_main_2_hwmod,
3301 .clk = "l3_div_ck",
3302 .user = OCP_USER_MPU | OCP_USER_SDMA,
3303};
3304
3305/* iva -> l3_main_2 */
3306static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3307 .master = &omap44xx_iva_hwmod,
3308 .slave = &omap44xx_l3_main_2_hwmod,
3309 .clk = "l3_div_ck",
3310 .user = OCP_USER_MPU | OCP_USER_SDMA,
3311};
3312
Paul Walmsley844a3b62012-04-19 04:04:33 -06003313/* l3_main_1 -> l3_main_2 */
3314static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3315 .master = &omap44xx_l3_main_1_hwmod,
3316 .slave = &omap44xx_l3_main_2_hwmod,
3317 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003318 .user = OCP_USER_MPU,
3319};
3320
3321/* l4_cfg -> l3_main_2 */
3322static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3323 .master = &omap44xx_l4_cfg_hwmod,
3324 .slave = &omap44xx_l3_main_2_hwmod,
3325 .clk = "l4_div_ck",
3326 .user = OCP_USER_MPU | OCP_USER_SDMA,
3327};
3328
Benoît Cousson0c668872012-04-19 13:33:55 -06003329/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003330static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06003331 .master = &omap44xx_usb_host_fs_hwmod,
3332 .slave = &omap44xx_l3_main_2_hwmod,
3333 .clk = "l3_div_ck",
3334 .user = OCP_USER_MPU | OCP_USER_SDMA,
3335};
3336
Paul Walmsley844a3b62012-04-19 04:04:33 -06003337/* usb_host_hs -> l3_main_2 */
3338static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3339 .master = &omap44xx_usb_host_hs_hwmod,
3340 .slave = &omap44xx_l3_main_2_hwmod,
3341 .clk = "l3_div_ck",
3342 .user = OCP_USER_MPU | OCP_USER_SDMA,
3343};
3344
3345/* usb_otg_hs -> l3_main_2 */
3346static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3347 .master = &omap44xx_usb_otg_hs_hwmod,
3348 .slave = &omap44xx_l3_main_2_hwmod,
3349 .clk = "l3_div_ck",
3350 .user = OCP_USER_MPU | OCP_USER_SDMA,
3351};
3352
Paul Walmsley844a3b62012-04-19 04:04:33 -06003353/* l3_main_1 -> l3_main_3 */
3354static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3355 .master = &omap44xx_l3_main_1_hwmod,
3356 .slave = &omap44xx_l3_main_3_hwmod,
3357 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003358 .user = OCP_USER_MPU,
3359};
3360
3361/* l3_main_2 -> l3_main_3 */
3362static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3363 .master = &omap44xx_l3_main_2_hwmod,
3364 .slave = &omap44xx_l3_main_3_hwmod,
3365 .clk = "l3_div_ck",
3366 .user = OCP_USER_MPU | OCP_USER_SDMA,
3367};
3368
3369/* l4_cfg -> l3_main_3 */
3370static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3371 .master = &omap44xx_l4_cfg_hwmod,
3372 .slave = &omap44xx_l3_main_3_hwmod,
3373 .clk = "l4_div_ck",
3374 .user = OCP_USER_MPU | OCP_USER_SDMA,
3375};
3376
3377/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003378static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003379 .master = &omap44xx_aess_hwmod,
3380 .slave = &omap44xx_l4_abe_hwmod,
3381 .clk = "ocp_abe_iclk",
3382 .user = OCP_USER_MPU | OCP_USER_SDMA,
3383};
3384
3385/* dsp -> l4_abe */
3386static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3387 .master = &omap44xx_dsp_hwmod,
3388 .slave = &omap44xx_l4_abe_hwmod,
3389 .clk = "ocp_abe_iclk",
3390 .user = OCP_USER_MPU | OCP_USER_SDMA,
3391};
3392
3393/* l3_main_1 -> l4_abe */
3394static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3395 .master = &omap44xx_l3_main_1_hwmod,
3396 .slave = &omap44xx_l4_abe_hwmod,
3397 .clk = "l3_div_ck",
3398 .user = OCP_USER_MPU | OCP_USER_SDMA,
3399};
3400
3401/* mpu -> l4_abe */
3402static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3403 .master = &omap44xx_mpu_hwmod,
3404 .slave = &omap44xx_l4_abe_hwmod,
3405 .clk = "ocp_abe_iclk",
3406 .user = OCP_USER_MPU | OCP_USER_SDMA,
3407};
3408
3409/* l3_main_1 -> l4_cfg */
3410static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3411 .master = &omap44xx_l3_main_1_hwmod,
3412 .slave = &omap44xx_l4_cfg_hwmod,
3413 .clk = "l3_div_ck",
3414 .user = OCP_USER_MPU | OCP_USER_SDMA,
3415};
3416
3417/* l3_main_2 -> l4_per */
3418static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3419 .master = &omap44xx_l3_main_2_hwmod,
3420 .slave = &omap44xx_l4_per_hwmod,
3421 .clk = "l3_div_ck",
3422 .user = OCP_USER_MPU | OCP_USER_SDMA,
3423};
3424
3425/* l4_cfg -> l4_wkup */
3426static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3427 .master = &omap44xx_l4_cfg_hwmod,
3428 .slave = &omap44xx_l4_wkup_hwmod,
3429 .clk = "l4_div_ck",
3430 .user = OCP_USER_MPU | OCP_USER_SDMA,
3431};
3432
3433/* mpu -> mpu_private */
3434static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3435 .master = &omap44xx_mpu_hwmod,
3436 .slave = &omap44xx_mpu_private_hwmod,
3437 .clk = "l3_div_ck",
3438 .user = OCP_USER_MPU | OCP_USER_SDMA,
3439};
3440
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003441/* l4_cfg -> ocp_wp_noc */
3442static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3443 .master = &omap44xx_l4_cfg_hwmod,
3444 .slave = &omap44xx_ocp_wp_noc_hwmod,
3445 .clk = "l4_div_ck",
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003446 .user = OCP_USER_MPU | OCP_USER_SDMA,
3447};
3448
Paul Walmsley844a3b62012-04-19 04:04:33 -06003449static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
3450 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003451 .name = "dmem",
3452 .pa_start = 0x40180000,
3453 .pa_end = 0x4018ffff
3454 },
3455 {
3456 .name = "cmem",
3457 .pa_start = 0x401a0000,
3458 .pa_end = 0x401a1fff
3459 },
3460 {
3461 .name = "smem",
3462 .pa_start = 0x401c0000,
3463 .pa_end = 0x401c5fff
3464 },
3465 {
3466 .name = "pmem",
3467 .pa_start = 0x401e0000,
3468 .pa_end = 0x401e1fff
3469 },
3470 {
3471 .name = "mpu",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003472 .pa_start = 0x401f1000,
3473 .pa_end = 0x401f13ff,
3474 .flags = ADDR_TYPE_RT
3475 },
3476 { }
3477};
3478
3479/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003480static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003481 .master = &omap44xx_l4_abe_hwmod,
3482 .slave = &omap44xx_aess_hwmod,
3483 .clk = "ocp_abe_iclk",
3484 .addr = omap44xx_aess_addrs,
3485 .user = OCP_USER_MPU,
3486};
3487
3488static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
3489 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003490 .name = "dmem_dma",
3491 .pa_start = 0x49080000,
3492 .pa_end = 0x4908ffff
3493 },
3494 {
3495 .name = "cmem_dma",
3496 .pa_start = 0x490a0000,
3497 .pa_end = 0x490a1fff
3498 },
3499 {
3500 .name = "smem_dma",
3501 .pa_start = 0x490c0000,
3502 .pa_end = 0x490c5fff
3503 },
3504 {
3505 .name = "pmem_dma",
3506 .pa_start = 0x490e0000,
3507 .pa_end = 0x490e1fff
3508 },
3509 {
3510 .name = "dma",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003511 .pa_start = 0x490f1000,
3512 .pa_end = 0x490f13ff,
3513 .flags = ADDR_TYPE_RT
3514 },
3515 { }
3516};
3517
3518/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003519static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003520 .master = &omap44xx_l4_abe_hwmod,
3521 .slave = &omap44xx_aess_hwmod,
3522 .clk = "ocp_abe_iclk",
3523 .addr = omap44xx_aess_dma_addrs,
3524 .user = OCP_USER_SDMA,
3525};
3526
Paul Walmsley42b9e382012-04-19 13:33:54 -06003527/* l3_main_2 -> c2c */
3528static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3529 .master = &omap44xx_l3_main_2_hwmod,
3530 .slave = &omap44xx_c2c_hwmod,
3531 .clk = "l3_div_ck",
3532 .user = OCP_USER_MPU | OCP_USER_SDMA,
3533};
3534
Paul Walmsley844a3b62012-04-19 04:04:33 -06003535/* l4_wkup -> counter_32k */
3536static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3537 .master = &omap44xx_l4_wkup_hwmod,
3538 .slave = &omap44xx_counter_32k_hwmod,
3539 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003540 .user = OCP_USER_MPU | OCP_USER_SDMA,
3541};
3542
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003543static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
3544 {
3545 .pa_start = 0x4a002000,
3546 .pa_end = 0x4a0027ff,
3547 .flags = ADDR_TYPE_RT
3548 },
3549 { }
3550};
3551
3552/* l4_cfg -> ctrl_module_core */
3553static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3554 .master = &omap44xx_l4_cfg_hwmod,
3555 .slave = &omap44xx_ctrl_module_core_hwmod,
3556 .clk = "l4_div_ck",
3557 .addr = omap44xx_ctrl_module_core_addrs,
3558 .user = OCP_USER_MPU | OCP_USER_SDMA,
3559};
3560
3561static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
3562 {
3563 .pa_start = 0x4a100000,
3564 .pa_end = 0x4a1007ff,
3565 .flags = ADDR_TYPE_RT
3566 },
3567 { }
3568};
3569
3570/* l4_cfg -> ctrl_module_pad_core */
3571static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3572 .master = &omap44xx_l4_cfg_hwmod,
3573 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3574 .clk = "l4_div_ck",
3575 .addr = omap44xx_ctrl_module_pad_core_addrs,
3576 .user = OCP_USER_MPU | OCP_USER_SDMA,
3577};
3578
3579static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
3580 {
3581 .pa_start = 0x4a30c000,
3582 .pa_end = 0x4a30c7ff,
3583 .flags = ADDR_TYPE_RT
3584 },
3585 { }
3586};
3587
3588/* l4_wkup -> ctrl_module_wkup */
3589static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3590 .master = &omap44xx_l4_wkup_hwmod,
3591 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3592 .clk = "l4_wkup_clk_mux_ck",
3593 .addr = omap44xx_ctrl_module_wkup_addrs,
3594 .user = OCP_USER_MPU | OCP_USER_SDMA,
3595};
3596
3597static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
3598 {
3599 .pa_start = 0x4a31e000,
3600 .pa_end = 0x4a31e7ff,
3601 .flags = ADDR_TYPE_RT
3602 },
3603 { }
3604};
3605
3606/* l4_wkup -> ctrl_module_pad_wkup */
3607static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3608 .master = &omap44xx_l4_wkup_hwmod,
3609 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3610 .clk = "l4_wkup_clk_mux_ck",
3611 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
3612 .user = OCP_USER_MPU | OCP_USER_SDMA,
3613};
3614
Benoît Cousson96566042012-04-19 13:33:59 -06003615/* l3_instr -> debugss */
3616static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3617 .master = &omap44xx_l3_instr_hwmod,
3618 .slave = &omap44xx_debugss_hwmod,
3619 .clk = "l3_div_ck",
Benoît Cousson96566042012-04-19 13:33:59 -06003620 .user = OCP_USER_MPU | OCP_USER_SDMA,
3621};
3622
Paul Walmsley844a3b62012-04-19 04:04:33 -06003623static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
3624 {
3625 .pa_start = 0x4a056000,
3626 .pa_end = 0x4a056fff,
3627 .flags = ADDR_TYPE_RT
3628 },
3629 { }
3630};
3631
3632/* l4_cfg -> dma_system */
3633static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3634 .master = &omap44xx_l4_cfg_hwmod,
3635 .slave = &omap44xx_dma_system_hwmod,
3636 .clk = "l4_div_ck",
3637 .addr = omap44xx_dma_system_addrs,
3638 .user = OCP_USER_MPU | OCP_USER_SDMA,
3639};
3640
Paul Walmsley844a3b62012-04-19 04:04:33 -06003641/* l4_abe -> dmic */
3642static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3643 .master = &omap44xx_l4_abe_hwmod,
3644 .slave = &omap44xx_dmic_hwmod,
3645 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003646 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003647};
3648
3649/* dsp -> iva */
3650static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3651 .master = &omap44xx_dsp_hwmod,
3652 .slave = &omap44xx_iva_hwmod,
3653 .clk = "dpll_iva_m5x2_ck",
3654 .user = OCP_USER_DSP,
3655};
3656
Paul Walmsley42b9e382012-04-19 13:33:54 -06003657/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003658static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003659 .master = &omap44xx_dsp_hwmod,
3660 .slave = &omap44xx_sl2if_hwmod,
3661 .clk = "dpll_iva_m5x2_ck",
3662 .user = OCP_USER_DSP,
3663};
3664
Paul Walmsley844a3b62012-04-19 04:04:33 -06003665/* l4_cfg -> dsp */
3666static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3667 .master = &omap44xx_l4_cfg_hwmod,
3668 .slave = &omap44xx_dsp_hwmod,
3669 .clk = "l4_div_ck",
3670 .user = OCP_USER_MPU | OCP_USER_SDMA,
3671};
3672
3673static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
3674 {
3675 .pa_start = 0x58000000,
3676 .pa_end = 0x5800007f,
3677 .flags = ADDR_TYPE_RT
3678 },
3679 { }
3680};
3681
3682/* l3_main_2 -> dss */
3683static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3684 .master = &omap44xx_l3_main_2_hwmod,
3685 .slave = &omap44xx_dss_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003686 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003687 .addr = omap44xx_dss_dma_addrs,
3688 .user = OCP_USER_SDMA,
3689};
3690
3691static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
3692 {
3693 .pa_start = 0x48040000,
3694 .pa_end = 0x4804007f,
3695 .flags = ADDR_TYPE_RT
3696 },
3697 { }
3698};
3699
3700/* l4_per -> dss */
3701static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3702 .master = &omap44xx_l4_per_hwmod,
3703 .slave = &omap44xx_dss_hwmod,
3704 .clk = "l4_div_ck",
3705 .addr = omap44xx_dss_addrs,
3706 .user = OCP_USER_MPU,
3707};
3708
3709static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
3710 {
3711 .pa_start = 0x58001000,
3712 .pa_end = 0x58001fff,
3713 .flags = ADDR_TYPE_RT
3714 },
3715 { }
3716};
3717
3718/* l3_main_2 -> dss_dispc */
3719static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3720 .master = &omap44xx_l3_main_2_hwmod,
3721 .slave = &omap44xx_dss_dispc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003722 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003723 .addr = omap44xx_dss_dispc_dma_addrs,
3724 .user = OCP_USER_SDMA,
3725};
3726
3727static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
3728 {
3729 .pa_start = 0x48041000,
3730 .pa_end = 0x48041fff,
3731 .flags = ADDR_TYPE_RT
3732 },
3733 { }
3734};
3735
3736/* l4_per -> dss_dispc */
3737static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3738 .master = &omap44xx_l4_per_hwmod,
3739 .slave = &omap44xx_dss_dispc_hwmod,
3740 .clk = "l4_div_ck",
3741 .addr = omap44xx_dss_dispc_addrs,
3742 .user = OCP_USER_MPU,
3743};
3744
3745static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
3746 {
3747 .pa_start = 0x58004000,
3748 .pa_end = 0x580041ff,
3749 .flags = ADDR_TYPE_RT
3750 },
3751 { }
3752};
3753
3754/* l3_main_2 -> dss_dsi1 */
3755static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3756 .master = &omap44xx_l3_main_2_hwmod,
3757 .slave = &omap44xx_dss_dsi1_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003758 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003759 .addr = omap44xx_dss_dsi1_dma_addrs,
3760 .user = OCP_USER_SDMA,
3761};
3762
3763static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
3764 {
3765 .pa_start = 0x48044000,
3766 .pa_end = 0x480441ff,
3767 .flags = ADDR_TYPE_RT
3768 },
3769 { }
3770};
3771
3772/* l4_per -> dss_dsi1 */
3773static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3774 .master = &omap44xx_l4_per_hwmod,
3775 .slave = &omap44xx_dss_dsi1_hwmod,
3776 .clk = "l4_div_ck",
3777 .addr = omap44xx_dss_dsi1_addrs,
3778 .user = OCP_USER_MPU,
3779};
3780
3781static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
3782 {
3783 .pa_start = 0x58005000,
3784 .pa_end = 0x580051ff,
3785 .flags = ADDR_TYPE_RT
3786 },
3787 { }
3788};
3789
3790/* l3_main_2 -> dss_dsi2 */
3791static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3792 .master = &omap44xx_l3_main_2_hwmod,
3793 .slave = &omap44xx_dss_dsi2_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003794 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003795 .addr = omap44xx_dss_dsi2_dma_addrs,
3796 .user = OCP_USER_SDMA,
3797};
3798
3799static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
3800 {
3801 .pa_start = 0x48045000,
3802 .pa_end = 0x480451ff,
3803 .flags = ADDR_TYPE_RT
3804 },
3805 { }
3806};
3807
3808/* l4_per -> dss_dsi2 */
3809static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3810 .master = &omap44xx_l4_per_hwmod,
3811 .slave = &omap44xx_dss_dsi2_hwmod,
3812 .clk = "l4_div_ck",
3813 .addr = omap44xx_dss_dsi2_addrs,
3814 .user = OCP_USER_MPU,
3815};
3816
3817static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
3818 {
3819 .pa_start = 0x58006000,
3820 .pa_end = 0x58006fff,
3821 .flags = ADDR_TYPE_RT
3822 },
3823 { }
3824};
3825
3826/* l3_main_2 -> dss_hdmi */
3827static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3828 .master = &omap44xx_l3_main_2_hwmod,
3829 .slave = &omap44xx_dss_hdmi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003830 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003831 .addr = omap44xx_dss_hdmi_dma_addrs,
3832 .user = OCP_USER_SDMA,
3833};
3834
3835static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
3836 {
3837 .pa_start = 0x48046000,
3838 .pa_end = 0x48046fff,
3839 .flags = ADDR_TYPE_RT
3840 },
3841 { }
3842};
3843
3844/* l4_per -> dss_hdmi */
3845static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3846 .master = &omap44xx_l4_per_hwmod,
3847 .slave = &omap44xx_dss_hdmi_hwmod,
3848 .clk = "l4_div_ck",
3849 .addr = omap44xx_dss_hdmi_addrs,
3850 .user = OCP_USER_MPU,
3851};
3852
3853static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
3854 {
3855 .pa_start = 0x58002000,
3856 .pa_end = 0x580020ff,
3857 .flags = ADDR_TYPE_RT
3858 },
3859 { }
3860};
3861
3862/* l3_main_2 -> dss_rfbi */
3863static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3864 .master = &omap44xx_l3_main_2_hwmod,
3865 .slave = &omap44xx_dss_rfbi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003866 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003867 .addr = omap44xx_dss_rfbi_dma_addrs,
3868 .user = OCP_USER_SDMA,
3869};
3870
3871static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
3872 {
3873 .pa_start = 0x48042000,
3874 .pa_end = 0x480420ff,
3875 .flags = ADDR_TYPE_RT
3876 },
3877 { }
3878};
3879
3880/* l4_per -> dss_rfbi */
3881static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3882 .master = &omap44xx_l4_per_hwmod,
3883 .slave = &omap44xx_dss_rfbi_hwmod,
3884 .clk = "l4_div_ck",
3885 .addr = omap44xx_dss_rfbi_addrs,
3886 .user = OCP_USER_MPU,
3887};
3888
3889static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
3890 {
3891 .pa_start = 0x58003000,
3892 .pa_end = 0x580030ff,
3893 .flags = ADDR_TYPE_RT
3894 },
3895 { }
3896};
3897
3898/* l3_main_2 -> dss_venc */
3899static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3900 .master = &omap44xx_l3_main_2_hwmod,
3901 .slave = &omap44xx_dss_venc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003902 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003903 .addr = omap44xx_dss_venc_dma_addrs,
3904 .user = OCP_USER_SDMA,
3905};
3906
3907static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
3908 {
3909 .pa_start = 0x48043000,
3910 .pa_end = 0x480430ff,
3911 .flags = ADDR_TYPE_RT
3912 },
3913 { }
3914};
3915
3916/* l4_per -> dss_venc */
3917static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3918 .master = &omap44xx_l4_per_hwmod,
3919 .slave = &omap44xx_dss_venc_hwmod,
3920 .clk = "l4_div_ck",
3921 .addr = omap44xx_dss_venc_addrs,
3922 .user = OCP_USER_MPU,
3923};
3924
Paul Walmsley42b9e382012-04-19 13:33:54 -06003925static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
3926 {
3927 .pa_start = 0x48078000,
3928 .pa_end = 0x48078fff,
3929 .flags = ADDR_TYPE_RT
3930 },
3931 { }
3932};
3933
3934/* l4_per -> elm */
3935static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3936 .master = &omap44xx_l4_per_hwmod,
3937 .slave = &omap44xx_elm_hwmod,
3938 .clk = "l4_div_ck",
3939 .addr = omap44xx_elm_addrs,
3940 .user = OCP_USER_MPU | OCP_USER_SDMA,
3941};
3942
Ming Leib050f682012-04-19 13:33:50 -06003943static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
3944 {
3945 .pa_start = 0x4a10a000,
3946 .pa_end = 0x4a10a1ff,
3947 .flags = ADDR_TYPE_RT
3948 },
3949 { }
3950};
3951
3952/* l4_cfg -> fdif */
3953static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3954 .master = &omap44xx_l4_cfg_hwmod,
3955 .slave = &omap44xx_fdif_hwmod,
3956 .clk = "l4_div_ck",
3957 .addr = omap44xx_fdif_addrs,
3958 .user = OCP_USER_MPU | OCP_USER_SDMA,
3959};
3960
Paul Walmsley844a3b62012-04-19 04:04:33 -06003961/* l4_wkup -> gpio1 */
3962static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3963 .master = &omap44xx_l4_wkup_hwmod,
3964 .slave = &omap44xx_gpio1_hwmod,
3965 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003966 .user = OCP_USER_MPU | OCP_USER_SDMA,
3967};
3968
Paul Walmsley844a3b62012-04-19 04:04:33 -06003969/* l4_per -> gpio2 */
3970static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3971 .master = &omap44xx_l4_per_hwmod,
3972 .slave = &omap44xx_gpio2_hwmod,
3973 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003974 .user = OCP_USER_MPU | OCP_USER_SDMA,
3975};
3976
Paul Walmsley844a3b62012-04-19 04:04:33 -06003977/* l4_per -> gpio3 */
3978static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3979 .master = &omap44xx_l4_per_hwmod,
3980 .slave = &omap44xx_gpio3_hwmod,
3981 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003982 .user = OCP_USER_MPU | OCP_USER_SDMA,
3983};
3984
Paul Walmsley844a3b62012-04-19 04:04:33 -06003985/* l4_per -> gpio4 */
3986static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
3987 .master = &omap44xx_l4_per_hwmod,
3988 .slave = &omap44xx_gpio4_hwmod,
3989 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003990 .user = OCP_USER_MPU | OCP_USER_SDMA,
3991};
3992
Paul Walmsley844a3b62012-04-19 04:04:33 -06003993/* l4_per -> gpio5 */
3994static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
3995 .master = &omap44xx_l4_per_hwmod,
3996 .slave = &omap44xx_gpio5_hwmod,
3997 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003998 .user = OCP_USER_MPU | OCP_USER_SDMA,
3999};
4000
Paul Walmsley844a3b62012-04-19 04:04:33 -06004001/* l4_per -> gpio6 */
4002static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
4003 .master = &omap44xx_l4_per_hwmod,
4004 .slave = &omap44xx_gpio6_hwmod,
4005 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004006 .user = OCP_USER_MPU | OCP_USER_SDMA,
4007};
4008
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004009/* l3_main_2 -> gpmc */
4010static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4011 .master = &omap44xx_l3_main_2_hwmod,
4012 .slave = &omap44xx_gpmc_hwmod,
4013 .clk = "l3_div_ck",
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004014 .user = OCP_USER_MPU | OCP_USER_SDMA,
4015};
4016
Paul Walmsley9def3902012-04-19 13:33:53 -06004017static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4018 {
4019 .pa_start = 0x56000000,
4020 .pa_end = 0x5600ffff,
4021 .flags = ADDR_TYPE_RT
4022 },
4023 { }
4024};
4025
4026/* l3_main_2 -> gpu */
4027static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4028 .master = &omap44xx_l3_main_2_hwmod,
4029 .slave = &omap44xx_gpu_hwmod,
4030 .clk = "l3_div_ck",
4031 .addr = omap44xx_gpu_addrs,
4032 .user = OCP_USER_MPU | OCP_USER_SDMA,
4033};
4034
Paul Walmsleya091c082012-04-19 13:33:50 -06004035static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4036 {
4037 .pa_start = 0x480b2000,
4038 .pa_end = 0x480b201f,
4039 .flags = ADDR_TYPE_RT
4040 },
4041 { }
4042};
4043
4044/* l4_per -> hdq1w */
4045static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
4046 .master = &omap44xx_l4_per_hwmod,
4047 .slave = &omap44xx_hdq1w_hwmod,
4048 .clk = "l4_div_ck",
4049 .addr = omap44xx_hdq1w_addrs,
4050 .user = OCP_USER_MPU | OCP_USER_SDMA,
4051};
4052
Paul Walmsley844a3b62012-04-19 04:04:33 -06004053static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
4054 {
4055 .pa_start = 0x4a058000,
4056 .pa_end = 0x4a05bfff,
4057 .flags = ADDR_TYPE_RT
4058 },
4059 { }
4060};
4061
4062/* l4_cfg -> hsi */
4063static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
4064 .master = &omap44xx_l4_cfg_hwmod,
4065 .slave = &omap44xx_hsi_hwmod,
4066 .clk = "l4_div_ck",
4067 .addr = omap44xx_hsi_addrs,
4068 .user = OCP_USER_MPU | OCP_USER_SDMA,
4069};
4070
Paul Walmsley844a3b62012-04-19 04:04:33 -06004071/* l4_per -> i2c1 */
4072static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
4073 .master = &omap44xx_l4_per_hwmod,
4074 .slave = &omap44xx_i2c1_hwmod,
4075 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004076 .user = OCP_USER_MPU | OCP_USER_SDMA,
4077};
4078
Paul Walmsley844a3b62012-04-19 04:04:33 -06004079/* l4_per -> i2c2 */
4080static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
4081 .master = &omap44xx_l4_per_hwmod,
4082 .slave = &omap44xx_i2c2_hwmod,
4083 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004084 .user = OCP_USER_MPU | OCP_USER_SDMA,
4085};
4086
Paul Walmsley844a3b62012-04-19 04:04:33 -06004087/* l4_per -> i2c3 */
4088static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
4089 .master = &omap44xx_l4_per_hwmod,
4090 .slave = &omap44xx_i2c3_hwmod,
4091 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004092 .user = OCP_USER_MPU | OCP_USER_SDMA,
4093};
4094
Paul Walmsley844a3b62012-04-19 04:04:33 -06004095/* l4_per -> i2c4 */
4096static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
4097 .master = &omap44xx_l4_per_hwmod,
4098 .slave = &omap44xx_i2c4_hwmod,
4099 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004100 .user = OCP_USER_MPU | OCP_USER_SDMA,
4101};
4102
4103/* l3_main_2 -> ipu */
4104static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
4105 .master = &omap44xx_l3_main_2_hwmod,
4106 .slave = &omap44xx_ipu_hwmod,
4107 .clk = "l3_div_ck",
4108 .user = OCP_USER_MPU | OCP_USER_SDMA,
4109};
4110
4111static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
4112 {
4113 .pa_start = 0x52000000,
4114 .pa_end = 0x520000ff,
4115 .flags = ADDR_TYPE_RT
4116 },
4117 { }
4118};
4119
4120/* l3_main_2 -> iss */
4121static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
4122 .master = &omap44xx_l3_main_2_hwmod,
4123 .slave = &omap44xx_iss_hwmod,
4124 .clk = "l3_div_ck",
4125 .addr = omap44xx_iss_addrs,
4126 .user = OCP_USER_MPU | OCP_USER_SDMA,
4127};
4128
Paul Walmsley42b9e382012-04-19 13:33:54 -06004129/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004130static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004131 .master = &omap44xx_iva_hwmod,
4132 .slave = &omap44xx_sl2if_hwmod,
4133 .clk = "dpll_iva_m5x2_ck",
4134 .user = OCP_USER_IVA,
4135};
4136
Paul Walmsley844a3b62012-04-19 04:04:33 -06004137/* l3_main_2 -> iva */
4138static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
4139 .master = &omap44xx_l3_main_2_hwmod,
4140 .slave = &omap44xx_iva_hwmod,
4141 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004142 .user = OCP_USER_MPU,
4143};
4144
Paul Walmsley844a3b62012-04-19 04:04:33 -06004145/* l4_wkup -> kbd */
4146static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
4147 .master = &omap44xx_l4_wkup_hwmod,
4148 .slave = &omap44xx_kbd_hwmod,
4149 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004150 .user = OCP_USER_MPU | OCP_USER_SDMA,
4151};
4152
Paul Walmsley844a3b62012-04-19 04:04:33 -06004153/* l4_cfg -> mailbox */
4154static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
4155 .master = &omap44xx_l4_cfg_hwmod,
4156 .slave = &omap44xx_mailbox_hwmod,
4157 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004158 .user = OCP_USER_MPU | OCP_USER_SDMA,
4159};
4160
Benoît Cousson896d4e92012-04-19 13:33:54 -06004161static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
4162 {
4163 .pa_start = 0x40128000,
4164 .pa_end = 0x401283ff,
4165 .flags = ADDR_TYPE_RT
4166 },
4167 { }
4168};
4169
4170/* l4_abe -> mcasp */
4171static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
4172 .master = &omap44xx_l4_abe_hwmod,
4173 .slave = &omap44xx_mcasp_hwmod,
4174 .clk = "ocp_abe_iclk",
4175 .addr = omap44xx_mcasp_addrs,
4176 .user = OCP_USER_MPU,
4177};
4178
4179static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
4180 {
4181 .pa_start = 0x49028000,
4182 .pa_end = 0x490283ff,
4183 .flags = ADDR_TYPE_RT
4184 },
4185 { }
4186};
4187
4188/* l4_abe -> mcasp (dma) */
4189static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
4190 .master = &omap44xx_l4_abe_hwmod,
4191 .slave = &omap44xx_mcasp_hwmod,
4192 .clk = "ocp_abe_iclk",
4193 .addr = omap44xx_mcasp_dma_addrs,
4194 .user = OCP_USER_SDMA,
4195};
4196
Paul Walmsley844a3b62012-04-19 04:04:33 -06004197/* l4_abe -> mcbsp1 */
4198static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
4199 .master = &omap44xx_l4_abe_hwmod,
4200 .slave = &omap44xx_mcbsp1_hwmod,
4201 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004202 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004203};
4204
Paul Walmsley844a3b62012-04-19 04:04:33 -06004205/* l4_abe -> mcbsp2 */
4206static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
4207 .master = &omap44xx_l4_abe_hwmod,
4208 .slave = &omap44xx_mcbsp2_hwmod,
4209 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004210 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004211};
4212
Paul Walmsley844a3b62012-04-19 04:04:33 -06004213/* l4_abe -> mcbsp3 */
4214static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
4215 .master = &omap44xx_l4_abe_hwmod,
4216 .slave = &omap44xx_mcbsp3_hwmod,
4217 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004218 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004219};
4220
Paul Walmsley844a3b62012-04-19 04:04:33 -06004221/* l4_per -> mcbsp4 */
4222static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
4223 .master = &omap44xx_l4_per_hwmod,
4224 .slave = &omap44xx_mcbsp4_hwmod,
4225 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004226 .user = OCP_USER_MPU | OCP_USER_SDMA,
4227};
4228
Paul Walmsley844a3b62012-04-19 04:04:33 -06004229/* l4_abe -> mcpdm */
4230static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
4231 .master = &omap44xx_l4_abe_hwmod,
4232 .slave = &omap44xx_mcpdm_hwmod,
4233 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004234 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004235};
4236
Paul Walmsley844a3b62012-04-19 04:04:33 -06004237/* l4_per -> mcspi1 */
4238static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
4239 .master = &omap44xx_l4_per_hwmod,
4240 .slave = &omap44xx_mcspi1_hwmod,
4241 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004242 .user = OCP_USER_MPU | OCP_USER_SDMA,
4243};
4244
Paul Walmsley844a3b62012-04-19 04:04:33 -06004245/* l4_per -> mcspi2 */
4246static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
4247 .master = &omap44xx_l4_per_hwmod,
4248 .slave = &omap44xx_mcspi2_hwmod,
4249 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004250 .user = OCP_USER_MPU | OCP_USER_SDMA,
4251};
4252
Paul Walmsley844a3b62012-04-19 04:04:33 -06004253/* l4_per -> mcspi3 */
4254static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
4255 .master = &omap44xx_l4_per_hwmod,
4256 .slave = &omap44xx_mcspi3_hwmod,
4257 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004258 .user = OCP_USER_MPU | OCP_USER_SDMA,
4259};
4260
Paul Walmsley844a3b62012-04-19 04:04:33 -06004261/* l4_per -> mcspi4 */
4262static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
4263 .master = &omap44xx_l4_per_hwmod,
4264 .slave = &omap44xx_mcspi4_hwmod,
4265 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004266 .user = OCP_USER_MPU | OCP_USER_SDMA,
4267};
4268
Paul Walmsley844a3b62012-04-19 04:04:33 -06004269/* l4_per -> mmc1 */
4270static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
4271 .master = &omap44xx_l4_per_hwmod,
4272 .slave = &omap44xx_mmc1_hwmod,
4273 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004274 .user = OCP_USER_MPU | OCP_USER_SDMA,
4275};
4276
Paul Walmsley844a3b62012-04-19 04:04:33 -06004277/* l4_per -> mmc2 */
4278static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
4279 .master = &omap44xx_l4_per_hwmod,
4280 .slave = &omap44xx_mmc2_hwmod,
4281 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004282 .user = OCP_USER_MPU | OCP_USER_SDMA,
4283};
4284
Paul Walmsley844a3b62012-04-19 04:04:33 -06004285/* l4_per -> mmc3 */
4286static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
4287 .master = &omap44xx_l4_per_hwmod,
4288 .slave = &omap44xx_mmc3_hwmod,
4289 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004290 .user = OCP_USER_MPU | OCP_USER_SDMA,
4291};
4292
Paul Walmsley844a3b62012-04-19 04:04:33 -06004293/* l4_per -> mmc4 */
4294static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
4295 .master = &omap44xx_l4_per_hwmod,
4296 .slave = &omap44xx_mmc4_hwmod,
4297 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004298 .user = OCP_USER_MPU | OCP_USER_SDMA,
4299};
4300
Paul Walmsley844a3b62012-04-19 04:04:33 -06004301/* l4_per -> mmc5 */
4302static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
4303 .master = &omap44xx_l4_per_hwmod,
4304 .slave = &omap44xx_mmc5_hwmod,
4305 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004306 .user = OCP_USER_MPU | OCP_USER_SDMA,
4307};
4308
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004309/* l3_main_2 -> ocmc_ram */
4310static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
4311 .master = &omap44xx_l3_main_2_hwmod,
4312 .slave = &omap44xx_ocmc_ram_hwmod,
4313 .clk = "l3_div_ck",
4314 .user = OCP_USER_MPU | OCP_USER_SDMA,
4315};
4316
Benoît Cousson0c668872012-04-19 13:33:55 -06004317/* l4_cfg -> ocp2scp_usb_phy */
4318static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
4319 .master = &omap44xx_l4_cfg_hwmod,
4320 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
4321 .clk = "l4_div_ck",
4322 .user = OCP_USER_MPU | OCP_USER_SDMA,
4323};
4324
Paul Walmsley794b4802012-04-19 13:33:58 -06004325/* mpu_private -> prcm_mpu */
4326static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
4327 .master = &omap44xx_mpu_private_hwmod,
4328 .slave = &omap44xx_prcm_mpu_hwmod,
4329 .clk = "l3_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004330 .user = OCP_USER_MPU | OCP_USER_SDMA,
4331};
4332
Paul Walmsley794b4802012-04-19 13:33:58 -06004333/* l4_wkup -> cm_core_aon */
4334static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
4335 .master = &omap44xx_l4_wkup_hwmod,
4336 .slave = &omap44xx_cm_core_aon_hwmod,
4337 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004338 .user = OCP_USER_MPU | OCP_USER_SDMA,
4339};
4340
Paul Walmsley794b4802012-04-19 13:33:58 -06004341/* l4_cfg -> cm_core */
4342static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
4343 .master = &omap44xx_l4_cfg_hwmod,
4344 .slave = &omap44xx_cm_core_hwmod,
4345 .clk = "l4_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004346 .user = OCP_USER_MPU | OCP_USER_SDMA,
4347};
4348
Paul Walmsley794b4802012-04-19 13:33:58 -06004349/* l4_wkup -> prm */
4350static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
4351 .master = &omap44xx_l4_wkup_hwmod,
4352 .slave = &omap44xx_prm_hwmod,
4353 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004354 .user = OCP_USER_MPU | OCP_USER_SDMA,
4355};
4356
Paul Walmsley794b4802012-04-19 13:33:58 -06004357/* l4_wkup -> scrm */
4358static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
4359 .master = &omap44xx_l4_wkup_hwmod,
4360 .slave = &omap44xx_scrm_hwmod,
4361 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004362 .user = OCP_USER_MPU | OCP_USER_SDMA,
4363};
4364
Paul Walmsley42b9e382012-04-19 13:33:54 -06004365/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004366static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004367 .master = &omap44xx_l3_main_2_hwmod,
4368 .slave = &omap44xx_sl2if_hwmod,
4369 .clk = "l3_div_ck",
4370 .user = OCP_USER_MPU | OCP_USER_SDMA,
4371};
4372
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004373static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
4374 {
4375 .pa_start = 0x4012c000,
4376 .pa_end = 0x4012c3ff,
4377 .flags = ADDR_TYPE_RT
4378 },
4379 { }
4380};
4381
4382/* l4_abe -> slimbus1 */
4383static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
4384 .master = &omap44xx_l4_abe_hwmod,
4385 .slave = &omap44xx_slimbus1_hwmod,
4386 .clk = "ocp_abe_iclk",
4387 .addr = omap44xx_slimbus1_addrs,
4388 .user = OCP_USER_MPU,
4389};
4390
4391static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
4392 {
4393 .pa_start = 0x4902c000,
4394 .pa_end = 0x4902c3ff,
4395 .flags = ADDR_TYPE_RT
4396 },
4397 { }
4398};
4399
4400/* l4_abe -> slimbus1 (dma) */
4401static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
4402 .master = &omap44xx_l4_abe_hwmod,
4403 .slave = &omap44xx_slimbus1_hwmod,
4404 .clk = "ocp_abe_iclk",
4405 .addr = omap44xx_slimbus1_dma_addrs,
4406 .user = OCP_USER_SDMA,
4407};
4408
4409static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
4410 {
4411 .pa_start = 0x48076000,
4412 .pa_end = 0x480763ff,
4413 .flags = ADDR_TYPE_RT
4414 },
4415 { }
4416};
4417
4418/* l4_per -> slimbus2 */
4419static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
4420 .master = &omap44xx_l4_per_hwmod,
4421 .slave = &omap44xx_slimbus2_hwmod,
4422 .clk = "l4_div_ck",
4423 .addr = omap44xx_slimbus2_addrs,
4424 .user = OCP_USER_MPU | OCP_USER_SDMA,
4425};
4426
Paul Walmsley844a3b62012-04-19 04:04:33 -06004427static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
4428 {
4429 .pa_start = 0x4a0dd000,
4430 .pa_end = 0x4a0dd03f,
4431 .flags = ADDR_TYPE_RT
4432 },
4433 { }
4434};
4435
4436/* l4_cfg -> smartreflex_core */
4437static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
4438 .master = &omap44xx_l4_cfg_hwmod,
4439 .slave = &omap44xx_smartreflex_core_hwmod,
4440 .clk = "l4_div_ck",
4441 .addr = omap44xx_smartreflex_core_addrs,
4442 .user = OCP_USER_MPU | OCP_USER_SDMA,
4443};
4444
4445static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
4446 {
4447 .pa_start = 0x4a0db000,
4448 .pa_end = 0x4a0db03f,
4449 .flags = ADDR_TYPE_RT
4450 },
4451 { }
4452};
4453
4454/* l4_cfg -> smartreflex_iva */
4455static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4456 .master = &omap44xx_l4_cfg_hwmod,
4457 .slave = &omap44xx_smartreflex_iva_hwmod,
4458 .clk = "l4_div_ck",
4459 .addr = omap44xx_smartreflex_iva_addrs,
4460 .user = OCP_USER_MPU | OCP_USER_SDMA,
4461};
4462
4463static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4464 {
4465 .pa_start = 0x4a0d9000,
4466 .pa_end = 0x4a0d903f,
4467 .flags = ADDR_TYPE_RT
4468 },
4469 { }
4470};
4471
4472/* l4_cfg -> smartreflex_mpu */
4473static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4474 .master = &omap44xx_l4_cfg_hwmod,
4475 .slave = &omap44xx_smartreflex_mpu_hwmod,
4476 .clk = "l4_div_ck",
4477 .addr = omap44xx_smartreflex_mpu_addrs,
4478 .user = OCP_USER_MPU | OCP_USER_SDMA,
4479};
4480
4481static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
4482 {
4483 .pa_start = 0x4a0f6000,
4484 .pa_end = 0x4a0f6fff,
4485 .flags = ADDR_TYPE_RT
4486 },
4487 { }
4488};
4489
4490/* l4_cfg -> spinlock */
4491static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4492 .master = &omap44xx_l4_cfg_hwmod,
4493 .slave = &omap44xx_spinlock_hwmod,
4494 .clk = "l4_div_ck",
4495 .addr = omap44xx_spinlock_addrs,
4496 .user = OCP_USER_MPU | OCP_USER_SDMA,
4497};
4498
Paul Walmsley844a3b62012-04-19 04:04:33 -06004499/* l4_wkup -> timer1 */
4500static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4501 .master = &omap44xx_l4_wkup_hwmod,
4502 .slave = &omap44xx_timer1_hwmod,
4503 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004504 .user = OCP_USER_MPU | OCP_USER_SDMA,
4505};
4506
Paul Walmsley844a3b62012-04-19 04:04:33 -06004507/* l4_per -> timer2 */
4508static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4509 .master = &omap44xx_l4_per_hwmod,
4510 .slave = &omap44xx_timer2_hwmod,
4511 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004512 .user = OCP_USER_MPU | OCP_USER_SDMA,
4513};
4514
Paul Walmsley844a3b62012-04-19 04:04:33 -06004515/* l4_per -> timer3 */
4516static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4517 .master = &omap44xx_l4_per_hwmod,
4518 .slave = &omap44xx_timer3_hwmod,
4519 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004520 .user = OCP_USER_MPU | OCP_USER_SDMA,
4521};
4522
Paul Walmsley844a3b62012-04-19 04:04:33 -06004523/* l4_per -> timer4 */
4524static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4525 .master = &omap44xx_l4_per_hwmod,
4526 .slave = &omap44xx_timer4_hwmod,
4527 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004528 .user = OCP_USER_MPU | OCP_USER_SDMA,
4529};
4530
Paul Walmsley844a3b62012-04-19 04:04:33 -06004531/* l4_abe -> timer5 */
4532static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4533 .master = &omap44xx_l4_abe_hwmod,
4534 .slave = &omap44xx_timer5_hwmod,
4535 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004536 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004537};
4538
Paul Walmsley844a3b62012-04-19 04:04:33 -06004539/* l4_abe -> timer6 */
4540static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4541 .master = &omap44xx_l4_abe_hwmod,
4542 .slave = &omap44xx_timer6_hwmod,
4543 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004544 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004545};
4546
Paul Walmsley844a3b62012-04-19 04:04:33 -06004547/* l4_abe -> timer7 */
4548static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4549 .master = &omap44xx_l4_abe_hwmod,
4550 .slave = &omap44xx_timer7_hwmod,
4551 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004552 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004553};
4554
Paul Walmsley844a3b62012-04-19 04:04:33 -06004555/* l4_abe -> timer8 */
4556static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4557 .master = &omap44xx_l4_abe_hwmod,
4558 .slave = &omap44xx_timer8_hwmod,
4559 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004560 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004561};
4562
Paul Walmsley844a3b62012-04-19 04:04:33 -06004563/* l4_per -> timer9 */
4564static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4565 .master = &omap44xx_l4_per_hwmod,
4566 .slave = &omap44xx_timer9_hwmod,
4567 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004568 .user = OCP_USER_MPU | OCP_USER_SDMA,
4569};
4570
Paul Walmsley844a3b62012-04-19 04:04:33 -06004571/* l4_per -> timer10 */
4572static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4573 .master = &omap44xx_l4_per_hwmod,
4574 .slave = &omap44xx_timer10_hwmod,
4575 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004576 .user = OCP_USER_MPU | OCP_USER_SDMA,
4577};
4578
Paul Walmsley844a3b62012-04-19 04:04:33 -06004579/* l4_per -> timer11 */
4580static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4581 .master = &omap44xx_l4_per_hwmod,
4582 .slave = &omap44xx_timer11_hwmod,
4583 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004584 .user = OCP_USER_MPU | OCP_USER_SDMA,
4585};
4586
Paul Walmsley844a3b62012-04-19 04:04:33 -06004587/* l4_per -> uart1 */
4588static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4589 .master = &omap44xx_l4_per_hwmod,
4590 .slave = &omap44xx_uart1_hwmod,
4591 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004592 .user = OCP_USER_MPU | OCP_USER_SDMA,
4593};
4594
Paul Walmsley844a3b62012-04-19 04:04:33 -06004595/* l4_per -> uart2 */
4596static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4597 .master = &omap44xx_l4_per_hwmod,
4598 .slave = &omap44xx_uart2_hwmod,
4599 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004600 .user = OCP_USER_MPU | OCP_USER_SDMA,
4601};
4602
Paul Walmsley844a3b62012-04-19 04:04:33 -06004603/* l4_per -> uart3 */
4604static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4605 .master = &omap44xx_l4_per_hwmod,
4606 .slave = &omap44xx_uart3_hwmod,
4607 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004608 .user = OCP_USER_MPU | OCP_USER_SDMA,
4609};
4610
Paul Walmsley844a3b62012-04-19 04:04:33 -06004611/* l4_per -> uart4 */
4612static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4613 .master = &omap44xx_l4_per_hwmod,
4614 .slave = &omap44xx_uart4_hwmod,
4615 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004616 .user = OCP_USER_MPU | OCP_USER_SDMA,
4617};
4618
Benoît Cousson0c668872012-04-19 13:33:55 -06004619/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004620static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06004621 .master = &omap44xx_l4_cfg_hwmod,
4622 .slave = &omap44xx_usb_host_fs_hwmod,
4623 .clk = "l4_div_ck",
Benoît Cousson0c668872012-04-19 13:33:55 -06004624 .user = OCP_USER_MPU | OCP_USER_SDMA,
4625};
4626
Paul Walmsley844a3b62012-04-19 04:04:33 -06004627/* l4_cfg -> usb_host_hs */
4628static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4629 .master = &omap44xx_l4_cfg_hwmod,
4630 .slave = &omap44xx_usb_host_hs_hwmod,
4631 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004632 .user = OCP_USER_MPU | OCP_USER_SDMA,
4633};
4634
Paul Walmsley844a3b62012-04-19 04:04:33 -06004635/* l4_cfg -> usb_otg_hs */
4636static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4637 .master = &omap44xx_l4_cfg_hwmod,
4638 .slave = &omap44xx_usb_otg_hs_hwmod,
4639 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004640 .user = OCP_USER_MPU | OCP_USER_SDMA,
4641};
4642
Paul Walmsley844a3b62012-04-19 04:04:33 -06004643/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004644static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4645 .master = &omap44xx_l4_cfg_hwmod,
4646 .slave = &omap44xx_usb_tll_hs_hwmod,
4647 .clk = "l4_div_ck",
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004648 .user = OCP_USER_MPU | OCP_USER_SDMA,
4649};
4650
Paul Walmsley844a3b62012-04-19 04:04:33 -06004651/* l4_wkup -> wd_timer2 */
4652static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4653 .master = &omap44xx_l4_wkup_hwmod,
4654 .slave = &omap44xx_wd_timer2_hwmod,
4655 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004656 .user = OCP_USER_MPU | OCP_USER_SDMA,
4657};
4658
4659static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4660 {
4661 .pa_start = 0x40130000,
4662 .pa_end = 0x4013007f,
4663 .flags = ADDR_TYPE_RT
4664 },
4665 { }
4666};
4667
4668/* l4_abe -> wd_timer3 */
4669static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4670 .master = &omap44xx_l4_abe_hwmod,
4671 .slave = &omap44xx_wd_timer3_hwmod,
4672 .clk = "ocp_abe_iclk",
4673 .addr = omap44xx_wd_timer3_addrs,
4674 .user = OCP_USER_MPU,
4675};
4676
4677static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4678 {
4679 .pa_start = 0x49030000,
4680 .pa_end = 0x4903007f,
4681 .flags = ADDR_TYPE_RT
4682 },
4683 { }
4684};
4685
4686/* l4_abe -> wd_timer3 (dma) */
4687static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4688 .master = &omap44xx_l4_abe_hwmod,
4689 .slave = &omap44xx_wd_timer3_hwmod,
4690 .clk = "ocp_abe_iclk",
4691 .addr = omap44xx_wd_timer3_dma_addrs,
4692 .user = OCP_USER_SDMA,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004693};
4694
Sricharan R3b9b1012013-06-07 17:26:15 +05304695/* mpu -> emif1 */
4696static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4697 .master = &omap44xx_mpu_hwmod,
4698 .slave = &omap44xx_emif1_hwmod,
4699 .clk = "l3_div_ck",
4700 .user = OCP_USER_MPU | OCP_USER_SDMA,
4701};
4702
4703/* mpu -> emif2 */
4704static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4705 .master = &omap44xx_mpu_hwmod,
4706 .slave = &omap44xx_emif2_hwmod,
4707 .clk = "l3_div_ck",
4708 .user = OCP_USER_MPU | OCP_USER_SDMA,
4709};
4710
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004711static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4712 &omap44xx_l3_main_1__dmm,
4713 &omap44xx_mpu__dmm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004714 &omap44xx_iva__l3_instr,
4715 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc82012-04-19 13:33:56 -06004716 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004717 &omap44xx_dsp__l3_main_1,
4718 &omap44xx_dss__l3_main_1,
4719 &omap44xx_l3_main_2__l3_main_1,
4720 &omap44xx_l4_cfg__l3_main_1,
4721 &omap44xx_mmc1__l3_main_1,
4722 &omap44xx_mmc2__l3_main_1,
4723 &omap44xx_mpu__l3_main_1,
Benoît Cousson96566042012-04-19 13:33:59 -06004724 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004725 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06004726 &omap44xx_fdif__l3_main_2,
Paul Walmsley9def3902012-04-19 13:33:53 -06004727 &omap44xx_gpu__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004728 &omap44xx_hsi__l3_main_2,
4729 &omap44xx_ipu__l3_main_2,
4730 &omap44xx_iss__l3_main_2,
4731 &omap44xx_iva__l3_main_2,
4732 &omap44xx_l3_main_1__l3_main_2,
4733 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004734 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004735 &omap44xx_usb_host_hs__l3_main_2,
4736 &omap44xx_usb_otg_hs__l3_main_2,
4737 &omap44xx_l3_main_1__l3_main_3,
4738 &omap44xx_l3_main_2__l3_main_3,
4739 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004740 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004741 &omap44xx_dsp__l4_abe,
4742 &omap44xx_l3_main_1__l4_abe,
4743 &omap44xx_mpu__l4_abe,
4744 &omap44xx_l3_main_1__l4_cfg,
4745 &omap44xx_l3_main_2__l4_per,
4746 &omap44xx_l4_cfg__l4_wkup,
4747 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc82012-04-19 13:33:56 -06004748 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004749 &omap44xx_l4_abe__aess,
4750 &omap44xx_l4_abe__aess_dma,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004751 &omap44xx_l3_main_2__c2c,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004752 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06004753 &omap44xx_l4_cfg__ctrl_module_core,
4754 &omap44xx_l4_cfg__ctrl_module_pad_core,
4755 &omap44xx_l4_wkup__ctrl_module_wkup,
4756 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06004757 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004758 &omap44xx_l4_cfg__dma_system,
4759 &omap44xx_l4_abe__dmic,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004760 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06004761 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004762 &omap44xx_l4_cfg__dsp,
4763 &omap44xx_l3_main_2__dss,
4764 &omap44xx_l4_per__dss,
4765 &omap44xx_l3_main_2__dss_dispc,
4766 &omap44xx_l4_per__dss_dispc,
4767 &omap44xx_l3_main_2__dss_dsi1,
4768 &omap44xx_l4_per__dss_dsi1,
4769 &omap44xx_l3_main_2__dss_dsi2,
4770 &omap44xx_l4_per__dss_dsi2,
4771 &omap44xx_l3_main_2__dss_hdmi,
4772 &omap44xx_l4_per__dss_hdmi,
4773 &omap44xx_l3_main_2__dss_rfbi,
4774 &omap44xx_l4_per__dss_rfbi,
4775 &omap44xx_l3_main_2__dss_venc,
4776 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004777 &omap44xx_l4_per__elm,
Ming Leib050f682012-04-19 13:33:50 -06004778 &omap44xx_l4_cfg__fdif,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004779 &omap44xx_l4_wkup__gpio1,
4780 &omap44xx_l4_per__gpio2,
4781 &omap44xx_l4_per__gpio3,
4782 &omap44xx_l4_per__gpio4,
4783 &omap44xx_l4_per__gpio5,
4784 &omap44xx_l4_per__gpio6,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004785 &omap44xx_l3_main_2__gpmc,
Paul Walmsley9def3902012-04-19 13:33:53 -06004786 &omap44xx_l3_main_2__gpu,
Paul Walmsleya091c082012-04-19 13:33:50 -06004787 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004788 &omap44xx_l4_cfg__hsi,
4789 &omap44xx_l4_per__i2c1,
4790 &omap44xx_l4_per__i2c2,
4791 &omap44xx_l4_per__i2c3,
4792 &omap44xx_l4_per__i2c4,
4793 &omap44xx_l3_main_2__ipu,
4794 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06004795 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004796 &omap44xx_l3_main_2__iva,
4797 &omap44xx_l4_wkup__kbd,
4798 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06004799 &omap44xx_l4_abe__mcasp,
4800 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004801 &omap44xx_l4_abe__mcbsp1,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004802 &omap44xx_l4_abe__mcbsp2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004803 &omap44xx_l4_abe__mcbsp3,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004804 &omap44xx_l4_per__mcbsp4,
4805 &omap44xx_l4_abe__mcpdm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004806 &omap44xx_l4_per__mcspi1,
4807 &omap44xx_l4_per__mcspi2,
4808 &omap44xx_l4_per__mcspi3,
4809 &omap44xx_l4_per__mcspi4,
4810 &omap44xx_l4_per__mmc1,
4811 &omap44xx_l4_per__mmc2,
4812 &omap44xx_l4_per__mmc3,
4813 &omap44xx_l4_per__mmc4,
4814 &omap44xx_l4_per__mmc5,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06004815 &omap44xx_l3_main_2__mmu_ipu,
4816 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004817 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06004818 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06004819 &omap44xx_mpu_private__prcm_mpu,
4820 &omap44xx_l4_wkup__cm_core_aon,
4821 &omap44xx_l4_cfg__cm_core,
4822 &omap44xx_l4_wkup__prm,
4823 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06004824 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004825 &omap44xx_l4_abe__slimbus1,
4826 &omap44xx_l4_abe__slimbus1_dma,
4827 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004828 &omap44xx_l4_cfg__smartreflex_core,
4829 &omap44xx_l4_cfg__smartreflex_iva,
4830 &omap44xx_l4_cfg__smartreflex_mpu,
4831 &omap44xx_l4_cfg__spinlock,
4832 &omap44xx_l4_wkup__timer1,
4833 &omap44xx_l4_per__timer2,
4834 &omap44xx_l4_per__timer3,
4835 &omap44xx_l4_per__timer4,
4836 &omap44xx_l4_abe__timer5,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004837 &omap44xx_l4_abe__timer6,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004838 &omap44xx_l4_abe__timer7,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004839 &omap44xx_l4_abe__timer8,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004840 &omap44xx_l4_per__timer9,
4841 &omap44xx_l4_per__timer10,
4842 &omap44xx_l4_per__timer11,
4843 &omap44xx_l4_per__uart1,
4844 &omap44xx_l4_per__uart2,
4845 &omap44xx_l4_per__uart3,
4846 &omap44xx_l4_per__uart4,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004847 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004848 &omap44xx_l4_cfg__usb_host_hs,
4849 &omap44xx_l4_cfg__usb_otg_hs,
4850 &omap44xx_l4_cfg__usb_tll_hs,
4851 &omap44xx_l4_wkup__wd_timer2,
4852 &omap44xx_l4_abe__wd_timer3,
4853 &omap44xx_l4_abe__wd_timer3_dma,
Sricharan R3b9b1012013-06-07 17:26:15 +05304854 &omap44xx_mpu__emif1,
4855 &omap44xx_mpu__emif2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004856 NULL,
4857};
4858
4859int __init omap44xx_hwmod_init(void)
4860{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06004861 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004862 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004863}
4864