blob: a1901c22a0f07231293a7caf1f905ef973dc9a75 [file] [log] [blame]
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001/*
2 * Hardware modules present on the OMAP44xx chips
3 *
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004 * Copyright (C) 2009-2012 Texas Instruments, Inc.
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005 * Copyright (C) 2009-2010 Nokia Corporation
6 *
7 * Paul Walmsley
8 * Benoit Cousson
9 *
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
Sricharan R3b9b1012013-06-07 17:26:15 +053015 * Note that this file is currently not in sync with autogeneration scripts.
16 * The above note to be removed, once it is synced up.
Benoit Cousson55d2cb02010-05-12 17:54:36 +020017 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License version 2 as
20 * published by the Free Software Foundation.
21 */
22
23#include <linux/io.h>
Tony Lindgren4b254082012-08-30 15:37:24 -070024#include <linux/platform_data/gpio-omap.h>
Andreas Fenkart551434382014-11-08 15:33:09 +010025#include <linux/platform_data/hsmmc-omap.h>
Jean Pihetb86aeaf2012-04-25 16:06:20 +053026#include <linux/power/smartreflex.h>
Tony Lindgren3a8761c2012-10-08 09:11:22 -070027#include <linux/i2c-omap.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020028
Tony Lindgren45c3eb72012-11-30 08:41:50 -080029#include <linux/omap-dma.h>
Tony Lindgren2a296c82012-10-02 17:41:35 -070030
Arnd Bergmann22037472012-08-24 15:21:06 +020031#include <linux/platform_data/spi-omap2-mcspi.h>
32#include <linux/platform_data/asoc-ti-mcbsp.h>
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +053033#include <plat/dmtimer.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020034
Tony Lindgren2a296c82012-10-02 17:41:35 -070035#include "omap_hwmod.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020036#include "omap_hwmod_common_data.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070037#include "cm1_44xx.h"
38#include "cm2_44xx.h"
39#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020040#include "prm-regbits-44xx.h"
Tony Lindgren3a8761c2012-10-08 09:11:22 -070041#include "i2c.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070042#include "wd_timer.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020043
44/* Base offset for all OMAP4 interrupts external to MPUSS */
45#define OMAP44XX_IRQ_GIC_START 32
46
47/* Base offset for all OMAP4 dma requests */
Paul Walmsley844a3b62012-04-19 04:04:33 -060048#define OMAP44XX_DMA_REQ_START 1
Benoit Cousson55d2cb02010-05-12 17:54:36 +020049
50/*
Paul Walmsley844a3b62012-04-19 04:04:33 -060051 * IP blocks
Benoit Cousson55d2cb02010-05-12 17:54:36 +020052 */
53
54/*
55 * 'dmm' class
56 * instance(s): dmm
57 */
58static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000059 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020060};
61
Benoit Cousson7e69ed92011-07-09 19:14:28 -060062/* dmm */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020063static struct omap_hwmod omap44xx_dmm_hwmod = {
64 .name = "dmm",
65 .class = &omap44xx_dmm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060066 .clkdm_name = "l3_emif_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060067 .prcm = {
68 .omap4 = {
69 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060070 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -060071 },
72 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020073};
74
75/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +020076 * 'l3' class
77 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
78 */
79static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000080 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020081};
82
Benoit Cousson7e69ed92011-07-09 19:14:28 -060083/* l3_instr */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020084static struct omap_hwmod omap44xx_l3_instr_hwmod = {
85 .name = "l3_instr",
86 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060087 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060088 .prcm = {
89 .omap4 = {
90 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060091 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -060092 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -060093 },
94 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020095};
96
Benoit Cousson7e69ed92011-07-09 19:14:28 -060097/* l3_main_1 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020098static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
99 .name = "l3_main_1",
100 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600101 .clkdm_name = "l3_1_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600102 .prcm = {
103 .omap4 = {
104 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600105 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600106 },
107 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200108};
109
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600110/* l3_main_2 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200111static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
112 .name = "l3_main_2",
113 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600114 .clkdm_name = "l3_2_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600115 .prcm = {
116 .omap4 = {
117 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600118 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600119 },
120 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200121};
122
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600123/* l3_main_3 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200124static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
125 .name = "l3_main_3",
126 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600127 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600128 .prcm = {
129 .omap4 = {
130 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600131 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600132 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600133 },
134 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200135};
136
137/*
138 * 'l4' class
139 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
140 */
141static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000142 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200143};
144
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600145/* l4_abe */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200146static struct omap_hwmod omap44xx_l4_abe_hwmod = {
147 .name = "l4_abe",
148 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600149 .clkdm_name = "abe_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600150 .prcm = {
151 .omap4 = {
152 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600153 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
154 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
Tero Kristo46b3af22012-09-23 17:28:20 -0600155 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
Benoit Coussond0f06312011-07-10 05:56:30 -0600156 },
157 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200158};
159
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600160/* l4_cfg */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200161static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
162 .name = "l4_cfg",
163 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600164 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600165 .prcm = {
166 .omap4 = {
167 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600168 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600169 },
170 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200171};
172
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600173/* l4_per */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200174static struct omap_hwmod omap44xx_l4_per_hwmod = {
175 .name = "l4_per",
176 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600177 .clkdm_name = "l4_per_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600178 .prcm = {
179 .omap4 = {
180 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600181 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600182 },
183 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200184};
185
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600186/* l4_wkup */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200187static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
188 .name = "l4_wkup",
189 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600190 .clkdm_name = "l4_wkup_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600191 .prcm = {
192 .omap4 = {
193 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600194 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600195 },
196 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200197};
198
199/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700200 * 'mpu_bus' class
201 * instance(s): mpu_private
202 */
203static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000204 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700205};
206
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600207/* mpu_private */
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700208static struct omap_hwmod omap44xx_mpu_private_hwmod = {
209 .name = "mpu_private",
210 .class = &omap44xx_mpu_bus_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600211 .clkdm_name = "mpuss_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600212 .prcm = {
213 .omap4 = {
214 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
215 },
216 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700217};
218
219/*
Benoît Cousson9a817bc82012-04-19 13:33:56 -0600220 * 'ocp_wp_noc' class
221 * instance(s): ocp_wp_noc
222 */
223static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
224 .name = "ocp_wp_noc",
225};
226
227/* ocp_wp_noc */
228static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
229 .name = "ocp_wp_noc",
230 .class = &omap44xx_ocp_wp_noc_hwmod_class,
231 .clkdm_name = "l3_instr_clkdm",
232 .prcm = {
233 .omap4 = {
234 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
235 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
236 .modulemode = MODULEMODE_HWCTRL,
237 },
238 },
239};
240
241/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700242 * Modules omap_hwmod structures
243 *
244 * The following IPs are excluded for the moment because:
245 * - They do not need an explicit SW control using omap_hwmod API.
246 * - They still need to be validated with the driver
247 * properly adapted to omap_hwmod / omap_device
248 *
Benoît Cousson96566042012-04-19 13:33:59 -0600249 * usim
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700250 */
251
252/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100253 * 'aess' class
254 * audio engine sub system
255 */
256
257static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
258 .rev_offs = 0x0000,
259 .sysc_offs = 0x0010,
260 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
261 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
Benoit Coussonc614ebf2011-07-01 22:54:01 +0200262 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
263 MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +0100264 .sysc_fields = &omap_hwmod_sysc_type2,
265};
266
267static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
268 .name = "aess",
269 .sysc = &omap44xx_aess_sysc,
Paul Walmsleyc02060d2013-02-10 11:22:23 -0700270 .enable_preprogram = omap_hwmod_aess_preprogram,
Benoit Cousson407a6882011-02-15 22:39:48 +0100271};
272
273/* aess */
Benoit Cousson407a6882011-02-15 22:39:48 +0100274static struct omap_hwmod omap44xx_aess_hwmod = {
275 .name = "aess",
276 .class = &omap44xx_aess_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600277 .clkdm_name = "abe_clkdm",
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -0700278 .main_clk = "aess_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600279 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100280 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600281 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600282 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600283 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600284 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +0100285 },
286 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100287};
288
289/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600290 * 'c2c' class
291 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
292 * soc
293 */
294
295static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
296 .name = "c2c",
297};
298
299/* c2c */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600300static struct omap_hwmod omap44xx_c2c_hwmod = {
301 .name = "c2c",
302 .class = &omap44xx_c2c_hwmod_class,
303 .clkdm_name = "d2d_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600304 .prcm = {
305 .omap4 = {
306 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
307 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
308 },
309 },
310};
311
312/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100313 * 'counter' class
314 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
315 */
316
317static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
318 .rev_offs = 0x0000,
319 .sysc_offs = 0x0004,
320 .sysc_flags = SYSC_HAS_SIDLEMODE,
Paul Walmsley252a4c52012-06-17 11:57:51 -0600321 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
Benoit Cousson407a6882011-02-15 22:39:48 +0100322 .sysc_fields = &omap_hwmod_sysc_type1,
323};
324
325static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
326 .name = "counter",
327 .sysc = &omap44xx_counter_sysc,
328};
329
330/* counter_32k */
Benoit Cousson407a6882011-02-15 22:39:48 +0100331static struct omap_hwmod omap44xx_counter_32k_hwmod = {
332 .name = "counter_32k",
333 .class = &omap44xx_counter_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600334 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100335 .flags = HWMOD_SWSUP_SIDLE,
336 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600337 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100338 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600339 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600340 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +0100341 },
342 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100343};
344
345/*
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600346 * 'ctrl_module' class
347 * attila core control module + core pad control module + wkup pad control
348 * module + attila wkup control module
349 */
350
351static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
352 .rev_offs = 0x0000,
353 .sysc_offs = 0x0010,
354 .sysc_flags = SYSC_HAS_SIDLEMODE,
355 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
356 SIDLE_SMART_WKUP),
357 .sysc_fields = &omap_hwmod_sysc_type2,
358};
359
360static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
361 .name = "ctrl_module",
362 .sysc = &omap44xx_ctrl_module_sysc,
363};
364
365/* ctrl_module_core */
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600366static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
367 .name = "ctrl_module_core",
368 .class = &omap44xx_ctrl_module_hwmod_class,
369 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600370 .prcm = {
371 .omap4 = {
372 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
373 },
374 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600375};
376
377/* ctrl_module_pad_core */
378static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
379 .name = "ctrl_module_pad_core",
380 .class = &omap44xx_ctrl_module_hwmod_class,
381 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600382 .prcm = {
383 .omap4 = {
384 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
385 },
386 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600387};
388
389/* ctrl_module_wkup */
390static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
391 .name = "ctrl_module_wkup",
392 .class = &omap44xx_ctrl_module_hwmod_class,
393 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600394 .prcm = {
395 .omap4 = {
396 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
397 },
398 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600399};
400
401/* ctrl_module_pad_wkup */
402static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
403 .name = "ctrl_module_pad_wkup",
404 .class = &omap44xx_ctrl_module_hwmod_class,
405 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600406 .prcm = {
407 .omap4 = {
408 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
409 },
410 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600411};
412
413/*
Benoît Cousson96566042012-04-19 13:33:59 -0600414 * 'debugss' class
415 * debug and emulation sub system
416 */
417
418static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
419 .name = "debugss",
420};
421
422/* debugss */
423static struct omap_hwmod omap44xx_debugss_hwmod = {
424 .name = "debugss",
425 .class = &omap44xx_debugss_hwmod_class,
426 .clkdm_name = "emu_sys_clkdm",
427 .main_clk = "trace_clk_div_ck",
428 .prcm = {
429 .omap4 = {
430 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
431 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
432 },
433 },
434};
435
436/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000437 * 'dma' class
438 * dma controller for data exchange between memory to memory (i.e. internal or
439 * external memory) and gp peripherals to memory or memory to gp peripherals
440 */
441
442static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
443 .rev_offs = 0x0000,
444 .sysc_offs = 0x002c,
445 .syss_offs = 0x0028,
446 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
447 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
448 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
449 SYSS_HAS_RESET_STATUS),
450 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
451 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
452 .sysc_fields = &omap_hwmod_sysc_type1,
453};
454
455static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
456 .name = "dma",
457 .sysc = &omap44xx_dma_sysc,
458};
459
460/* dma dev_attr */
461static struct omap_dma_dev_attr dma_dev_attr = {
462 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
463 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
464 .lch_count = 32,
465};
466
467/* dma_system */
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000468static struct omap_hwmod omap44xx_dma_system_hwmod = {
469 .name = "dma_system",
470 .class = &omap44xx_dma_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600471 .clkdm_name = "l3_dma_clkdm",
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000472 .main_clk = "l3_div_ck",
473 .prcm = {
474 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600475 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600476 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000477 },
478 },
479 .dev_attr = &dma_dev_attr,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000480};
481
482/*
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000483 * 'dmic' class
484 * digital microphone controller
485 */
486
487static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
488 .rev_offs = 0x0000,
489 .sysc_offs = 0x0010,
490 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
491 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
492 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
493 SIDLE_SMART_WKUP),
494 .sysc_fields = &omap_hwmod_sysc_type2,
495};
496
497static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
498 .name = "dmic",
499 .sysc = &omap44xx_dmic_sysc,
500};
501
502/* dmic */
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000503static struct omap_hwmod omap44xx_dmic_hwmod = {
504 .name = "dmic",
505 .class = &omap44xx_dmic_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600506 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -0700507 .main_clk = "func_dmic_abe_gfclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600508 .prcm = {
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000509 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600510 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600511 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600512 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000513 },
514 },
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000515};
516
517/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700518 * 'dsp' class
519 * dsp sub-system
520 */
521
522static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000523 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700524};
525
526/* dsp */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700527static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700528 { .name = "dsp", .rst_shift = 0 },
529};
530
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700531static struct omap_hwmod omap44xx_dsp_hwmod = {
532 .name = "dsp",
533 .class = &omap44xx_dsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600534 .clkdm_name = "tesla_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700535 .rst_lines = omap44xx_dsp_resets,
536 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -0600537 .main_clk = "dpll_iva_m4x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700538 .prcm = {
539 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600540 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -0600541 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600542 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600543 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700544 },
545 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700546};
547
548/*
Benoit Coussond63bd742011-01-27 11:17:03 +0000549 * 'dss' class
550 * display sub-system
551 */
552
553static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
554 .rev_offs = 0x0000,
555 .syss_offs = 0x0014,
556 .sysc_flags = SYSS_HAS_RESET_STATUS,
557};
558
559static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
560 .name = "dss",
561 .sysc = &omap44xx_dss_sysc,
Tomi Valkeinen13662dc2011-11-08 03:16:13 -0700562 .reset = omap_dss_reset,
Benoit Coussond63bd742011-01-27 11:17:03 +0000563};
564
565/* dss */
Benoit Coussond63bd742011-01-27 11:17:03 +0000566static struct omap_hwmod_opt_clk dss_opt_clks[] = {
567 { .role = "sys_clk", .clk = "dss_sys_clk" },
568 { .role = "tv_clk", .clk = "dss_tv_clk" },
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700569 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Benoit Coussond63bd742011-01-27 11:17:03 +0000570};
571
572static struct omap_hwmod omap44xx_dss_hwmod = {
573 .name = "dss_core",
Tomi Valkeinen37ad0852011-11-08 03:16:11 -0700574 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000575 .class = &omap44xx_dss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600576 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600577 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000578 .prcm = {
579 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600580 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600581 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +0300582 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussond63bd742011-01-27 11:17:03 +0000583 },
584 },
585 .opt_clks = dss_opt_clks,
586 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000587};
588
589/*
590 * 'dispc' class
591 * display controller
592 */
593
594static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
595 .rev_offs = 0x0000,
596 .sysc_offs = 0x0010,
597 .syss_offs = 0x0014,
598 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
599 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
600 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
601 SYSS_HAS_RESET_STATUS),
602 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
603 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
604 .sysc_fields = &omap_hwmod_sysc_type1,
605};
606
607static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
608 .name = "dispc",
609 .sysc = &omap44xx_dispc_sysc,
610};
611
612/* dss_dispc */
Archit Tanejab923d402011-10-06 18:04:08 -0600613static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
614 .manager_count = 3,
615 .has_framedonetv_irq = 1
616};
617
Benoit Coussond63bd742011-01-27 11:17:03 +0000618static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
619 .name = "dss_dispc",
620 .class = &omap44xx_dispc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600621 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600622 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000623 .prcm = {
624 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600625 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600626 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000627 },
628 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300629 .dev_attr = &omap44xx_dss_dispc_dev_attr,
630 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000631};
632
633/*
634 * 'dsi' class
635 * display serial interface controller
636 */
637
638static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
639 .rev_offs = 0x0000,
640 .sysc_offs = 0x0010,
641 .syss_offs = 0x0014,
642 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
643 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
644 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
645 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
646 .sysc_fields = &omap_hwmod_sysc_type1,
647};
648
649static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
650 .name = "dsi",
651 .sysc = &omap44xx_dsi_sysc,
652};
653
654/* dss_dsi1 */
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600655static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
656 { .role = "sys_clk", .clk = "dss_sys_clk" },
657};
658
Benoit Coussond63bd742011-01-27 11:17:03 +0000659static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
660 .name = "dss_dsi1",
661 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600662 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600663 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000664 .prcm = {
665 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600666 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600667 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000668 },
669 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600670 .opt_clks = dss_dsi1_opt_clks,
671 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300672 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000673};
674
675/* dss_dsi2 */
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600676static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
677 { .role = "sys_clk", .clk = "dss_sys_clk" },
678};
679
Benoit Coussond63bd742011-01-27 11:17:03 +0000680static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
681 .name = "dss_dsi2",
682 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600683 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600684 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000685 .prcm = {
686 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600687 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600688 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000689 },
690 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600691 .opt_clks = dss_dsi2_opt_clks,
692 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300693 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000694};
695
696/*
697 * 'hdmi' class
698 * hdmi controller
699 */
700
701static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
702 .rev_offs = 0x0000,
703 .sysc_offs = 0x0010,
704 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
705 SYSC_HAS_SOFTRESET),
706 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
707 SIDLE_SMART_WKUP),
708 .sysc_fields = &omap_hwmod_sysc_type2,
709};
710
711static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
712 .name = "hdmi",
713 .sysc = &omap44xx_hdmi_sysc,
714};
715
716/* dss_hdmi */
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600717static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
718 { .role = "sys_clk", .clk = "dss_sys_clk" },
Tero Kristo24d8d492017-05-31 17:59:59 +0300719 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600720};
721
Benoit Coussond63bd742011-01-27 11:17:03 +0000722static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
723 .name = "dss_hdmi",
724 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600725 .clkdm_name = "l3_dss_clkdm",
Ricardo Neridc57aef2012-06-21 10:08:53 +0200726 /*
727 * HDMI audio requires to use no-idle mode. Hence,
728 * set idle mode by software.
729 */
Tero Kristo24d8d492017-05-31 17:59:59 +0300730 .flags = HWMOD_SWSUP_SIDLE | HWMOD_OPT_CLKS_NEEDED,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700731 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000732 .prcm = {
733 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600734 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600735 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000736 },
737 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600738 .opt_clks = dss_hdmi_opt_clks,
739 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300740 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000741};
742
743/*
744 * 'rfbi' class
745 * remote frame buffer interface
746 */
747
748static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
749 .rev_offs = 0x0000,
750 .sysc_offs = 0x0010,
751 .syss_offs = 0x0014,
752 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
753 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
754 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
755 .sysc_fields = &omap_hwmod_sysc_type1,
756};
757
758static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
759 .name = "rfbi",
760 .sysc = &omap44xx_rfbi_sysc,
761};
762
763/* dss_rfbi */
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600764static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
Tomi Valkeinen2cc84f42014-10-09 17:03:18 +0300765 { .role = "ick", .clk = "l3_div_ck" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600766};
767
Benoit Coussond63bd742011-01-27 11:17:03 +0000768static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
769 .name = "dss_rfbi",
770 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600771 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600772 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000773 .prcm = {
774 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600775 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600776 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000777 },
778 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600779 .opt_clks = dss_rfbi_opt_clks,
780 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300781 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000782};
783
784/*
785 * 'venc' class
786 * video encoder
787 */
788
789static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
790 .name = "venc",
791};
792
793/* dss_venc */
Tero Kristo24d8d492017-05-31 17:59:59 +0300794static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
795 { .role = "tv_clk", .clk = "dss_tv_clk" },
796};
797
Benoit Coussond63bd742011-01-27 11:17:03 +0000798static struct omap_hwmod omap44xx_dss_venc_hwmod = {
799 .name = "dss_venc",
800 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600801 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700802 .main_clk = "dss_tv_clk",
Tero Kristo24d8d492017-05-31 17:59:59 +0300803 .flags = HWMOD_OPT_CLKS_NEEDED,
Benoit Coussond63bd742011-01-27 11:17:03 +0000804 .prcm = {
805 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600806 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600807 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000808 },
809 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300810 .parent_hwmod = &omap44xx_dss_hwmod,
Tero Kristo24d8d492017-05-31 17:59:59 +0300811 .opt_clks = dss_venc_opt_clks,
812 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000813};
814
Tero Kristo1df5eaa2017-06-13 16:45:50 +0300815/* sha0 HIB2 (the 'P' (public) device) */
816static struct omap_hwmod_class_sysconfig omap44xx_sha0_sysc = {
817 .rev_offs = 0x100,
818 .sysc_offs = 0x110,
819 .syss_offs = 0x114,
820 .sysc_flags = SYSS_HAS_RESET_STATUS,
821};
822
823static struct omap_hwmod_class omap44xx_sha0_hwmod_class = {
824 .name = "sham",
825 .sysc = &omap44xx_sha0_sysc,
826};
827
828struct omap_hwmod omap44xx_sha0_hwmod = {
829 .name = "sham",
830 .class = &omap44xx_sha0_hwmod_class,
831 .clkdm_name = "l4_secure_clkdm",
832 .main_clk = "l3_div_ck",
833 .prcm = {
834 .omap4 = {
835 .clkctrl_offs = OMAP4_CM_L4SEC_SHA2MD51_CLKCTRL_OFFSET,
836 .context_offs = OMAP4_RM_L4SEC_SHA2MD51_CONTEXT_OFFSET,
837 .modulemode = MODULEMODE_SWCTRL,
838 },
839 },
840};
841
Benoit Coussond63bd742011-01-27 11:17:03 +0000842/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600843 * 'elm' class
844 * bch error location module
845 */
846
847static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
848 .rev_offs = 0x0000,
849 .sysc_offs = 0x0010,
850 .syss_offs = 0x0014,
851 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
852 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
853 SYSS_HAS_RESET_STATUS),
854 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
855 .sysc_fields = &omap_hwmod_sysc_type1,
856};
857
858static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
859 .name = "elm",
860 .sysc = &omap44xx_elm_sysc,
861};
862
863/* elm */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600864static struct omap_hwmod omap44xx_elm_hwmod = {
865 .name = "elm",
866 .class = &omap44xx_elm_hwmod_class,
867 .clkdm_name = "l4_per_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600868 .prcm = {
869 .omap4 = {
870 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
871 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
872 },
873 },
874};
875
876/*
Paul Walmsleybf30f952012-04-19 13:33:52 -0600877 * 'emif' class
878 * external memory interface no1
879 */
880
881static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
882 .rev_offs = 0x0000,
883};
884
885static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
886 .name = "emif",
887 .sysc = &omap44xx_emif_sysc,
888};
889
890/* emif1 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600891static struct omap_hwmod omap44xx_emif1_hwmod = {
892 .name = "emif1",
893 .class = &omap44xx_emif_hwmod_class,
894 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530895 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600896 .main_clk = "ddrphy_ck",
897 .prcm = {
898 .omap4 = {
899 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
900 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
901 .modulemode = MODULEMODE_HWCTRL,
902 },
903 },
904};
905
906/* emif2 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600907static struct omap_hwmod omap44xx_emif2_hwmod = {
908 .name = "emif2",
909 .class = &omap44xx_emif_hwmod_class,
910 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530911 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600912 .main_clk = "ddrphy_ck",
913 .prcm = {
914 .omap4 = {
915 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
916 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
917 .modulemode = MODULEMODE_HWCTRL,
918 },
919 },
920};
921
922/*
Sebastian Reichel9a9ded82017-06-13 11:28:45 +0200923 Crypto modules AES0/1 belong to:
924 PD_L4_PER power domain
925 CD_L4_SEC clock domain
926 On the L3, the AES modules are mapped to
927 L3_CLK2: Peripherals and multimedia sub clock domain
928*/
929static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc = {
930 .rev_offs = 0x80,
931 .sysc_offs = 0x84,
932 .syss_offs = 0x88,
933 .sysc_flags = SYSS_HAS_RESET_STATUS,
934};
935
936static struct omap_hwmod_class omap44xx_aes_hwmod_class = {
937 .name = "aes",
938 .sysc = &omap44xx_aes_sysc,
939};
940
941static struct omap_hwmod omap44xx_aes1_hwmod = {
942 .name = "aes1",
943 .class = &omap44xx_aes_hwmod_class,
944 .clkdm_name = "l4_secure_clkdm",
945 .main_clk = "l3_div_ck",
946 .prcm = {
947 .omap4 = {
948 .context_offs = OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET,
949 .clkctrl_offs = OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET,
950 .modulemode = MODULEMODE_SWCTRL,
951 },
952 },
953};
954
955static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1 = {
956 .master = &omap44xx_l4_per_hwmod,
957 .slave = &omap44xx_aes1_hwmod,
958 .clk = "l3_div_ck",
959 .user = OCP_USER_MPU | OCP_USER_SDMA,
960};
961
Sebastian Reichel478523d2017-06-13 11:28:46 +0200962static struct omap_hwmod omap44xx_aes2_hwmod = {
963 .name = "aes2",
964 .class = &omap44xx_aes_hwmod_class,
965 .clkdm_name = "l4_secure_clkdm",
966 .main_clk = "l3_div_ck",
967 .prcm = {
968 .omap4 = {
969 .context_offs = OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET,
970 .clkctrl_offs = OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET,
971 .modulemode = MODULEMODE_SWCTRL,
972 },
973 },
974};
975
976static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2 = {
977 .master = &omap44xx_l4_per_hwmod,
978 .slave = &omap44xx_aes2_hwmod,
979 .clk = "l3_div_ck",
980 .user = OCP_USER_MPU | OCP_USER_SDMA,
981};
982
Sebastian Reichel9a9ded82017-06-13 11:28:45 +0200983/*
Sebastian Reichelebea90d2017-06-13 11:28:47 +0200984 * 'des' class for DES3DES module
985 */
986static struct omap_hwmod_class_sysconfig omap44xx_des_sysc = {
987 .rev_offs = 0x30,
988 .sysc_offs = 0x34,
989 .syss_offs = 0x38,
990 .sysc_flags = SYSS_HAS_RESET_STATUS,
991};
992
993static struct omap_hwmod_class omap44xx_des_hwmod_class = {
994 .name = "des",
995 .sysc = &omap44xx_des_sysc,
996};
997
998static struct omap_hwmod omap44xx_des_hwmod = {
999 .name = "des",
1000 .class = &omap44xx_des_hwmod_class,
1001 .clkdm_name = "l4_secure_clkdm",
1002 .main_clk = "l3_div_ck",
1003 .prcm = {
1004 .omap4 = {
1005 .context_offs = OMAP4_RM_L4SEC_DES3DES_CONTEXT_OFFSET,
1006 .clkctrl_offs = OMAP4_CM_L4SEC_DES3DES_CLKCTRL_OFFSET,
1007 .modulemode = MODULEMODE_SWCTRL,
1008 },
1009 },
1010};
1011
1012struct omap_hwmod_ocp_if omap44xx_l3_main_2__des = {
1013 .master = &omap44xx_l3_main_2_hwmod,
1014 .slave = &omap44xx_des_hwmod,
1015 .clk = "l3_div_ck",
1016 .user = OCP_USER_MPU | OCP_USER_SDMA,
1017};
1018
1019/*
Ming Leib050f682012-04-19 13:33:50 -06001020 * 'fdif' class
1021 * face detection hw accelerator module
1022 */
1023
1024static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
1025 .rev_offs = 0x0000,
1026 .sysc_offs = 0x0010,
1027 /*
1028 * FDIF needs 100 OCP clk cycles delay after a softreset before
1029 * accessing sysconfig again.
1030 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1031 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1032 *
1033 * TODO: Indicate errata when available.
1034 */
1035 .srst_udelay = 2,
1036 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1037 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1038 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1039 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1040 .sysc_fields = &omap_hwmod_sysc_type2,
1041};
1042
1043static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1044 .name = "fdif",
1045 .sysc = &omap44xx_fdif_sysc,
1046};
1047
1048/* fdif */
Ming Leib050f682012-04-19 13:33:50 -06001049static struct omap_hwmod omap44xx_fdif_hwmod = {
1050 .name = "fdif",
1051 .class = &omap44xx_fdif_hwmod_class,
1052 .clkdm_name = "iss_clkdm",
Ming Leib050f682012-04-19 13:33:50 -06001053 .main_clk = "fdif_fck",
1054 .prcm = {
1055 .omap4 = {
1056 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1057 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1058 .modulemode = MODULEMODE_SWCTRL,
1059 },
1060 },
1061};
1062
1063/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001064 * 'gpio' class
1065 * general purpose io module
1066 */
1067
1068static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1069 .rev_offs = 0x0000,
1070 .sysc_offs = 0x0010,
1071 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001072 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1073 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1074 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001075 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1076 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001077 .sysc_fields = &omap_hwmod_sysc_type1,
1078};
1079
1080static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001081 .name = "gpio",
1082 .sysc = &omap44xx_gpio_sysc,
1083 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001084};
1085
1086/* gpio dev_attr */
1087static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001088 .bank_width = 32,
1089 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001090};
1091
1092/* gpio1 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001093static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001094 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001095};
1096
1097static struct omap_hwmod omap44xx_gpio1_hwmod = {
1098 .name = "gpio1",
1099 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001100 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001101 .main_clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001102 .prcm = {
1103 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001104 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001105 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001106 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001107 },
1108 },
1109 .opt_clks = gpio1_opt_clks,
1110 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1111 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001112};
1113
1114/* gpio2 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001115static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001116 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001117};
1118
1119static struct omap_hwmod omap44xx_gpio2_hwmod = {
1120 .name = "gpio2",
1121 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001122 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001123 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001124 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001125 .prcm = {
1126 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001127 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001128 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001129 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001130 },
1131 },
1132 .opt_clks = gpio2_opt_clks,
1133 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1134 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001135};
1136
1137/* gpio3 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001138static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001139 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001140};
1141
1142static struct omap_hwmod omap44xx_gpio3_hwmod = {
1143 .name = "gpio3",
1144 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001145 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001146 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001147 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001148 .prcm = {
1149 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001150 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001151 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001152 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001153 },
1154 },
1155 .opt_clks = gpio3_opt_clks,
1156 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1157 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001158};
1159
1160/* gpio4 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001161static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001162 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001163};
1164
1165static struct omap_hwmod omap44xx_gpio4_hwmod = {
1166 .name = "gpio4",
1167 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001168 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001169 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001170 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001171 .prcm = {
1172 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001173 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001174 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001175 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001176 },
1177 },
1178 .opt_clks = gpio4_opt_clks,
1179 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1180 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001181};
1182
1183/* gpio5 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001184static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001185 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001186};
1187
1188static struct omap_hwmod omap44xx_gpio5_hwmod = {
1189 .name = "gpio5",
1190 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001191 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001192 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001193 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001194 .prcm = {
1195 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001196 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001197 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001198 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001199 },
1200 },
1201 .opt_clks = gpio5_opt_clks,
1202 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1203 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001204};
1205
1206/* gpio6 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001207static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001208 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001209};
1210
1211static struct omap_hwmod omap44xx_gpio6_hwmod = {
1212 .name = "gpio6",
1213 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001214 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001215 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001216 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001217 .prcm = {
1218 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001219 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001220 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001221 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001222 },
1223 },
1224 .opt_clks = gpio6_opt_clks,
1225 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1226 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001227};
1228
1229/*
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001230 * 'gpmc' class
1231 * general purpose memory controller
1232 */
1233
1234static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1235 .rev_offs = 0x0000,
1236 .sysc_offs = 0x0010,
1237 .syss_offs = 0x0014,
1238 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1239 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1240 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1241 .sysc_fields = &omap_hwmod_sysc_type1,
1242};
1243
1244static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1245 .name = "gpmc",
1246 .sysc = &omap44xx_gpmc_sysc,
1247};
1248
1249/* gpmc */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001250static struct omap_hwmod omap44xx_gpmc_hwmod = {
1251 .name = "gpmc",
1252 .class = &omap44xx_gpmc_hwmod_class,
1253 .clkdm_name = "l3_2_clkdm",
Tony Lindgren63aa9452015-06-01 19:22:10 -06001254 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1255 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001256 .prcm = {
1257 .omap4 = {
1258 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1259 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1260 .modulemode = MODULEMODE_HWCTRL,
1261 },
1262 },
1263};
1264
1265/*
Paul Walmsley9def3902012-04-19 13:33:53 -06001266 * 'gpu' class
1267 * 2d/3d graphics accelerator
1268 */
1269
1270static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1271 .rev_offs = 0x1fc00,
1272 .sysc_offs = 0x1fc10,
1273 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1274 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1275 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1276 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1277 .sysc_fields = &omap_hwmod_sysc_type2,
1278};
1279
1280static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1281 .name = "gpu",
1282 .sysc = &omap44xx_gpu_sysc,
1283};
1284
1285/* gpu */
Paul Walmsley9def3902012-04-19 13:33:53 -06001286static struct omap_hwmod omap44xx_gpu_hwmod = {
1287 .name = "gpu",
1288 .class = &omap44xx_gpu_hwmod_class,
1289 .clkdm_name = "l3_gfx_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001290 .main_clk = "sgx_clk_mux",
Paul Walmsley9def3902012-04-19 13:33:53 -06001291 .prcm = {
1292 .omap4 = {
1293 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1294 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1295 .modulemode = MODULEMODE_SWCTRL,
1296 },
1297 },
1298};
1299
1300/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001301 * 'hdq1w' class
1302 * hdq / 1-wire serial interface controller
1303 */
1304
1305static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1306 .rev_offs = 0x0000,
1307 .sysc_offs = 0x0014,
1308 .syss_offs = 0x0018,
1309 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1310 SYSS_HAS_RESET_STATUS),
1311 .sysc_fields = &omap_hwmod_sysc_type1,
1312};
1313
1314static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1315 .name = "hdq1w",
1316 .sysc = &omap44xx_hdq1w_sysc,
1317};
1318
1319/* hdq1w */
Paul Walmsleya091c082012-04-19 13:33:50 -06001320static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1321 .name = "hdq1w",
1322 .class = &omap44xx_hdq1w_hwmod_class,
1323 .clkdm_name = "l4_per_clkdm",
1324 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001325 .main_clk = "func_12m_fclk",
Paul Walmsleya091c082012-04-19 13:33:50 -06001326 .prcm = {
1327 .omap4 = {
1328 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1329 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1330 .modulemode = MODULEMODE_SWCTRL,
1331 },
1332 },
1333};
1334
1335/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001336 * 'hsi' class
1337 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1338 * serial if)
1339 */
1340
1341static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1342 .rev_offs = 0x0000,
1343 .sysc_offs = 0x0010,
1344 .syss_offs = 0x0014,
1345 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1346 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1347 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1348 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1349 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001350 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001351 .sysc_fields = &omap_hwmod_sysc_type1,
1352};
1353
1354static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1355 .name = "hsi",
1356 .sysc = &omap44xx_hsi_sysc,
1357};
1358
1359/* hsi */
Benoit Cousson407a6882011-02-15 22:39:48 +01001360static struct omap_hwmod omap44xx_hsi_hwmod = {
1361 .name = "hsi",
1362 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001363 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001364 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001365 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001366 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001367 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001368 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001369 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001370 },
1371 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001372};
1373
1374/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301375 * 'i2c' class
1376 * multimaster high-speed i2c controller
1377 */
1378
1379static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1380 .sysc_offs = 0x0010,
1381 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001382 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1383 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001384 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001385 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1386 SIDLE_SMART_WKUP),
Benoit Coussonf7764712010-09-21 19:37:14 +05301387 .sysc_fields = &omap_hwmod_sysc_type1,
1388};
1389
1390static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001391 .name = "i2c",
1392 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06001393 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06001394 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05301395};
1396
Andy Green4d4441a2011-07-10 05:27:16 -06001397static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +05301398 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Andy Green4d4441a2011-07-10 05:27:16 -06001399};
1400
Benoit Coussonf7764712010-09-21 19:37:14 +05301401/* i2c1 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301402static struct omap_hwmod omap44xx_i2c1_hwmod = {
1403 .name = "i2c1",
1404 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001405 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301406 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001407 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301408 .prcm = {
1409 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001410 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001411 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001412 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301413 },
1414 },
Andy Green4d4441a2011-07-10 05:27:16 -06001415 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301416};
1417
1418/* i2c2 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301419static struct omap_hwmod omap44xx_i2c2_hwmod = {
1420 .name = "i2c2",
1421 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001422 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301423 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001424 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301425 .prcm = {
1426 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001427 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001428 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001429 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301430 },
1431 },
Andy Green4d4441a2011-07-10 05:27:16 -06001432 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301433};
1434
1435/* i2c3 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301436static struct omap_hwmod omap44xx_i2c3_hwmod = {
1437 .name = "i2c3",
1438 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001439 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301440 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001441 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301442 .prcm = {
1443 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001444 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001445 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001446 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301447 },
1448 },
Andy Green4d4441a2011-07-10 05:27:16 -06001449 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301450};
1451
1452/* i2c4 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301453static struct omap_hwmod omap44xx_i2c4_hwmod = {
1454 .name = "i2c4",
1455 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001456 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301457 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001458 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301459 .prcm = {
1460 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001461 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001462 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001463 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301464 },
1465 },
Andy Green4d4441a2011-07-10 05:27:16 -06001466 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301467};
1468
1469/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001470 * 'ipu' class
1471 * imaging processor unit
1472 */
1473
1474static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1475 .name = "ipu",
1476};
1477
1478/* ipu */
Benoit Cousson407a6882011-02-15 22:39:48 +01001479static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001480 { .name = "cpu0", .rst_shift = 0 },
1481 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001482};
1483
Benoit Cousson407a6882011-02-15 22:39:48 +01001484static struct omap_hwmod omap44xx_ipu_hwmod = {
1485 .name = "ipu",
1486 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001487 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001488 .rst_lines = omap44xx_ipu_resets,
1489 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001490 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001491 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001492 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001493 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001494 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001495 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001496 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001497 },
1498 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001499};
1500
1501/*
1502 * 'iss' class
1503 * external images sensor pixel data processor
1504 */
1505
1506static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1507 .rev_offs = 0x0000,
1508 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001509 /*
1510 * ISS needs 100 OCP clk cycles delay after a softreset before
1511 * accessing sysconfig again.
1512 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1513 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1514 *
1515 * TODO: Indicate errata when available.
1516 */
1517 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001518 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1519 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1520 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1521 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001522 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001523 .sysc_fields = &omap_hwmod_sysc_type2,
1524};
1525
1526static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1527 .name = "iss",
1528 .sysc = &omap44xx_iss_sysc,
1529};
1530
1531/* iss */
Benoit Cousson407a6882011-02-15 22:39:48 +01001532static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1533 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1534};
1535
1536static struct omap_hwmod omap44xx_iss_hwmod = {
1537 .name = "iss",
1538 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001539 .clkdm_name = "iss_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001540 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001541 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001542 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001543 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001544 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001545 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001546 },
1547 },
1548 .opt_clks = iss_opt_clks,
1549 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001550};
1551
1552/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001553 * 'iva' class
1554 * multi-standard video encoder/decoder hardware accelerator
1555 */
1556
1557static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001558 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001559};
1560
1561/* iva */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001562static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001563 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001564 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001565 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001566};
1567
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001568static struct omap_hwmod omap44xx_iva_hwmod = {
1569 .name = "iva",
1570 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001571 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001572 .rst_lines = omap44xx_iva_resets,
1573 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001574 .main_clk = "dpll_iva_m5x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001575 .prcm = {
1576 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001577 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001578 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001579 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001580 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001581 },
1582 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001583};
1584
1585/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001586 * 'kbd' class
1587 * keyboard controller
1588 */
1589
1590static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1591 .rev_offs = 0x0000,
1592 .sysc_offs = 0x0010,
1593 .syss_offs = 0x0014,
1594 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1595 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1596 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1597 SYSS_HAS_RESET_STATUS),
1598 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1599 .sysc_fields = &omap_hwmod_sysc_type1,
1600};
1601
1602static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1603 .name = "kbd",
1604 .sysc = &omap44xx_kbd_sysc,
1605};
1606
1607/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001608static struct omap_hwmod omap44xx_kbd_hwmod = {
1609 .name = "kbd",
1610 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001611 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001612 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001613 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001614 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001615 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001616 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001617 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001618 },
1619 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001620};
1621
1622/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001623 * 'mailbox' class
1624 * mailbox module allowing communication between the on-chip processors using a
1625 * queued mailbox-interrupt mechanism.
1626 */
1627
1628static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1629 .rev_offs = 0x0000,
1630 .sysc_offs = 0x0010,
1631 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1632 SYSC_HAS_SOFTRESET),
1633 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1634 .sysc_fields = &omap_hwmod_sysc_type2,
1635};
1636
1637static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1638 .name = "mailbox",
1639 .sysc = &omap44xx_mailbox_sysc,
1640};
1641
1642/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001643static struct omap_hwmod omap44xx_mailbox_hwmod = {
1644 .name = "mailbox",
1645 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001646 .clkdm_name = "l4_cfg_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001647 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001648 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001649 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001650 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001651 },
1652 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001653};
1654
1655/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001656 * 'mcasp' class
1657 * multi-channel audio serial port controller
1658 */
1659
1660/* The IP is not compliant to type1 / type2 scheme */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001661static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1662 .sysc_offs = 0x0004,
1663 .sysc_flags = SYSC_HAS_SIDLEMODE,
1664 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1665 SIDLE_SMART_WKUP),
1666 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1667};
1668
1669static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1670 .name = "mcasp",
1671 .sysc = &omap44xx_mcasp_sysc,
1672};
1673
1674/* mcasp */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001675static struct omap_hwmod omap44xx_mcasp_hwmod = {
1676 .name = "mcasp",
1677 .class = &omap44xx_mcasp_hwmod_class,
1678 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001679 .main_clk = "func_mcasp_abe_gfclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06001680 .prcm = {
1681 .omap4 = {
1682 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1683 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1684 .modulemode = MODULEMODE_SWCTRL,
1685 },
1686 },
1687};
1688
1689/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001690 * 'mcbsp' class
1691 * multi channel buffered serial port controller
1692 */
1693
1694static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1695 .sysc_offs = 0x008c,
1696 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1697 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1698 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1699 .sysc_fields = &omap_hwmod_sysc_type1,
1700};
1701
1702static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1703 .name = "mcbsp",
1704 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05301705 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001706};
1707
1708/* mcbsp1 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001709static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1710 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001711 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001712};
1713
Benoit Cousson4ddff492011-01-31 14:50:30 +00001714static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1715 .name = "mcbsp1",
1716 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001717 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001718 .main_clk = "func_mcbsp1_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001719 .prcm = {
1720 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001721 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001722 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001723 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001724 },
1725 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001726 .opt_clks = mcbsp1_opt_clks,
1727 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001728};
1729
1730/* mcbsp2 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001731static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1732 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001733 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001734};
1735
Benoit Cousson4ddff492011-01-31 14:50:30 +00001736static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1737 .name = "mcbsp2",
1738 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001739 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001740 .main_clk = "func_mcbsp2_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001741 .prcm = {
1742 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001743 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001744 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001745 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001746 },
1747 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001748 .opt_clks = mcbsp2_opt_clks,
1749 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001750};
1751
1752/* mcbsp3 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001753static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1754 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001755 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001756};
1757
Benoit Cousson4ddff492011-01-31 14:50:30 +00001758static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1759 .name = "mcbsp3",
1760 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001761 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001762 .main_clk = "func_mcbsp3_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001763 .prcm = {
1764 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001765 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001766 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001767 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001768 },
1769 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001770 .opt_clks = mcbsp3_opt_clks,
1771 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001772};
1773
1774/* mcbsp4 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001775static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1776 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001777 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001778};
1779
Benoit Cousson4ddff492011-01-31 14:50:30 +00001780static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1781 .name = "mcbsp4",
1782 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001783 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001784 .main_clk = "per_mcbsp4_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001785 .prcm = {
1786 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001787 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001788 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001789 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001790 },
1791 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001792 .opt_clks = mcbsp4_opt_clks,
1793 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001794};
1795
1796/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001797 * 'mcpdm' class
1798 * multi channel pdm controller (proprietary interface with phoenix power
1799 * ic)
1800 */
1801
1802static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1803 .rev_offs = 0x0000,
1804 .sysc_offs = 0x0010,
1805 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1806 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1807 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1808 SIDLE_SMART_WKUP),
1809 .sysc_fields = &omap_hwmod_sysc_type2,
1810};
1811
1812static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1813 .name = "mcpdm",
1814 .sysc = &omap44xx_mcpdm_sysc,
1815};
1816
1817/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01001818static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1819 .name = "mcpdm",
1820 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001821 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06001822 /*
1823 * It's suspected that the McPDM requires an off-chip main
1824 * functional clock, controlled via I2C. This IP block is
1825 * currently reset very early during boot, before I2C is
1826 * available, so it doesn't seem that we have any choice in
1827 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001828 *
1829 * Also, McPDM needs to be configured to NO_IDLE mode when it
1830 * is in used otherwise vital clocks will be gated which
1831 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06001832 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001833 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001834 .main_clk = "pad_clks_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001835 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001836 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001837 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001838 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001839 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001840 },
1841 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001842};
1843
1844/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301845 * 'mcspi' class
1846 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1847 * bus
1848 */
1849
1850static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1851 .rev_offs = 0x0000,
1852 .sysc_offs = 0x0010,
1853 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1854 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1855 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1856 SIDLE_SMART_WKUP),
1857 .sysc_fields = &omap_hwmod_sysc_type2,
1858};
1859
1860static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1861 .name = "mcspi",
1862 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01001863 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301864};
1865
1866/* mcspi1 */
Benoit Cousson905a74d2011-02-18 14:01:06 +01001867static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1868 .num_chipselect = 4,
1869};
1870
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301871static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1872 .name = "mcspi1",
1873 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001874 .clkdm_name = "l4_per_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001875 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301876 .prcm = {
1877 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001878 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001879 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001880 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301881 },
1882 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001883 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301884};
1885
1886/* mcspi2 */
Benoit Cousson905a74d2011-02-18 14:01:06 +01001887static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1888 .num_chipselect = 2,
1889};
1890
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301891static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1892 .name = "mcspi2",
1893 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001894 .clkdm_name = "l4_per_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001895 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301896 .prcm = {
1897 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001898 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001899 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001900 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301901 },
1902 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001903 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301904};
1905
1906/* mcspi3 */
Benoit Cousson905a74d2011-02-18 14:01:06 +01001907static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1908 .num_chipselect = 2,
1909};
1910
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301911static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1912 .name = "mcspi3",
1913 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001914 .clkdm_name = "l4_per_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001915 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301916 .prcm = {
1917 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001918 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001919 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001920 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301921 },
1922 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001923 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301924};
1925
1926/* mcspi4 */
Benoit Cousson905a74d2011-02-18 14:01:06 +01001927static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1928 .num_chipselect = 1,
1929};
1930
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301931static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1932 .name = "mcspi4",
1933 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001934 .clkdm_name = "l4_per_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001935 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301936 .prcm = {
1937 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001938 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001939 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001940 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301941 },
1942 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001943 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301944};
1945
1946/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001947 * 'mmc' class
1948 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1949 */
1950
1951static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
1952 .rev_offs = 0x0000,
1953 .sysc_offs = 0x0010,
1954 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1955 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1956 SYSC_HAS_SOFTRESET),
1957 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1958 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001959 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001960 .sysc_fields = &omap_hwmod_sysc_type2,
1961};
1962
1963static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
1964 .name = "mmc",
1965 .sysc = &omap44xx_mmc_sysc,
1966};
1967
1968/* mmc1 */
Andreas Fenkart551434382014-11-08 15:33:09 +01001969static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001970 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1971};
1972
Benoit Cousson407a6882011-02-15 22:39:48 +01001973static struct omap_hwmod omap44xx_mmc1_hwmod = {
1974 .name = "mmc1",
1975 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001976 .clkdm_name = "l3_init_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001977 .main_clk = "hsmmc1_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001978 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001979 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001980 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001981 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001982 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001983 },
1984 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001985 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01001986};
1987
1988/* mmc2 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001989static struct omap_hwmod omap44xx_mmc2_hwmod = {
1990 .name = "mmc2",
1991 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001992 .clkdm_name = "l3_init_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001993 .main_clk = "hsmmc2_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001994 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001995 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001996 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001997 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001998 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001999 },
2000 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002001};
2002
2003/* mmc3 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002004static struct omap_hwmod omap44xx_mmc3_hwmod = {
2005 .name = "mmc3",
2006 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002007 .clkdm_name = "l4_per_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002008 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002009 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002010 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002011 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002012 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002013 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002014 },
2015 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002016};
2017
2018/* mmc4 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002019static struct omap_hwmod omap44xx_mmc4_hwmod = {
2020 .name = "mmc4",
2021 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002022 .clkdm_name = "l4_per_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002023 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002024 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002025 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002026 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002027 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002028 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002029 },
2030 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002031};
2032
2033/* mmc5 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002034static struct omap_hwmod omap44xx_mmc5_hwmod = {
2035 .name = "mmc5",
2036 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002037 .clkdm_name = "l4_per_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002038 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002039 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002040 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002041 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002042 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002043 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002044 },
2045 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002046};
2047
2048/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002049 * 'mmu' class
2050 * The memory management unit performs virtual to physical address translation
2051 * for its requestors.
2052 */
2053
2054static struct omap_hwmod_class_sysconfig mmu_sysc = {
2055 .rev_offs = 0x000,
2056 .sysc_offs = 0x010,
2057 .syss_offs = 0x014,
2058 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2059 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2060 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2061 .sysc_fields = &omap_hwmod_sysc_type1,
2062};
2063
2064static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2065 .name = "mmu",
2066 .sysc = &mmu_sysc,
2067};
2068
2069/* mmu ipu */
2070
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002071static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002072static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2073 { .name = "mmu_cache", .rst_shift = 2 },
2074};
2075
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002076/* l3_main_2 -> mmu_ipu */
2077static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2078 .master = &omap44xx_l3_main_2_hwmod,
2079 .slave = &omap44xx_mmu_ipu_hwmod,
2080 .clk = "l3_div_ck",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002081 .user = OCP_USER_MPU | OCP_USER_SDMA,
2082};
2083
2084static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2085 .name = "mmu_ipu",
2086 .class = &omap44xx_mmu_hwmod_class,
2087 .clkdm_name = "ducati_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002088 .rst_lines = omap44xx_mmu_ipu_resets,
2089 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2090 .main_clk = "ducati_clk_mux_ck",
2091 .prcm = {
2092 .omap4 = {
2093 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2094 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2095 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2096 .modulemode = MODULEMODE_HWCTRL,
2097 },
2098 },
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002099};
2100
2101/* mmu dsp */
2102
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002103static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002104static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2105 { .name = "mmu_cache", .rst_shift = 1 },
2106};
2107
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002108/* l4_cfg -> dsp */
2109static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2110 .master = &omap44xx_l4_cfg_hwmod,
2111 .slave = &omap44xx_mmu_dsp_hwmod,
2112 .clk = "l4_div_ck",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002113 .user = OCP_USER_MPU | OCP_USER_SDMA,
2114};
2115
2116static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2117 .name = "mmu_dsp",
2118 .class = &omap44xx_mmu_hwmod_class,
2119 .clkdm_name = "tesla_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002120 .rst_lines = omap44xx_mmu_dsp_resets,
2121 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2122 .main_clk = "dpll_iva_m4x2_ck",
2123 .prcm = {
2124 .omap4 = {
2125 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2126 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2127 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2128 .modulemode = MODULEMODE_HWCTRL,
2129 },
2130 },
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002131};
2132
2133/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002134 * 'mpu' class
2135 * mpu sub-system
2136 */
2137
2138static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002139 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002140};
2141
2142/* mpu */
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002143static struct omap_hwmod omap44xx_mpu_hwmod = {
2144 .name = "mpu",
2145 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002146 .clkdm_name = "mpuss_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +05302147 .flags = HWMOD_INIT_NO_IDLE,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002148 .main_clk = "dpll_mpu_m2_ck",
2149 .prcm = {
2150 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002151 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002152 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002153 },
2154 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002155};
2156
Benoit Cousson92b18d12010-09-23 20:02:41 +05302157/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06002158 * 'ocmc_ram' class
2159 * top-level core on-chip ram
2160 */
2161
2162static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2163 .name = "ocmc_ram",
2164};
2165
2166/* ocmc_ram */
2167static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2168 .name = "ocmc_ram",
2169 .class = &omap44xx_ocmc_ram_hwmod_class,
2170 .clkdm_name = "l3_2_clkdm",
2171 .prcm = {
2172 .omap4 = {
2173 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2174 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2175 },
2176 },
2177};
2178
2179/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002180 * 'ocp2scp' class
2181 * bridge to transform ocp interface protocol to scp (serial control port)
2182 * protocol
2183 */
2184
Benoit Cousson33c976e2012-09-23 17:28:21 -06002185static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2186 .rev_offs = 0x0000,
2187 .sysc_offs = 0x0010,
2188 .syss_offs = 0x0014,
2189 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2190 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2191 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2192 .sysc_fields = &omap_hwmod_sysc_type1,
2193};
2194
Benoît Cousson0c668872012-04-19 13:33:55 -06002195static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2196 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06002197 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06002198};
2199
2200/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06002201static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2202 .name = "ocp2scp_usb_phy",
2203 .class = &omap44xx_ocp2scp_hwmod_class,
2204 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham If4d7a532013-04-10 19:41:38 +00002205 /*
2206 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2207 * block as an "optional clock," and normally should never be
2208 * specified as the main_clk for an OMAP IP block. However it
2209 * turns out that this clock is actually the main clock for
2210 * the ocp2scp_usb_phy IP block:
2211 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2212 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2213 * to be the best workaround.
2214 */
2215 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06002216 .prcm = {
2217 .omap4 = {
2218 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2219 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2220 .modulemode = MODULEMODE_HWCTRL,
2221 },
2222 },
Benoît Cousson0c668872012-04-19 13:33:55 -06002223};
2224
2225/*
Paul Walmsley794b4802012-04-19 13:33:58 -06002226 * 'prcm' class
2227 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2228 * + clock manager 1 (in always on power domain) + local prm in mpu
2229 */
2230
2231static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2232 .name = "prcm",
2233};
2234
2235/* prcm_mpu */
2236static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2237 .name = "prcm_mpu",
2238 .class = &omap44xx_prcm_hwmod_class,
2239 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06002240 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002241 .prcm = {
2242 .omap4 = {
2243 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2244 },
2245 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002246};
2247
2248/* cm_core_aon */
2249static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2250 .name = "cm_core_aon",
2251 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002252 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002253 .prcm = {
2254 .omap4 = {
2255 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2256 },
2257 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002258};
2259
2260/* cm_core */
2261static struct omap_hwmod omap44xx_cm_core_hwmod = {
2262 .name = "cm_core",
2263 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002264 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002265 .prcm = {
2266 .omap4 = {
2267 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2268 },
2269 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002270};
2271
2272/* prm */
Paul Walmsley794b4802012-04-19 13:33:58 -06002273static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2274 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2275 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2276};
2277
2278static struct omap_hwmod omap44xx_prm_hwmod = {
2279 .name = "prm",
2280 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06002281 .rst_lines = omap44xx_prm_resets,
2282 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2283};
2284
2285/*
2286 * 'scrm' class
2287 * system clock and reset manager
2288 */
2289
2290static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2291 .name = "scrm",
2292};
2293
2294/* scrm */
2295static struct omap_hwmod omap44xx_scrm_hwmod = {
2296 .name = "scrm",
2297 .class = &omap44xx_scrm_hwmod_class,
2298 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06002299 .prcm = {
2300 .omap4 = {
2301 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2302 },
2303 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002304};
2305
2306/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06002307 * 'sl2if' class
2308 * shared level 2 memory interface
2309 */
2310
2311static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2312 .name = "sl2if",
2313};
2314
2315/* sl2if */
2316static struct omap_hwmod omap44xx_sl2if_hwmod = {
2317 .name = "sl2if",
2318 .class = &omap44xx_sl2if_hwmod_class,
2319 .clkdm_name = "ivahd_clkdm",
2320 .prcm = {
2321 .omap4 = {
2322 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2323 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2324 .modulemode = MODULEMODE_HWCTRL,
2325 },
2326 },
2327};
2328
2329/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002330 * 'slimbus' class
2331 * bidirectional, multi-drop, multi-channel two-line serial interface between
2332 * the device and external components
2333 */
2334
2335static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2336 .rev_offs = 0x0000,
2337 .sysc_offs = 0x0010,
2338 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2339 SYSC_HAS_SOFTRESET),
2340 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2341 SIDLE_SMART_WKUP),
2342 .sysc_fields = &omap_hwmod_sysc_type2,
2343};
2344
2345static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2346 .name = "slimbus",
2347 .sysc = &omap44xx_slimbus_sysc,
2348};
2349
2350/* slimbus1 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002351static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2352 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2353 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2354 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2355 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2356};
2357
2358static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2359 .name = "slimbus1",
2360 .class = &omap44xx_slimbus_hwmod_class,
2361 .clkdm_name = "abe_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002362 .prcm = {
2363 .omap4 = {
2364 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2365 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2366 .modulemode = MODULEMODE_SWCTRL,
2367 },
2368 },
2369 .opt_clks = slimbus1_opt_clks,
2370 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2371};
2372
2373/* slimbus2 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002374static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2375 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2376 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2377 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2378};
2379
2380static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2381 .name = "slimbus2",
2382 .class = &omap44xx_slimbus_hwmod_class,
2383 .clkdm_name = "l4_per_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002384 .prcm = {
2385 .omap4 = {
2386 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2387 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2388 .modulemode = MODULEMODE_SWCTRL,
2389 },
2390 },
2391 .opt_clks = slimbus2_opt_clks,
2392 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2393};
2394
2395/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002396 * 'smartreflex' class
2397 * smartreflex module (monitor silicon performance and outputs a measure of
2398 * performance error)
2399 */
2400
2401/* The IP is not compliant to type1 / type2 scheme */
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002402static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2403 .sysc_offs = 0x0038,
2404 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2405 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2406 SIDLE_SMART_WKUP),
Tony Lindgrenbf807052017-12-15 09:41:01 -08002407 .sysc_fields = &omap36xx_sr_sysc_fields,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002408};
2409
2410static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002411 .name = "smartreflex",
2412 .sysc = &omap44xx_smartreflex_sysc,
2413 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002414};
2415
2416/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002417static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2418 .sensor_voltdm_name = "core",
2419};
2420
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002421static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2422 .name = "smartreflex_core",
2423 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002424 .clkdm_name = "l4_ao_clkdm",
Paul Walmsley212738a2011-07-09 19:14:06 -06002425
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002426 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002427 .prcm = {
2428 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002429 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002430 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002431 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002432 },
2433 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002434 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002435};
2436
2437/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002438static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2439 .sensor_voltdm_name = "iva",
2440};
2441
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002442static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2443 .name = "smartreflex_iva",
2444 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002445 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002446 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002447 .prcm = {
2448 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002449 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002450 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002451 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002452 },
2453 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002454 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002455};
2456
2457/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002458static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2459 .sensor_voltdm_name = "mpu",
2460};
2461
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002462static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2463 .name = "smartreflex_mpu",
2464 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002465 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002466 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002467 .prcm = {
2468 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002469 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002470 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002471 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002472 },
2473 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002474 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002475};
2476
2477/*
Benoit Coussond11c2172011-02-02 12:04:36 +00002478 * 'spinlock' class
2479 * spinlock provides hardware assistance for synchronizing the processes
2480 * running on multiple processors
2481 */
2482
2483static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2484 .rev_offs = 0x0000,
2485 .sysc_offs = 0x0010,
2486 .syss_offs = 0x0014,
2487 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2488 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2489 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Suman Anna77319662013-12-23 16:48:48 -06002490 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Benoit Coussond11c2172011-02-02 12:04:36 +00002491 .sysc_fields = &omap_hwmod_sysc_type1,
2492};
2493
2494static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2495 .name = "spinlock",
2496 .sysc = &omap44xx_spinlock_sysc,
2497};
2498
2499/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00002500static struct omap_hwmod omap44xx_spinlock_hwmod = {
2501 .name = "spinlock",
2502 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002503 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00002504 .prcm = {
2505 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002506 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002507 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00002508 },
2509 },
Benoit Coussond11c2172011-02-02 12:04:36 +00002510};
2511
2512/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00002513 * 'timer' class
2514 * general purpose timer module with accurate 1ms tick
2515 * This class contains several variants: ['timer_1ms', 'timer']
2516 */
2517
2518static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2519 .rev_offs = 0x0000,
2520 .sysc_offs = 0x0010,
2521 .syss_offs = 0x0014,
2522 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2523 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2524 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2525 SYSS_HAS_RESET_STATUS),
2526 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2527 .sysc_fields = &omap_hwmod_sysc_type1,
2528};
2529
2530static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2531 .name = "timer",
2532 .sysc = &omap44xx_timer_1ms_sysc,
2533};
2534
2535static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2536 .rev_offs = 0x0000,
2537 .sysc_offs = 0x0010,
2538 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2539 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2540 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2541 SIDLE_SMART_WKUP),
2542 .sysc_fields = &omap_hwmod_sysc_type2,
2543};
2544
2545static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2546 .name = "timer",
2547 .sysc = &omap44xx_timer_sysc,
2548};
2549
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302550/* always-on timers dev attribute */
2551static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
2552 .timer_capability = OMAP_TIMER_ALWON,
2553};
2554
2555/* pwm timers dev attribute */
2556static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
2557 .timer_capability = OMAP_TIMER_HAS_PWM,
2558};
2559
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002560/* timers with DSP interrupt dev attribute */
2561static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
2562 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
2563};
2564
2565/* pwm timers with DSP interrupt dev attribute */
2566static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
2567 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
2568};
2569
Benoit Cousson35d1a662011-02-11 11:17:14 +00002570/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002571static struct omap_hwmod omap44xx_timer1_hwmod = {
2572 .name = "timer1",
2573 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002574 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002575 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002576 .main_clk = "dmt1_clk_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002577 .prcm = {
2578 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002579 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002580 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002581 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002582 },
2583 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302584 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002585};
2586
2587/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002588static struct omap_hwmod omap44xx_timer2_hwmod = {
2589 .name = "timer2",
2590 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002591 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002592 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002593 .main_clk = "cm2_dm2_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002594 .prcm = {
2595 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002596 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002597 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002598 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002599 },
2600 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002601};
2602
2603/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002604static struct omap_hwmod omap44xx_timer3_hwmod = {
2605 .name = "timer3",
2606 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002607 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002608 .main_clk = "cm2_dm3_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002609 .prcm = {
2610 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002611 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002612 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002613 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002614 },
2615 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002616};
2617
2618/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002619static struct omap_hwmod omap44xx_timer4_hwmod = {
2620 .name = "timer4",
2621 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002622 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002623 .main_clk = "cm2_dm4_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002624 .prcm = {
2625 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002626 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002627 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002628 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002629 },
2630 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002631};
2632
2633/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002634static struct omap_hwmod omap44xx_timer5_hwmod = {
2635 .name = "timer5",
2636 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002637 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002638 .main_clk = "timer5_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002639 .prcm = {
2640 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002641 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002642 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002643 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002644 },
2645 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002646 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002647};
2648
2649/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002650static struct omap_hwmod omap44xx_timer6_hwmod = {
2651 .name = "timer6",
2652 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002653 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002654 .main_clk = "timer6_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002655 .prcm = {
2656 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002657 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002658 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002659 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002660 },
2661 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002662 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002663};
2664
2665/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002666static struct omap_hwmod omap44xx_timer7_hwmod = {
2667 .name = "timer7",
2668 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002669 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002670 .main_clk = "timer7_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002671 .prcm = {
2672 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002673 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002674 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002675 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002676 },
2677 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002678 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002679};
2680
2681/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002682static struct omap_hwmod omap44xx_timer8_hwmod = {
2683 .name = "timer8",
2684 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002685 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002686 .main_clk = "timer8_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002687 .prcm = {
2688 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002689 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002690 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002691 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002692 },
2693 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002694 .dev_attr = &capability_dsp_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002695};
2696
2697/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002698static struct omap_hwmod omap44xx_timer9_hwmod = {
2699 .name = "timer9",
2700 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002701 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002702 .main_clk = "cm2_dm9_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002703 .prcm = {
2704 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002705 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002706 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002707 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002708 },
2709 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302710 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002711};
2712
2713/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002714static struct omap_hwmod omap44xx_timer10_hwmod = {
2715 .name = "timer10",
2716 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002717 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002718 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002719 .main_clk = "cm2_dm10_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002720 .prcm = {
2721 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002722 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002723 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002724 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002725 },
2726 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302727 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002728};
2729
2730/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002731static struct omap_hwmod omap44xx_timer11_hwmod = {
2732 .name = "timer11",
2733 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002734 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002735 .main_clk = "cm2_dm11_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002736 .prcm = {
2737 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002738 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002739 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002740 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002741 },
2742 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302743 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002744};
2745
2746/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05302747 * 'uart' class
2748 * universal asynchronous receiver/transmitter (uart)
2749 */
2750
2751static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2752 .rev_offs = 0x0050,
2753 .sysc_offs = 0x0054,
2754 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002755 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002756 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2757 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002758 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2759 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05302760 .sysc_fields = &omap_hwmod_sysc_type1,
2761};
2762
2763static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002764 .name = "uart",
2765 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302766};
2767
2768/* uart1 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302769static struct omap_hwmod omap44xx_uart1_hwmod = {
2770 .name = "uart1",
2771 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002772 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302773 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002774 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302775 .prcm = {
2776 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002777 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002778 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002779 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302780 },
2781 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302782};
2783
2784/* uart2 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302785static struct omap_hwmod omap44xx_uart2_hwmod = {
2786 .name = "uart2",
2787 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002788 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302789 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002790 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302791 .prcm = {
2792 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002793 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002794 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002795 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302796 },
2797 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302798};
2799
2800/* uart3 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302801static struct omap_hwmod omap44xx_uart3_hwmod = {
2802 .name = "uart3",
2803 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002804 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002805 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002806 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302807 .prcm = {
2808 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002809 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002810 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002811 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302812 },
2813 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302814};
2815
2816/* uart4 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302817static struct omap_hwmod omap44xx_uart4_hwmod = {
2818 .name = "uart4",
2819 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002820 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002821 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002822 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302823 .prcm = {
2824 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002825 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002826 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002827 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302828 },
2829 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302830};
2831
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002832/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002833 * 'usb_host_fs' class
2834 * full-speed usb host controller
2835 */
2836
2837/* The IP is not compliant to type1 / type2 scheme */
Benoît Cousson0c668872012-04-19 13:33:55 -06002838static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2839 .rev_offs = 0x0000,
2840 .sysc_offs = 0x0210,
2841 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2842 SYSC_HAS_SOFTRESET),
2843 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2844 SIDLE_SMART_WKUP),
2845 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2846};
2847
2848static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2849 .name = "usb_host_fs",
2850 .sysc = &omap44xx_usb_host_fs_sysc,
2851};
2852
2853/* usb_host_fs */
Benoît Cousson0c668872012-04-19 13:33:55 -06002854static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2855 .name = "usb_host_fs",
2856 .class = &omap44xx_usb_host_fs_hwmod_class,
2857 .clkdm_name = "l3_init_clkdm",
Benoît Cousson0c668872012-04-19 13:33:55 -06002858 .main_clk = "usb_host_fs_fck",
2859 .prcm = {
2860 .omap4 = {
2861 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2862 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2863 .modulemode = MODULEMODE_SWCTRL,
2864 },
2865 },
2866};
2867
2868/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002869 * 'usb_host_hs' class
2870 * high-speed multi-port usb host controller
2871 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002872
2873static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2874 .rev_offs = 0x0000,
2875 .sysc_offs = 0x0010,
2876 .syss_offs = 0x0014,
2877 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002878 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002879 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2880 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2881 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2882 .sysc_fields = &omap_hwmod_sysc_type2,
2883};
2884
2885static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002886 .name = "usb_host_hs",
2887 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002888};
2889
Paul Walmsley844a3b62012-04-19 04:04:33 -06002890/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002891static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2892 .name = "usb_host_hs",
2893 .class = &omap44xx_usb_host_hs_hwmod_class,
2894 .clkdm_name = "l3_init_clkdm",
2895 .main_clk = "usb_host_hs_fck",
2896 .prcm = {
2897 .omap4 = {
2898 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2899 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2900 .modulemode = MODULEMODE_SWCTRL,
2901 },
2902 },
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002903
2904 /*
2905 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2906 * id: i660
2907 *
2908 * Description:
2909 * In the following configuration :
2910 * - USBHOST module is set to smart-idle mode
2911 * - PRCM asserts idle_req to the USBHOST module ( This typically
2912 * happens when the system is going to a low power mode : all ports
2913 * have been suspended, the master part of the USBHOST module has
2914 * entered the standby state, and SW has cut the functional clocks)
2915 * - an USBHOST interrupt occurs before the module is able to answer
2916 * idle_ack, typically a remote wakeup IRQ.
2917 * Then the USB HOST module will enter a deadlock situation where it
2918 * is no more accessible nor functional.
2919 *
2920 * Workaround:
2921 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2922 */
2923
2924 /*
2925 * Errata: USB host EHCI may stall when entering smart-standby mode
2926 * Id: i571
2927 *
2928 * Description:
2929 * When the USBHOST module is set to smart-standby mode, and when it is
2930 * ready to enter the standby state (i.e. all ports are suspended and
2931 * all attached devices are in suspend mode), then it can wrongly assert
2932 * the Mstandby signal too early while there are still some residual OCP
2933 * transactions ongoing. If this condition occurs, the internal state
2934 * machine may go to an undefined state and the USB link may be stuck
2935 * upon the next resume.
2936 *
2937 * Workaround:
2938 * Don't use smart standby; use only force standby,
2939 * hence HWMOD_SWSUP_MSTANDBY
2940 */
2941
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002942 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002943};
2944
2945/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06002946 * 'usb_otg_hs' class
2947 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
2948 */
2949
2950static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
2951 .rev_offs = 0x0400,
2952 .sysc_offs = 0x0404,
2953 .syss_offs = 0x0408,
2954 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2955 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2956 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2957 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2958 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2959 MSTANDBY_SMART),
2960 .sysc_fields = &omap_hwmod_sysc_type1,
2961};
2962
2963static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
2964 .name = "usb_otg_hs",
2965 .sysc = &omap44xx_usb_otg_hs_sysc,
2966};
2967
2968/* usb_otg_hs */
Paul Walmsley844a3b62012-04-19 04:04:33 -06002969static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
2970 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
2971};
2972
2973static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
2974 .name = "usb_otg_hs",
2975 .class = &omap44xx_usb_otg_hs_hwmod_class,
2976 .clkdm_name = "l3_init_clkdm",
2977 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Paul Walmsley844a3b62012-04-19 04:04:33 -06002978 .main_clk = "usb_otg_hs_ick",
2979 .prcm = {
2980 .omap4 = {
2981 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
2982 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
2983 .modulemode = MODULEMODE_HWCTRL,
2984 },
2985 },
2986 .opt_clks = usb_otg_hs_opt_clks,
2987 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
2988};
2989
2990/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002991 * 'usb_tll_hs' class
2992 * usb_tll_hs module is the adapter on the usb_host_hs ports
2993 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06002994
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002995static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
2996 .rev_offs = 0x0000,
2997 .sysc_offs = 0x0010,
2998 .syss_offs = 0x0014,
2999 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3000 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3001 SYSC_HAS_AUTOIDLE),
3002 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3003 .sysc_fields = &omap_hwmod_sysc_type1,
3004};
3005
3006static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003007 .name = "usb_tll_hs",
3008 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003009};
3010
Paul Walmsley844a3b62012-04-19 04:04:33 -06003011static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3012 .name = "usb_tll_hs",
3013 .class = &omap44xx_usb_tll_hs_hwmod_class,
3014 .clkdm_name = "l3_init_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003015 .main_clk = "usb_tll_hs_ick",
3016 .prcm = {
3017 .omap4 = {
3018 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3019 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3020 .modulemode = MODULEMODE_HWCTRL,
3021 },
3022 },
3023};
3024
3025/*
3026 * 'wd_timer' class
3027 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3028 * overflow condition
3029 */
3030
3031static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3032 .rev_offs = 0x0000,
3033 .sysc_offs = 0x0010,
3034 .syss_offs = 0x0014,
3035 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3036 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3037 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3038 SIDLE_SMART_WKUP),
3039 .sysc_fields = &omap_hwmod_sysc_type1,
3040};
3041
3042static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3043 .name = "wd_timer",
3044 .sysc = &omap44xx_wd_timer_sysc,
3045 .pre_shutdown = &omap2_wd_timer_disable,
Kevin Hilman414e4122012-05-08 11:34:30 -06003046 .reset = &omap2_wd_timer_reset,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003047};
3048
3049/* wd_timer2 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003050static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3051 .name = "wd_timer2",
3052 .class = &omap44xx_wd_timer_hwmod_class,
3053 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003054 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003055 .prcm = {
3056 .omap4 = {
3057 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3058 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3059 .modulemode = MODULEMODE_SWCTRL,
3060 },
3061 },
3062};
3063
3064/* wd_timer3 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003065static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3066 .name = "wd_timer3",
3067 .class = &omap44xx_wd_timer_hwmod_class,
3068 .clkdm_name = "abe_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003069 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003070 .prcm = {
3071 .omap4 = {
3072 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3073 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3074 .modulemode = MODULEMODE_SWCTRL,
3075 },
3076 },
3077};
3078
3079
3080/*
3081 * interfaces
3082 */
3083
3084/* l3_main_1 -> dmm */
3085static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3086 .master = &omap44xx_l3_main_1_hwmod,
3087 .slave = &omap44xx_dmm_hwmod,
3088 .clk = "l3_div_ck",
3089 .user = OCP_USER_SDMA,
3090};
3091
Paul Walmsley844a3b62012-04-19 04:04:33 -06003092/* mpu -> dmm */
3093static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3094 .master = &omap44xx_mpu_hwmod,
3095 .slave = &omap44xx_dmm_hwmod,
3096 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003097 .user = OCP_USER_MPU,
3098};
3099
3100/* iva -> l3_instr */
3101static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3102 .master = &omap44xx_iva_hwmod,
3103 .slave = &omap44xx_l3_instr_hwmod,
3104 .clk = "l3_div_ck",
3105 .user = OCP_USER_MPU | OCP_USER_SDMA,
3106};
3107
3108/* l3_main_3 -> l3_instr */
3109static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3110 .master = &omap44xx_l3_main_3_hwmod,
3111 .slave = &omap44xx_l3_instr_hwmod,
3112 .clk = "l3_div_ck",
3113 .user = OCP_USER_MPU | OCP_USER_SDMA,
3114};
3115
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003116/* ocp_wp_noc -> l3_instr */
3117static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3118 .master = &omap44xx_ocp_wp_noc_hwmod,
3119 .slave = &omap44xx_l3_instr_hwmod,
3120 .clk = "l3_div_ck",
3121 .user = OCP_USER_MPU | OCP_USER_SDMA,
3122};
3123
Paul Walmsley844a3b62012-04-19 04:04:33 -06003124/* dsp -> l3_main_1 */
3125static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3126 .master = &omap44xx_dsp_hwmod,
3127 .slave = &omap44xx_l3_main_1_hwmod,
3128 .clk = "l3_div_ck",
3129 .user = OCP_USER_MPU | OCP_USER_SDMA,
3130};
3131
3132/* dss -> l3_main_1 */
3133static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3134 .master = &omap44xx_dss_hwmod,
3135 .slave = &omap44xx_l3_main_1_hwmod,
3136 .clk = "l3_div_ck",
3137 .user = OCP_USER_MPU | OCP_USER_SDMA,
3138};
3139
3140/* l3_main_2 -> l3_main_1 */
3141static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3142 .master = &omap44xx_l3_main_2_hwmod,
3143 .slave = &omap44xx_l3_main_1_hwmod,
3144 .clk = "l3_div_ck",
3145 .user = OCP_USER_MPU | OCP_USER_SDMA,
3146};
3147
3148/* l4_cfg -> l3_main_1 */
3149static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3150 .master = &omap44xx_l4_cfg_hwmod,
3151 .slave = &omap44xx_l3_main_1_hwmod,
3152 .clk = "l4_div_ck",
3153 .user = OCP_USER_MPU | OCP_USER_SDMA,
3154};
3155
3156/* mmc1 -> l3_main_1 */
3157static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3158 .master = &omap44xx_mmc1_hwmod,
3159 .slave = &omap44xx_l3_main_1_hwmod,
3160 .clk = "l3_div_ck",
3161 .user = OCP_USER_MPU | OCP_USER_SDMA,
3162};
3163
3164/* mmc2 -> l3_main_1 */
3165static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3166 .master = &omap44xx_mmc2_hwmod,
3167 .slave = &omap44xx_l3_main_1_hwmod,
3168 .clk = "l3_div_ck",
3169 .user = OCP_USER_MPU | OCP_USER_SDMA,
3170};
3171
Paul Walmsley844a3b62012-04-19 04:04:33 -06003172/* mpu -> l3_main_1 */
3173static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3174 .master = &omap44xx_mpu_hwmod,
3175 .slave = &omap44xx_l3_main_1_hwmod,
3176 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003177 .user = OCP_USER_MPU,
3178};
3179
Benoît Cousson96566042012-04-19 13:33:59 -06003180/* debugss -> l3_main_2 */
3181static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3182 .master = &omap44xx_debugss_hwmod,
3183 .slave = &omap44xx_l3_main_2_hwmod,
3184 .clk = "dbgclk_mux_ck",
3185 .user = OCP_USER_MPU | OCP_USER_SDMA,
3186};
3187
Paul Walmsley844a3b62012-04-19 04:04:33 -06003188/* dma_system -> l3_main_2 */
3189static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3190 .master = &omap44xx_dma_system_hwmod,
3191 .slave = &omap44xx_l3_main_2_hwmod,
3192 .clk = "l3_div_ck",
3193 .user = OCP_USER_MPU | OCP_USER_SDMA,
3194};
3195
Ming Leib050f682012-04-19 13:33:50 -06003196/* fdif -> l3_main_2 */
3197static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3198 .master = &omap44xx_fdif_hwmod,
3199 .slave = &omap44xx_l3_main_2_hwmod,
3200 .clk = "l3_div_ck",
3201 .user = OCP_USER_MPU | OCP_USER_SDMA,
3202};
3203
Paul Walmsley9def3902012-04-19 13:33:53 -06003204/* gpu -> l3_main_2 */
3205static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3206 .master = &omap44xx_gpu_hwmod,
3207 .slave = &omap44xx_l3_main_2_hwmod,
3208 .clk = "l3_div_ck",
3209 .user = OCP_USER_MPU | OCP_USER_SDMA,
3210};
3211
Paul Walmsley844a3b62012-04-19 04:04:33 -06003212/* hsi -> l3_main_2 */
3213static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3214 .master = &omap44xx_hsi_hwmod,
3215 .slave = &omap44xx_l3_main_2_hwmod,
3216 .clk = "l3_div_ck",
3217 .user = OCP_USER_MPU | OCP_USER_SDMA,
3218};
3219
3220/* ipu -> l3_main_2 */
3221static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3222 .master = &omap44xx_ipu_hwmod,
3223 .slave = &omap44xx_l3_main_2_hwmod,
3224 .clk = "l3_div_ck",
3225 .user = OCP_USER_MPU | OCP_USER_SDMA,
3226};
3227
3228/* iss -> l3_main_2 */
3229static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3230 .master = &omap44xx_iss_hwmod,
3231 .slave = &omap44xx_l3_main_2_hwmod,
3232 .clk = "l3_div_ck",
3233 .user = OCP_USER_MPU | OCP_USER_SDMA,
3234};
3235
3236/* iva -> l3_main_2 */
3237static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3238 .master = &omap44xx_iva_hwmod,
3239 .slave = &omap44xx_l3_main_2_hwmod,
3240 .clk = "l3_div_ck",
3241 .user = OCP_USER_MPU | OCP_USER_SDMA,
3242};
3243
Paul Walmsley844a3b62012-04-19 04:04:33 -06003244/* l3_main_1 -> l3_main_2 */
3245static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3246 .master = &omap44xx_l3_main_1_hwmod,
3247 .slave = &omap44xx_l3_main_2_hwmod,
3248 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003249 .user = OCP_USER_MPU,
3250};
3251
3252/* l4_cfg -> l3_main_2 */
3253static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3254 .master = &omap44xx_l4_cfg_hwmod,
3255 .slave = &omap44xx_l3_main_2_hwmod,
3256 .clk = "l4_div_ck",
3257 .user = OCP_USER_MPU | OCP_USER_SDMA,
3258};
3259
Benoît Cousson0c668872012-04-19 13:33:55 -06003260/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003261static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06003262 .master = &omap44xx_usb_host_fs_hwmod,
3263 .slave = &omap44xx_l3_main_2_hwmod,
3264 .clk = "l3_div_ck",
3265 .user = OCP_USER_MPU | OCP_USER_SDMA,
3266};
3267
Paul Walmsley844a3b62012-04-19 04:04:33 -06003268/* usb_host_hs -> l3_main_2 */
3269static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3270 .master = &omap44xx_usb_host_hs_hwmod,
3271 .slave = &omap44xx_l3_main_2_hwmod,
3272 .clk = "l3_div_ck",
3273 .user = OCP_USER_MPU | OCP_USER_SDMA,
3274};
3275
3276/* usb_otg_hs -> l3_main_2 */
3277static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3278 .master = &omap44xx_usb_otg_hs_hwmod,
3279 .slave = &omap44xx_l3_main_2_hwmod,
3280 .clk = "l3_div_ck",
3281 .user = OCP_USER_MPU | OCP_USER_SDMA,
3282};
3283
Paul Walmsley844a3b62012-04-19 04:04:33 -06003284/* l3_main_1 -> l3_main_3 */
3285static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3286 .master = &omap44xx_l3_main_1_hwmod,
3287 .slave = &omap44xx_l3_main_3_hwmod,
3288 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003289 .user = OCP_USER_MPU,
3290};
3291
3292/* l3_main_2 -> l3_main_3 */
3293static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3294 .master = &omap44xx_l3_main_2_hwmod,
3295 .slave = &omap44xx_l3_main_3_hwmod,
3296 .clk = "l3_div_ck",
3297 .user = OCP_USER_MPU | OCP_USER_SDMA,
3298};
3299
3300/* l4_cfg -> l3_main_3 */
3301static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3302 .master = &omap44xx_l4_cfg_hwmod,
3303 .slave = &omap44xx_l3_main_3_hwmod,
3304 .clk = "l4_div_ck",
3305 .user = OCP_USER_MPU | OCP_USER_SDMA,
3306};
3307
3308/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003309static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003310 .master = &omap44xx_aess_hwmod,
3311 .slave = &omap44xx_l4_abe_hwmod,
3312 .clk = "ocp_abe_iclk",
3313 .user = OCP_USER_MPU | OCP_USER_SDMA,
3314};
3315
3316/* dsp -> l4_abe */
3317static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3318 .master = &omap44xx_dsp_hwmod,
3319 .slave = &omap44xx_l4_abe_hwmod,
3320 .clk = "ocp_abe_iclk",
3321 .user = OCP_USER_MPU | OCP_USER_SDMA,
3322};
3323
3324/* l3_main_1 -> l4_abe */
3325static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3326 .master = &omap44xx_l3_main_1_hwmod,
3327 .slave = &omap44xx_l4_abe_hwmod,
3328 .clk = "l3_div_ck",
3329 .user = OCP_USER_MPU | OCP_USER_SDMA,
3330};
3331
3332/* mpu -> l4_abe */
3333static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3334 .master = &omap44xx_mpu_hwmod,
3335 .slave = &omap44xx_l4_abe_hwmod,
3336 .clk = "ocp_abe_iclk",
3337 .user = OCP_USER_MPU | OCP_USER_SDMA,
3338};
3339
3340/* l3_main_1 -> l4_cfg */
3341static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3342 .master = &omap44xx_l3_main_1_hwmod,
3343 .slave = &omap44xx_l4_cfg_hwmod,
3344 .clk = "l3_div_ck",
3345 .user = OCP_USER_MPU | OCP_USER_SDMA,
3346};
3347
3348/* l3_main_2 -> l4_per */
3349static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3350 .master = &omap44xx_l3_main_2_hwmod,
3351 .slave = &omap44xx_l4_per_hwmod,
3352 .clk = "l3_div_ck",
3353 .user = OCP_USER_MPU | OCP_USER_SDMA,
3354};
3355
3356/* l4_cfg -> l4_wkup */
3357static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3358 .master = &omap44xx_l4_cfg_hwmod,
3359 .slave = &omap44xx_l4_wkup_hwmod,
3360 .clk = "l4_div_ck",
3361 .user = OCP_USER_MPU | OCP_USER_SDMA,
3362};
3363
3364/* mpu -> mpu_private */
3365static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3366 .master = &omap44xx_mpu_hwmod,
3367 .slave = &omap44xx_mpu_private_hwmod,
3368 .clk = "l3_div_ck",
3369 .user = OCP_USER_MPU | OCP_USER_SDMA,
3370};
3371
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003372/* l4_cfg -> ocp_wp_noc */
3373static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3374 .master = &omap44xx_l4_cfg_hwmod,
3375 .slave = &omap44xx_ocp_wp_noc_hwmod,
3376 .clk = "l4_div_ck",
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003377 .user = OCP_USER_MPU | OCP_USER_SDMA,
3378};
3379
Paul Walmsley844a3b62012-04-19 04:04:33 -06003380/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003381static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003382 .master = &omap44xx_l4_abe_hwmod,
3383 .slave = &omap44xx_aess_hwmod,
3384 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003385 .user = OCP_USER_MPU,
3386};
3387
Paul Walmsley844a3b62012-04-19 04:04:33 -06003388/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003389static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003390 .master = &omap44xx_l4_abe_hwmod,
3391 .slave = &omap44xx_aess_hwmod,
3392 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003393 .user = OCP_USER_SDMA,
3394};
3395
Paul Walmsley42b9e382012-04-19 13:33:54 -06003396/* l3_main_2 -> c2c */
3397static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3398 .master = &omap44xx_l3_main_2_hwmod,
3399 .slave = &omap44xx_c2c_hwmod,
3400 .clk = "l3_div_ck",
3401 .user = OCP_USER_MPU | OCP_USER_SDMA,
3402};
3403
Paul Walmsley844a3b62012-04-19 04:04:33 -06003404/* l4_wkup -> counter_32k */
3405static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3406 .master = &omap44xx_l4_wkup_hwmod,
3407 .slave = &omap44xx_counter_32k_hwmod,
3408 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003409 .user = OCP_USER_MPU | OCP_USER_SDMA,
3410};
3411
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003412/* l4_cfg -> ctrl_module_core */
3413static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3414 .master = &omap44xx_l4_cfg_hwmod,
3415 .slave = &omap44xx_ctrl_module_core_hwmod,
3416 .clk = "l4_div_ck",
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003417 .user = OCP_USER_MPU | OCP_USER_SDMA,
3418};
3419
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003420/* l4_cfg -> ctrl_module_pad_core */
3421static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3422 .master = &omap44xx_l4_cfg_hwmod,
3423 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3424 .clk = "l4_div_ck",
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003425 .user = OCP_USER_MPU | OCP_USER_SDMA,
3426};
3427
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003428/* l4_wkup -> ctrl_module_wkup */
3429static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3430 .master = &omap44xx_l4_wkup_hwmod,
3431 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3432 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003433 .user = OCP_USER_MPU | OCP_USER_SDMA,
3434};
3435
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003436/* l4_wkup -> ctrl_module_pad_wkup */
3437static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3438 .master = &omap44xx_l4_wkup_hwmod,
3439 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3440 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003441 .user = OCP_USER_MPU | OCP_USER_SDMA,
3442};
3443
Benoît Cousson96566042012-04-19 13:33:59 -06003444/* l3_instr -> debugss */
3445static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3446 .master = &omap44xx_l3_instr_hwmod,
3447 .slave = &omap44xx_debugss_hwmod,
3448 .clk = "l3_div_ck",
Benoît Cousson96566042012-04-19 13:33:59 -06003449 .user = OCP_USER_MPU | OCP_USER_SDMA,
3450};
3451
Paul Walmsley844a3b62012-04-19 04:04:33 -06003452/* l4_cfg -> dma_system */
3453static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3454 .master = &omap44xx_l4_cfg_hwmod,
3455 .slave = &omap44xx_dma_system_hwmod,
3456 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003457 .user = OCP_USER_MPU | OCP_USER_SDMA,
3458};
3459
Paul Walmsley844a3b62012-04-19 04:04:33 -06003460/* l4_abe -> dmic */
3461static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3462 .master = &omap44xx_l4_abe_hwmod,
3463 .slave = &omap44xx_dmic_hwmod,
3464 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003465 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003466};
3467
3468/* dsp -> iva */
3469static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3470 .master = &omap44xx_dsp_hwmod,
3471 .slave = &omap44xx_iva_hwmod,
3472 .clk = "dpll_iva_m5x2_ck",
3473 .user = OCP_USER_DSP,
3474};
3475
Paul Walmsley42b9e382012-04-19 13:33:54 -06003476/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003477static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003478 .master = &omap44xx_dsp_hwmod,
3479 .slave = &omap44xx_sl2if_hwmod,
3480 .clk = "dpll_iva_m5x2_ck",
3481 .user = OCP_USER_DSP,
3482};
3483
Paul Walmsley844a3b62012-04-19 04:04:33 -06003484/* l4_cfg -> dsp */
3485static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3486 .master = &omap44xx_l4_cfg_hwmod,
3487 .slave = &omap44xx_dsp_hwmod,
3488 .clk = "l4_div_ck",
3489 .user = OCP_USER_MPU | OCP_USER_SDMA,
3490};
3491
Paul Walmsley844a3b62012-04-19 04:04:33 -06003492/* l3_main_2 -> dss */
3493static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3494 .master = &omap44xx_l3_main_2_hwmod,
3495 .slave = &omap44xx_dss_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003496 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003497 .user = OCP_USER_SDMA,
3498};
3499
Paul Walmsley844a3b62012-04-19 04:04:33 -06003500/* l4_per -> dss */
3501static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3502 .master = &omap44xx_l4_per_hwmod,
3503 .slave = &omap44xx_dss_hwmod,
3504 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003505 .user = OCP_USER_MPU,
3506};
3507
Paul Walmsley844a3b62012-04-19 04:04:33 -06003508/* l3_main_2 -> dss_dispc */
3509static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3510 .master = &omap44xx_l3_main_2_hwmod,
3511 .slave = &omap44xx_dss_dispc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003512 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003513 .user = OCP_USER_SDMA,
3514};
3515
Paul Walmsley844a3b62012-04-19 04:04:33 -06003516/* l4_per -> dss_dispc */
3517static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3518 .master = &omap44xx_l4_per_hwmod,
3519 .slave = &omap44xx_dss_dispc_hwmod,
3520 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003521 .user = OCP_USER_MPU,
3522};
3523
Paul Walmsley844a3b62012-04-19 04:04:33 -06003524/* l3_main_2 -> dss_dsi1 */
3525static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3526 .master = &omap44xx_l3_main_2_hwmod,
3527 .slave = &omap44xx_dss_dsi1_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003528 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003529 .user = OCP_USER_SDMA,
3530};
3531
Paul Walmsley844a3b62012-04-19 04:04:33 -06003532/* l4_per -> dss_dsi1 */
3533static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3534 .master = &omap44xx_l4_per_hwmod,
3535 .slave = &omap44xx_dss_dsi1_hwmod,
3536 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003537 .user = OCP_USER_MPU,
3538};
3539
Paul Walmsley844a3b62012-04-19 04:04:33 -06003540/* l3_main_2 -> dss_dsi2 */
3541static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3542 .master = &omap44xx_l3_main_2_hwmod,
3543 .slave = &omap44xx_dss_dsi2_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003544 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003545 .user = OCP_USER_SDMA,
3546};
3547
Paul Walmsley844a3b62012-04-19 04:04:33 -06003548/* l4_per -> dss_dsi2 */
3549static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3550 .master = &omap44xx_l4_per_hwmod,
3551 .slave = &omap44xx_dss_dsi2_hwmod,
3552 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003553 .user = OCP_USER_MPU,
3554};
3555
Paul Walmsley844a3b62012-04-19 04:04:33 -06003556/* l3_main_2 -> dss_hdmi */
3557static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3558 .master = &omap44xx_l3_main_2_hwmod,
3559 .slave = &omap44xx_dss_hdmi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003560 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003561 .user = OCP_USER_SDMA,
3562};
3563
Paul Walmsley844a3b62012-04-19 04:04:33 -06003564/* l4_per -> dss_hdmi */
3565static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3566 .master = &omap44xx_l4_per_hwmod,
3567 .slave = &omap44xx_dss_hdmi_hwmod,
3568 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003569 .user = OCP_USER_MPU,
3570};
3571
Paul Walmsley844a3b62012-04-19 04:04:33 -06003572/* l3_main_2 -> dss_rfbi */
3573static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3574 .master = &omap44xx_l3_main_2_hwmod,
3575 .slave = &omap44xx_dss_rfbi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003576 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003577 .user = OCP_USER_SDMA,
3578};
3579
Paul Walmsley844a3b62012-04-19 04:04:33 -06003580/* l4_per -> dss_rfbi */
3581static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3582 .master = &omap44xx_l4_per_hwmod,
3583 .slave = &omap44xx_dss_rfbi_hwmod,
3584 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003585 .user = OCP_USER_MPU,
3586};
3587
Paul Walmsley844a3b62012-04-19 04:04:33 -06003588/* l3_main_2 -> dss_venc */
3589static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3590 .master = &omap44xx_l3_main_2_hwmod,
3591 .slave = &omap44xx_dss_venc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003592 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003593 .user = OCP_USER_SDMA,
3594};
3595
Paul Walmsley844a3b62012-04-19 04:04:33 -06003596/* l4_per -> dss_venc */
3597static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3598 .master = &omap44xx_l4_per_hwmod,
3599 .slave = &omap44xx_dss_venc_hwmod,
3600 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003601 .user = OCP_USER_MPU,
3602};
3603
Tero Kristo1df5eaa2017-06-13 16:45:50 +03003604/* l3_main_2 -> sham */
3605static struct omap_hwmod_ocp_if omap44xx_l3_main_2__sha0 = {
3606 .master = &omap44xx_l3_main_2_hwmod,
3607 .slave = &omap44xx_sha0_hwmod,
3608 .clk = "l3_div_ck",
3609 .user = OCP_USER_MPU | OCP_USER_SDMA,
3610};
3611
Paul Walmsley42b9e382012-04-19 13:33:54 -06003612/* l4_per -> elm */
3613static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3614 .master = &omap44xx_l4_per_hwmod,
3615 .slave = &omap44xx_elm_hwmod,
3616 .clk = "l4_div_ck",
Paul Walmsley42b9e382012-04-19 13:33:54 -06003617 .user = OCP_USER_MPU | OCP_USER_SDMA,
3618};
3619
Ming Leib050f682012-04-19 13:33:50 -06003620/* l4_cfg -> fdif */
3621static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3622 .master = &omap44xx_l4_cfg_hwmod,
3623 .slave = &omap44xx_fdif_hwmod,
3624 .clk = "l4_div_ck",
Ming Leib050f682012-04-19 13:33:50 -06003625 .user = OCP_USER_MPU | OCP_USER_SDMA,
3626};
3627
Paul Walmsley844a3b62012-04-19 04:04:33 -06003628/* l4_wkup -> gpio1 */
3629static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3630 .master = &omap44xx_l4_wkup_hwmod,
3631 .slave = &omap44xx_gpio1_hwmod,
3632 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003633 .user = OCP_USER_MPU | OCP_USER_SDMA,
3634};
3635
Paul Walmsley844a3b62012-04-19 04:04:33 -06003636/* l4_per -> gpio2 */
3637static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3638 .master = &omap44xx_l4_per_hwmod,
3639 .slave = &omap44xx_gpio2_hwmod,
3640 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003641 .user = OCP_USER_MPU | OCP_USER_SDMA,
3642};
3643
Paul Walmsley844a3b62012-04-19 04:04:33 -06003644/* l4_per -> gpio3 */
3645static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3646 .master = &omap44xx_l4_per_hwmod,
3647 .slave = &omap44xx_gpio3_hwmod,
3648 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003649 .user = OCP_USER_MPU | OCP_USER_SDMA,
3650};
3651
Paul Walmsley844a3b62012-04-19 04:04:33 -06003652/* l4_per -> gpio4 */
3653static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
3654 .master = &omap44xx_l4_per_hwmod,
3655 .slave = &omap44xx_gpio4_hwmod,
3656 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003657 .user = OCP_USER_MPU | OCP_USER_SDMA,
3658};
3659
Paul Walmsley844a3b62012-04-19 04:04:33 -06003660/* l4_per -> gpio5 */
3661static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
3662 .master = &omap44xx_l4_per_hwmod,
3663 .slave = &omap44xx_gpio5_hwmod,
3664 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003665 .user = OCP_USER_MPU | OCP_USER_SDMA,
3666};
3667
Paul Walmsley844a3b62012-04-19 04:04:33 -06003668/* l4_per -> gpio6 */
3669static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
3670 .master = &omap44xx_l4_per_hwmod,
3671 .slave = &omap44xx_gpio6_hwmod,
3672 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003673 .user = OCP_USER_MPU | OCP_USER_SDMA,
3674};
3675
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06003676/* l3_main_2 -> gpmc */
3677static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
3678 .master = &omap44xx_l3_main_2_hwmod,
3679 .slave = &omap44xx_gpmc_hwmod,
3680 .clk = "l3_div_ck",
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06003681 .user = OCP_USER_MPU | OCP_USER_SDMA,
3682};
3683
Paul Walmsley9def3902012-04-19 13:33:53 -06003684/* l3_main_2 -> gpu */
3685static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
3686 .master = &omap44xx_l3_main_2_hwmod,
3687 .slave = &omap44xx_gpu_hwmod,
3688 .clk = "l3_div_ck",
Paul Walmsley9def3902012-04-19 13:33:53 -06003689 .user = OCP_USER_MPU | OCP_USER_SDMA,
3690};
3691
Paul Walmsleya091c082012-04-19 13:33:50 -06003692/* l4_per -> hdq1w */
3693static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
3694 .master = &omap44xx_l4_per_hwmod,
3695 .slave = &omap44xx_hdq1w_hwmod,
3696 .clk = "l4_div_ck",
Paul Walmsleya091c082012-04-19 13:33:50 -06003697 .user = OCP_USER_MPU | OCP_USER_SDMA,
3698};
3699
Paul Walmsley844a3b62012-04-19 04:04:33 -06003700/* l4_cfg -> hsi */
3701static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
3702 .master = &omap44xx_l4_cfg_hwmod,
3703 .slave = &omap44xx_hsi_hwmod,
3704 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003705 .user = OCP_USER_MPU | OCP_USER_SDMA,
3706};
3707
Paul Walmsley844a3b62012-04-19 04:04:33 -06003708/* l4_per -> i2c1 */
3709static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
3710 .master = &omap44xx_l4_per_hwmod,
3711 .slave = &omap44xx_i2c1_hwmod,
3712 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003713 .user = OCP_USER_MPU | OCP_USER_SDMA,
3714};
3715
Paul Walmsley844a3b62012-04-19 04:04:33 -06003716/* l4_per -> i2c2 */
3717static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
3718 .master = &omap44xx_l4_per_hwmod,
3719 .slave = &omap44xx_i2c2_hwmod,
3720 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003721 .user = OCP_USER_MPU | OCP_USER_SDMA,
3722};
3723
Paul Walmsley844a3b62012-04-19 04:04:33 -06003724/* l4_per -> i2c3 */
3725static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
3726 .master = &omap44xx_l4_per_hwmod,
3727 .slave = &omap44xx_i2c3_hwmod,
3728 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003729 .user = OCP_USER_MPU | OCP_USER_SDMA,
3730};
3731
Paul Walmsley844a3b62012-04-19 04:04:33 -06003732/* l4_per -> i2c4 */
3733static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
3734 .master = &omap44xx_l4_per_hwmod,
3735 .slave = &omap44xx_i2c4_hwmod,
3736 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003737 .user = OCP_USER_MPU | OCP_USER_SDMA,
3738};
3739
3740/* l3_main_2 -> ipu */
3741static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
3742 .master = &omap44xx_l3_main_2_hwmod,
3743 .slave = &omap44xx_ipu_hwmod,
3744 .clk = "l3_div_ck",
3745 .user = OCP_USER_MPU | OCP_USER_SDMA,
3746};
3747
Paul Walmsley844a3b62012-04-19 04:04:33 -06003748/* l3_main_2 -> iss */
3749static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
3750 .master = &omap44xx_l3_main_2_hwmod,
3751 .slave = &omap44xx_iss_hwmod,
3752 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003753 .user = OCP_USER_MPU | OCP_USER_SDMA,
3754};
3755
Paul Walmsley42b9e382012-04-19 13:33:54 -06003756/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003757static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003758 .master = &omap44xx_iva_hwmod,
3759 .slave = &omap44xx_sl2if_hwmod,
3760 .clk = "dpll_iva_m5x2_ck",
3761 .user = OCP_USER_IVA,
3762};
3763
Paul Walmsley844a3b62012-04-19 04:04:33 -06003764/* l3_main_2 -> iva */
3765static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
3766 .master = &omap44xx_l3_main_2_hwmod,
3767 .slave = &omap44xx_iva_hwmod,
3768 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003769 .user = OCP_USER_MPU,
3770};
3771
Paul Walmsley844a3b62012-04-19 04:04:33 -06003772/* l4_wkup -> kbd */
3773static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
3774 .master = &omap44xx_l4_wkup_hwmod,
3775 .slave = &omap44xx_kbd_hwmod,
3776 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003777 .user = OCP_USER_MPU | OCP_USER_SDMA,
3778};
3779
Paul Walmsley844a3b62012-04-19 04:04:33 -06003780/* l4_cfg -> mailbox */
3781static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
3782 .master = &omap44xx_l4_cfg_hwmod,
3783 .slave = &omap44xx_mailbox_hwmod,
3784 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003785 .user = OCP_USER_MPU | OCP_USER_SDMA,
3786};
3787
Benoît Cousson896d4e92012-04-19 13:33:54 -06003788/* l4_abe -> mcasp */
3789static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
3790 .master = &omap44xx_l4_abe_hwmod,
3791 .slave = &omap44xx_mcasp_hwmod,
3792 .clk = "ocp_abe_iclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06003793 .user = OCP_USER_MPU,
3794};
3795
Benoît Cousson896d4e92012-04-19 13:33:54 -06003796/* l4_abe -> mcasp (dma) */
3797static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
3798 .master = &omap44xx_l4_abe_hwmod,
3799 .slave = &omap44xx_mcasp_hwmod,
3800 .clk = "ocp_abe_iclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06003801 .user = OCP_USER_SDMA,
3802};
3803
Paul Walmsley844a3b62012-04-19 04:04:33 -06003804/* l4_abe -> mcbsp1 */
3805static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
3806 .master = &omap44xx_l4_abe_hwmod,
3807 .slave = &omap44xx_mcbsp1_hwmod,
3808 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003809 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003810};
3811
Paul Walmsley844a3b62012-04-19 04:04:33 -06003812/* l4_abe -> mcbsp2 */
3813static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
3814 .master = &omap44xx_l4_abe_hwmod,
3815 .slave = &omap44xx_mcbsp2_hwmod,
3816 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003817 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003818};
3819
Paul Walmsley844a3b62012-04-19 04:04:33 -06003820/* l4_abe -> mcbsp3 */
3821static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
3822 .master = &omap44xx_l4_abe_hwmod,
3823 .slave = &omap44xx_mcbsp3_hwmod,
3824 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003825 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003826};
3827
Paul Walmsley844a3b62012-04-19 04:04:33 -06003828/* l4_per -> mcbsp4 */
3829static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
3830 .master = &omap44xx_l4_per_hwmod,
3831 .slave = &omap44xx_mcbsp4_hwmod,
3832 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003833 .user = OCP_USER_MPU | OCP_USER_SDMA,
3834};
3835
Paul Walmsley844a3b62012-04-19 04:04:33 -06003836/* l4_abe -> mcpdm */
3837static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
3838 .master = &omap44xx_l4_abe_hwmod,
3839 .slave = &omap44xx_mcpdm_hwmod,
3840 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003841 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003842};
3843
Paul Walmsley844a3b62012-04-19 04:04:33 -06003844/* l4_per -> mcspi1 */
3845static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
3846 .master = &omap44xx_l4_per_hwmod,
3847 .slave = &omap44xx_mcspi1_hwmod,
3848 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003849 .user = OCP_USER_MPU | OCP_USER_SDMA,
3850};
3851
Paul Walmsley844a3b62012-04-19 04:04:33 -06003852/* l4_per -> mcspi2 */
3853static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
3854 .master = &omap44xx_l4_per_hwmod,
3855 .slave = &omap44xx_mcspi2_hwmod,
3856 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003857 .user = OCP_USER_MPU | OCP_USER_SDMA,
3858};
3859
Paul Walmsley844a3b62012-04-19 04:04:33 -06003860/* l4_per -> mcspi3 */
3861static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
3862 .master = &omap44xx_l4_per_hwmod,
3863 .slave = &omap44xx_mcspi3_hwmod,
3864 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003865 .user = OCP_USER_MPU | OCP_USER_SDMA,
3866};
3867
Paul Walmsley844a3b62012-04-19 04:04:33 -06003868/* l4_per -> mcspi4 */
3869static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
3870 .master = &omap44xx_l4_per_hwmod,
3871 .slave = &omap44xx_mcspi4_hwmod,
3872 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003873 .user = OCP_USER_MPU | OCP_USER_SDMA,
3874};
3875
Paul Walmsley844a3b62012-04-19 04:04:33 -06003876/* l4_per -> mmc1 */
3877static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
3878 .master = &omap44xx_l4_per_hwmod,
3879 .slave = &omap44xx_mmc1_hwmod,
3880 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003881 .user = OCP_USER_MPU | OCP_USER_SDMA,
3882};
3883
Paul Walmsley844a3b62012-04-19 04:04:33 -06003884/* l4_per -> mmc2 */
3885static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
3886 .master = &omap44xx_l4_per_hwmod,
3887 .slave = &omap44xx_mmc2_hwmod,
3888 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003889 .user = OCP_USER_MPU | OCP_USER_SDMA,
3890};
3891
Paul Walmsley844a3b62012-04-19 04:04:33 -06003892/* l4_per -> mmc3 */
3893static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
3894 .master = &omap44xx_l4_per_hwmod,
3895 .slave = &omap44xx_mmc3_hwmod,
3896 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003897 .user = OCP_USER_MPU | OCP_USER_SDMA,
3898};
3899
Paul Walmsley844a3b62012-04-19 04:04:33 -06003900/* l4_per -> mmc4 */
3901static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
3902 .master = &omap44xx_l4_per_hwmod,
3903 .slave = &omap44xx_mmc4_hwmod,
3904 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003905 .user = OCP_USER_MPU | OCP_USER_SDMA,
3906};
3907
Paul Walmsley844a3b62012-04-19 04:04:33 -06003908/* l4_per -> mmc5 */
3909static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
3910 .master = &omap44xx_l4_per_hwmod,
3911 .slave = &omap44xx_mmc5_hwmod,
3912 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003913 .user = OCP_USER_MPU | OCP_USER_SDMA,
3914};
3915
Paul Walmsleye17f18c2012-04-19 13:33:56 -06003916/* l3_main_2 -> ocmc_ram */
3917static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
3918 .master = &omap44xx_l3_main_2_hwmod,
3919 .slave = &omap44xx_ocmc_ram_hwmod,
3920 .clk = "l3_div_ck",
3921 .user = OCP_USER_MPU | OCP_USER_SDMA,
3922};
3923
Benoît Cousson0c668872012-04-19 13:33:55 -06003924/* l4_cfg -> ocp2scp_usb_phy */
3925static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
3926 .master = &omap44xx_l4_cfg_hwmod,
3927 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
3928 .clk = "l4_div_ck",
3929 .user = OCP_USER_MPU | OCP_USER_SDMA,
3930};
3931
Paul Walmsley794b4802012-04-19 13:33:58 -06003932/* mpu_private -> prcm_mpu */
3933static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
3934 .master = &omap44xx_mpu_private_hwmod,
3935 .slave = &omap44xx_prcm_mpu_hwmod,
3936 .clk = "l3_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003937 .user = OCP_USER_MPU | OCP_USER_SDMA,
3938};
3939
Paul Walmsley794b4802012-04-19 13:33:58 -06003940/* l4_wkup -> cm_core_aon */
3941static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
3942 .master = &omap44xx_l4_wkup_hwmod,
3943 .slave = &omap44xx_cm_core_aon_hwmod,
3944 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003945 .user = OCP_USER_MPU | OCP_USER_SDMA,
3946};
3947
Paul Walmsley794b4802012-04-19 13:33:58 -06003948/* l4_cfg -> cm_core */
3949static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
3950 .master = &omap44xx_l4_cfg_hwmod,
3951 .slave = &omap44xx_cm_core_hwmod,
3952 .clk = "l4_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003953 .user = OCP_USER_MPU | OCP_USER_SDMA,
3954};
3955
Paul Walmsley794b4802012-04-19 13:33:58 -06003956/* l4_wkup -> prm */
3957static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
3958 .master = &omap44xx_l4_wkup_hwmod,
3959 .slave = &omap44xx_prm_hwmod,
3960 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003961 .user = OCP_USER_MPU | OCP_USER_SDMA,
3962};
3963
Paul Walmsley794b4802012-04-19 13:33:58 -06003964/* l4_wkup -> scrm */
3965static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
3966 .master = &omap44xx_l4_wkup_hwmod,
3967 .slave = &omap44xx_scrm_hwmod,
3968 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06003969 .user = OCP_USER_MPU | OCP_USER_SDMA,
3970};
3971
Paul Walmsley42b9e382012-04-19 13:33:54 -06003972/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003973static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003974 .master = &omap44xx_l3_main_2_hwmod,
3975 .slave = &omap44xx_sl2if_hwmod,
3976 .clk = "l3_div_ck",
3977 .user = OCP_USER_MPU | OCP_USER_SDMA,
3978};
3979
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003980/* l4_abe -> slimbus1 */
3981static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
3982 .master = &omap44xx_l4_abe_hwmod,
3983 .slave = &omap44xx_slimbus1_hwmod,
3984 .clk = "ocp_abe_iclk",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003985 .user = OCP_USER_MPU,
3986};
3987
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003988/* l4_abe -> slimbus1 (dma) */
3989static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
3990 .master = &omap44xx_l4_abe_hwmod,
3991 .slave = &omap44xx_slimbus1_hwmod,
3992 .clk = "ocp_abe_iclk",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003993 .user = OCP_USER_SDMA,
3994};
3995
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06003996/* l4_per -> slimbus2 */
3997static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
3998 .master = &omap44xx_l4_per_hwmod,
3999 .slave = &omap44xx_slimbus2_hwmod,
4000 .clk = "l4_div_ck",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004001 .user = OCP_USER_MPU | OCP_USER_SDMA,
4002};
4003
Paul Walmsley844a3b62012-04-19 04:04:33 -06004004/* l4_cfg -> smartreflex_core */
4005static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
4006 .master = &omap44xx_l4_cfg_hwmod,
4007 .slave = &omap44xx_smartreflex_core_hwmod,
4008 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004009 .user = OCP_USER_MPU | OCP_USER_SDMA,
4010};
4011
Paul Walmsley844a3b62012-04-19 04:04:33 -06004012/* l4_cfg -> smartreflex_iva */
4013static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4014 .master = &omap44xx_l4_cfg_hwmod,
4015 .slave = &omap44xx_smartreflex_iva_hwmod,
4016 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004017 .user = OCP_USER_MPU | OCP_USER_SDMA,
4018};
4019
Paul Walmsley844a3b62012-04-19 04:04:33 -06004020/* l4_cfg -> smartreflex_mpu */
4021static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4022 .master = &omap44xx_l4_cfg_hwmod,
4023 .slave = &omap44xx_smartreflex_mpu_hwmod,
4024 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004025 .user = OCP_USER_MPU | OCP_USER_SDMA,
4026};
4027
Paul Walmsley844a3b62012-04-19 04:04:33 -06004028/* l4_cfg -> spinlock */
4029static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4030 .master = &omap44xx_l4_cfg_hwmod,
4031 .slave = &omap44xx_spinlock_hwmod,
4032 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004033 .user = OCP_USER_MPU | OCP_USER_SDMA,
4034};
4035
Paul Walmsley844a3b62012-04-19 04:04:33 -06004036/* l4_wkup -> timer1 */
4037static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4038 .master = &omap44xx_l4_wkup_hwmod,
4039 .slave = &omap44xx_timer1_hwmod,
4040 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004041 .user = OCP_USER_MPU | OCP_USER_SDMA,
4042};
4043
Paul Walmsley844a3b62012-04-19 04:04:33 -06004044/* l4_per -> timer2 */
4045static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4046 .master = &omap44xx_l4_per_hwmod,
4047 .slave = &omap44xx_timer2_hwmod,
4048 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004049 .user = OCP_USER_MPU | OCP_USER_SDMA,
4050};
4051
Paul Walmsley844a3b62012-04-19 04:04:33 -06004052/* l4_per -> timer3 */
4053static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4054 .master = &omap44xx_l4_per_hwmod,
4055 .slave = &omap44xx_timer3_hwmod,
4056 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004057 .user = OCP_USER_MPU | OCP_USER_SDMA,
4058};
4059
Paul Walmsley844a3b62012-04-19 04:04:33 -06004060/* l4_per -> timer4 */
4061static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4062 .master = &omap44xx_l4_per_hwmod,
4063 .slave = &omap44xx_timer4_hwmod,
4064 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004065 .user = OCP_USER_MPU | OCP_USER_SDMA,
4066};
4067
Paul Walmsley844a3b62012-04-19 04:04:33 -06004068/* l4_abe -> timer5 */
4069static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4070 .master = &omap44xx_l4_abe_hwmod,
4071 .slave = &omap44xx_timer5_hwmod,
4072 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004073 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004074};
4075
Paul Walmsley844a3b62012-04-19 04:04:33 -06004076/* l4_abe -> timer6 */
4077static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4078 .master = &omap44xx_l4_abe_hwmod,
4079 .slave = &omap44xx_timer6_hwmod,
4080 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004081 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004082};
4083
Paul Walmsley844a3b62012-04-19 04:04:33 -06004084/* l4_abe -> timer7 */
4085static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4086 .master = &omap44xx_l4_abe_hwmod,
4087 .slave = &omap44xx_timer7_hwmod,
4088 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004089 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004090};
4091
Paul Walmsley844a3b62012-04-19 04:04:33 -06004092/* l4_abe -> timer8 */
4093static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4094 .master = &omap44xx_l4_abe_hwmod,
4095 .slave = &omap44xx_timer8_hwmod,
4096 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004097 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004098};
4099
Paul Walmsley844a3b62012-04-19 04:04:33 -06004100/* l4_per -> timer9 */
4101static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4102 .master = &omap44xx_l4_per_hwmod,
4103 .slave = &omap44xx_timer9_hwmod,
4104 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004105 .user = OCP_USER_MPU | OCP_USER_SDMA,
4106};
4107
Paul Walmsley844a3b62012-04-19 04:04:33 -06004108/* l4_per -> timer10 */
4109static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4110 .master = &omap44xx_l4_per_hwmod,
4111 .slave = &omap44xx_timer10_hwmod,
4112 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004113 .user = OCP_USER_MPU | OCP_USER_SDMA,
4114};
4115
Paul Walmsley844a3b62012-04-19 04:04:33 -06004116/* l4_per -> timer11 */
4117static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4118 .master = &omap44xx_l4_per_hwmod,
4119 .slave = &omap44xx_timer11_hwmod,
4120 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004121 .user = OCP_USER_MPU | OCP_USER_SDMA,
4122};
4123
Paul Walmsley844a3b62012-04-19 04:04:33 -06004124/* l4_per -> uart1 */
4125static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4126 .master = &omap44xx_l4_per_hwmod,
4127 .slave = &omap44xx_uart1_hwmod,
4128 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004129 .user = OCP_USER_MPU | OCP_USER_SDMA,
4130};
4131
Paul Walmsley844a3b62012-04-19 04:04:33 -06004132/* l4_per -> uart2 */
4133static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4134 .master = &omap44xx_l4_per_hwmod,
4135 .slave = &omap44xx_uart2_hwmod,
4136 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004137 .user = OCP_USER_MPU | OCP_USER_SDMA,
4138};
4139
Paul Walmsley844a3b62012-04-19 04:04:33 -06004140/* l4_per -> uart3 */
4141static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4142 .master = &omap44xx_l4_per_hwmod,
4143 .slave = &omap44xx_uart3_hwmod,
4144 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004145 .user = OCP_USER_MPU | OCP_USER_SDMA,
4146};
4147
Paul Walmsley844a3b62012-04-19 04:04:33 -06004148/* l4_per -> uart4 */
4149static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4150 .master = &omap44xx_l4_per_hwmod,
4151 .slave = &omap44xx_uart4_hwmod,
4152 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004153 .user = OCP_USER_MPU | OCP_USER_SDMA,
4154};
4155
Benoît Cousson0c668872012-04-19 13:33:55 -06004156/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004157static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06004158 .master = &omap44xx_l4_cfg_hwmod,
4159 .slave = &omap44xx_usb_host_fs_hwmod,
4160 .clk = "l4_div_ck",
Benoît Cousson0c668872012-04-19 13:33:55 -06004161 .user = OCP_USER_MPU | OCP_USER_SDMA,
4162};
4163
Paul Walmsley844a3b62012-04-19 04:04:33 -06004164/* l4_cfg -> usb_host_hs */
4165static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4166 .master = &omap44xx_l4_cfg_hwmod,
4167 .slave = &omap44xx_usb_host_hs_hwmod,
4168 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004169 .user = OCP_USER_MPU | OCP_USER_SDMA,
4170};
4171
Paul Walmsley844a3b62012-04-19 04:04:33 -06004172/* l4_cfg -> usb_otg_hs */
4173static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4174 .master = &omap44xx_l4_cfg_hwmod,
4175 .slave = &omap44xx_usb_otg_hs_hwmod,
4176 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004177 .user = OCP_USER_MPU | OCP_USER_SDMA,
4178};
4179
Paul Walmsley844a3b62012-04-19 04:04:33 -06004180/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004181static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4182 .master = &omap44xx_l4_cfg_hwmod,
4183 .slave = &omap44xx_usb_tll_hs_hwmod,
4184 .clk = "l4_div_ck",
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004185 .user = OCP_USER_MPU | OCP_USER_SDMA,
4186};
4187
Paul Walmsley844a3b62012-04-19 04:04:33 -06004188/* l4_wkup -> wd_timer2 */
4189static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4190 .master = &omap44xx_l4_wkup_hwmod,
4191 .slave = &omap44xx_wd_timer2_hwmod,
4192 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004193 .user = OCP_USER_MPU | OCP_USER_SDMA,
4194};
4195
Paul Walmsley844a3b62012-04-19 04:04:33 -06004196/* l4_abe -> wd_timer3 */
4197static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4198 .master = &omap44xx_l4_abe_hwmod,
4199 .slave = &omap44xx_wd_timer3_hwmod,
4200 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004201 .user = OCP_USER_MPU,
4202};
4203
Paul Walmsley844a3b62012-04-19 04:04:33 -06004204/* l4_abe -> wd_timer3 (dma) */
4205static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4206 .master = &omap44xx_l4_abe_hwmod,
4207 .slave = &omap44xx_wd_timer3_hwmod,
4208 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004209 .user = OCP_USER_SDMA,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004210};
4211
Sricharan R3b9b1012013-06-07 17:26:15 +05304212/* mpu -> emif1 */
4213static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4214 .master = &omap44xx_mpu_hwmod,
4215 .slave = &omap44xx_emif1_hwmod,
4216 .clk = "l3_div_ck",
4217 .user = OCP_USER_MPU | OCP_USER_SDMA,
4218};
4219
4220/* mpu -> emif2 */
4221static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4222 .master = &omap44xx_mpu_hwmod,
4223 .slave = &omap44xx_emif2_hwmod,
4224 .clk = "l3_div_ck",
4225 .user = OCP_USER_MPU | OCP_USER_SDMA,
4226};
4227
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004228static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4229 &omap44xx_l3_main_1__dmm,
4230 &omap44xx_mpu__dmm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004231 &omap44xx_iva__l3_instr,
4232 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc82012-04-19 13:33:56 -06004233 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004234 &omap44xx_dsp__l3_main_1,
4235 &omap44xx_dss__l3_main_1,
4236 &omap44xx_l3_main_2__l3_main_1,
4237 &omap44xx_l4_cfg__l3_main_1,
4238 &omap44xx_mmc1__l3_main_1,
4239 &omap44xx_mmc2__l3_main_1,
4240 &omap44xx_mpu__l3_main_1,
Benoît Cousson96566042012-04-19 13:33:59 -06004241 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004242 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06004243 &omap44xx_fdif__l3_main_2,
Paul Walmsley9def3902012-04-19 13:33:53 -06004244 &omap44xx_gpu__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004245 &omap44xx_hsi__l3_main_2,
4246 &omap44xx_ipu__l3_main_2,
4247 &omap44xx_iss__l3_main_2,
4248 &omap44xx_iva__l3_main_2,
4249 &omap44xx_l3_main_1__l3_main_2,
4250 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004251 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004252 &omap44xx_usb_host_hs__l3_main_2,
4253 &omap44xx_usb_otg_hs__l3_main_2,
4254 &omap44xx_l3_main_1__l3_main_3,
4255 &omap44xx_l3_main_2__l3_main_3,
4256 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004257 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004258 &omap44xx_dsp__l4_abe,
4259 &omap44xx_l3_main_1__l4_abe,
4260 &omap44xx_mpu__l4_abe,
4261 &omap44xx_l3_main_1__l4_cfg,
4262 &omap44xx_l3_main_2__l4_per,
4263 &omap44xx_l4_cfg__l4_wkup,
4264 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc82012-04-19 13:33:56 -06004265 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004266 &omap44xx_l4_abe__aess,
4267 &omap44xx_l4_abe__aess_dma,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004268 &omap44xx_l3_main_2__c2c,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004269 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06004270 &omap44xx_l4_cfg__ctrl_module_core,
4271 &omap44xx_l4_cfg__ctrl_module_pad_core,
4272 &omap44xx_l4_wkup__ctrl_module_wkup,
4273 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06004274 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004275 &omap44xx_l4_cfg__dma_system,
4276 &omap44xx_l4_abe__dmic,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004277 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06004278 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004279 &omap44xx_l4_cfg__dsp,
4280 &omap44xx_l3_main_2__dss,
4281 &omap44xx_l4_per__dss,
4282 &omap44xx_l3_main_2__dss_dispc,
4283 &omap44xx_l4_per__dss_dispc,
4284 &omap44xx_l3_main_2__dss_dsi1,
4285 &omap44xx_l4_per__dss_dsi1,
4286 &omap44xx_l3_main_2__dss_dsi2,
4287 &omap44xx_l4_per__dss_dsi2,
4288 &omap44xx_l3_main_2__dss_hdmi,
4289 &omap44xx_l4_per__dss_hdmi,
4290 &omap44xx_l3_main_2__dss_rfbi,
4291 &omap44xx_l4_per__dss_rfbi,
4292 &omap44xx_l3_main_2__dss_venc,
4293 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004294 &omap44xx_l4_per__elm,
Ming Leib050f682012-04-19 13:33:50 -06004295 &omap44xx_l4_cfg__fdif,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004296 &omap44xx_l4_wkup__gpio1,
4297 &omap44xx_l4_per__gpio2,
4298 &omap44xx_l4_per__gpio3,
4299 &omap44xx_l4_per__gpio4,
4300 &omap44xx_l4_per__gpio5,
4301 &omap44xx_l4_per__gpio6,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004302 &omap44xx_l3_main_2__gpmc,
Paul Walmsley9def3902012-04-19 13:33:53 -06004303 &omap44xx_l3_main_2__gpu,
Paul Walmsleya091c082012-04-19 13:33:50 -06004304 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004305 &omap44xx_l4_cfg__hsi,
4306 &omap44xx_l4_per__i2c1,
4307 &omap44xx_l4_per__i2c2,
4308 &omap44xx_l4_per__i2c3,
4309 &omap44xx_l4_per__i2c4,
4310 &omap44xx_l3_main_2__ipu,
4311 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06004312 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004313 &omap44xx_l3_main_2__iva,
4314 &omap44xx_l4_wkup__kbd,
4315 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06004316 &omap44xx_l4_abe__mcasp,
4317 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004318 &omap44xx_l4_abe__mcbsp1,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004319 &omap44xx_l4_abe__mcbsp2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004320 &omap44xx_l4_abe__mcbsp3,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004321 &omap44xx_l4_per__mcbsp4,
4322 &omap44xx_l4_abe__mcpdm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004323 &omap44xx_l4_per__mcspi1,
4324 &omap44xx_l4_per__mcspi2,
4325 &omap44xx_l4_per__mcspi3,
4326 &omap44xx_l4_per__mcspi4,
4327 &omap44xx_l4_per__mmc1,
4328 &omap44xx_l4_per__mmc2,
4329 &omap44xx_l4_per__mmc3,
4330 &omap44xx_l4_per__mmc4,
4331 &omap44xx_l4_per__mmc5,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06004332 &omap44xx_l3_main_2__mmu_ipu,
4333 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004334 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06004335 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06004336 &omap44xx_mpu_private__prcm_mpu,
4337 &omap44xx_l4_wkup__cm_core_aon,
4338 &omap44xx_l4_cfg__cm_core,
4339 &omap44xx_l4_wkup__prm,
4340 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06004341 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004342 &omap44xx_l4_abe__slimbus1,
4343 &omap44xx_l4_abe__slimbus1_dma,
4344 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004345 &omap44xx_l4_cfg__smartreflex_core,
4346 &omap44xx_l4_cfg__smartreflex_iva,
4347 &omap44xx_l4_cfg__smartreflex_mpu,
4348 &omap44xx_l4_cfg__spinlock,
4349 &omap44xx_l4_wkup__timer1,
4350 &omap44xx_l4_per__timer2,
4351 &omap44xx_l4_per__timer3,
4352 &omap44xx_l4_per__timer4,
4353 &omap44xx_l4_abe__timer5,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004354 &omap44xx_l4_abe__timer6,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004355 &omap44xx_l4_abe__timer7,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004356 &omap44xx_l4_abe__timer8,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004357 &omap44xx_l4_per__timer9,
4358 &omap44xx_l4_per__timer10,
4359 &omap44xx_l4_per__timer11,
4360 &omap44xx_l4_per__uart1,
4361 &omap44xx_l4_per__uart2,
4362 &omap44xx_l4_per__uart3,
4363 &omap44xx_l4_per__uart4,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004364 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004365 &omap44xx_l4_cfg__usb_host_hs,
4366 &omap44xx_l4_cfg__usb_otg_hs,
4367 &omap44xx_l4_cfg__usb_tll_hs,
4368 &omap44xx_l4_wkup__wd_timer2,
4369 &omap44xx_l4_abe__wd_timer3,
4370 &omap44xx_l4_abe__wd_timer3_dma,
Sricharan R3b9b1012013-06-07 17:26:15 +05304371 &omap44xx_mpu__emif1,
4372 &omap44xx_mpu__emif2,
Sebastian Reichel9a9ded82017-06-13 11:28:45 +02004373 &omap44xx_l3_main_2__aes1,
Sebastian Reichel478523d2017-06-13 11:28:46 +02004374 &omap44xx_l3_main_2__aes2,
Sebastian Reichelebea90d2017-06-13 11:28:47 +02004375 &omap44xx_l3_main_2__des,
Tero Kristo1df5eaa2017-06-13 16:45:50 +03004376 &omap44xx_l3_main_2__sha0,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004377 NULL,
4378};
4379
4380int __init omap44xx_hwmod_init(void)
4381{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06004382 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004383 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004384}
4385