blob: 28ea2960a9b28cfc453b10770018c93d89e4100e [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002/*
3 * Hardware modules present on the OMAP44xx chips
4 *
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06005 * Copyright (C) 2009-2012 Texas Instruments, Inc.
Benoit Cousson55d2cb02010-05-12 17:54:36 +02006 * Copyright (C) 2009-2010 Nokia Corporation
7 *
8 * Paul Walmsley
9 * Benoit Cousson
10 *
11 * This file is automatically generated from the OMAP hardware databases.
12 * We respectfully ask that any modifications to this file be coordinated
13 * with the public linux-omap@vger.kernel.org mailing list and the
14 * authors above to ensure that the autogeneration scripts are kept
15 * up-to-date with the file contents.
Sricharan R3b9b1012013-06-07 17:26:15 +053016 * Note that this file is currently not in sync with autogeneration scripts.
17 * The above note to be removed, once it is synced up.
Benoit Cousson55d2cb02010-05-12 17:54:36 +020018 */
19
20#include <linux/io.h>
Jean Pihetb86aeaf2012-04-25 16:06:20 +053021#include <linux/power/smartreflex.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020022
Tony Lindgren45c3eb72012-11-30 08:41:50 -080023#include <linux/omap-dma.h>
Tony Lindgren2a296c82012-10-02 17:41:35 -070024
Tony Lindgren2a296c82012-10-02 17:41:35 -070025#include "omap_hwmod.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020026#include "omap_hwmod_common_data.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070027#include "cm1_44xx.h"
28#include "cm2_44xx.h"
29#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020030#include "prm-regbits-44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020031
32/* Base offset for all OMAP4 interrupts external to MPUSS */
33#define OMAP44XX_IRQ_GIC_START 32
34
35/* Base offset for all OMAP4 dma requests */
Paul Walmsley844a3b62012-04-19 04:04:33 -060036#define OMAP44XX_DMA_REQ_START 1
Benoit Cousson55d2cb02010-05-12 17:54:36 +020037
38/*
Paul Walmsley844a3b62012-04-19 04:04:33 -060039 * IP blocks
Benoit Cousson55d2cb02010-05-12 17:54:36 +020040 */
41
42/*
43 * 'dmm' class
44 * instance(s): dmm
45 */
46static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000047 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020048};
49
Benoit Cousson7e69ed92011-07-09 19:14:28 -060050/* dmm */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020051static struct omap_hwmod omap44xx_dmm_hwmod = {
52 .name = "dmm",
53 .class = &omap44xx_dmm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060054 .clkdm_name = "l3_emif_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060055 .prcm = {
56 .omap4 = {
57 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060058 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -060059 },
60 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020061};
62
63/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +020064 * 'l3' class
65 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
66 */
67static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000068 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020069};
70
Benoit Cousson7e69ed92011-07-09 19:14:28 -060071/* l3_instr */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020072static struct omap_hwmod omap44xx_l3_instr_hwmod = {
73 .name = "l3_instr",
74 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060075 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060076 .prcm = {
77 .omap4 = {
78 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060079 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -060080 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -060081 },
82 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020083};
84
Benoit Cousson7e69ed92011-07-09 19:14:28 -060085/* l3_main_1 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020086static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
87 .name = "l3_main_1",
88 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060089 .clkdm_name = "l3_1_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060090 .prcm = {
91 .omap4 = {
92 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060093 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
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_2 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020099static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
100 .name = "l3_main_2",
101 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600102 .clkdm_name = "l3_2_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600103 .prcm = {
104 .omap4 = {
105 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600106 .context_offs = OMAP4_RM_L3_2_L3_2_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_3 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200112static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
113 .name = "l3_main_3",
114 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600115 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600116 .prcm = {
117 .omap4 = {
118 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600119 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600120 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600121 },
122 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200123};
124
125/*
126 * 'l4' class
127 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
128 */
129static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000130 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200131};
132
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600133/* l4_abe */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200134static struct omap_hwmod omap44xx_l4_abe_hwmod = {
135 .name = "l4_abe",
136 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600137 .clkdm_name = "abe_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600138 .prcm = {
139 .omap4 = {
140 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600141 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
142 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
Tero Kristo46b3af22012-09-23 17:28:20 -0600143 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
Benoit Coussond0f06312011-07-10 05:56:30 -0600144 },
145 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200146};
147
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600148/* l4_cfg */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200149static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
150 .name = "l4_cfg",
151 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600152 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600153 .prcm = {
154 .omap4 = {
155 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600156 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
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_per */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200162static struct omap_hwmod omap44xx_l4_per_hwmod = {
163 .name = "l4_per",
164 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600165 .clkdm_name = "l4_per_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600166 .prcm = {
167 .omap4 = {
168 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600169 .context_offs = OMAP4_RM_L4PER_L4_PER_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_wkup */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200175static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
176 .name = "l4_wkup",
177 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600178 .clkdm_name = "l4_wkup_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600179 .prcm = {
180 .omap4 = {
181 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600182 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600183 },
184 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200185};
186
187/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700188 * 'mpu_bus' class
189 * instance(s): mpu_private
190 */
191static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000192 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700193};
194
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600195/* mpu_private */
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700196static struct omap_hwmod omap44xx_mpu_private_hwmod = {
197 .name = "mpu_private",
198 .class = &omap44xx_mpu_bus_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600199 .clkdm_name = "mpuss_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600200 .prcm = {
201 .omap4 = {
202 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
203 },
204 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700205};
206
207/*
Benoît Cousson9a817bc82012-04-19 13:33:56 -0600208 * 'ocp_wp_noc' class
209 * instance(s): ocp_wp_noc
210 */
211static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
212 .name = "ocp_wp_noc",
213};
214
215/* ocp_wp_noc */
216static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
217 .name = "ocp_wp_noc",
218 .class = &omap44xx_ocp_wp_noc_hwmod_class,
219 .clkdm_name = "l3_instr_clkdm",
220 .prcm = {
221 .omap4 = {
222 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
223 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
224 .modulemode = MODULEMODE_HWCTRL,
225 },
226 },
227};
228
229/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700230 * Modules omap_hwmod structures
231 *
232 * The following IPs are excluded for the moment because:
233 * - They do not need an explicit SW control using omap_hwmod API.
234 * - They still need to be validated with the driver
235 * properly adapted to omap_hwmod / omap_device
236 *
Benoît Cousson96566042012-04-19 13:33:59 -0600237 * usim
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700238 */
239
240/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100241 * 'aess' class
242 * audio engine sub system
243 */
244
245static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
246 .rev_offs = 0x0000,
247 .sysc_offs = 0x0010,
248 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
249 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
Benoit Coussonc614ebf2011-07-01 22:54:01 +0200250 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
251 MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +0100252 .sysc_fields = &omap_hwmod_sysc_type2,
253};
254
255static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
256 .name = "aess",
257 .sysc = &omap44xx_aess_sysc,
Paul Walmsleyc02060d2013-02-10 11:22:23 -0700258 .enable_preprogram = omap_hwmod_aess_preprogram,
Benoit Cousson407a6882011-02-15 22:39:48 +0100259};
260
261/* aess */
Benoit Cousson407a6882011-02-15 22:39:48 +0100262static struct omap_hwmod omap44xx_aess_hwmod = {
263 .name = "aess",
264 .class = &omap44xx_aess_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600265 .clkdm_name = "abe_clkdm",
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -0700266 .main_clk = "aess_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600267 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100268 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600269 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600270 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600271 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600272 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +0100273 },
274 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100275};
276
277/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100278 * 'counter' class
279 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
280 */
281
282static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
283 .rev_offs = 0x0000,
284 .sysc_offs = 0x0004,
285 .sysc_flags = SYSC_HAS_SIDLEMODE,
Paul Walmsley252a4c52012-06-17 11:57:51 -0600286 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
Benoit Cousson407a6882011-02-15 22:39:48 +0100287 .sysc_fields = &omap_hwmod_sysc_type1,
288};
289
290static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
291 .name = "counter",
292 .sysc = &omap44xx_counter_sysc,
293};
294
295/* counter_32k */
Benoit Cousson407a6882011-02-15 22:39:48 +0100296static struct omap_hwmod omap44xx_counter_32k_hwmod = {
297 .name = "counter_32k",
298 .class = &omap44xx_counter_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600299 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100300 .flags = HWMOD_SWSUP_SIDLE,
301 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600302 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100303 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600304 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600305 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +0100306 },
307 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100308};
309
310/*
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600311 * 'ctrl_module' class
312 * attila core control module + core pad control module + wkup pad control
313 * module + attila wkup control module
314 */
315
316static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
317 .rev_offs = 0x0000,
318 .sysc_offs = 0x0010,
319 .sysc_flags = SYSC_HAS_SIDLEMODE,
320 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
321 SIDLE_SMART_WKUP),
322 .sysc_fields = &omap_hwmod_sysc_type2,
323};
324
325static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
326 .name = "ctrl_module",
327 .sysc = &omap44xx_ctrl_module_sysc,
328};
329
330/* ctrl_module_core */
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600331static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
332 .name = "ctrl_module_core",
333 .class = &omap44xx_ctrl_module_hwmod_class,
334 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600335 .prcm = {
336 .omap4 = {
337 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
338 },
339 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600340};
341
342/* ctrl_module_pad_core */
343static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
344 .name = "ctrl_module_pad_core",
345 .class = &omap44xx_ctrl_module_hwmod_class,
346 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600347 .prcm = {
348 .omap4 = {
349 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
350 },
351 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600352};
353
354/* ctrl_module_wkup */
355static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
356 .name = "ctrl_module_wkup",
357 .class = &omap44xx_ctrl_module_hwmod_class,
358 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600359 .prcm = {
360 .omap4 = {
361 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
362 },
363 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600364};
365
366/* ctrl_module_pad_wkup */
367static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
368 .name = "ctrl_module_pad_wkup",
369 .class = &omap44xx_ctrl_module_hwmod_class,
370 .clkdm_name = "l4_wkup_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/*
Benoît Cousson96566042012-04-19 13:33:59 -0600379 * 'debugss' class
380 * debug and emulation sub system
381 */
382
383static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
384 .name = "debugss",
385};
386
387/* debugss */
388static struct omap_hwmod omap44xx_debugss_hwmod = {
389 .name = "debugss",
390 .class = &omap44xx_debugss_hwmod_class,
391 .clkdm_name = "emu_sys_clkdm",
392 .main_clk = "trace_clk_div_ck",
393 .prcm = {
394 .omap4 = {
395 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
396 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
397 },
398 },
399};
400
401/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000402 * 'dma' class
403 * dma controller for data exchange between memory to memory (i.e. internal or
404 * external memory) and gp peripherals to memory or memory to gp peripherals
405 */
406
407static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
408 .rev_offs = 0x0000,
409 .sysc_offs = 0x002c,
410 .syss_offs = 0x0028,
411 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
412 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
413 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
414 SYSS_HAS_RESET_STATUS),
415 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
416 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
417 .sysc_fields = &omap_hwmod_sysc_type1,
418};
419
420static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
421 .name = "dma",
422 .sysc = &omap44xx_dma_sysc,
423};
424
425/* dma dev_attr */
426static struct omap_dma_dev_attr dma_dev_attr = {
427 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
428 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
429 .lch_count = 32,
430};
431
432/* dma_system */
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000433static struct omap_hwmod omap44xx_dma_system_hwmod = {
434 .name = "dma_system",
435 .class = &omap44xx_dma_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600436 .clkdm_name = "l3_dma_clkdm",
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000437 .main_clk = "l3_div_ck",
438 .prcm = {
439 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600440 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600441 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000442 },
443 },
444 .dev_attr = &dma_dev_attr,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000445};
446
447/*
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000448 * 'dmic' class
449 * digital microphone controller
450 */
451
452static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
453 .rev_offs = 0x0000,
454 .sysc_offs = 0x0010,
455 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
456 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
457 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
458 SIDLE_SMART_WKUP),
459 .sysc_fields = &omap_hwmod_sysc_type2,
460};
461
462static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
463 .name = "dmic",
464 .sysc = &omap44xx_dmic_sysc,
465};
466
467/* dmic */
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000468static struct omap_hwmod omap44xx_dmic_hwmod = {
469 .name = "dmic",
470 .class = &omap44xx_dmic_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600471 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -0700472 .main_clk = "func_dmic_abe_gfclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600473 .prcm = {
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000474 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600475 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600476 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600477 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000478 },
479 },
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000480};
481
482/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700483 * 'dsp' class
484 * dsp sub-system
485 */
486
487static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000488 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700489};
490
491/* dsp */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700492static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700493 { .name = "dsp", .rst_shift = 0 },
494};
495
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700496static struct omap_hwmod omap44xx_dsp_hwmod = {
497 .name = "dsp",
498 .class = &omap44xx_dsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600499 .clkdm_name = "tesla_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700500 .rst_lines = omap44xx_dsp_resets,
501 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -0600502 .main_clk = "dpll_iva_m4x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700503 .prcm = {
504 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600505 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -0600506 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600507 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600508 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700509 },
510 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700511};
512
513/*
Benoit Coussond63bd742011-01-27 11:17:03 +0000514 * 'dss' class
515 * display sub-system
516 */
517
518static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
519 .rev_offs = 0x0000,
520 .syss_offs = 0x0014,
521 .sysc_flags = SYSS_HAS_RESET_STATUS,
522};
523
524static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
525 .name = "dss",
526 .sysc = &omap44xx_dss_sysc,
Tomi Valkeinen13662dc2011-11-08 03:16:13 -0700527 .reset = omap_dss_reset,
Benoit Coussond63bd742011-01-27 11:17:03 +0000528};
529
530/* dss */
Benoit Coussond63bd742011-01-27 11:17:03 +0000531static struct omap_hwmod_opt_clk dss_opt_clks[] = {
532 { .role = "sys_clk", .clk = "dss_sys_clk" },
533 { .role = "tv_clk", .clk = "dss_tv_clk" },
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700534 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Benoit Coussond63bd742011-01-27 11:17:03 +0000535};
536
537static struct omap_hwmod omap44xx_dss_hwmod = {
538 .name = "dss_core",
Tomi Valkeinen37ad0852011-11-08 03:16:11 -0700539 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000540 .class = &omap44xx_dss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600541 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600542 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000543 .prcm = {
544 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600545 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600546 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +0300547 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussond63bd742011-01-27 11:17:03 +0000548 },
549 },
550 .opt_clks = dss_opt_clks,
551 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000552};
553
554/*
555 * 'dispc' class
556 * display controller
557 */
558
559static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
560 .rev_offs = 0x0000,
561 .sysc_offs = 0x0010,
562 .syss_offs = 0x0014,
563 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
564 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
565 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
566 SYSS_HAS_RESET_STATUS),
567 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
568 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
569 .sysc_fields = &omap_hwmod_sysc_type1,
570};
571
572static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
573 .name = "dispc",
574 .sysc = &omap44xx_dispc_sysc,
575};
576
577/* dss_dispc */
Archit Tanejab923d402011-10-06 18:04:08 -0600578static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
579 .manager_count = 3,
580 .has_framedonetv_irq = 1
581};
582
Benoit Coussond63bd742011-01-27 11:17:03 +0000583static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
584 .name = "dss_dispc",
585 .class = &omap44xx_dispc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600586 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600587 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000588 .prcm = {
589 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600590 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600591 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000592 },
593 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300594 .dev_attr = &omap44xx_dss_dispc_dev_attr,
595 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000596};
597
598/*
599 * 'dsi' class
600 * display serial interface controller
601 */
602
603static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
604 .rev_offs = 0x0000,
605 .sysc_offs = 0x0010,
606 .syss_offs = 0x0014,
607 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
608 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
609 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
610 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
611 .sysc_fields = &omap_hwmod_sysc_type1,
612};
613
614static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
615 .name = "dsi",
616 .sysc = &omap44xx_dsi_sysc,
617};
618
619/* dss_dsi1 */
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600620static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
621 { .role = "sys_clk", .clk = "dss_sys_clk" },
622};
623
Benoit Coussond63bd742011-01-27 11:17:03 +0000624static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
625 .name = "dss_dsi1",
626 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600627 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600628 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000629 .prcm = {
630 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600631 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600632 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000633 },
634 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600635 .opt_clks = dss_dsi1_opt_clks,
636 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300637 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000638};
639
640/* dss_dsi2 */
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600641static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
642 { .role = "sys_clk", .clk = "dss_sys_clk" },
643};
644
Benoit Coussond63bd742011-01-27 11:17:03 +0000645static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
646 .name = "dss_dsi2",
647 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600648 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600649 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000650 .prcm = {
651 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600652 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600653 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000654 },
655 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600656 .opt_clks = dss_dsi2_opt_clks,
657 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300658 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000659};
660
661/*
662 * 'hdmi' class
663 * hdmi controller
664 */
665
666static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
667 .rev_offs = 0x0000,
668 .sysc_offs = 0x0010,
669 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
670 SYSC_HAS_SOFTRESET),
671 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
672 SIDLE_SMART_WKUP),
673 .sysc_fields = &omap_hwmod_sysc_type2,
674};
675
676static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
677 .name = "hdmi",
678 .sysc = &omap44xx_hdmi_sysc,
679};
680
681/* dss_hdmi */
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600682static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
683 { .role = "sys_clk", .clk = "dss_sys_clk" },
Tero Kristo24d8d492017-05-31 17:59:59 +0300684 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600685};
686
Benoit Coussond63bd742011-01-27 11:17:03 +0000687static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
688 .name = "dss_hdmi",
689 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600690 .clkdm_name = "l3_dss_clkdm",
Ricardo Neridc57aef2012-06-21 10:08:53 +0200691 /*
692 * HDMI audio requires to use no-idle mode. Hence,
693 * set idle mode by software.
694 */
Tero Kristo24d8d492017-05-31 17:59:59 +0300695 .flags = HWMOD_SWSUP_SIDLE | HWMOD_OPT_CLKS_NEEDED,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700696 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000697 .prcm = {
698 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600699 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600700 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000701 },
702 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600703 .opt_clks = dss_hdmi_opt_clks,
704 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300705 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000706};
707
708/*
709 * 'rfbi' class
710 * remote frame buffer interface
711 */
712
713static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
714 .rev_offs = 0x0000,
715 .sysc_offs = 0x0010,
716 .syss_offs = 0x0014,
717 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
718 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
719 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
720 .sysc_fields = &omap_hwmod_sysc_type1,
721};
722
723static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
724 .name = "rfbi",
725 .sysc = &omap44xx_rfbi_sysc,
726};
727
728/* dss_rfbi */
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600729static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
Tomi Valkeinen2cc84f42014-10-09 17:03:18 +0300730 { .role = "ick", .clk = "l3_div_ck" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600731};
732
Benoit Coussond63bd742011-01-27 11:17:03 +0000733static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
734 .name = "dss_rfbi",
735 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600736 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600737 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000738 .prcm = {
739 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600740 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600741 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000742 },
743 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600744 .opt_clks = dss_rfbi_opt_clks,
745 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300746 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000747};
748
749/*
750 * 'venc' class
751 * video encoder
752 */
753
754static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
755 .name = "venc",
756};
757
758/* dss_venc */
Tero Kristo24d8d492017-05-31 17:59:59 +0300759static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
760 { .role = "tv_clk", .clk = "dss_tv_clk" },
761};
762
Benoit Coussond63bd742011-01-27 11:17:03 +0000763static struct omap_hwmod omap44xx_dss_venc_hwmod = {
764 .name = "dss_venc",
765 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600766 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700767 .main_clk = "dss_tv_clk",
Tero Kristo24d8d492017-05-31 17:59:59 +0300768 .flags = HWMOD_OPT_CLKS_NEEDED,
Benoit Coussond63bd742011-01-27 11:17:03 +0000769 .prcm = {
770 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600771 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600772 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000773 },
774 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300775 .parent_hwmod = &omap44xx_dss_hwmod,
Tero Kristo24d8d492017-05-31 17:59:59 +0300776 .opt_clks = dss_venc_opt_clks,
777 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000778};
779
Tero Kristo1df5eaa2017-06-13 16:45:50 +0300780/* sha0 HIB2 (the 'P' (public) device) */
781static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc = {
782 .rev_offs = 0x100,
783 .sysc_offs = 0x110,
784 .syss_offs = 0x114,
785 .sysc_flags = SYSS_HAS_RESET_STATUS,
786};
787
788static struct omap_hwmod_class omap44xx_sha0_hwmod_class = {
789 .name = "sham",
790 .sysc = &omap44xx_sha0_sysc,
791};
792
793struct omap_hwmod omap44xx_sha0_hwmod = {
794 .name = "sham",
795 .class = &omap44xx_sha0_hwmod_class,
796 .clkdm_name = "l4_secure_clkdm",
797 .main_clk = "l3_div_ck",
798 .prcm = {
799 .omap4 = {
800 .clkctrl_offs = OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
801 .context_offs = OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
802 .modulemode = MODULEMODE_SWCTRL,
803 },
804 },
805};
806
Benoit Coussond63bd742011-01-27 11:17:03 +0000807/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600808 * 'elm' class
809 * bch error location module
810 */
811
812static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
813 .rev_offs = 0x0000,
814 .sysc_offs = 0x0010,
815 .syss_offs = 0x0014,
816 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
817 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
818 SYSS_HAS_RESET_STATUS),
819 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
820 .sysc_fields = &omap_hwmod_sysc_type1,
821};
822
823static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
824 .name = "elm",
825 .sysc = &omap44xx_elm_sysc,
826};
827
828/* elm */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600829static struct omap_hwmod omap44xx_elm_hwmod = {
830 .name = "elm",
831 .class = &omap44xx_elm_hwmod_class,
832 .clkdm_name = "l4_per_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600833 .prcm = {
834 .omap4 = {
835 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
836 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
837 },
838 },
839};
840
841/*
Paul Walmsleybf30f952012-04-19 13:33:52 -0600842 * 'emif' class
843 * external memory interface no1
844 */
845
846static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
847 .rev_offs = 0x0000,
848};
849
850static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
851 .name = "emif",
852 .sysc = &omap44xx_emif_sysc,
853};
854
855/* emif1 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600856static struct omap_hwmod omap44xx_emif1_hwmod = {
857 .name = "emif1",
858 .class = &omap44xx_emif_hwmod_class,
859 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530860 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600861 .main_clk = "ddrphy_ck",
862 .prcm = {
863 .omap4 = {
864 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
865 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
866 .modulemode = MODULEMODE_HWCTRL,
867 },
868 },
869};
870
871/* emif2 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600872static struct omap_hwmod omap44xx_emif2_hwmod = {
873 .name = "emif2",
874 .class = &omap44xx_emif_hwmod_class,
875 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530876 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600877 .main_clk = "ddrphy_ck",
878 .prcm = {
879 .omap4 = {
880 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
881 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
882 .modulemode = MODULEMODE_HWCTRL,
883 },
884 },
885};
886
887/*
Sebastian Reichel9a9ded82017-06-13 11:28:45 +0200888 Crypto modules AES0/1 belong to:
889 PD_L4_PER power domain
890 CD_L4_SEC clock domain
891 On the L3, the AES modules are mapped to
892 L3_CLK2: Peripherals and multimedia sub clock domain
893*/
894static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc = {
895 .rev_offs = 0x80,
896 .sysc_offs = 0x84,
897 .syss_offs = 0x88,
898 .sysc_flags = SYSS_HAS_RESET_STATUS,
899};
900
901static struct omap_hwmod_class omap44xx_aes_hwmod_class = {
902 .name = "aes",
903 .sysc = &omap44xx_aes_sysc,
904};
905
906static struct omap_hwmod omap44xx_aes1_hwmod = {
907 .name = "aes1",
908 .class = &omap44xx_aes_hwmod_class,
909 .clkdm_name = "l4_secure_clkdm",
910 .main_clk = "l3_div_ck",
911 .prcm = {
912 .omap4 = {
913 .context_offs = OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET,
914 .clkctrl_offs = OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET,
915 .modulemode = MODULEMODE_SWCTRL,
916 },
917 },
918};
919
920static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1 = {
921 .master = &omap44xx_l4_per_hwmod,
922 .slave = &omap44xx_aes1_hwmod,
923 .clk = "l3_div_ck",
924 .user = OCP_USER_MPU | OCP_USER_SDMA,
925};
926
Sebastian Reichel478523d2017-06-13 11:28:46 +0200927static struct omap_hwmod omap44xx_aes2_hwmod = {
928 .name = "aes2",
929 .class = &omap44xx_aes_hwmod_class,
930 .clkdm_name = "l4_secure_clkdm",
931 .main_clk = "l3_div_ck",
932 .prcm = {
933 .omap4 = {
934 .context_offs = OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET,
935 .clkctrl_offs = OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET,
936 .modulemode = MODULEMODE_SWCTRL,
937 },
938 },
939};
940
941static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2 = {
942 .master = &omap44xx_l4_per_hwmod,
943 .slave = &omap44xx_aes2_hwmod,
944 .clk = "l3_div_ck",
945 .user = OCP_USER_MPU | OCP_USER_SDMA,
946};
947
Sebastian Reichel9a9ded82017-06-13 11:28:45 +0200948/*
Sebastian Reichelebea90d2017-06-13 11:28:47 +0200949 * 'des' class for DES3DES module
950 */
951static struct omap_hwmod_class_sysconfig omap44xx_des_sysc = {
952 .rev_offs = 0x30,
953 .sysc_offs = 0x34,
954 .syss_offs = 0x38,
955 .sysc_flags = SYSS_HAS_RESET_STATUS,
956};
957
958static struct omap_hwmod_class omap44xx_des_hwmod_class = {
959 .name = "des",
960 .sysc = &omap44xx_des_sysc,
961};
962
963static struct omap_hwmod omap44xx_des_hwmod = {
964 .name = "des",
965 .class = &omap44xx_des_hwmod_class,
966 .clkdm_name = "l4_secure_clkdm",
967 .main_clk = "l3_div_ck",
968 .prcm = {
969 .omap4 = {
970 .context_offs = OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
971 .clkctrl_offs = OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
972 .modulemode = MODULEMODE_SWCTRL,
973 },
974 },
975};
976
977struct omap_hwmod_ocp_if omap44xx_l3_main_2__des = {
978 .master = &omap44xx_l3_main_2_hwmod,
979 .slave = &omap44xx_des_hwmod,
980 .clk = "l3_div_ck",
981 .user = OCP_USER_MPU | OCP_USER_SDMA,
982};
983
984/*
Ming Leib050f682012-04-19 13:33:50 -0600985 * 'fdif' class
986 * face detection hw accelerator module
987 */
988
989static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
990 .rev_offs = 0x0000,
991 .sysc_offs = 0x0010,
992 /*
993 * FDIF needs 100 OCP clk cycles delay after a softreset before
994 * accessing sysconfig again.
995 * The lowest frequency at the moment for L3 bus is 100 MHz, so
996 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
997 *
998 * TODO: Indicate errata when available.
999 */
1000 .srst_udelay = 2,
1001 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1002 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1003 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1004 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1005 .sysc_fields = &omap_hwmod_sysc_type2,
1006};
1007
1008static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1009 .name = "fdif",
1010 .sysc = &omap44xx_fdif_sysc,
1011};
1012
1013/* fdif */
Ming Leib050f682012-04-19 13:33:50 -06001014static struct omap_hwmod omap44xx_fdif_hwmod = {
1015 .name = "fdif",
1016 .class = &omap44xx_fdif_hwmod_class,
1017 .clkdm_name = "iss_clkdm",
Ming Leib050f682012-04-19 13:33:50 -06001018 .main_clk = "fdif_fck",
1019 .prcm = {
1020 .omap4 = {
1021 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1022 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1023 .modulemode = MODULEMODE_SWCTRL,
1024 },
1025 },
1026};
1027
1028/*
Benoît Coussoneb42b5d32012-04-19 13:33:51 -06001029 * 'gpmc' class
1030 * general purpose memory controller
1031 */
1032
1033static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1034 .rev_offs = 0x0000,
1035 .sysc_offs = 0x0010,
1036 .syss_offs = 0x0014,
1037 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1038 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1039 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1040 .sysc_fields = &omap_hwmod_sysc_type1,
1041};
1042
1043static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1044 .name = "gpmc",
1045 .sysc = &omap44xx_gpmc_sysc,
1046};
1047
1048/* gpmc */
Benoît Coussoneb42b5d32012-04-19 13:33:51 -06001049static struct omap_hwmod omap44xx_gpmc_hwmod = {
1050 .name = "gpmc",
1051 .class = &omap44xx_gpmc_hwmod_class,
1052 .clkdm_name = "l3_2_clkdm",
Tony Lindgren63aa9452015-06-01 19:22:10 -06001053 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1054 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
Benoît Coussoneb42b5d32012-04-19 13:33:51 -06001055 .prcm = {
1056 .omap4 = {
1057 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1058 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1059 .modulemode = MODULEMODE_HWCTRL,
1060 },
1061 },
1062};
1063
1064/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001065 * 'hdq1w' class
1066 * hdq / 1-wire serial interface controller
1067 */
1068
1069static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1070 .rev_offs = 0x0000,
1071 .sysc_offs = 0x0014,
1072 .syss_offs = 0x0018,
1073 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1074 SYSS_HAS_RESET_STATUS),
1075 .sysc_fields = &omap_hwmod_sysc_type1,
1076};
1077
1078static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1079 .name = "hdq1w",
1080 .sysc = &omap44xx_hdq1w_sysc,
1081};
1082
1083/* hdq1w */
Paul Walmsleya091c082012-04-19 13:33:50 -06001084static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1085 .name = "hdq1w",
1086 .class = &omap44xx_hdq1w_hwmod_class,
1087 .clkdm_name = "l4_per_clkdm",
1088 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001089 .main_clk = "func_12m_fclk",
Paul Walmsleya091c082012-04-19 13:33:50 -06001090 .prcm = {
1091 .omap4 = {
1092 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1093 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1094 .modulemode = MODULEMODE_SWCTRL,
1095 },
1096 },
1097};
1098
1099/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001100 * 'hsi' class
1101 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1102 * serial if)
1103 */
1104
1105static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1106 .rev_offs = 0x0000,
1107 .sysc_offs = 0x0010,
1108 .syss_offs = 0x0014,
1109 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1110 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1111 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1112 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1113 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001114 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001115 .sysc_fields = &omap_hwmod_sysc_type1,
1116};
1117
1118static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1119 .name = "hsi",
1120 .sysc = &omap44xx_hsi_sysc,
1121};
1122
1123/* hsi */
Benoit Cousson407a6882011-02-15 22:39:48 +01001124static struct omap_hwmod omap44xx_hsi_hwmod = {
1125 .name = "hsi",
1126 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001127 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001128 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001129 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001130 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001131 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001132 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001133 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001134 },
1135 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001136};
1137
1138/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001139 * 'ipu' class
1140 * imaging processor unit
1141 */
1142
1143static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1144 .name = "ipu",
1145};
1146
1147/* ipu */
Benoit Cousson407a6882011-02-15 22:39:48 +01001148static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001149 { .name = "cpu0", .rst_shift = 0 },
1150 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001151};
1152
Benoit Cousson407a6882011-02-15 22:39:48 +01001153static struct omap_hwmod omap44xx_ipu_hwmod = {
1154 .name = "ipu",
1155 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001156 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001157 .rst_lines = omap44xx_ipu_resets,
1158 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001159 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001160 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001161 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001162 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001163 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001164 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001165 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001166 },
1167 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001168};
1169
1170/*
1171 * 'iss' class
1172 * external images sensor pixel data processor
1173 */
1174
1175static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1176 .rev_offs = 0x0000,
1177 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001178 /*
1179 * ISS needs 100 OCP clk cycles delay after a softreset before
1180 * accessing sysconfig again.
1181 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1182 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1183 *
1184 * TODO: Indicate errata when available.
1185 */
1186 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001187 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1188 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1189 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1190 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001191 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001192 .sysc_fields = &omap_hwmod_sysc_type2,
1193};
1194
1195static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1196 .name = "iss",
1197 .sysc = &omap44xx_iss_sysc,
1198};
1199
1200/* iss */
Benoit Cousson407a6882011-02-15 22:39:48 +01001201static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1202 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1203};
1204
1205static struct omap_hwmod omap44xx_iss_hwmod = {
1206 .name = "iss",
1207 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001208 .clkdm_name = "iss_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001209 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001210 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001211 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001212 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001213 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001214 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001215 },
1216 },
1217 .opt_clks = iss_opt_clks,
1218 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001219};
1220
1221/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001222 * 'iva' class
1223 * multi-standard video encoder/decoder hardware accelerator
1224 */
1225
1226static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001227 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001228};
1229
1230/* iva */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001231static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001232 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001233 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001234 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001235};
1236
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001237static struct omap_hwmod omap44xx_iva_hwmod = {
1238 .name = "iva",
1239 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001240 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001241 .rst_lines = omap44xx_iva_resets,
1242 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001243 .main_clk = "dpll_iva_m5x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001244 .prcm = {
1245 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001246 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001247 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001248 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001249 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001250 },
1251 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001252};
1253
1254/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001255 * 'kbd' class
1256 * keyboard controller
1257 */
1258
1259static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1260 .rev_offs = 0x0000,
1261 .sysc_offs = 0x0010,
1262 .syss_offs = 0x0014,
1263 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1264 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1265 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1266 SYSS_HAS_RESET_STATUS),
1267 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1268 .sysc_fields = &omap_hwmod_sysc_type1,
1269};
1270
1271static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1272 .name = "kbd",
1273 .sysc = &omap44xx_kbd_sysc,
1274};
1275
1276/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001277static struct omap_hwmod omap44xx_kbd_hwmod = {
1278 .name = "kbd",
1279 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001280 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001281 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001282 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001283 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001284 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001285 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001286 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001287 },
1288 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001289};
1290
1291/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001292 * 'mailbox' class
1293 * mailbox module allowing communication between the on-chip processors using a
1294 * queued mailbox-interrupt mechanism.
1295 */
1296
1297static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1298 .rev_offs = 0x0000,
1299 .sysc_offs = 0x0010,
1300 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1301 SYSC_HAS_SOFTRESET),
1302 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1303 .sysc_fields = &omap_hwmod_sysc_type2,
1304};
1305
1306static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1307 .name = "mailbox",
1308 .sysc = &omap44xx_mailbox_sysc,
1309};
1310
1311/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001312static struct omap_hwmod omap44xx_mailbox_hwmod = {
1313 .name = "mailbox",
1314 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001315 .clkdm_name = "l4_cfg_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001316 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001317 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001318 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001319 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001320 },
1321 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001322};
1323
1324/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001325 * 'mcasp' class
1326 * multi-channel audio serial port controller
1327 */
1328
1329/* The IP is not compliant to type1 / type2 scheme */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001330static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
Tony Lindgren103fd8e2018-04-16 10:21:15 -07001331 .rev_offs = 0,
Benoît Cousson896d4e92012-04-19 13:33:54 -06001332 .sysc_offs = 0x0004,
1333 .sysc_flags = SYSC_HAS_SIDLEMODE,
1334 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1335 SIDLE_SMART_WKUP),
1336 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1337};
1338
1339static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1340 .name = "mcasp",
1341 .sysc = &omap44xx_mcasp_sysc,
1342};
1343
1344/* mcasp */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001345static struct omap_hwmod omap44xx_mcasp_hwmod = {
1346 .name = "mcasp",
1347 .class = &omap44xx_mcasp_hwmod_class,
1348 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001349 .main_clk = "func_mcasp_abe_gfclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06001350 .prcm = {
1351 .omap4 = {
1352 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1353 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1354 .modulemode = MODULEMODE_SWCTRL,
1355 },
1356 },
1357};
1358
1359/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001360 * 'mcbsp' class
1361 * multi channel buffered serial port controller
1362 */
1363
1364static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
Tony Lindgren103fd8e2018-04-16 10:21:15 -07001365 .rev_offs = -ENODEV,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001366 .sysc_offs = 0x008c,
1367 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1368 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1369 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1370 .sysc_fields = &omap_hwmod_sysc_type1,
1371};
1372
1373static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1374 .name = "mcbsp",
1375 .sysc = &omap44xx_mcbsp_sysc,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001376};
1377
1378/* mcbsp1 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001379static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1380 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001381 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001382};
1383
Benoit Cousson4ddff492011-01-31 14:50:30 +00001384static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1385 .name = "mcbsp1",
1386 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001387 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001388 .main_clk = "func_mcbsp1_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001389 .prcm = {
1390 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001391 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001392 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001393 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001394 },
1395 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001396 .opt_clks = mcbsp1_opt_clks,
1397 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001398};
1399
1400/* mcbsp2 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001401static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1402 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001403 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001404};
1405
Benoit Cousson4ddff492011-01-31 14:50:30 +00001406static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1407 .name = "mcbsp2",
1408 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001409 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001410 .main_clk = "func_mcbsp2_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001411 .prcm = {
1412 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001413 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001414 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001415 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001416 },
1417 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001418 .opt_clks = mcbsp2_opt_clks,
1419 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001420};
1421
1422/* mcbsp3 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001423static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1424 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001425 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001426};
1427
Benoit Cousson4ddff492011-01-31 14:50:30 +00001428static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1429 .name = "mcbsp3",
1430 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001431 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001432 .main_clk = "func_mcbsp3_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001433 .prcm = {
1434 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001435 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001436 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001437 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001438 },
1439 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001440 .opt_clks = mcbsp3_opt_clks,
1441 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001442};
1443
1444/* mcbsp4 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001445static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1446 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001447 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001448};
1449
Benoit Cousson4ddff492011-01-31 14:50:30 +00001450static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1451 .name = "mcbsp4",
1452 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001453 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001454 .main_clk = "per_mcbsp4_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001455 .prcm = {
1456 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001457 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001458 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001459 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001460 },
1461 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001462 .opt_clks = mcbsp4_opt_clks,
1463 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001464};
1465
1466/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001467 * 'mcpdm' class
1468 * multi channel pdm controller (proprietary interface with phoenix power
1469 * ic)
1470 */
1471
1472static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1473 .rev_offs = 0x0000,
1474 .sysc_offs = 0x0010,
1475 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1476 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1477 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1478 SIDLE_SMART_WKUP),
1479 .sysc_fields = &omap_hwmod_sysc_type2,
1480};
1481
1482static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1483 .name = "mcpdm",
1484 .sysc = &omap44xx_mcpdm_sysc,
1485};
1486
1487/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01001488static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1489 .name = "mcpdm",
1490 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001491 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06001492 /*
1493 * It's suspected that the McPDM requires an off-chip main
1494 * functional clock, controlled via I2C. This IP block is
1495 * currently reset very early during boot, before I2C is
1496 * available, so it doesn't seem that we have any choice in
1497 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001498 *
1499 * Also, McPDM needs to be configured to NO_IDLE mode when it
1500 * is in used otherwise vital clocks will be gated which
1501 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06001502 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001503 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001504 .main_clk = "pad_clks_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001505 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001506 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001507 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001508 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001509 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001510 },
1511 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001512};
1513
1514/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001515 * 'mmu' class
1516 * The memory management unit performs virtual to physical address translation
1517 * for its requestors.
1518 */
1519
1520static struct omap_hwmod_class_sysconfig mmu_sysc = {
1521 .rev_offs = 0x000,
1522 .sysc_offs = 0x010,
1523 .syss_offs = 0x014,
1524 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
1525 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
1526 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1527 .sysc_fields = &omap_hwmod_sysc_type1,
1528};
1529
1530static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
1531 .name = "mmu",
1532 .sysc = &mmu_sysc,
1533};
1534
1535/* mmu ipu */
1536
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001537static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001538static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
1539 { .name = "mmu_cache", .rst_shift = 2 },
1540};
1541
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001542/* l3_main_2 -> mmu_ipu */
1543static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
1544 .master = &omap44xx_l3_main_2_hwmod,
1545 .slave = &omap44xx_mmu_ipu_hwmod,
1546 .clk = "l3_div_ck",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001547 .user = OCP_USER_MPU | OCP_USER_SDMA,
1548};
1549
1550static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
1551 .name = "mmu_ipu",
1552 .class = &omap44xx_mmu_hwmod_class,
1553 .clkdm_name = "ducati_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001554 .rst_lines = omap44xx_mmu_ipu_resets,
1555 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
1556 .main_clk = "ducati_clk_mux_ck",
1557 .prcm = {
1558 .omap4 = {
1559 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
1560 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
1561 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
1562 .modulemode = MODULEMODE_HWCTRL,
1563 },
1564 },
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001565};
1566
1567/* mmu dsp */
1568
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001569static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001570static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
1571 { .name = "mmu_cache", .rst_shift = 1 },
1572};
1573
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001574/* l4_cfg -> dsp */
1575static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
1576 .master = &omap44xx_l4_cfg_hwmod,
1577 .slave = &omap44xx_mmu_dsp_hwmod,
1578 .clk = "l4_div_ck",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001579 .user = OCP_USER_MPU | OCP_USER_SDMA,
1580};
1581
1582static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
1583 .name = "mmu_dsp",
1584 .class = &omap44xx_mmu_hwmod_class,
1585 .clkdm_name = "tesla_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001586 .rst_lines = omap44xx_mmu_dsp_resets,
1587 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
1588 .main_clk = "dpll_iva_m4x2_ck",
1589 .prcm = {
1590 .omap4 = {
1591 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
1592 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
1593 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
1594 .modulemode = MODULEMODE_HWCTRL,
1595 },
1596 },
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06001597};
1598
1599/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001600 * 'mpu' class
1601 * mpu sub-system
1602 */
1603
1604static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001605 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001606};
1607
1608/* mpu */
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001609static struct omap_hwmod omap44xx_mpu_hwmod = {
1610 .name = "mpu",
1611 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001612 .clkdm_name = "mpuss_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +05301613 .flags = HWMOD_INIT_NO_IDLE,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001614 .main_clk = "dpll_mpu_m2_ck",
1615 .prcm = {
1616 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001617 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001618 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001619 },
1620 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001621};
1622
Benoit Cousson92b18d12010-09-23 20:02:41 +05301623/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06001624 * 'ocmc_ram' class
1625 * top-level core on-chip ram
1626 */
1627
1628static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
1629 .name = "ocmc_ram",
1630};
1631
1632/* ocmc_ram */
1633static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
1634 .name = "ocmc_ram",
1635 .class = &omap44xx_ocmc_ram_hwmod_class,
1636 .clkdm_name = "l3_2_clkdm",
1637 .prcm = {
1638 .omap4 = {
1639 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
1640 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
1641 },
1642 },
1643};
1644
1645/*
Benoît Cousson0c668872012-04-19 13:33:55 -06001646 * 'ocp2scp' class
1647 * bridge to transform ocp interface protocol to scp (serial control port)
1648 * protocol
1649 */
1650
Benoit Cousson33c976e2012-09-23 17:28:21 -06001651static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
1652 .rev_offs = 0x0000,
1653 .sysc_offs = 0x0010,
1654 .syss_offs = 0x0014,
1655 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1656 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1657 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1658 .sysc_fields = &omap_hwmod_sysc_type1,
1659};
1660
Benoît Cousson0c668872012-04-19 13:33:55 -06001661static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
1662 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06001663 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06001664};
1665
1666/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06001667static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
1668 .name = "ocp2scp_usb_phy",
1669 .class = &omap44xx_ocp2scp_hwmod_class,
1670 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham If4d7a532013-04-10 19:41:38 +00001671 /*
1672 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
1673 * block as an "optional clock," and normally should never be
1674 * specified as the main_clk for an OMAP IP block. However it
1675 * turns out that this clock is actually the main clock for
1676 * the ocp2scp_usb_phy IP block:
1677 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
1678 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
1679 * to be the best workaround.
1680 */
1681 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06001682 .prcm = {
1683 .omap4 = {
1684 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
1685 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
1686 .modulemode = MODULEMODE_HWCTRL,
1687 },
1688 },
Benoît Cousson0c668872012-04-19 13:33:55 -06001689};
1690
1691/*
Paul Walmsley794b4802012-04-19 13:33:58 -06001692 * 'prcm' class
1693 * power and reset manager (part of the prcm infrastructure) + clock manager 2
1694 * + clock manager 1 (in always on power domain) + local prm in mpu
1695 */
1696
1697static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
1698 .name = "prcm",
1699};
1700
1701/* prcm_mpu */
1702static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
1703 .name = "prcm_mpu",
1704 .class = &omap44xx_prcm_hwmod_class,
1705 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06001706 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06001707 .prcm = {
1708 .omap4 = {
1709 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1710 },
1711 },
Paul Walmsley794b4802012-04-19 13:33:58 -06001712};
1713
1714/* cm_core_aon */
1715static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
1716 .name = "cm_core_aon",
1717 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06001718 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06001719 .prcm = {
1720 .omap4 = {
1721 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1722 },
1723 },
Paul Walmsley794b4802012-04-19 13:33:58 -06001724};
1725
1726/* cm_core */
1727static struct omap_hwmod omap44xx_cm_core_hwmod = {
1728 .name = "cm_core",
1729 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06001730 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06001731 .prcm = {
1732 .omap4 = {
1733 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1734 },
1735 },
Paul Walmsley794b4802012-04-19 13:33:58 -06001736};
1737
1738/* prm */
Paul Walmsley794b4802012-04-19 13:33:58 -06001739static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
1740 { .name = "rst_global_warm_sw", .rst_shift = 0 },
1741 { .name = "rst_global_cold_sw", .rst_shift = 1 },
1742};
1743
1744static struct omap_hwmod omap44xx_prm_hwmod = {
1745 .name = "prm",
1746 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06001747 .rst_lines = omap44xx_prm_resets,
1748 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
1749};
1750
1751/*
1752 * 'scrm' class
1753 * system clock and reset manager
1754 */
1755
1756static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
1757 .name = "scrm",
1758};
1759
1760/* scrm */
1761static struct omap_hwmod omap44xx_scrm_hwmod = {
1762 .name = "scrm",
1763 .class = &omap44xx_scrm_hwmod_class,
1764 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06001765 .prcm = {
1766 .omap4 = {
1767 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
1768 },
1769 },
Paul Walmsley794b4802012-04-19 13:33:58 -06001770};
1771
1772/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06001773 * 'sl2if' class
1774 * shared level 2 memory interface
1775 */
1776
1777static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
1778 .name = "sl2if",
1779};
1780
1781/* sl2if */
1782static struct omap_hwmod omap44xx_sl2if_hwmod = {
1783 .name = "sl2if",
1784 .class = &omap44xx_sl2if_hwmod_class,
1785 .clkdm_name = "ivahd_clkdm",
1786 .prcm = {
1787 .omap4 = {
1788 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
1789 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
1790 .modulemode = MODULEMODE_HWCTRL,
1791 },
1792 },
1793};
1794
1795/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06001796 * 'slimbus' class
1797 * bidirectional, multi-drop, multi-channel two-line serial interface between
1798 * the device and external components
1799 */
1800
1801static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
1802 .rev_offs = 0x0000,
1803 .sysc_offs = 0x0010,
1804 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1805 SYSC_HAS_SOFTRESET),
1806 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1807 SIDLE_SMART_WKUP),
1808 .sysc_fields = &omap_hwmod_sysc_type2,
1809};
1810
1811static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
1812 .name = "slimbus",
1813 .sysc = &omap44xx_slimbus_sysc,
1814};
1815
1816/* slimbus1 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06001817static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
1818 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
1819 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
1820 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
1821 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
1822};
1823
1824static struct omap_hwmod omap44xx_slimbus1_hwmod = {
1825 .name = "slimbus1",
1826 .class = &omap44xx_slimbus_hwmod_class,
1827 .clkdm_name = "abe_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06001828 .prcm = {
1829 .omap4 = {
1830 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
1831 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
1832 .modulemode = MODULEMODE_SWCTRL,
1833 },
1834 },
1835 .opt_clks = slimbus1_opt_clks,
1836 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
1837};
1838
1839/* slimbus2 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06001840static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
1841 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
1842 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
1843 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
1844};
1845
1846static struct omap_hwmod omap44xx_slimbus2_hwmod = {
1847 .name = "slimbus2",
1848 .class = &omap44xx_slimbus_hwmod_class,
1849 .clkdm_name = "l4_per_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06001850 .prcm = {
1851 .omap4 = {
1852 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
1853 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
1854 .modulemode = MODULEMODE_SWCTRL,
1855 },
1856 },
1857 .opt_clks = slimbus2_opt_clks,
1858 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
1859};
1860
1861/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001862 * 'smartreflex' class
1863 * smartreflex module (monitor silicon performance and outputs a measure of
1864 * performance error)
1865 */
1866
1867/* The IP is not compliant to type1 / type2 scheme */
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001868static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
Tony Lindgren103fd8e2018-04-16 10:21:15 -07001869 .rev_offs = -ENODEV,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001870 .sysc_offs = 0x0038,
1871 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
1872 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1873 SIDLE_SMART_WKUP),
Tony Lindgrenbf807052017-12-15 09:41:01 -08001874 .sysc_fields = &omap36xx_sr_sysc_fields,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001875};
1876
1877static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001878 .name = "smartreflex",
1879 .sysc = &omap44xx_smartreflex_sysc,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001880};
1881
1882/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01001883static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
1884 .sensor_voltdm_name = "core",
1885};
1886
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001887static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
1888 .name = "smartreflex_core",
1889 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001890 .clkdm_name = "l4_ao_clkdm",
Paul Walmsley212738a2011-07-09 19:14:06 -06001891
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001892 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001893 .prcm = {
1894 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001895 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001896 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001897 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001898 },
1899 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01001900 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001901};
1902
1903/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01001904static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
1905 .sensor_voltdm_name = "iva",
1906};
1907
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001908static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
1909 .name = "smartreflex_iva",
1910 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001911 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001912 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001913 .prcm = {
1914 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001915 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001916 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001917 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001918 },
1919 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01001920 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001921};
1922
1923/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01001924static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
1925 .sensor_voltdm_name = "mpu",
1926};
1927
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001928static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
1929 .name = "smartreflex_mpu",
1930 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001931 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001932 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001933 .prcm = {
1934 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001935 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001936 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001937 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001938 },
1939 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01001940 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00001941};
1942
1943/*
Benoit Coussond11c2172011-02-02 12:04:36 +00001944 * 'spinlock' class
1945 * spinlock provides hardware assistance for synchronizing the processes
1946 * running on multiple processors
1947 */
1948
1949static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
1950 .rev_offs = 0x0000,
1951 .sysc_offs = 0x0010,
1952 .syss_offs = 0x0014,
1953 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1954 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
1955 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Suman Anna77319662013-12-23 16:48:48 -06001956 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Benoit Coussond11c2172011-02-02 12:04:36 +00001957 .sysc_fields = &omap_hwmod_sysc_type1,
1958};
1959
1960static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
1961 .name = "spinlock",
1962 .sysc = &omap44xx_spinlock_sysc,
1963};
1964
1965/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00001966static struct omap_hwmod omap44xx_spinlock_hwmod = {
1967 .name = "spinlock",
1968 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001969 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00001970 .prcm = {
1971 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001972 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001973 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00001974 },
1975 },
Benoit Coussond11c2172011-02-02 12:04:36 +00001976};
1977
1978/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00001979 * 'timer' class
1980 * general purpose timer module with accurate 1ms tick
1981 * This class contains several variants: ['timer_1ms', 'timer']
1982 */
1983
1984static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
1985 .rev_offs = 0x0000,
1986 .sysc_offs = 0x0010,
1987 .syss_offs = 0x0014,
1988 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1989 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1990 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1991 SYSS_HAS_RESET_STATUS),
1992 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1993 .sysc_fields = &omap_hwmod_sysc_type1,
1994};
1995
1996static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
1997 .name = "timer",
1998 .sysc = &omap44xx_timer_1ms_sysc,
1999};
2000
2001static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2002 .rev_offs = 0x0000,
2003 .sysc_offs = 0x0010,
2004 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2005 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2006 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2007 SIDLE_SMART_WKUP),
2008 .sysc_fields = &omap_hwmod_sysc_type2,
2009};
2010
2011static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2012 .name = "timer",
2013 .sysc = &omap44xx_timer_sysc,
2014};
2015
Benoit Cousson35d1a662011-02-11 11:17:14 +00002016/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002017static struct omap_hwmod omap44xx_timer1_hwmod = {
2018 .name = "timer1",
2019 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002020 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002021 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002022 .main_clk = "dmt1_clk_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002023 .prcm = {
2024 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002025 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002026 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002027 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002028 },
2029 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002030};
2031
2032/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002033static struct omap_hwmod omap44xx_timer2_hwmod = {
2034 .name = "timer2",
2035 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002036 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002037 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002038 .main_clk = "cm2_dm2_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002039 .prcm = {
2040 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002041 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002042 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002043 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002044 },
2045 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002046};
2047
2048/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002049static struct omap_hwmod omap44xx_timer3_hwmod = {
2050 .name = "timer3",
2051 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002052 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002053 .main_clk = "cm2_dm3_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002054 .prcm = {
2055 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002056 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002057 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002058 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002059 },
2060 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002061};
2062
2063/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002064static struct omap_hwmod omap44xx_timer4_hwmod = {
2065 .name = "timer4",
2066 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002067 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002068 .main_clk = "cm2_dm4_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002069 .prcm = {
2070 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002071 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002072 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002073 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002074 },
2075 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002076};
2077
2078/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002079static struct omap_hwmod omap44xx_timer5_hwmod = {
2080 .name = "timer5",
2081 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002082 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002083 .main_clk = "timer5_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002084 .prcm = {
2085 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002086 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002087 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002088 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002089 },
2090 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002091};
2092
2093/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002094static struct omap_hwmod omap44xx_timer6_hwmod = {
2095 .name = "timer6",
2096 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002097 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002098 .main_clk = "timer6_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002099 .prcm = {
2100 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002101 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002102 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002103 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002104 },
2105 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002106};
2107
2108/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002109static struct omap_hwmod omap44xx_timer7_hwmod = {
2110 .name = "timer7",
2111 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002112 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002113 .main_clk = "timer7_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002114 .prcm = {
2115 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002116 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002117 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002118 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002119 },
2120 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002121};
2122
2123/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002124static struct omap_hwmod omap44xx_timer8_hwmod = {
2125 .name = "timer8",
2126 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002127 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002128 .main_clk = "timer8_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002129 .prcm = {
2130 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002131 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002132 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002133 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002134 },
2135 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002136};
2137
2138/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002139static struct omap_hwmod omap44xx_timer9_hwmod = {
2140 .name = "timer9",
2141 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002142 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002143 .main_clk = "cm2_dm9_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002144 .prcm = {
2145 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002146 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002147 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002148 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002149 },
2150 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002151};
2152
2153/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002154static struct omap_hwmod omap44xx_timer10_hwmod = {
2155 .name = "timer10",
2156 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002157 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002158 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002159 .main_clk = "cm2_dm10_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002160 .prcm = {
2161 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002162 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002163 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002164 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002165 },
2166 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002167};
2168
2169/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002170static struct omap_hwmod omap44xx_timer11_hwmod = {
2171 .name = "timer11",
2172 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002173 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002174 .main_clk = "cm2_dm11_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002175 .prcm = {
2176 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002177 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002178 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002179 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002180 },
2181 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002182};
2183
2184/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002185 * 'usb_host_fs' class
2186 * full-speed usb host controller
2187 */
2188
2189/* The IP is not compliant to type1 / type2 scheme */
Benoît Cousson0c668872012-04-19 13:33:55 -06002190static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2191 .rev_offs = 0x0000,
2192 .sysc_offs = 0x0210,
2193 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2194 SYSC_HAS_SOFTRESET),
2195 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2196 SIDLE_SMART_WKUP),
2197 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2198};
2199
2200static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2201 .name = "usb_host_fs",
2202 .sysc = &omap44xx_usb_host_fs_sysc,
2203};
2204
2205/* usb_host_fs */
Benoît Cousson0c668872012-04-19 13:33:55 -06002206static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2207 .name = "usb_host_fs",
2208 .class = &omap44xx_usb_host_fs_hwmod_class,
2209 .clkdm_name = "l3_init_clkdm",
Benoît Cousson0c668872012-04-19 13:33:55 -06002210 .main_clk = "usb_host_fs_fck",
2211 .prcm = {
2212 .omap4 = {
2213 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2214 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2215 .modulemode = MODULEMODE_SWCTRL,
2216 },
2217 },
2218};
2219
2220/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002221 * 'usb_host_hs' class
2222 * high-speed multi-port usb host controller
2223 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002224
2225static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2226 .rev_offs = 0x0000,
2227 .sysc_offs = 0x0010,
2228 .syss_offs = 0x0014,
2229 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002230 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002231 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2232 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2233 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2234 .sysc_fields = &omap_hwmod_sysc_type2,
2235};
2236
2237static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002238 .name = "usb_host_hs",
2239 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002240};
2241
Paul Walmsley844a3b62012-04-19 04:04:33 -06002242/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002243static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2244 .name = "usb_host_hs",
2245 .class = &omap44xx_usb_host_hs_hwmod_class,
2246 .clkdm_name = "l3_init_clkdm",
2247 .main_clk = "usb_host_hs_fck",
2248 .prcm = {
2249 .omap4 = {
2250 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2251 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2252 .modulemode = MODULEMODE_SWCTRL,
2253 },
2254 },
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002255
2256 /*
2257 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2258 * id: i660
2259 *
2260 * Description:
2261 * In the following configuration :
2262 * - USBHOST module is set to smart-idle mode
2263 * - PRCM asserts idle_req to the USBHOST module ( This typically
2264 * happens when the system is going to a low power mode : all ports
2265 * have been suspended, the master part of the USBHOST module has
2266 * entered the standby state, and SW has cut the functional clocks)
2267 * - an USBHOST interrupt occurs before the module is able to answer
2268 * idle_ack, typically a remote wakeup IRQ.
2269 * Then the USB HOST module will enter a deadlock situation where it
2270 * is no more accessible nor functional.
2271 *
2272 * Workaround:
2273 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2274 */
2275
2276 /*
2277 * Errata: USB host EHCI may stall when entering smart-standby mode
2278 * Id: i571
2279 *
2280 * Description:
2281 * When the USBHOST module is set to smart-standby mode, and when it is
2282 * ready to enter the standby state (i.e. all ports are suspended and
2283 * all attached devices are in suspend mode), then it can wrongly assert
2284 * the Mstandby signal too early while there are still some residual OCP
2285 * transactions ongoing. If this condition occurs, the internal state
2286 * machine may go to an undefined state and the USB link may be stuck
2287 * upon the next resume.
2288 *
2289 * Workaround:
2290 * Don't use smart standby; use only force standby,
2291 * hence HWMOD_SWSUP_MSTANDBY
2292 */
2293
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002294 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002295};
2296
2297/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06002298 * 'usb_otg_hs' class
2299 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
2300 */
2301
2302static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
2303 .rev_offs = 0x0400,
2304 .sysc_offs = 0x0404,
2305 .syss_offs = 0x0408,
2306 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2307 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2308 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2309 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2310 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2311 MSTANDBY_SMART),
2312 .sysc_fields = &omap_hwmod_sysc_type1,
2313};
2314
2315static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
2316 .name = "usb_otg_hs",
2317 .sysc = &omap44xx_usb_otg_hs_sysc,
2318};
2319
2320/* usb_otg_hs */
Paul Walmsley844a3b62012-04-19 04:04:33 -06002321static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
2322 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
2323};
2324
2325static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
2326 .name = "usb_otg_hs",
2327 .class = &omap44xx_usb_otg_hs_hwmod_class,
2328 .clkdm_name = "l3_init_clkdm",
2329 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Paul Walmsley844a3b62012-04-19 04:04:33 -06002330 .main_clk = "usb_otg_hs_ick",
2331 .prcm = {
2332 .omap4 = {
2333 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
2334 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
2335 .modulemode = MODULEMODE_HWCTRL,
2336 },
2337 },
2338 .opt_clks = usb_otg_hs_opt_clks,
2339 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
2340};
2341
2342/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002343 * 'usb_tll_hs' class
2344 * usb_tll_hs module is the adapter on the usb_host_hs ports
2345 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06002346
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002347static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
2348 .rev_offs = 0x0000,
2349 .sysc_offs = 0x0010,
2350 .syss_offs = 0x0014,
2351 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2352 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
2353 SYSC_HAS_AUTOIDLE),
2354 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2355 .sysc_fields = &omap_hwmod_sysc_type1,
2356};
2357
2358static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002359 .name = "usb_tll_hs",
2360 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002361};
2362
Paul Walmsley844a3b62012-04-19 04:04:33 -06002363static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
2364 .name = "usb_tll_hs",
2365 .class = &omap44xx_usb_tll_hs_hwmod_class,
2366 .clkdm_name = "l3_init_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002367 .main_clk = "usb_tll_hs_ick",
2368 .prcm = {
2369 .omap4 = {
2370 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
2371 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
2372 .modulemode = MODULEMODE_HWCTRL,
2373 },
2374 },
2375};
2376
2377/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06002378 * interfaces
2379 */
2380
2381/* l3_main_1 -> dmm */
2382static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
2383 .master = &omap44xx_l3_main_1_hwmod,
2384 .slave = &omap44xx_dmm_hwmod,
2385 .clk = "l3_div_ck",
2386 .user = OCP_USER_SDMA,
2387};
2388
Paul Walmsley844a3b62012-04-19 04:04:33 -06002389/* mpu -> dmm */
2390static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
2391 .master = &omap44xx_mpu_hwmod,
2392 .slave = &omap44xx_dmm_hwmod,
2393 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002394 .user = OCP_USER_MPU,
2395};
2396
2397/* iva -> l3_instr */
2398static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
2399 .master = &omap44xx_iva_hwmod,
2400 .slave = &omap44xx_l3_instr_hwmod,
2401 .clk = "l3_div_ck",
2402 .user = OCP_USER_MPU | OCP_USER_SDMA,
2403};
2404
2405/* l3_main_3 -> l3_instr */
2406static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
2407 .master = &omap44xx_l3_main_3_hwmod,
2408 .slave = &omap44xx_l3_instr_hwmod,
2409 .clk = "l3_div_ck",
2410 .user = OCP_USER_MPU | OCP_USER_SDMA,
2411};
2412
Benoît Cousson9a817bc82012-04-19 13:33:56 -06002413/* ocp_wp_noc -> l3_instr */
2414static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
2415 .master = &omap44xx_ocp_wp_noc_hwmod,
2416 .slave = &omap44xx_l3_instr_hwmod,
2417 .clk = "l3_div_ck",
2418 .user = OCP_USER_MPU | OCP_USER_SDMA,
2419};
2420
Paul Walmsley844a3b62012-04-19 04:04:33 -06002421/* dsp -> l3_main_1 */
2422static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
2423 .master = &omap44xx_dsp_hwmod,
2424 .slave = &omap44xx_l3_main_1_hwmod,
2425 .clk = "l3_div_ck",
2426 .user = OCP_USER_MPU | OCP_USER_SDMA,
2427};
2428
2429/* dss -> l3_main_1 */
2430static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
2431 .master = &omap44xx_dss_hwmod,
2432 .slave = &omap44xx_l3_main_1_hwmod,
2433 .clk = "l3_div_ck",
2434 .user = OCP_USER_MPU | OCP_USER_SDMA,
2435};
2436
2437/* l3_main_2 -> l3_main_1 */
2438static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
2439 .master = &omap44xx_l3_main_2_hwmod,
2440 .slave = &omap44xx_l3_main_1_hwmod,
2441 .clk = "l3_div_ck",
2442 .user = OCP_USER_MPU | OCP_USER_SDMA,
2443};
2444
2445/* l4_cfg -> l3_main_1 */
2446static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
2447 .master = &omap44xx_l4_cfg_hwmod,
2448 .slave = &omap44xx_l3_main_1_hwmod,
2449 .clk = "l4_div_ck",
2450 .user = OCP_USER_MPU | OCP_USER_SDMA,
2451};
2452
Paul Walmsley844a3b62012-04-19 04:04:33 -06002453/* mpu -> l3_main_1 */
2454static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
2455 .master = &omap44xx_mpu_hwmod,
2456 .slave = &omap44xx_l3_main_1_hwmod,
2457 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002458 .user = OCP_USER_MPU,
2459};
2460
Benoît Cousson96566042012-04-19 13:33:59 -06002461/* debugss -> l3_main_2 */
2462static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
2463 .master = &omap44xx_debugss_hwmod,
2464 .slave = &omap44xx_l3_main_2_hwmod,
2465 .clk = "dbgclk_mux_ck",
2466 .user = OCP_USER_MPU | OCP_USER_SDMA,
2467};
2468
Paul Walmsley844a3b62012-04-19 04:04:33 -06002469/* dma_system -> l3_main_2 */
2470static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
2471 .master = &omap44xx_dma_system_hwmod,
2472 .slave = &omap44xx_l3_main_2_hwmod,
2473 .clk = "l3_div_ck",
2474 .user = OCP_USER_MPU | OCP_USER_SDMA,
2475};
2476
Ming Leib050f682012-04-19 13:33:50 -06002477/* fdif -> l3_main_2 */
2478static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
2479 .master = &omap44xx_fdif_hwmod,
2480 .slave = &omap44xx_l3_main_2_hwmod,
2481 .clk = "l3_div_ck",
2482 .user = OCP_USER_MPU | OCP_USER_SDMA,
2483};
2484
Paul Walmsley844a3b62012-04-19 04:04:33 -06002485/* hsi -> l3_main_2 */
2486static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
2487 .master = &omap44xx_hsi_hwmod,
2488 .slave = &omap44xx_l3_main_2_hwmod,
2489 .clk = "l3_div_ck",
2490 .user = OCP_USER_MPU | OCP_USER_SDMA,
2491};
2492
2493/* ipu -> l3_main_2 */
2494static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
2495 .master = &omap44xx_ipu_hwmod,
2496 .slave = &omap44xx_l3_main_2_hwmod,
2497 .clk = "l3_div_ck",
2498 .user = OCP_USER_MPU | OCP_USER_SDMA,
2499};
2500
2501/* iss -> l3_main_2 */
2502static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
2503 .master = &omap44xx_iss_hwmod,
2504 .slave = &omap44xx_l3_main_2_hwmod,
2505 .clk = "l3_div_ck",
2506 .user = OCP_USER_MPU | OCP_USER_SDMA,
2507};
2508
2509/* iva -> l3_main_2 */
2510static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
2511 .master = &omap44xx_iva_hwmod,
2512 .slave = &omap44xx_l3_main_2_hwmod,
2513 .clk = "l3_div_ck",
2514 .user = OCP_USER_MPU | OCP_USER_SDMA,
2515};
2516
Paul Walmsley844a3b62012-04-19 04:04:33 -06002517/* l3_main_1 -> l3_main_2 */
2518static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
2519 .master = &omap44xx_l3_main_1_hwmod,
2520 .slave = &omap44xx_l3_main_2_hwmod,
2521 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002522 .user = OCP_USER_MPU,
2523};
2524
2525/* l4_cfg -> l3_main_2 */
2526static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
2527 .master = &omap44xx_l4_cfg_hwmod,
2528 .slave = &omap44xx_l3_main_2_hwmod,
2529 .clk = "l4_div_ck",
2530 .user = OCP_USER_MPU | OCP_USER_SDMA,
2531};
2532
Benoît Cousson0c668872012-04-19 13:33:55 -06002533/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06002534static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06002535 .master = &omap44xx_usb_host_fs_hwmod,
2536 .slave = &omap44xx_l3_main_2_hwmod,
2537 .clk = "l3_div_ck",
2538 .user = OCP_USER_MPU | OCP_USER_SDMA,
2539};
2540
Paul Walmsley844a3b62012-04-19 04:04:33 -06002541/* usb_host_hs -> l3_main_2 */
2542static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
2543 .master = &omap44xx_usb_host_hs_hwmod,
2544 .slave = &omap44xx_l3_main_2_hwmod,
2545 .clk = "l3_div_ck",
2546 .user = OCP_USER_MPU | OCP_USER_SDMA,
2547};
2548
2549/* usb_otg_hs -> l3_main_2 */
2550static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
2551 .master = &omap44xx_usb_otg_hs_hwmod,
2552 .slave = &omap44xx_l3_main_2_hwmod,
2553 .clk = "l3_div_ck",
2554 .user = OCP_USER_MPU | OCP_USER_SDMA,
2555};
2556
Paul Walmsley844a3b62012-04-19 04:04:33 -06002557/* l3_main_1 -> l3_main_3 */
2558static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
2559 .master = &omap44xx_l3_main_1_hwmod,
2560 .slave = &omap44xx_l3_main_3_hwmod,
2561 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002562 .user = OCP_USER_MPU,
2563};
2564
2565/* l3_main_2 -> l3_main_3 */
2566static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
2567 .master = &omap44xx_l3_main_2_hwmod,
2568 .slave = &omap44xx_l3_main_3_hwmod,
2569 .clk = "l3_div_ck",
2570 .user = OCP_USER_MPU | OCP_USER_SDMA,
2571};
2572
2573/* l4_cfg -> l3_main_3 */
2574static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
2575 .master = &omap44xx_l4_cfg_hwmod,
2576 .slave = &omap44xx_l3_main_3_hwmod,
2577 .clk = "l4_div_ck",
2578 .user = OCP_USER_MPU | OCP_USER_SDMA,
2579};
2580
2581/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06002582static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002583 .master = &omap44xx_aess_hwmod,
2584 .slave = &omap44xx_l4_abe_hwmod,
2585 .clk = "ocp_abe_iclk",
2586 .user = OCP_USER_MPU | OCP_USER_SDMA,
2587};
2588
2589/* dsp -> l4_abe */
2590static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
2591 .master = &omap44xx_dsp_hwmod,
2592 .slave = &omap44xx_l4_abe_hwmod,
2593 .clk = "ocp_abe_iclk",
2594 .user = OCP_USER_MPU | OCP_USER_SDMA,
2595};
2596
2597/* l3_main_1 -> l4_abe */
2598static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
2599 .master = &omap44xx_l3_main_1_hwmod,
2600 .slave = &omap44xx_l4_abe_hwmod,
2601 .clk = "l3_div_ck",
2602 .user = OCP_USER_MPU | OCP_USER_SDMA,
2603};
2604
2605/* mpu -> l4_abe */
2606static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
2607 .master = &omap44xx_mpu_hwmod,
2608 .slave = &omap44xx_l4_abe_hwmod,
2609 .clk = "ocp_abe_iclk",
2610 .user = OCP_USER_MPU | OCP_USER_SDMA,
2611};
2612
2613/* l3_main_1 -> l4_cfg */
2614static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
2615 .master = &omap44xx_l3_main_1_hwmod,
2616 .slave = &omap44xx_l4_cfg_hwmod,
2617 .clk = "l3_div_ck",
2618 .user = OCP_USER_MPU | OCP_USER_SDMA,
2619};
2620
2621/* l3_main_2 -> l4_per */
2622static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
2623 .master = &omap44xx_l3_main_2_hwmod,
2624 .slave = &omap44xx_l4_per_hwmod,
2625 .clk = "l3_div_ck",
2626 .user = OCP_USER_MPU | OCP_USER_SDMA,
2627};
2628
2629/* l4_cfg -> l4_wkup */
2630static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
2631 .master = &omap44xx_l4_cfg_hwmod,
2632 .slave = &omap44xx_l4_wkup_hwmod,
2633 .clk = "l4_div_ck",
2634 .user = OCP_USER_MPU | OCP_USER_SDMA,
2635};
2636
2637/* mpu -> mpu_private */
2638static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
2639 .master = &omap44xx_mpu_hwmod,
2640 .slave = &omap44xx_mpu_private_hwmod,
2641 .clk = "l3_div_ck",
2642 .user = OCP_USER_MPU | OCP_USER_SDMA,
2643};
2644
Benoît Cousson9a817bc82012-04-19 13:33:56 -06002645/* l4_cfg -> ocp_wp_noc */
2646static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
2647 .master = &omap44xx_l4_cfg_hwmod,
2648 .slave = &omap44xx_ocp_wp_noc_hwmod,
2649 .clk = "l4_div_ck",
Benoît Cousson9a817bc82012-04-19 13:33:56 -06002650 .user = OCP_USER_MPU | OCP_USER_SDMA,
2651};
2652
Paul Walmsley844a3b62012-04-19 04:04:33 -06002653/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06002654static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002655 .master = &omap44xx_l4_abe_hwmod,
2656 .slave = &omap44xx_aess_hwmod,
2657 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002658 .user = OCP_USER_MPU,
2659};
2660
Paul Walmsley844a3b62012-04-19 04:04:33 -06002661/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06002662static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002663 .master = &omap44xx_l4_abe_hwmod,
2664 .slave = &omap44xx_aess_hwmod,
2665 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002666 .user = OCP_USER_SDMA,
2667};
2668
Paul Walmsley844a3b62012-04-19 04:04:33 -06002669/* l4_wkup -> counter_32k */
2670static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
2671 .master = &omap44xx_l4_wkup_hwmod,
2672 .slave = &omap44xx_counter_32k_hwmod,
2673 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002674 .user = OCP_USER_MPU | OCP_USER_SDMA,
2675};
2676
Paul Walmsleya0b5d812012-04-19 13:33:57 -06002677/* l4_cfg -> ctrl_module_core */
2678static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
2679 .master = &omap44xx_l4_cfg_hwmod,
2680 .slave = &omap44xx_ctrl_module_core_hwmod,
2681 .clk = "l4_div_ck",
Paul Walmsleya0b5d812012-04-19 13:33:57 -06002682 .user = OCP_USER_MPU | OCP_USER_SDMA,
2683};
2684
Paul Walmsleya0b5d812012-04-19 13:33:57 -06002685/* l4_cfg -> ctrl_module_pad_core */
2686static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
2687 .master = &omap44xx_l4_cfg_hwmod,
2688 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
2689 .clk = "l4_div_ck",
Paul Walmsleya0b5d812012-04-19 13:33:57 -06002690 .user = OCP_USER_MPU | OCP_USER_SDMA,
2691};
2692
Paul Walmsleya0b5d812012-04-19 13:33:57 -06002693/* l4_wkup -> ctrl_module_wkup */
2694static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
2695 .master = &omap44xx_l4_wkup_hwmod,
2696 .slave = &omap44xx_ctrl_module_wkup_hwmod,
2697 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsleya0b5d812012-04-19 13:33:57 -06002698 .user = OCP_USER_MPU | OCP_USER_SDMA,
2699};
2700
Paul Walmsleya0b5d812012-04-19 13:33:57 -06002701/* l4_wkup -> ctrl_module_pad_wkup */
2702static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
2703 .master = &omap44xx_l4_wkup_hwmod,
2704 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
2705 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsleya0b5d812012-04-19 13:33:57 -06002706 .user = OCP_USER_MPU | OCP_USER_SDMA,
2707};
2708
Benoît Cousson96566042012-04-19 13:33:59 -06002709/* l3_instr -> debugss */
2710static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
2711 .master = &omap44xx_l3_instr_hwmod,
2712 .slave = &omap44xx_debugss_hwmod,
2713 .clk = "l3_div_ck",
Benoît Cousson96566042012-04-19 13:33:59 -06002714 .user = OCP_USER_MPU | OCP_USER_SDMA,
2715};
2716
Paul Walmsley844a3b62012-04-19 04:04:33 -06002717/* l4_cfg -> dma_system */
2718static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
2719 .master = &omap44xx_l4_cfg_hwmod,
2720 .slave = &omap44xx_dma_system_hwmod,
2721 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002722 .user = OCP_USER_MPU | OCP_USER_SDMA,
2723};
2724
Paul Walmsley844a3b62012-04-19 04:04:33 -06002725/* l4_abe -> dmic */
2726static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
2727 .master = &omap44xx_l4_abe_hwmod,
2728 .slave = &omap44xx_dmic_hwmod,
2729 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06002730 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06002731};
2732
2733/* dsp -> iva */
2734static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
2735 .master = &omap44xx_dsp_hwmod,
2736 .slave = &omap44xx_iva_hwmod,
2737 .clk = "dpll_iva_m5x2_ck",
2738 .user = OCP_USER_DSP,
2739};
2740
Paul Walmsley42b9e382012-04-19 13:33:54 -06002741/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06002742static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06002743 .master = &omap44xx_dsp_hwmod,
2744 .slave = &omap44xx_sl2if_hwmod,
2745 .clk = "dpll_iva_m5x2_ck",
2746 .user = OCP_USER_DSP,
2747};
2748
Paul Walmsley844a3b62012-04-19 04:04:33 -06002749/* l4_cfg -> dsp */
2750static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
2751 .master = &omap44xx_l4_cfg_hwmod,
2752 .slave = &omap44xx_dsp_hwmod,
2753 .clk = "l4_div_ck",
2754 .user = OCP_USER_MPU | OCP_USER_SDMA,
2755};
2756
Paul Walmsley844a3b62012-04-19 04:04:33 -06002757/* l3_main_2 -> dss */
2758static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
2759 .master = &omap44xx_l3_main_2_hwmod,
2760 .slave = &omap44xx_dss_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03002761 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002762 .user = OCP_USER_SDMA,
2763};
2764
Paul Walmsley844a3b62012-04-19 04:04:33 -06002765/* l4_per -> dss */
2766static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
2767 .master = &omap44xx_l4_per_hwmod,
2768 .slave = &omap44xx_dss_hwmod,
2769 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002770 .user = OCP_USER_MPU,
2771};
2772
Paul Walmsley844a3b62012-04-19 04:04:33 -06002773/* l3_main_2 -> dss_dispc */
2774static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
2775 .master = &omap44xx_l3_main_2_hwmod,
2776 .slave = &omap44xx_dss_dispc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03002777 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002778 .user = OCP_USER_SDMA,
2779};
2780
Paul Walmsley844a3b62012-04-19 04:04:33 -06002781/* l4_per -> dss_dispc */
2782static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
2783 .master = &omap44xx_l4_per_hwmod,
2784 .slave = &omap44xx_dss_dispc_hwmod,
2785 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002786 .user = OCP_USER_MPU,
2787};
2788
Paul Walmsley844a3b62012-04-19 04:04:33 -06002789/* l3_main_2 -> dss_dsi1 */
2790static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
2791 .master = &omap44xx_l3_main_2_hwmod,
2792 .slave = &omap44xx_dss_dsi1_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03002793 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002794 .user = OCP_USER_SDMA,
2795};
2796
Paul Walmsley844a3b62012-04-19 04:04:33 -06002797/* l4_per -> dss_dsi1 */
2798static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
2799 .master = &omap44xx_l4_per_hwmod,
2800 .slave = &omap44xx_dss_dsi1_hwmod,
2801 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002802 .user = OCP_USER_MPU,
2803};
2804
Paul Walmsley844a3b62012-04-19 04:04:33 -06002805/* l3_main_2 -> dss_dsi2 */
2806static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
2807 .master = &omap44xx_l3_main_2_hwmod,
2808 .slave = &omap44xx_dss_dsi2_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03002809 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002810 .user = OCP_USER_SDMA,
2811};
2812
Paul Walmsley844a3b62012-04-19 04:04:33 -06002813/* l4_per -> dss_dsi2 */
2814static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
2815 .master = &omap44xx_l4_per_hwmod,
2816 .slave = &omap44xx_dss_dsi2_hwmod,
2817 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002818 .user = OCP_USER_MPU,
2819};
2820
Paul Walmsley844a3b62012-04-19 04:04:33 -06002821/* l3_main_2 -> dss_hdmi */
2822static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
2823 .master = &omap44xx_l3_main_2_hwmod,
2824 .slave = &omap44xx_dss_hdmi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03002825 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002826 .user = OCP_USER_SDMA,
2827};
2828
Paul Walmsley844a3b62012-04-19 04:04:33 -06002829/* l4_per -> dss_hdmi */
2830static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
2831 .master = &omap44xx_l4_per_hwmod,
2832 .slave = &omap44xx_dss_hdmi_hwmod,
2833 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002834 .user = OCP_USER_MPU,
2835};
2836
Paul Walmsley844a3b62012-04-19 04:04:33 -06002837/* l3_main_2 -> dss_rfbi */
2838static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
2839 .master = &omap44xx_l3_main_2_hwmod,
2840 .slave = &omap44xx_dss_rfbi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03002841 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002842 .user = OCP_USER_SDMA,
2843};
2844
Paul Walmsley844a3b62012-04-19 04:04:33 -06002845/* l4_per -> dss_rfbi */
2846static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
2847 .master = &omap44xx_l4_per_hwmod,
2848 .slave = &omap44xx_dss_rfbi_hwmod,
2849 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002850 .user = OCP_USER_MPU,
2851};
2852
Paul Walmsley844a3b62012-04-19 04:04:33 -06002853/* l3_main_2 -> dss_venc */
2854static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
2855 .master = &omap44xx_l3_main_2_hwmod,
2856 .slave = &omap44xx_dss_venc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03002857 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002858 .user = OCP_USER_SDMA,
2859};
2860
Paul Walmsley844a3b62012-04-19 04:04:33 -06002861/* l4_per -> dss_venc */
2862static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
2863 .master = &omap44xx_l4_per_hwmod,
2864 .slave = &omap44xx_dss_venc_hwmod,
2865 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002866 .user = OCP_USER_MPU,
2867};
2868
Tero Kristo1df5eaa2017-06-13 16:45:50 +03002869/* l3_main_2 -> sham */
2870static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0 = {
2871 .master = &omap44xx_l3_main_2_hwmod,
2872 .slave = &omap44xx_sha0_hwmod,
2873 .clk = "l3_div_ck",
2874 .user = OCP_USER_MPU | OCP_USER_SDMA,
2875};
2876
Paul Walmsley42b9e382012-04-19 13:33:54 -06002877/* l4_per -> elm */
2878static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
2879 .master = &omap44xx_l4_per_hwmod,
2880 .slave = &omap44xx_elm_hwmod,
2881 .clk = "l4_div_ck",
Paul Walmsley42b9e382012-04-19 13:33:54 -06002882 .user = OCP_USER_MPU | OCP_USER_SDMA,
2883};
2884
Ming Leib050f682012-04-19 13:33:50 -06002885/* l4_cfg -> fdif */
2886static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
2887 .master = &omap44xx_l4_cfg_hwmod,
2888 .slave = &omap44xx_fdif_hwmod,
2889 .clk = "l4_div_ck",
Ming Leib050f682012-04-19 13:33:50 -06002890 .user = OCP_USER_MPU | OCP_USER_SDMA,
2891};
2892
Benoît Coussoneb42b5d32012-04-19 13:33:51 -06002893/* l3_main_2 -> gpmc */
2894static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
2895 .master = &omap44xx_l3_main_2_hwmod,
2896 .slave = &omap44xx_gpmc_hwmod,
2897 .clk = "l3_div_ck",
Benoît Coussoneb42b5d32012-04-19 13:33:51 -06002898 .user = OCP_USER_MPU | OCP_USER_SDMA,
2899};
2900
Paul Walmsleya091c082012-04-19 13:33:50 -06002901/* l4_per -> hdq1w */
2902static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
2903 .master = &omap44xx_l4_per_hwmod,
2904 .slave = &omap44xx_hdq1w_hwmod,
2905 .clk = "l4_div_ck",
Paul Walmsleya091c082012-04-19 13:33:50 -06002906 .user = OCP_USER_MPU | OCP_USER_SDMA,
2907};
2908
Paul Walmsley844a3b62012-04-19 04:04:33 -06002909/* l4_cfg -> hsi */
2910static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
2911 .master = &omap44xx_l4_cfg_hwmod,
2912 .slave = &omap44xx_hsi_hwmod,
2913 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002914 .user = OCP_USER_MPU | OCP_USER_SDMA,
2915};
2916
Paul Walmsley844a3b62012-04-19 04:04:33 -06002917/* l3_main_2 -> ipu */
2918static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
2919 .master = &omap44xx_l3_main_2_hwmod,
2920 .slave = &omap44xx_ipu_hwmod,
2921 .clk = "l3_div_ck",
2922 .user = OCP_USER_MPU | OCP_USER_SDMA,
2923};
2924
Paul Walmsley844a3b62012-04-19 04:04:33 -06002925/* l3_main_2 -> iss */
2926static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
2927 .master = &omap44xx_l3_main_2_hwmod,
2928 .slave = &omap44xx_iss_hwmod,
2929 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002930 .user = OCP_USER_MPU | OCP_USER_SDMA,
2931};
2932
Paul Walmsley42b9e382012-04-19 13:33:54 -06002933/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06002934static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06002935 .master = &omap44xx_iva_hwmod,
2936 .slave = &omap44xx_sl2if_hwmod,
2937 .clk = "dpll_iva_m5x2_ck",
2938 .user = OCP_USER_IVA,
2939};
2940
Paul Walmsley844a3b62012-04-19 04:04:33 -06002941/* l3_main_2 -> iva */
2942static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
2943 .master = &omap44xx_l3_main_2_hwmod,
2944 .slave = &omap44xx_iva_hwmod,
2945 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002946 .user = OCP_USER_MPU,
2947};
2948
Paul Walmsley844a3b62012-04-19 04:04:33 -06002949/* l4_wkup -> kbd */
2950static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
2951 .master = &omap44xx_l4_wkup_hwmod,
2952 .slave = &omap44xx_kbd_hwmod,
2953 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002954 .user = OCP_USER_MPU | OCP_USER_SDMA,
2955};
2956
Paul Walmsley844a3b62012-04-19 04:04:33 -06002957/* l4_cfg -> mailbox */
2958static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
2959 .master = &omap44xx_l4_cfg_hwmod,
2960 .slave = &omap44xx_mailbox_hwmod,
2961 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06002962 .user = OCP_USER_MPU | OCP_USER_SDMA,
2963};
2964
Benoît Cousson896d4e92012-04-19 13:33:54 -06002965/* l4_abe -> mcasp */
2966static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
2967 .master = &omap44xx_l4_abe_hwmod,
2968 .slave = &omap44xx_mcasp_hwmod,
2969 .clk = "ocp_abe_iclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06002970 .user = OCP_USER_MPU,
2971};
2972
Benoît Cousson896d4e92012-04-19 13:33:54 -06002973/* l4_abe -> mcasp (dma) */
2974static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
2975 .master = &omap44xx_l4_abe_hwmod,
2976 .slave = &omap44xx_mcasp_hwmod,
2977 .clk = "ocp_abe_iclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06002978 .user = OCP_USER_SDMA,
2979};
2980
Paul Walmsley844a3b62012-04-19 04:04:33 -06002981/* l4_abe -> mcbsp1 */
2982static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
2983 .master = &omap44xx_l4_abe_hwmod,
2984 .slave = &omap44xx_mcbsp1_hwmod,
2985 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06002986 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06002987};
2988
Paul Walmsley844a3b62012-04-19 04:04:33 -06002989/* l4_abe -> mcbsp2 */
2990static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
2991 .master = &omap44xx_l4_abe_hwmod,
2992 .slave = &omap44xx_mcbsp2_hwmod,
2993 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06002994 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06002995};
2996
Paul Walmsley844a3b62012-04-19 04:04:33 -06002997/* l4_abe -> mcbsp3 */
2998static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
2999 .master = &omap44xx_l4_abe_hwmod,
3000 .slave = &omap44xx_mcbsp3_hwmod,
3001 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003002 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003003};
3004
Paul Walmsley844a3b62012-04-19 04:04:33 -06003005/* l4_per -> mcbsp4 */
3006static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3007 .master = &omap44xx_l4_per_hwmod,
3008 .slave = &omap44xx_mcbsp4_hwmod,
3009 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003010 .user = OCP_USER_MPU | OCP_USER_SDMA,
3011};
3012
Paul Walmsley844a3b62012-04-19 04:04:33 -06003013/* l4_abe -> mcpdm */
3014static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3015 .master = &omap44xx_l4_abe_hwmod,
3016 .slave = &omap44xx_mcpdm_hwmod,
3017 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003018 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003019};
3020
Paul Walmsleye17f18c2012-04-19 13:33:56 -06003021/* l3_main_2 -> ocmc_ram */
3022static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
3023 .master = &omap44xx_l3_main_2_hwmod,
3024 .slave = &omap44xx_ocmc_ram_hwmod,
3025 .clk = "l3_div_ck",
3026 .user = OCP_USER_MPU | OCP_USER_SDMA,
3027};
3028
Benoît Cousson0c668872012-04-19 13:33:55 -06003029/* l4_cfg -> ocp2scp_usb_phy */
3030static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
3031 .master = &omap44xx_l4_cfg_hwmod,
3032 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
3033 .clk = "l4_div_ck",
3034 .user = OCP_USER_MPU | OCP_USER_SDMA,
3035};
3036
Paul Walmsley794b4802012-04-19 13:33:58 -06003037/* mpu_private -> prcm_mpu */
3038static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
3039 .master = &omap44xx_mpu_private_hwmod,
3040 .slave = &omap44xx_prcm_mpu_hwmod,
3041 .clk = "l3_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003042 .user = OCP_USER_MPU | OCP_USER_SDMA,
3043};
3044
Paul Walmsley794b4802012-04-19 13:33:58 -06003045/* l4_wkup -> cm_core_aon */
3046static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
3047 .master = &omap44xx_l4_wkup_hwmod,
3048 .slave = &omap44xx_cm_core_aon_hwmod,
3049 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003050 .user = OCP_USER_MPU | OCP_USER_SDMA,
3051};
3052
Paul Walmsley794b4802012-04-19 13:33:58 -06003053/* l4_cfg -> cm_core */
3054static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
3055 .master = &omap44xx_l4_cfg_hwmod,
3056 .slave = &omap44xx_cm_core_hwmod,
3057 .clk = "l4_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003058 .user = OCP_USER_MPU | OCP_USER_SDMA,
3059};
3060
Paul Walmsley794b4802012-04-19 13:33:58 -06003061/* l4_wkup -> prm */
3062static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
3063 .master = &omap44xx_l4_wkup_hwmod,
3064 .slave = &omap44xx_prm_hwmod,
3065 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003066 .user = OCP_USER_MPU | OCP_USER_SDMA,
3067};
3068
Paul Walmsley794b4802012-04-19 13:33:58 -06003069/* l4_wkup -> scrm */
3070static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
3071 .master = &omap44xx_l4_wkup_hwmod,
3072 .slave = &omap44xx_scrm_hwmod,
3073 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003074 .user = OCP_USER_MPU | OCP_USER_SDMA,
3075};
3076
Paul Walmsley42b9e382012-04-19 13:33:54 -06003077/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003078static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003079 .master = &omap44xx_l3_main_2_hwmod,
3080 .slave = &omap44xx_sl2if_hwmod,
3081 .clk = "l3_div_ck",
3082 .user = OCP_USER_MPU | OCP_USER_SDMA,
3083};
3084
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003085/* l4_abe -> slimbus1 */
3086static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
3087 .master = &omap44xx_l4_abe_hwmod,
3088 .slave = &omap44xx_slimbus1_hwmod,
3089 .clk = "ocp_abe_iclk",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003090 .user = OCP_USER_MPU,
3091};
3092
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003093/* l4_abe -> slimbus1 (dma) */
3094static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
3095 .master = &omap44xx_l4_abe_hwmod,
3096 .slave = &omap44xx_slimbus1_hwmod,
3097 .clk = "ocp_abe_iclk",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003098 .user = OCP_USER_SDMA,
3099};
3100
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003101/* l4_per -> slimbus2 */
3102static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
3103 .master = &omap44xx_l4_per_hwmod,
3104 .slave = &omap44xx_slimbus2_hwmod,
3105 .clk = "l4_div_ck",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003106 .user = OCP_USER_MPU | OCP_USER_SDMA,
3107};
3108
Paul Walmsley844a3b62012-04-19 04:04:33 -06003109/* l4_cfg -> smartreflex_core */
3110static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
3111 .master = &omap44xx_l4_cfg_hwmod,
3112 .slave = &omap44xx_smartreflex_core_hwmod,
3113 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003114 .user = OCP_USER_MPU | OCP_USER_SDMA,
3115};
3116
Paul Walmsley844a3b62012-04-19 04:04:33 -06003117/* l4_cfg -> smartreflex_iva */
3118static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
3119 .master = &omap44xx_l4_cfg_hwmod,
3120 .slave = &omap44xx_smartreflex_iva_hwmod,
3121 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003122 .user = OCP_USER_MPU | OCP_USER_SDMA,
3123};
3124
Paul Walmsley844a3b62012-04-19 04:04:33 -06003125/* l4_cfg -> smartreflex_mpu */
3126static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
3127 .master = &omap44xx_l4_cfg_hwmod,
3128 .slave = &omap44xx_smartreflex_mpu_hwmod,
3129 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003130 .user = OCP_USER_MPU | OCP_USER_SDMA,
3131};
3132
Paul Walmsley844a3b62012-04-19 04:04:33 -06003133/* l4_cfg -> spinlock */
3134static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
3135 .master = &omap44xx_l4_cfg_hwmod,
3136 .slave = &omap44xx_spinlock_hwmod,
3137 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003138 .user = OCP_USER_MPU | OCP_USER_SDMA,
3139};
3140
Paul Walmsley844a3b62012-04-19 04:04:33 -06003141/* l4_wkup -> timer1 */
3142static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
3143 .master = &omap44xx_l4_wkup_hwmod,
3144 .slave = &omap44xx_timer1_hwmod,
3145 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003146 .user = OCP_USER_MPU | OCP_USER_SDMA,
3147};
3148
Paul Walmsley844a3b62012-04-19 04:04:33 -06003149/* l4_per -> timer2 */
3150static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
3151 .master = &omap44xx_l4_per_hwmod,
3152 .slave = &omap44xx_timer2_hwmod,
3153 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003154 .user = OCP_USER_MPU | OCP_USER_SDMA,
3155};
3156
Paul Walmsley844a3b62012-04-19 04:04:33 -06003157/* l4_per -> timer3 */
3158static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
3159 .master = &omap44xx_l4_per_hwmod,
3160 .slave = &omap44xx_timer3_hwmod,
3161 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003162 .user = OCP_USER_MPU | OCP_USER_SDMA,
3163};
3164
Paul Walmsley844a3b62012-04-19 04:04:33 -06003165/* l4_per -> timer4 */
3166static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
3167 .master = &omap44xx_l4_per_hwmod,
3168 .slave = &omap44xx_timer4_hwmod,
3169 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003170 .user = OCP_USER_MPU | OCP_USER_SDMA,
3171};
3172
Paul Walmsley844a3b62012-04-19 04:04:33 -06003173/* l4_abe -> timer5 */
3174static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
3175 .master = &omap44xx_l4_abe_hwmod,
3176 .slave = &omap44xx_timer5_hwmod,
3177 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003178 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003179};
3180
Paul Walmsley844a3b62012-04-19 04:04:33 -06003181/* l4_abe -> timer6 */
3182static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
3183 .master = &omap44xx_l4_abe_hwmod,
3184 .slave = &omap44xx_timer6_hwmod,
3185 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003186 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003187};
3188
Paul Walmsley844a3b62012-04-19 04:04:33 -06003189/* l4_abe -> timer7 */
3190static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
3191 .master = &omap44xx_l4_abe_hwmod,
3192 .slave = &omap44xx_timer7_hwmod,
3193 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003194 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003195};
3196
Paul Walmsley844a3b62012-04-19 04:04:33 -06003197/* l4_abe -> timer8 */
3198static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
3199 .master = &omap44xx_l4_abe_hwmod,
3200 .slave = &omap44xx_timer8_hwmod,
3201 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003202 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003203};
3204
Paul Walmsley844a3b62012-04-19 04:04:33 -06003205/* l4_per -> timer9 */
3206static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
3207 .master = &omap44xx_l4_per_hwmod,
3208 .slave = &omap44xx_timer9_hwmod,
3209 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003210 .user = OCP_USER_MPU | OCP_USER_SDMA,
3211};
3212
Paul Walmsley844a3b62012-04-19 04:04:33 -06003213/* l4_per -> timer10 */
3214static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
3215 .master = &omap44xx_l4_per_hwmod,
3216 .slave = &omap44xx_timer10_hwmod,
3217 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003218 .user = OCP_USER_MPU | OCP_USER_SDMA,
3219};
3220
Paul Walmsley844a3b62012-04-19 04:04:33 -06003221/* l4_per -> timer11 */
3222static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
3223 .master = &omap44xx_l4_per_hwmod,
3224 .slave = &omap44xx_timer11_hwmod,
3225 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003226 .user = OCP_USER_MPU | OCP_USER_SDMA,
3227};
3228
Benoît Cousson0c668872012-04-19 13:33:55 -06003229/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003230static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06003231 .master = &omap44xx_l4_cfg_hwmod,
3232 .slave = &omap44xx_usb_host_fs_hwmod,
3233 .clk = "l4_div_ck",
Benoît Cousson0c668872012-04-19 13:33:55 -06003234 .user = OCP_USER_MPU | OCP_USER_SDMA,
3235};
3236
Paul Walmsley844a3b62012-04-19 04:04:33 -06003237/* l4_cfg -> usb_host_hs */
3238static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
3239 .master = &omap44xx_l4_cfg_hwmod,
3240 .slave = &omap44xx_usb_host_hs_hwmod,
3241 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003242 .user = OCP_USER_MPU | OCP_USER_SDMA,
3243};
3244
Paul Walmsley844a3b62012-04-19 04:04:33 -06003245/* l4_cfg -> usb_otg_hs */
3246static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
3247 .master = &omap44xx_l4_cfg_hwmod,
3248 .slave = &omap44xx_usb_otg_hs_hwmod,
3249 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003250 .user = OCP_USER_MPU | OCP_USER_SDMA,
3251};
3252
Paul Walmsley844a3b62012-04-19 04:04:33 -06003253/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003254static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
3255 .master = &omap44xx_l4_cfg_hwmod,
3256 .slave = &omap44xx_usb_tll_hs_hwmod,
3257 .clk = "l4_div_ck",
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003258 .user = OCP_USER_MPU | OCP_USER_SDMA,
3259};
3260
Sricharan R3b9b1012013-06-07 17:26:15 +05303261/* mpu -> emif1 */
3262static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
3263 .master = &omap44xx_mpu_hwmod,
3264 .slave = &omap44xx_emif1_hwmod,
3265 .clk = "l3_div_ck",
3266 .user = OCP_USER_MPU | OCP_USER_SDMA,
3267};
3268
3269/* mpu -> emif2 */
3270static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
3271 .master = &omap44xx_mpu_hwmod,
3272 .slave = &omap44xx_emif2_hwmod,
3273 .clk = "l3_div_ck",
3274 .user = OCP_USER_MPU | OCP_USER_SDMA,
3275};
3276
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003277static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
3278 &omap44xx_l3_main_1__dmm,
3279 &omap44xx_mpu__dmm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003280 &omap44xx_iva__l3_instr,
3281 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003282 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003283 &omap44xx_dsp__l3_main_1,
3284 &omap44xx_dss__l3_main_1,
3285 &omap44xx_l3_main_2__l3_main_1,
3286 &omap44xx_l4_cfg__l3_main_1,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003287 &omap44xx_mpu__l3_main_1,
Benoît Cousson96566042012-04-19 13:33:59 -06003288 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003289 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06003290 &omap44xx_fdif__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003291 &omap44xx_hsi__l3_main_2,
3292 &omap44xx_ipu__l3_main_2,
3293 &omap44xx_iss__l3_main_2,
3294 &omap44xx_iva__l3_main_2,
3295 &omap44xx_l3_main_1__l3_main_2,
3296 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003297 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003298 &omap44xx_usb_host_hs__l3_main_2,
3299 &omap44xx_usb_otg_hs__l3_main_2,
3300 &omap44xx_l3_main_1__l3_main_3,
3301 &omap44xx_l3_main_2__l3_main_3,
3302 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07003303 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003304 &omap44xx_dsp__l4_abe,
3305 &omap44xx_l3_main_1__l4_abe,
3306 &omap44xx_mpu__l4_abe,
3307 &omap44xx_l3_main_1__l4_cfg,
3308 &omap44xx_l3_main_2__l4_per,
3309 &omap44xx_l4_cfg__l4_wkup,
3310 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003311 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07003312 &omap44xx_l4_abe__aess,
3313 &omap44xx_l4_abe__aess_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003314 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003315 &omap44xx_l4_cfg__ctrl_module_core,
3316 &omap44xx_l4_cfg__ctrl_module_pad_core,
3317 &omap44xx_l4_wkup__ctrl_module_wkup,
3318 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06003319 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003320 &omap44xx_l4_cfg__dma_system,
3321 &omap44xx_l4_abe__dmic,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003322 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06003323 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003324 &omap44xx_l4_cfg__dsp,
3325 &omap44xx_l3_main_2__dss,
3326 &omap44xx_l4_per__dss,
3327 &omap44xx_l3_main_2__dss_dispc,
3328 &omap44xx_l4_per__dss_dispc,
3329 &omap44xx_l3_main_2__dss_dsi1,
3330 &omap44xx_l4_per__dss_dsi1,
3331 &omap44xx_l3_main_2__dss_dsi2,
3332 &omap44xx_l4_per__dss_dsi2,
3333 &omap44xx_l3_main_2__dss_hdmi,
3334 &omap44xx_l4_per__dss_hdmi,
3335 &omap44xx_l3_main_2__dss_rfbi,
3336 &omap44xx_l4_per__dss_rfbi,
3337 &omap44xx_l3_main_2__dss_venc,
3338 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06003339 &omap44xx_l4_per__elm,
Ming Leib050f682012-04-19 13:33:50 -06003340 &omap44xx_l4_cfg__fdif,
Benoît Coussoneb42b5d32012-04-19 13:33:51 -06003341 &omap44xx_l3_main_2__gpmc,
Paul Walmsleya091c082012-04-19 13:33:50 -06003342 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003343 &omap44xx_l4_cfg__hsi,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003344 &omap44xx_l3_main_2__ipu,
3345 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06003346 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003347 &omap44xx_l3_main_2__iva,
3348 &omap44xx_l4_wkup__kbd,
3349 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06003350 &omap44xx_l4_abe__mcasp,
3351 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003352 &omap44xx_l4_abe__mcbsp1,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003353 &omap44xx_l4_abe__mcbsp2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003354 &omap44xx_l4_abe__mcbsp3,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003355 &omap44xx_l4_per__mcbsp4,
3356 &omap44xx_l4_abe__mcpdm,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06003357 &omap44xx_l3_main_2__mmu_ipu,
3358 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06003359 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06003360 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06003361 &omap44xx_mpu_private__prcm_mpu,
3362 &omap44xx_l4_wkup__cm_core_aon,
3363 &omap44xx_l4_cfg__cm_core,
3364 &omap44xx_l4_wkup__prm,
3365 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06003366 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003367 &omap44xx_l4_abe__slimbus1,
3368 &omap44xx_l4_abe__slimbus1_dma,
3369 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003370 &omap44xx_l4_cfg__smartreflex_core,
3371 &omap44xx_l4_cfg__smartreflex_iva,
3372 &omap44xx_l4_cfg__smartreflex_mpu,
3373 &omap44xx_l4_cfg__spinlock,
3374 &omap44xx_l4_wkup__timer1,
3375 &omap44xx_l4_per__timer2,
3376 &omap44xx_l4_per__timer3,
3377 &omap44xx_l4_per__timer4,
3378 &omap44xx_l4_abe__timer5,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003379 &omap44xx_l4_abe__timer6,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003380 &omap44xx_l4_abe__timer7,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003381 &omap44xx_l4_abe__timer8,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003382 &omap44xx_l4_per__timer9,
3383 &omap44xx_l4_per__timer10,
3384 &omap44xx_l4_per__timer11,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003385 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003386 &omap44xx_l4_cfg__usb_host_hs,
3387 &omap44xx_l4_cfg__usb_otg_hs,
3388 &omap44xx_l4_cfg__usb_tll_hs,
Sricharan R3b9b1012013-06-07 17:26:15 +05303389 &omap44xx_mpu__emif1,
3390 &omap44xx_mpu__emif2,
Sebastian Reichel9a9ded82017-06-13 11:28:45 +02003391 &omap44xx_l3_main_2__aes1,
Sebastian Reichel478523d2017-06-13 11:28:46 +02003392 &omap44xx_l3_main_2__aes2,
Sebastian Reichelebea90d2017-06-13 11:28:47 +02003393 &omap44xx_l3_main_2__des,
Tero Kristo1df5eaa2017-06-13 16:45:50 +03003394 &omap44xx_l3_main_2__sha0,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003395 NULL,
3396};
3397
3398int __init omap44xx_hwmod_init(void)
3399{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06003400 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06003401 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02003402}
3403