blob: e1b0859770490f3e089bd99c02ed5c420151bbbf [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 */
468static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
469 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
470 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
471 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
472 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600473 { .irq = -1 }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000474};
475
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000476static struct omap_hwmod omap44xx_dma_system_hwmod = {
477 .name = "dma_system",
478 .class = &omap44xx_dma_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600479 .clkdm_name = "l3_dma_clkdm",
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000480 .mpu_irqs = omap44xx_dma_system_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000481 .xlate_irq = omap4_xlate_irq,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000482 .main_clk = "l3_div_ck",
483 .prcm = {
484 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600485 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600486 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000487 },
488 },
489 .dev_attr = &dma_dev_attr,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000490};
491
492/*
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000493 * 'dmic' class
494 * digital microphone controller
495 */
496
497static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
498 .rev_offs = 0x0000,
499 .sysc_offs = 0x0010,
500 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
501 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
502 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
503 SIDLE_SMART_WKUP),
504 .sysc_fields = &omap_hwmod_sysc_type2,
505};
506
507static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
508 .name = "dmic",
509 .sysc = &omap44xx_dmic_sysc,
510};
511
512/* dmic */
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000513static struct omap_hwmod omap44xx_dmic_hwmod = {
514 .name = "dmic",
515 .class = &omap44xx_dmic_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600516 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -0700517 .main_clk = "func_dmic_abe_gfclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600518 .prcm = {
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000519 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600520 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600521 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600522 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000523 },
524 },
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000525};
526
527/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700528 * 'dsp' class
529 * dsp sub-system
530 */
531
532static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000533 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700534};
535
536/* dsp */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700537static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700538 { .name = "dsp", .rst_shift = 0 },
539};
540
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700541static struct omap_hwmod omap44xx_dsp_hwmod = {
542 .name = "dsp",
543 .class = &omap44xx_dsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600544 .clkdm_name = "tesla_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700545 .rst_lines = omap44xx_dsp_resets,
546 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -0600547 .main_clk = "dpll_iva_m4x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700548 .prcm = {
549 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600550 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -0600551 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600552 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600553 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700554 },
555 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700556};
557
558/*
Benoit Coussond63bd742011-01-27 11:17:03 +0000559 * 'dss' class
560 * display sub-system
561 */
562
563static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
564 .rev_offs = 0x0000,
565 .syss_offs = 0x0014,
566 .sysc_flags = SYSS_HAS_RESET_STATUS,
567};
568
569static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
570 .name = "dss",
571 .sysc = &omap44xx_dss_sysc,
Tomi Valkeinen13662dc2011-11-08 03:16:13 -0700572 .reset = omap_dss_reset,
Benoit Coussond63bd742011-01-27 11:17:03 +0000573};
574
575/* dss */
Benoit Coussond63bd742011-01-27 11:17:03 +0000576static struct omap_hwmod_opt_clk dss_opt_clks[] = {
577 { .role = "sys_clk", .clk = "dss_sys_clk" },
578 { .role = "tv_clk", .clk = "dss_tv_clk" },
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700579 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Benoit Coussond63bd742011-01-27 11:17:03 +0000580};
581
582static struct omap_hwmod omap44xx_dss_hwmod = {
583 .name = "dss_core",
Tomi Valkeinen37ad0852011-11-08 03:16:11 -0700584 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000585 .class = &omap44xx_dss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600586 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600587 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000588 .prcm = {
589 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600590 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600591 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +0300592 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussond63bd742011-01-27 11:17:03 +0000593 },
594 },
595 .opt_clks = dss_opt_clks,
596 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000597};
598
599/*
600 * 'dispc' class
601 * display controller
602 */
603
604static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
605 .rev_offs = 0x0000,
606 .sysc_offs = 0x0010,
607 .syss_offs = 0x0014,
608 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
609 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
610 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
611 SYSS_HAS_RESET_STATUS),
612 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
613 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
614 .sysc_fields = &omap_hwmod_sysc_type1,
615};
616
617static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
618 .name = "dispc",
619 .sysc = &omap44xx_dispc_sysc,
620};
621
622/* dss_dispc */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300623static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
624 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
625 { .irq = -1 }
626};
627
628static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
629 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
630 { .dma_req = -1 }
631};
632
Archit Tanejab923d402011-10-06 18:04:08 -0600633static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
634 .manager_count = 3,
635 .has_framedonetv_irq = 1
636};
637
Benoit Coussond63bd742011-01-27 11:17:03 +0000638static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
639 .name = "dss_dispc",
640 .class = &omap44xx_dispc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600641 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300642 .mpu_irqs = omap44xx_dss_dispc_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000643 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300644 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600645 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000646 .prcm = {
647 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600648 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600649 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000650 },
651 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300652 .dev_attr = &omap44xx_dss_dispc_dev_attr,
653 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000654};
655
656/*
657 * 'dsi' class
658 * display serial interface controller
659 */
660
661static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
662 .rev_offs = 0x0000,
663 .sysc_offs = 0x0010,
664 .syss_offs = 0x0014,
665 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
666 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
667 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
668 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
669 .sysc_fields = &omap_hwmod_sysc_type1,
670};
671
672static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
673 .name = "dsi",
674 .sysc = &omap44xx_dsi_sysc,
675};
676
677/* dss_dsi1 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300678static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
679 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
680 { .irq = -1 }
681};
682
683static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
684 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
685 { .dma_req = -1 }
686};
687
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600688static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
689 { .role = "sys_clk", .clk = "dss_sys_clk" },
690};
691
Benoit Coussond63bd742011-01-27 11:17:03 +0000692static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
693 .name = "dss_dsi1",
694 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600695 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300696 .mpu_irqs = omap44xx_dss_dsi1_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000697 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300698 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600699 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000700 .prcm = {
701 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600702 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600703 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000704 },
705 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600706 .opt_clks = dss_dsi1_opt_clks,
707 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300708 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000709};
710
711/* dss_dsi2 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300712static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
713 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
714 { .irq = -1 }
715};
716
717static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
718 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
719 { .dma_req = -1 }
720};
721
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600722static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
723 { .role = "sys_clk", .clk = "dss_sys_clk" },
724};
725
Benoit Coussond63bd742011-01-27 11:17:03 +0000726static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
727 .name = "dss_dsi2",
728 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600729 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300730 .mpu_irqs = omap44xx_dss_dsi2_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000731 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300732 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600733 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000734 .prcm = {
735 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600736 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600737 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000738 },
739 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600740 .opt_clks = dss_dsi2_opt_clks,
741 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300742 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000743};
744
745/*
746 * 'hdmi' class
747 * hdmi controller
748 */
749
750static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
751 .rev_offs = 0x0000,
752 .sysc_offs = 0x0010,
753 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
754 SYSC_HAS_SOFTRESET),
755 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
756 SIDLE_SMART_WKUP),
757 .sysc_fields = &omap_hwmod_sysc_type2,
758};
759
760static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
761 .name = "hdmi",
762 .sysc = &omap44xx_hdmi_sysc,
763};
764
765/* dss_hdmi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300766static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
767 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
768 { .irq = -1 }
769};
770
771static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
772 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
773 { .dma_req = -1 }
774};
775
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600776static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
777 { .role = "sys_clk", .clk = "dss_sys_clk" },
Tero Kristo24d8d492017-05-31 17:59:59 +0300778 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600779};
780
Benoit Coussond63bd742011-01-27 11:17:03 +0000781static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
782 .name = "dss_hdmi",
783 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600784 .clkdm_name = "l3_dss_clkdm",
Ricardo Neridc57aef2012-06-21 10:08:53 +0200785 /*
786 * HDMI audio requires to use no-idle mode. Hence,
787 * set idle mode by software.
788 */
Tero Kristo24d8d492017-05-31 17:59:59 +0300789 .flags = HWMOD_SWSUP_SIDLE | HWMOD_OPT_CLKS_NEEDED,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300790 .mpu_irqs = omap44xx_dss_hdmi_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000791 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300792 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700793 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000794 .prcm = {
795 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600796 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600797 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000798 },
799 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600800 .opt_clks = dss_hdmi_opt_clks,
801 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300802 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000803};
804
805/*
806 * 'rfbi' class
807 * remote frame buffer interface
808 */
809
810static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
811 .rev_offs = 0x0000,
812 .sysc_offs = 0x0010,
813 .syss_offs = 0x0014,
814 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
815 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
816 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
817 .sysc_fields = &omap_hwmod_sysc_type1,
818};
819
820static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
821 .name = "rfbi",
822 .sysc = &omap44xx_rfbi_sysc,
823};
824
825/* dss_rfbi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300826static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
827 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
828 { .dma_req = -1 }
829};
830
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600831static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
Tomi Valkeinen2cc84f42014-10-09 17:03:18 +0300832 { .role = "ick", .clk = "l3_div_ck" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600833};
834
Benoit Coussond63bd742011-01-27 11:17:03 +0000835static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
836 .name = "dss_rfbi",
837 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600838 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300839 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600840 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000841 .prcm = {
842 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600843 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600844 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000845 },
846 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600847 .opt_clks = dss_rfbi_opt_clks,
848 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300849 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000850};
851
852/*
853 * 'venc' class
854 * video encoder
855 */
856
857static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
858 .name = "venc",
859};
860
861/* dss_venc */
Tero Kristo24d8d492017-05-31 17:59:59 +0300862static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = {
863 { .role = "tv_clk", .clk = "dss_tv_clk" },
864};
865
Benoit Coussond63bd742011-01-27 11:17:03 +0000866static struct omap_hwmod omap44xx_dss_venc_hwmod = {
867 .name = "dss_venc",
868 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600869 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700870 .main_clk = "dss_tv_clk",
Tero Kristo24d8d492017-05-31 17:59:59 +0300871 .flags = HWMOD_OPT_CLKS_NEEDED,
Benoit Coussond63bd742011-01-27 11:17:03 +0000872 .prcm = {
873 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600874 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600875 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000876 },
877 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300878 .parent_hwmod = &omap44xx_dss_hwmod,
Tero Kristo24d8d492017-05-31 17:59:59 +0300879 .opt_clks = dss_venc_opt_clks,
880 .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000881};
882
883/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600884 * 'elm' class
885 * bch error location module
886 */
887
888static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
889 .rev_offs = 0x0000,
890 .sysc_offs = 0x0010,
891 .syss_offs = 0x0014,
892 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
893 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
894 SYSS_HAS_RESET_STATUS),
895 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
896 .sysc_fields = &omap_hwmod_sysc_type1,
897};
898
899static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
900 .name = "elm",
901 .sysc = &omap44xx_elm_sysc,
902};
903
904/* elm */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600905static struct omap_hwmod omap44xx_elm_hwmod = {
906 .name = "elm",
907 .class = &omap44xx_elm_hwmod_class,
908 .clkdm_name = "l4_per_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600909 .prcm = {
910 .omap4 = {
911 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
912 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
913 },
914 },
915};
916
917/*
Paul Walmsleybf30f952012-04-19 13:33:52 -0600918 * 'emif' class
919 * external memory interface no1
920 */
921
922static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
923 .rev_offs = 0x0000,
924};
925
926static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
927 .name = "emif",
928 .sysc = &omap44xx_emif_sysc,
929};
930
931/* emif1 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600932static struct omap_hwmod omap44xx_emif1_hwmod = {
933 .name = "emif1",
934 .class = &omap44xx_emif_hwmod_class,
935 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530936 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600937 .main_clk = "ddrphy_ck",
938 .prcm = {
939 .omap4 = {
940 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
941 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
942 .modulemode = MODULEMODE_HWCTRL,
943 },
944 },
945};
946
947/* emif2 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600948static struct omap_hwmod omap44xx_emif2_hwmod = {
949 .name = "emif2",
950 .class = &omap44xx_emif_hwmod_class,
951 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530952 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600953 .main_clk = "ddrphy_ck",
954 .prcm = {
955 .omap4 = {
956 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
957 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
958 .modulemode = MODULEMODE_HWCTRL,
959 },
960 },
961};
962
963/*
Sebastian Reichel9a9ded82017-06-13 11:28:45 +0200964 Crypto modules AES0/1 belong to:
965 PD_L4_PER power domain
966 CD_L4_SEC clock domain
967 On the L3, the AES modules are mapped to
968 L3_CLK2: Peripherals and multimedia sub clock domain
969*/
970static struct omap_hwmod_class_sysconfig omap44xx_aes_sysc = {
971 .rev_offs = 0x80,
972 .sysc_offs = 0x84,
973 .syss_offs = 0x88,
974 .sysc_flags = SYSS_HAS_RESET_STATUS,
975};
976
977static struct omap_hwmod_class omap44xx_aes_hwmod_class = {
978 .name = "aes",
979 .sysc = &omap44xx_aes_sysc,
980};
981
982static struct omap_hwmod omap44xx_aes1_hwmod = {
983 .name = "aes1",
984 .class = &omap44xx_aes_hwmod_class,
985 .clkdm_name = "l4_secure_clkdm",
986 .main_clk = "l3_div_ck",
987 .prcm = {
988 .omap4 = {
989 .context_offs = OMAP4_RM_L4SEC_AES1_CONTEXT_OFFSET,
990 .clkctrl_offs = OMAP4_CM_L4SEC_AES1_CLKCTRL_OFFSET,
991 .modulemode = MODULEMODE_SWCTRL,
992 },
993 },
994};
995
996static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes1 = {
997 .master = &omap44xx_l4_per_hwmod,
998 .slave = &omap44xx_aes1_hwmod,
999 .clk = "l3_div_ck",
1000 .user = OCP_USER_MPU | OCP_USER_SDMA,
1001};
1002
Sebastian Reichel478523d2017-06-13 11:28:46 +02001003static struct omap_hwmod omap44xx_aes2_hwmod = {
1004 .name = "aes2",
1005 .class = &omap44xx_aes_hwmod_class,
1006 .clkdm_name = "l4_secure_clkdm",
1007 .main_clk = "l3_div_ck",
1008 .prcm = {
1009 .omap4 = {
1010 .context_offs = OMAP4_RM_L4SEC_AES2_CONTEXT_OFFSET,
1011 .clkctrl_offs = OMAP4_CM_L4SEC_AES2_CLKCTRL_OFFSET,
1012 .modulemode = MODULEMODE_SWCTRL,
1013 },
1014 },
1015};
1016
1017static struct omap_hwmod_ocp_if omap44xx_l3_main_2__aes2 = {
1018 .master = &omap44xx_l4_per_hwmod,
1019 .slave = &omap44xx_aes2_hwmod,
1020 .clk = "l3_div_ck",
1021 .user = OCP_USER_MPU | OCP_USER_SDMA,
1022};
1023
Sebastian Reichel9a9ded82017-06-13 11:28:45 +02001024/*
Ming Leib050f682012-04-19 13:33:50 -06001025 * 'fdif' class
1026 * face detection hw accelerator module
1027 */
1028
1029static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
1030 .rev_offs = 0x0000,
1031 .sysc_offs = 0x0010,
1032 /*
1033 * FDIF needs 100 OCP clk cycles delay after a softreset before
1034 * accessing sysconfig again.
1035 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1036 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1037 *
1038 * TODO: Indicate errata when available.
1039 */
1040 .srst_udelay = 2,
1041 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1042 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1043 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1044 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1045 .sysc_fields = &omap_hwmod_sysc_type2,
1046};
1047
1048static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1049 .name = "fdif",
1050 .sysc = &omap44xx_fdif_sysc,
1051};
1052
1053/* fdif */
Ming Leib050f682012-04-19 13:33:50 -06001054static struct omap_hwmod omap44xx_fdif_hwmod = {
1055 .name = "fdif",
1056 .class = &omap44xx_fdif_hwmod_class,
1057 .clkdm_name = "iss_clkdm",
Ming Leib050f682012-04-19 13:33:50 -06001058 .main_clk = "fdif_fck",
1059 .prcm = {
1060 .omap4 = {
1061 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1062 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1063 .modulemode = MODULEMODE_SWCTRL,
1064 },
1065 },
1066};
1067
1068/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001069 * 'gpio' class
1070 * general purpose io module
1071 */
1072
1073static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1074 .rev_offs = 0x0000,
1075 .sysc_offs = 0x0010,
1076 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001077 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1078 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1079 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001080 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1081 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001082 .sysc_fields = &omap_hwmod_sysc_type1,
1083};
1084
1085static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001086 .name = "gpio",
1087 .sysc = &omap44xx_gpio_sysc,
1088 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001089};
1090
1091/* gpio dev_attr */
1092static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001093 .bank_width = 32,
1094 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001095};
1096
1097/* gpio1 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001098static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001099 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001100};
1101
1102static struct omap_hwmod omap44xx_gpio1_hwmod = {
1103 .name = "gpio1",
1104 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001105 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001106 .main_clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001107 .prcm = {
1108 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001109 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001110 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001111 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001112 },
1113 },
1114 .opt_clks = gpio1_opt_clks,
1115 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1116 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001117};
1118
1119/* gpio2 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001120static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001121 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001122};
1123
1124static struct omap_hwmod omap44xx_gpio2_hwmod = {
1125 .name = "gpio2",
1126 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001127 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001128 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001129 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001130 .prcm = {
1131 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001132 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001133 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001134 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001135 },
1136 },
1137 .opt_clks = gpio2_opt_clks,
1138 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1139 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001140};
1141
1142/* gpio3 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001143static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001144 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001145};
1146
1147static struct omap_hwmod omap44xx_gpio3_hwmod = {
1148 .name = "gpio3",
1149 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001150 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001151 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001152 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001153 .prcm = {
1154 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001155 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001156 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001157 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001158 },
1159 },
1160 .opt_clks = gpio3_opt_clks,
1161 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1162 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001163};
1164
1165/* gpio4 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001166static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001167 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001168};
1169
1170static struct omap_hwmod omap44xx_gpio4_hwmod = {
1171 .name = "gpio4",
1172 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001173 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001174 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001175 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001176 .prcm = {
1177 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001178 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001179 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001180 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001181 },
1182 },
1183 .opt_clks = gpio4_opt_clks,
1184 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1185 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001186};
1187
1188/* gpio5 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001189static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001190 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001191};
1192
1193static struct omap_hwmod omap44xx_gpio5_hwmod = {
1194 .name = "gpio5",
1195 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001196 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001197 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001198 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001199 .prcm = {
1200 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001201 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001202 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001203 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001204 },
1205 },
1206 .opt_clks = gpio5_opt_clks,
1207 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1208 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001209};
1210
1211/* gpio6 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001212static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001213 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001214};
1215
1216static struct omap_hwmod omap44xx_gpio6_hwmod = {
1217 .name = "gpio6",
1218 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001219 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001220 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001221 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001222 .prcm = {
1223 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001224 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001225 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001226 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001227 },
1228 },
1229 .opt_clks = gpio6_opt_clks,
1230 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1231 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001232};
1233
1234/*
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001235 * 'gpmc' class
1236 * general purpose memory controller
1237 */
1238
1239static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1240 .rev_offs = 0x0000,
1241 .sysc_offs = 0x0010,
1242 .syss_offs = 0x0014,
1243 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1244 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1245 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1246 .sysc_fields = &omap_hwmod_sysc_type1,
1247};
1248
1249static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1250 .name = "gpmc",
1251 .sysc = &omap44xx_gpmc_sysc,
1252};
1253
1254/* gpmc */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001255static struct omap_hwmod omap44xx_gpmc_hwmod = {
1256 .name = "gpmc",
1257 .class = &omap44xx_gpmc_hwmod_class,
1258 .clkdm_name = "l3_2_clkdm",
Tony Lindgren63aa9452015-06-01 19:22:10 -06001259 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1260 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001261 .prcm = {
1262 .omap4 = {
1263 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1264 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1265 .modulemode = MODULEMODE_HWCTRL,
1266 },
1267 },
1268};
1269
1270/*
Paul Walmsley9def3902012-04-19 13:33:53 -06001271 * 'gpu' class
1272 * 2d/3d graphics accelerator
1273 */
1274
1275static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1276 .rev_offs = 0x1fc00,
1277 .sysc_offs = 0x1fc10,
1278 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1279 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1280 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1281 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1282 .sysc_fields = &omap_hwmod_sysc_type2,
1283};
1284
1285static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1286 .name = "gpu",
1287 .sysc = &omap44xx_gpu_sysc,
1288};
1289
1290/* gpu */
Paul Walmsley9def3902012-04-19 13:33:53 -06001291static struct omap_hwmod omap44xx_gpu_hwmod = {
1292 .name = "gpu",
1293 .class = &omap44xx_gpu_hwmod_class,
1294 .clkdm_name = "l3_gfx_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001295 .main_clk = "sgx_clk_mux",
Paul Walmsley9def3902012-04-19 13:33:53 -06001296 .prcm = {
1297 .omap4 = {
1298 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1299 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1300 .modulemode = MODULEMODE_SWCTRL,
1301 },
1302 },
1303};
1304
1305/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001306 * 'hdq1w' class
1307 * hdq / 1-wire serial interface controller
1308 */
1309
1310static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1311 .rev_offs = 0x0000,
1312 .sysc_offs = 0x0014,
1313 .syss_offs = 0x0018,
1314 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1315 SYSS_HAS_RESET_STATUS),
1316 .sysc_fields = &omap_hwmod_sysc_type1,
1317};
1318
1319static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1320 .name = "hdq1w",
1321 .sysc = &omap44xx_hdq1w_sysc,
1322};
1323
1324/* hdq1w */
Paul Walmsleya091c082012-04-19 13:33:50 -06001325static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1326 .name = "hdq1w",
1327 .class = &omap44xx_hdq1w_hwmod_class,
1328 .clkdm_name = "l4_per_clkdm",
1329 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001330 .main_clk = "func_12m_fclk",
Paul Walmsleya091c082012-04-19 13:33:50 -06001331 .prcm = {
1332 .omap4 = {
1333 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1334 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1335 .modulemode = MODULEMODE_SWCTRL,
1336 },
1337 },
1338};
1339
1340/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001341 * 'hsi' class
1342 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1343 * serial if)
1344 */
1345
1346static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1347 .rev_offs = 0x0000,
1348 .sysc_offs = 0x0010,
1349 .syss_offs = 0x0014,
1350 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1351 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1352 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1353 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1354 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001355 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001356 .sysc_fields = &omap_hwmod_sysc_type1,
1357};
1358
1359static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1360 .name = "hsi",
1361 .sysc = &omap44xx_hsi_sysc,
1362};
1363
1364/* hsi */
Benoit Cousson407a6882011-02-15 22:39:48 +01001365static struct omap_hwmod omap44xx_hsi_hwmod = {
1366 .name = "hsi",
1367 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001368 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001369 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001370 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001371 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001372 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001373 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001374 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001375 },
1376 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001377};
1378
1379/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301380 * 'i2c' class
1381 * multimaster high-speed i2c controller
1382 */
1383
1384static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1385 .sysc_offs = 0x0010,
1386 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001387 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1388 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001389 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001390 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1391 SIDLE_SMART_WKUP),
Benoit Coussonf7764712010-09-21 19:37:14 +05301392 .sysc_fields = &omap_hwmod_sysc_type1,
1393};
1394
1395static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001396 .name = "i2c",
1397 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06001398 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06001399 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05301400};
1401
Andy Green4d4441a2011-07-10 05:27:16 -06001402static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +05301403 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Andy Green4d4441a2011-07-10 05:27:16 -06001404};
1405
Benoit Coussonf7764712010-09-21 19:37:14 +05301406/* i2c1 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301407static struct omap_hwmod omap44xx_i2c1_hwmod = {
1408 .name = "i2c1",
1409 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001410 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301411 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001412 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301413 .prcm = {
1414 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001415 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001416 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001417 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301418 },
1419 },
Andy Green4d4441a2011-07-10 05:27:16 -06001420 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301421};
1422
1423/* i2c2 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301424static struct omap_hwmod omap44xx_i2c2_hwmod = {
1425 .name = "i2c2",
1426 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001427 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301428 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001429 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301430 .prcm = {
1431 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001432 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001433 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001434 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301435 },
1436 },
Andy Green4d4441a2011-07-10 05:27:16 -06001437 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301438};
1439
1440/* i2c3 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301441static struct omap_hwmod omap44xx_i2c3_hwmod = {
1442 .name = "i2c3",
1443 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001444 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301445 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001446 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301447 .prcm = {
1448 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001449 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001450 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001451 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301452 },
1453 },
Andy Green4d4441a2011-07-10 05:27:16 -06001454 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301455};
1456
1457/* i2c4 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301458static struct omap_hwmod omap44xx_i2c4_hwmod = {
1459 .name = "i2c4",
1460 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001461 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301462 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001463 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301464 .prcm = {
1465 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001466 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001467 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001468 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301469 },
1470 },
Andy Green4d4441a2011-07-10 05:27:16 -06001471 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301472};
1473
1474/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001475 * 'ipu' class
1476 * imaging processor unit
1477 */
1478
1479static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1480 .name = "ipu",
1481};
1482
1483/* ipu */
Benoit Cousson407a6882011-02-15 22:39:48 +01001484static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001485 { .name = "cpu0", .rst_shift = 0 },
1486 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001487};
1488
Benoit Cousson407a6882011-02-15 22:39:48 +01001489static struct omap_hwmod omap44xx_ipu_hwmod = {
1490 .name = "ipu",
1491 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001492 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001493 .rst_lines = omap44xx_ipu_resets,
1494 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001495 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001496 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001497 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001498 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001499 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001500 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001501 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001502 },
1503 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001504};
1505
1506/*
1507 * 'iss' class
1508 * external images sensor pixel data processor
1509 */
1510
1511static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1512 .rev_offs = 0x0000,
1513 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001514 /*
1515 * ISS needs 100 OCP clk cycles delay after a softreset before
1516 * accessing sysconfig again.
1517 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1518 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1519 *
1520 * TODO: Indicate errata when available.
1521 */
1522 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001523 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1524 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1525 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1526 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001527 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001528 .sysc_fields = &omap_hwmod_sysc_type2,
1529};
1530
1531static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1532 .name = "iss",
1533 .sysc = &omap44xx_iss_sysc,
1534};
1535
1536/* iss */
Benoit Cousson407a6882011-02-15 22:39:48 +01001537static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1538 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1539};
1540
1541static struct omap_hwmod omap44xx_iss_hwmod = {
1542 .name = "iss",
1543 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001544 .clkdm_name = "iss_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001545 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001546 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001547 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001548 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001549 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001550 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001551 },
1552 },
1553 .opt_clks = iss_opt_clks,
1554 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001555};
1556
1557/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001558 * 'iva' class
1559 * multi-standard video encoder/decoder hardware accelerator
1560 */
1561
1562static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001563 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001564};
1565
1566/* iva */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001567static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001568 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001569 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001570 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001571};
1572
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001573static struct omap_hwmod omap44xx_iva_hwmod = {
1574 .name = "iva",
1575 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001576 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001577 .rst_lines = omap44xx_iva_resets,
1578 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001579 .main_clk = "dpll_iva_m5x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001580 .prcm = {
1581 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001582 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001583 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001584 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001585 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001586 },
1587 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001588};
1589
1590/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001591 * 'kbd' class
1592 * keyboard controller
1593 */
1594
1595static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1596 .rev_offs = 0x0000,
1597 .sysc_offs = 0x0010,
1598 .syss_offs = 0x0014,
1599 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1600 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1601 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1602 SYSS_HAS_RESET_STATUS),
1603 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1604 .sysc_fields = &omap_hwmod_sysc_type1,
1605};
1606
1607static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1608 .name = "kbd",
1609 .sysc = &omap44xx_kbd_sysc,
1610};
1611
1612/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001613static struct omap_hwmod omap44xx_kbd_hwmod = {
1614 .name = "kbd",
1615 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001616 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001617 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001618 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001619 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001620 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001621 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001622 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001623 },
1624 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001625};
1626
1627/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001628 * 'mailbox' class
1629 * mailbox module allowing communication between the on-chip processors using a
1630 * queued mailbox-interrupt mechanism.
1631 */
1632
1633static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1634 .rev_offs = 0x0000,
1635 .sysc_offs = 0x0010,
1636 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1637 SYSC_HAS_SOFTRESET),
1638 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1639 .sysc_fields = &omap_hwmod_sysc_type2,
1640};
1641
1642static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1643 .name = "mailbox",
1644 .sysc = &omap44xx_mailbox_sysc,
1645};
1646
1647/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001648static struct omap_hwmod omap44xx_mailbox_hwmod = {
1649 .name = "mailbox",
1650 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001651 .clkdm_name = "l4_cfg_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001652 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001653 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001654 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001655 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001656 },
1657 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001658};
1659
1660/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001661 * 'mcasp' class
1662 * multi-channel audio serial port controller
1663 */
1664
1665/* The IP is not compliant to type1 / type2 scheme */
1666static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1667 .sidle_shift = 0,
1668};
1669
1670static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1671 .sysc_offs = 0x0004,
1672 .sysc_flags = SYSC_HAS_SIDLEMODE,
1673 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1674 SIDLE_SMART_WKUP),
1675 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1676};
1677
1678static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1679 .name = "mcasp",
1680 .sysc = &omap44xx_mcasp_sysc,
1681};
1682
1683/* mcasp */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001684static struct omap_hwmod omap44xx_mcasp_hwmod = {
1685 .name = "mcasp",
1686 .class = &omap44xx_mcasp_hwmod_class,
1687 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001688 .main_clk = "func_mcasp_abe_gfclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06001689 .prcm = {
1690 .omap4 = {
1691 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1692 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1693 .modulemode = MODULEMODE_SWCTRL,
1694 },
1695 },
1696};
1697
1698/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001699 * 'mcbsp' class
1700 * multi channel buffered serial port controller
1701 */
1702
1703static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1704 .sysc_offs = 0x008c,
1705 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1706 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1707 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1708 .sysc_fields = &omap_hwmod_sysc_type1,
1709};
1710
1711static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1712 .name = "mcbsp",
1713 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05301714 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001715};
1716
1717/* mcbsp1 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001718static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1719 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001720 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001721};
1722
Benoit Cousson4ddff492011-01-31 14:50:30 +00001723static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1724 .name = "mcbsp1",
1725 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001726 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001727 .main_clk = "func_mcbsp1_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001728 .prcm = {
1729 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001730 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001731 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001732 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001733 },
1734 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001735 .opt_clks = mcbsp1_opt_clks,
1736 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001737};
1738
1739/* mcbsp2 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001740static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1741 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001742 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001743};
1744
Benoit Cousson4ddff492011-01-31 14:50:30 +00001745static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1746 .name = "mcbsp2",
1747 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001748 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001749 .main_clk = "func_mcbsp2_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001750 .prcm = {
1751 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001752 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001753 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001754 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001755 },
1756 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001757 .opt_clks = mcbsp2_opt_clks,
1758 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001759};
1760
1761/* mcbsp3 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001762static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1763 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001764 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001765};
1766
Benoit Cousson4ddff492011-01-31 14:50:30 +00001767static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1768 .name = "mcbsp3",
1769 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001770 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001771 .main_clk = "func_mcbsp3_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001772 .prcm = {
1773 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001774 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001775 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001776 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001777 },
1778 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001779 .opt_clks = mcbsp3_opt_clks,
1780 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001781};
1782
1783/* mcbsp4 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001784static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1785 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001786 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001787};
1788
Benoit Cousson4ddff492011-01-31 14:50:30 +00001789static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1790 .name = "mcbsp4",
1791 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001792 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001793 .main_clk = "per_mcbsp4_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001794 .prcm = {
1795 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001796 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001797 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001798 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001799 },
1800 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001801 .opt_clks = mcbsp4_opt_clks,
1802 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001803};
1804
1805/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001806 * 'mcpdm' class
1807 * multi channel pdm controller (proprietary interface with phoenix power
1808 * ic)
1809 */
1810
1811static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1812 .rev_offs = 0x0000,
1813 .sysc_offs = 0x0010,
1814 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1815 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1816 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1817 SIDLE_SMART_WKUP),
1818 .sysc_fields = &omap_hwmod_sysc_type2,
1819};
1820
1821static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1822 .name = "mcpdm",
1823 .sysc = &omap44xx_mcpdm_sysc,
1824};
1825
1826/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01001827static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1828 .name = "mcpdm",
1829 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001830 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06001831 /*
1832 * It's suspected that the McPDM requires an off-chip main
1833 * functional clock, controlled via I2C. This IP block is
1834 * currently reset very early during boot, before I2C is
1835 * available, so it doesn't seem that we have any choice in
1836 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001837 *
1838 * Also, McPDM needs to be configured to NO_IDLE mode when it
1839 * is in used otherwise vital clocks will be gated which
1840 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06001841 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001842 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001843 .main_clk = "pad_clks_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001844 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001845 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001846 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001847 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001848 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001849 },
1850 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001851};
1852
1853/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301854 * 'mcspi' class
1855 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1856 * bus
1857 */
1858
1859static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1860 .rev_offs = 0x0000,
1861 .sysc_offs = 0x0010,
1862 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1863 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1864 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1865 SIDLE_SMART_WKUP),
1866 .sysc_fields = &omap_hwmod_sysc_type2,
1867};
1868
1869static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1870 .name = "mcspi",
1871 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01001872 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301873};
1874
1875/* mcspi1 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301876static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
1877 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
1878 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
1879 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
1880 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
1881 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
1882 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
1883 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
1884 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001885 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301886};
1887
Benoit Cousson905a74d2011-02-18 14:01:06 +01001888/* mcspi1 dev_attr */
1889static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1890 .num_chipselect = 4,
1891};
1892
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301893static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1894 .name = "mcspi1",
1895 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001896 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301897 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001898 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301899 .prcm = {
1900 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001901 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001902 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001903 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301904 },
1905 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001906 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301907};
1908
1909/* mcspi2 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301910static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
1911 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
1912 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
1913 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
1914 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001915 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301916};
1917
Benoit Cousson905a74d2011-02-18 14:01:06 +01001918/* mcspi2 dev_attr */
1919static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1920 .num_chipselect = 2,
1921};
1922
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301923static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1924 .name = "mcspi2",
1925 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001926 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301927 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001928 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301929 .prcm = {
1930 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001931 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001932 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001933 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301934 },
1935 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001936 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301937};
1938
1939/* mcspi3 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301940static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
1941 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
1942 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
1943 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
1944 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001945 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301946};
1947
Benoit Cousson905a74d2011-02-18 14:01:06 +01001948/* mcspi3 dev_attr */
1949static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1950 .num_chipselect = 2,
1951};
1952
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301953static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1954 .name = "mcspi3",
1955 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001956 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301957 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001958 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301959 .prcm = {
1960 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001961 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001962 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001963 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301964 },
1965 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001966 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301967};
1968
1969/* mcspi4 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301970static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
1971 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
1972 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001973 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301974};
1975
Benoit Cousson905a74d2011-02-18 14:01:06 +01001976/* mcspi4 dev_attr */
1977static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1978 .num_chipselect = 1,
1979};
1980
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301981static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1982 .name = "mcspi4",
1983 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001984 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301985 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001986 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301987 .prcm = {
1988 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001989 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001990 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001991 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301992 },
1993 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001994 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301995};
1996
1997/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001998 * 'mmc' class
1999 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
2000 */
2001
2002static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
2003 .rev_offs = 0x0000,
2004 .sysc_offs = 0x0010,
2005 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
2006 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2007 SYSC_HAS_SOFTRESET),
2008 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2009 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02002010 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01002011 .sysc_fields = &omap_hwmod_sysc_type2,
2012};
2013
2014static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
2015 .name = "mmc",
2016 .sysc = &omap44xx_mmc_sysc,
2017};
2018
2019/* mmc1 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002020static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
2021 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
2022 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002023 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002024};
2025
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08002026/* mmc1 dev_attr */
Andreas Fenkart551434382014-11-08 15:33:09 +01002027static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08002028 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2029};
2030
Benoit Cousson407a6882011-02-15 22:39:48 +01002031static struct omap_hwmod omap44xx_mmc1_hwmod = {
2032 .name = "mmc1",
2033 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002034 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002035 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002036 .main_clk = "hsmmc1_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002037 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002038 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002039 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002040 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002041 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002042 },
2043 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08002044 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01002045};
2046
2047/* mmc2 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002048static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
2049 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
2050 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002051 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002052};
2053
Benoit Cousson407a6882011-02-15 22:39:48 +01002054static struct omap_hwmod omap44xx_mmc2_hwmod = {
2055 .name = "mmc2",
2056 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002057 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002058 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002059 .main_clk = "hsmmc2_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002060 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002061 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002062 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002063 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002064 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002065 },
2066 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002067};
2068
2069/* mmc3 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002070static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2071 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2072 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002073 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002074};
2075
Benoit Cousson407a6882011-02-15 22:39:48 +01002076static struct omap_hwmod omap44xx_mmc3_hwmod = {
2077 .name = "mmc3",
2078 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002079 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002080 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002081 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002082 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002083 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002084 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002085 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002086 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002087 },
2088 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002089};
2090
2091/* mmc4 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002092static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2093 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2094 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002095 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002096};
2097
Benoit Cousson407a6882011-02-15 22:39:48 +01002098static struct omap_hwmod omap44xx_mmc4_hwmod = {
2099 .name = "mmc4",
2100 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002101 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002102 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002103 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002104 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002105 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002106 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002107 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002108 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002109 },
2110 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002111};
2112
2113/* mmc5 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002114static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2115 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2116 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002117 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002118};
2119
Benoit Cousson407a6882011-02-15 22:39:48 +01002120static struct omap_hwmod omap44xx_mmc5_hwmod = {
2121 .name = "mmc5",
2122 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002123 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002124 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002125 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002126 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002127 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002128 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002129 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002130 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002131 },
2132 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002133};
2134
2135/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002136 * 'mmu' class
2137 * The memory management unit performs virtual to physical address translation
2138 * for its requestors.
2139 */
2140
2141static struct omap_hwmod_class_sysconfig mmu_sysc = {
2142 .rev_offs = 0x000,
2143 .sysc_offs = 0x010,
2144 .syss_offs = 0x014,
2145 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2146 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2147 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2148 .sysc_fields = &omap_hwmod_sysc_type1,
2149};
2150
2151static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2152 .name = "mmu",
2153 .sysc = &mmu_sysc,
2154};
2155
2156/* mmu ipu */
2157
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002158static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002159static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2160 { .name = "mmu_cache", .rst_shift = 2 },
2161};
2162
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002163/* l3_main_2 -> mmu_ipu */
2164static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2165 .master = &omap44xx_l3_main_2_hwmod,
2166 .slave = &omap44xx_mmu_ipu_hwmod,
2167 .clk = "l3_div_ck",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002168 .user = OCP_USER_MPU | OCP_USER_SDMA,
2169};
2170
2171static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2172 .name = "mmu_ipu",
2173 .class = &omap44xx_mmu_hwmod_class,
2174 .clkdm_name = "ducati_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002175 .rst_lines = omap44xx_mmu_ipu_resets,
2176 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2177 .main_clk = "ducati_clk_mux_ck",
2178 .prcm = {
2179 .omap4 = {
2180 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2181 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2182 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2183 .modulemode = MODULEMODE_HWCTRL,
2184 },
2185 },
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002186};
2187
2188/* mmu dsp */
2189
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002190static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002191static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2192 { .name = "mmu_cache", .rst_shift = 1 },
2193};
2194
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002195/* l4_cfg -> dsp */
2196static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2197 .master = &omap44xx_l4_cfg_hwmod,
2198 .slave = &omap44xx_mmu_dsp_hwmod,
2199 .clk = "l4_div_ck",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002200 .user = OCP_USER_MPU | OCP_USER_SDMA,
2201};
2202
2203static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2204 .name = "mmu_dsp",
2205 .class = &omap44xx_mmu_hwmod_class,
2206 .clkdm_name = "tesla_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002207 .rst_lines = omap44xx_mmu_dsp_resets,
2208 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2209 .main_clk = "dpll_iva_m4x2_ck",
2210 .prcm = {
2211 .omap4 = {
2212 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2213 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2214 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2215 .modulemode = MODULEMODE_HWCTRL,
2216 },
2217 },
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002218};
2219
2220/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002221 * 'mpu' class
2222 * mpu sub-system
2223 */
2224
2225static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002226 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002227};
2228
2229/* mpu */
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002230static struct omap_hwmod omap44xx_mpu_hwmod = {
2231 .name = "mpu",
2232 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002233 .clkdm_name = "mpuss_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +05302234 .flags = HWMOD_INIT_NO_IDLE,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002235 .main_clk = "dpll_mpu_m2_ck",
2236 .prcm = {
2237 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002238 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002239 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002240 },
2241 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002242};
2243
Benoit Cousson92b18d12010-09-23 20:02:41 +05302244/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06002245 * 'ocmc_ram' class
2246 * top-level core on-chip ram
2247 */
2248
2249static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2250 .name = "ocmc_ram",
2251};
2252
2253/* ocmc_ram */
2254static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2255 .name = "ocmc_ram",
2256 .class = &omap44xx_ocmc_ram_hwmod_class,
2257 .clkdm_name = "l3_2_clkdm",
2258 .prcm = {
2259 .omap4 = {
2260 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2261 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2262 },
2263 },
2264};
2265
2266/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002267 * 'ocp2scp' class
2268 * bridge to transform ocp interface protocol to scp (serial control port)
2269 * protocol
2270 */
2271
Benoit Cousson33c976e2012-09-23 17:28:21 -06002272static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2273 .rev_offs = 0x0000,
2274 .sysc_offs = 0x0010,
2275 .syss_offs = 0x0014,
2276 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2277 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2278 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2279 .sysc_fields = &omap_hwmod_sysc_type1,
2280};
2281
Benoît Cousson0c668872012-04-19 13:33:55 -06002282static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2283 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06002284 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06002285};
2286
2287/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06002288static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2289 .name = "ocp2scp_usb_phy",
2290 .class = &omap44xx_ocp2scp_hwmod_class,
2291 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham If4d7a532013-04-10 19:41:38 +00002292 /*
2293 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2294 * block as an "optional clock," and normally should never be
2295 * specified as the main_clk for an OMAP IP block. However it
2296 * turns out that this clock is actually the main clock for
2297 * the ocp2scp_usb_phy IP block:
2298 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2299 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2300 * to be the best workaround.
2301 */
2302 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06002303 .prcm = {
2304 .omap4 = {
2305 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2306 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2307 .modulemode = MODULEMODE_HWCTRL,
2308 },
2309 },
Benoît Cousson0c668872012-04-19 13:33:55 -06002310};
2311
2312/*
Paul Walmsley794b4802012-04-19 13:33:58 -06002313 * 'prcm' class
2314 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2315 * + clock manager 1 (in always on power domain) + local prm in mpu
2316 */
2317
2318static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2319 .name = "prcm",
2320};
2321
2322/* prcm_mpu */
2323static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2324 .name = "prcm_mpu",
2325 .class = &omap44xx_prcm_hwmod_class,
2326 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06002327 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002328 .prcm = {
2329 .omap4 = {
2330 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2331 },
2332 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002333};
2334
2335/* cm_core_aon */
2336static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2337 .name = "cm_core_aon",
2338 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002339 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002340 .prcm = {
2341 .omap4 = {
2342 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2343 },
2344 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002345};
2346
2347/* cm_core */
2348static struct omap_hwmod omap44xx_cm_core_hwmod = {
2349 .name = "cm_core",
2350 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002351 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002352 .prcm = {
2353 .omap4 = {
2354 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2355 },
2356 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002357};
2358
2359/* prm */
Paul Walmsley794b4802012-04-19 13:33:58 -06002360static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2361 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2362 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2363};
2364
2365static struct omap_hwmod omap44xx_prm_hwmod = {
2366 .name = "prm",
2367 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06002368 .rst_lines = omap44xx_prm_resets,
2369 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2370};
2371
2372/*
2373 * 'scrm' class
2374 * system clock and reset manager
2375 */
2376
2377static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2378 .name = "scrm",
2379};
2380
2381/* scrm */
2382static struct omap_hwmod omap44xx_scrm_hwmod = {
2383 .name = "scrm",
2384 .class = &omap44xx_scrm_hwmod_class,
2385 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06002386 .prcm = {
2387 .omap4 = {
2388 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2389 },
2390 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002391};
2392
2393/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06002394 * 'sl2if' class
2395 * shared level 2 memory interface
2396 */
2397
2398static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2399 .name = "sl2if",
2400};
2401
2402/* sl2if */
2403static struct omap_hwmod omap44xx_sl2if_hwmod = {
2404 .name = "sl2if",
2405 .class = &omap44xx_sl2if_hwmod_class,
2406 .clkdm_name = "ivahd_clkdm",
2407 .prcm = {
2408 .omap4 = {
2409 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2410 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2411 .modulemode = MODULEMODE_HWCTRL,
2412 },
2413 },
2414};
2415
2416/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002417 * 'slimbus' class
2418 * bidirectional, multi-drop, multi-channel two-line serial interface between
2419 * the device and external components
2420 */
2421
2422static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2423 .rev_offs = 0x0000,
2424 .sysc_offs = 0x0010,
2425 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2426 SYSC_HAS_SOFTRESET),
2427 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2428 SIDLE_SMART_WKUP),
2429 .sysc_fields = &omap_hwmod_sysc_type2,
2430};
2431
2432static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2433 .name = "slimbus",
2434 .sysc = &omap44xx_slimbus_sysc,
2435};
2436
2437/* slimbus1 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002438static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2439 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2440 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2441 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2442 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2443};
2444
2445static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2446 .name = "slimbus1",
2447 .class = &omap44xx_slimbus_hwmod_class,
2448 .clkdm_name = "abe_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002449 .prcm = {
2450 .omap4 = {
2451 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2452 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2453 .modulemode = MODULEMODE_SWCTRL,
2454 },
2455 },
2456 .opt_clks = slimbus1_opt_clks,
2457 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2458};
2459
2460/* slimbus2 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002461static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2462 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2463 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2464 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2465};
2466
2467static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2468 .name = "slimbus2",
2469 .class = &omap44xx_slimbus_hwmod_class,
2470 .clkdm_name = "l4_per_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002471 .prcm = {
2472 .omap4 = {
2473 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2474 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2475 .modulemode = MODULEMODE_SWCTRL,
2476 },
2477 },
2478 .opt_clks = slimbus2_opt_clks,
2479 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2480};
2481
2482/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002483 * 'smartreflex' class
2484 * smartreflex module (monitor silicon performance and outputs a measure of
2485 * performance error)
2486 */
2487
2488/* The IP is not compliant to type1 / type2 scheme */
2489static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2490 .sidle_shift = 24,
2491 .enwkup_shift = 26,
2492};
2493
2494static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2495 .sysc_offs = 0x0038,
2496 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2497 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2498 SIDLE_SMART_WKUP),
2499 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2500};
2501
2502static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002503 .name = "smartreflex",
2504 .sysc = &omap44xx_smartreflex_sysc,
2505 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002506};
2507
2508/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002509static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2510 .sensor_voltdm_name = "core",
2511};
2512
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002513static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2514 .name = "smartreflex_core",
2515 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002516 .clkdm_name = "l4_ao_clkdm",
Paul Walmsley212738a2011-07-09 19:14:06 -06002517
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002518 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002519 .prcm = {
2520 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002521 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002522 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002523 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002524 },
2525 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002526 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002527};
2528
2529/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002530static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2531 .sensor_voltdm_name = "iva",
2532};
2533
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002534static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2535 .name = "smartreflex_iva",
2536 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002537 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002538 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002539 .prcm = {
2540 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002541 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002542 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002543 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002544 },
2545 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002546 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002547};
2548
2549/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002550static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2551 .sensor_voltdm_name = "mpu",
2552};
2553
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002554static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2555 .name = "smartreflex_mpu",
2556 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002557 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002558 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002559 .prcm = {
2560 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002561 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002562 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002563 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002564 },
2565 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002566 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002567};
2568
2569/*
Benoit Coussond11c2172011-02-02 12:04:36 +00002570 * 'spinlock' class
2571 * spinlock provides hardware assistance for synchronizing the processes
2572 * running on multiple processors
2573 */
2574
2575static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2576 .rev_offs = 0x0000,
2577 .sysc_offs = 0x0010,
2578 .syss_offs = 0x0014,
2579 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2580 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2581 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Suman Anna77319662013-12-23 16:48:48 -06002582 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Benoit Coussond11c2172011-02-02 12:04:36 +00002583 .sysc_fields = &omap_hwmod_sysc_type1,
2584};
2585
2586static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2587 .name = "spinlock",
2588 .sysc = &omap44xx_spinlock_sysc,
2589};
2590
2591/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00002592static struct omap_hwmod omap44xx_spinlock_hwmod = {
2593 .name = "spinlock",
2594 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002595 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00002596 .prcm = {
2597 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002598 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002599 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00002600 },
2601 },
Benoit Coussond11c2172011-02-02 12:04:36 +00002602};
2603
2604/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00002605 * 'timer' class
2606 * general purpose timer module with accurate 1ms tick
2607 * This class contains several variants: ['timer_1ms', 'timer']
2608 */
2609
2610static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2611 .rev_offs = 0x0000,
2612 .sysc_offs = 0x0010,
2613 .syss_offs = 0x0014,
2614 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2615 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2616 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2617 SYSS_HAS_RESET_STATUS),
2618 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2619 .sysc_fields = &omap_hwmod_sysc_type1,
2620};
2621
2622static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2623 .name = "timer",
2624 .sysc = &omap44xx_timer_1ms_sysc,
2625};
2626
2627static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2628 .rev_offs = 0x0000,
2629 .sysc_offs = 0x0010,
2630 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2631 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2632 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2633 SIDLE_SMART_WKUP),
2634 .sysc_fields = &omap_hwmod_sysc_type2,
2635};
2636
2637static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2638 .name = "timer",
2639 .sysc = &omap44xx_timer_sysc,
2640};
2641
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302642/* always-on timers dev attribute */
2643static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
2644 .timer_capability = OMAP_TIMER_ALWON,
2645};
2646
2647/* pwm timers dev attribute */
2648static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
2649 .timer_capability = OMAP_TIMER_HAS_PWM,
2650};
2651
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002652/* timers with DSP interrupt dev attribute */
2653static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
2654 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
2655};
2656
2657/* pwm timers with DSP interrupt dev attribute */
2658static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
2659 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
2660};
2661
Benoit Cousson35d1a662011-02-11 11:17:14 +00002662/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002663static struct omap_hwmod omap44xx_timer1_hwmod = {
2664 .name = "timer1",
2665 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002666 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002667 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002668 .main_clk = "dmt1_clk_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002669 .prcm = {
2670 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002671 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002672 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002673 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002674 },
2675 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302676 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002677};
2678
2679/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002680static struct omap_hwmod omap44xx_timer2_hwmod = {
2681 .name = "timer2",
2682 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002683 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002684 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002685 .main_clk = "cm2_dm2_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002686 .prcm = {
2687 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002688 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002689 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002690 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002691 },
2692 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002693};
2694
2695/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002696static struct omap_hwmod omap44xx_timer3_hwmod = {
2697 .name = "timer3",
2698 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002699 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002700 .main_clk = "cm2_dm3_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002701 .prcm = {
2702 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002703 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002704 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002705 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002706 },
2707 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002708};
2709
2710/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002711static struct omap_hwmod omap44xx_timer4_hwmod = {
2712 .name = "timer4",
2713 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002714 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002715 .main_clk = "cm2_dm4_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002716 .prcm = {
2717 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002718 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002719 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002720 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002721 },
2722 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002723};
2724
2725/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002726static struct omap_hwmod omap44xx_timer5_hwmod = {
2727 .name = "timer5",
2728 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002729 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002730 .main_clk = "timer5_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002731 .prcm = {
2732 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002733 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002734 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002735 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002736 },
2737 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002738 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002739};
2740
2741/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002742static struct omap_hwmod omap44xx_timer6_hwmod = {
2743 .name = "timer6",
2744 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002745 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002746 .main_clk = "timer6_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002747 .prcm = {
2748 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002749 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002750 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002751 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002752 },
2753 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002754 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002755};
2756
2757/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002758static struct omap_hwmod omap44xx_timer7_hwmod = {
2759 .name = "timer7",
2760 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002761 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002762 .main_clk = "timer7_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002763 .prcm = {
2764 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002765 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002766 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002767 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002768 },
2769 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002770 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002771};
2772
2773/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002774static struct omap_hwmod omap44xx_timer8_hwmod = {
2775 .name = "timer8",
2776 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002777 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002778 .main_clk = "timer8_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002779 .prcm = {
2780 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002781 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002782 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002783 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002784 },
2785 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002786 .dev_attr = &capability_dsp_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002787};
2788
2789/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002790static struct omap_hwmod omap44xx_timer9_hwmod = {
2791 .name = "timer9",
2792 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002793 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002794 .main_clk = "cm2_dm9_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002795 .prcm = {
2796 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002797 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002798 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002799 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002800 },
2801 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302802 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002803};
2804
2805/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002806static struct omap_hwmod omap44xx_timer10_hwmod = {
2807 .name = "timer10",
2808 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002809 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002810 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002811 .main_clk = "cm2_dm10_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002812 .prcm = {
2813 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002814 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002815 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002816 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002817 },
2818 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302819 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002820};
2821
2822/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002823static struct omap_hwmod omap44xx_timer11_hwmod = {
2824 .name = "timer11",
2825 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002826 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002827 .main_clk = "cm2_dm11_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002828 .prcm = {
2829 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002830 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002831 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002832 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002833 },
2834 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302835 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002836};
2837
2838/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05302839 * 'uart' class
2840 * universal asynchronous receiver/transmitter (uart)
2841 */
2842
2843static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2844 .rev_offs = 0x0050,
2845 .sysc_offs = 0x0054,
2846 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002847 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002848 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2849 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002850 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2851 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05302852 .sysc_fields = &omap_hwmod_sysc_type1,
2853};
2854
2855static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002856 .name = "uart",
2857 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302858};
2859
2860/* uart1 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302861static struct omap_hwmod omap44xx_uart1_hwmod = {
2862 .name = "uart1",
2863 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002864 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302865 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002866 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302867 .prcm = {
2868 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002869 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002870 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002871 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302872 },
2873 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302874};
2875
2876/* uart2 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302877static struct omap_hwmod omap44xx_uart2_hwmod = {
2878 .name = "uart2",
2879 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002880 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302881 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002882 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302883 .prcm = {
2884 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002885 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002886 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002887 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302888 },
2889 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302890};
2891
2892/* uart3 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302893static struct omap_hwmod omap44xx_uart3_hwmod = {
2894 .name = "uart3",
2895 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002896 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002897 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002898 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302899 .prcm = {
2900 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002901 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002902 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002903 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302904 },
2905 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302906};
2907
2908/* uart4 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302909static struct omap_hwmod omap44xx_uart4_hwmod = {
2910 .name = "uart4",
2911 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002912 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002913 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002914 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302915 .prcm = {
2916 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002917 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002918 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002919 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302920 },
2921 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302922};
2923
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002924/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002925 * 'usb_host_fs' class
2926 * full-speed usb host controller
2927 */
2928
2929/* The IP is not compliant to type1 / type2 scheme */
2930static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
2931 .midle_shift = 4,
2932 .sidle_shift = 2,
2933 .srst_shift = 1,
2934};
2935
2936static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2937 .rev_offs = 0x0000,
2938 .sysc_offs = 0x0210,
2939 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2940 SYSC_HAS_SOFTRESET),
2941 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2942 SIDLE_SMART_WKUP),
2943 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2944};
2945
2946static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2947 .name = "usb_host_fs",
2948 .sysc = &omap44xx_usb_host_fs_sysc,
2949};
2950
2951/* usb_host_fs */
Benoît Cousson0c668872012-04-19 13:33:55 -06002952static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2953 .name = "usb_host_fs",
2954 .class = &omap44xx_usb_host_fs_hwmod_class,
2955 .clkdm_name = "l3_init_clkdm",
Benoît Cousson0c668872012-04-19 13:33:55 -06002956 .main_clk = "usb_host_fs_fck",
2957 .prcm = {
2958 .omap4 = {
2959 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2960 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2961 .modulemode = MODULEMODE_SWCTRL,
2962 },
2963 },
2964};
2965
2966/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002967 * 'usb_host_hs' class
2968 * high-speed multi-port usb host controller
2969 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002970
2971static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2972 .rev_offs = 0x0000,
2973 .sysc_offs = 0x0010,
2974 .syss_offs = 0x0014,
2975 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002976 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002977 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2978 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2979 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2980 .sysc_fields = &omap_hwmod_sysc_type2,
2981};
2982
2983static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002984 .name = "usb_host_hs",
2985 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002986};
2987
Paul Walmsley844a3b62012-04-19 04:04:33 -06002988/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002989static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2990 .name = "usb_host_hs",
2991 .class = &omap44xx_usb_host_hs_hwmod_class,
2992 .clkdm_name = "l3_init_clkdm",
2993 .main_clk = "usb_host_hs_fck",
2994 .prcm = {
2995 .omap4 = {
2996 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2997 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2998 .modulemode = MODULEMODE_SWCTRL,
2999 },
3000 },
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003001
3002 /*
3003 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
3004 * id: i660
3005 *
3006 * Description:
3007 * In the following configuration :
3008 * - USBHOST module is set to smart-idle mode
3009 * - PRCM asserts idle_req to the USBHOST module ( This typically
3010 * happens when the system is going to a low power mode : all ports
3011 * have been suspended, the master part of the USBHOST module has
3012 * entered the standby state, and SW has cut the functional clocks)
3013 * - an USBHOST interrupt occurs before the module is able to answer
3014 * idle_ack, typically a remote wakeup IRQ.
3015 * Then the USB HOST module will enter a deadlock situation where it
3016 * is no more accessible nor functional.
3017 *
3018 * Workaround:
3019 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
3020 */
3021
3022 /*
3023 * Errata: USB host EHCI may stall when entering smart-standby mode
3024 * Id: i571
3025 *
3026 * Description:
3027 * When the USBHOST module is set to smart-standby mode, and when it is
3028 * ready to enter the standby state (i.e. all ports are suspended and
3029 * all attached devices are in suspend mode), then it can wrongly assert
3030 * the Mstandby signal too early while there are still some residual OCP
3031 * transactions ongoing. If this condition occurs, the internal state
3032 * machine may go to an undefined state and the USB link may be stuck
3033 * upon the next resume.
3034 *
3035 * Workaround:
3036 * Don't use smart standby; use only force standby,
3037 * hence HWMOD_SWSUP_MSTANDBY
3038 */
3039
Roger Quadrosb483a4a2013-12-03 16:25:46 +02003040 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003041};
3042
3043/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06003044 * 'usb_otg_hs' class
3045 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3046 */
3047
3048static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3049 .rev_offs = 0x0400,
3050 .sysc_offs = 0x0404,
3051 .syss_offs = 0x0408,
3052 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3053 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3054 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3055 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3056 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3057 MSTANDBY_SMART),
3058 .sysc_fields = &omap_hwmod_sysc_type1,
3059};
3060
3061static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3062 .name = "usb_otg_hs",
3063 .sysc = &omap44xx_usb_otg_hs_sysc,
3064};
3065
3066/* usb_otg_hs */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003067static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3068 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3069};
3070
3071static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3072 .name = "usb_otg_hs",
3073 .class = &omap44xx_usb_otg_hs_hwmod_class,
3074 .clkdm_name = "l3_init_clkdm",
3075 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003076 .main_clk = "usb_otg_hs_ick",
3077 .prcm = {
3078 .omap4 = {
3079 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3080 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3081 .modulemode = MODULEMODE_HWCTRL,
3082 },
3083 },
3084 .opt_clks = usb_otg_hs_opt_clks,
3085 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3086};
3087
3088/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003089 * 'usb_tll_hs' class
3090 * usb_tll_hs module is the adapter on the usb_host_hs ports
3091 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003092
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003093static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3094 .rev_offs = 0x0000,
3095 .sysc_offs = 0x0010,
3096 .syss_offs = 0x0014,
3097 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3098 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3099 SYSC_HAS_AUTOIDLE),
3100 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3101 .sysc_fields = &omap_hwmod_sysc_type1,
3102};
3103
3104static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003105 .name = "usb_tll_hs",
3106 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003107};
3108
Paul Walmsley844a3b62012-04-19 04:04:33 -06003109static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3110 .name = "usb_tll_hs",
3111 .class = &omap44xx_usb_tll_hs_hwmod_class,
3112 .clkdm_name = "l3_init_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003113 .main_clk = "usb_tll_hs_ick",
3114 .prcm = {
3115 .omap4 = {
3116 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3117 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3118 .modulemode = MODULEMODE_HWCTRL,
3119 },
3120 },
3121};
3122
3123/*
3124 * 'wd_timer' class
3125 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3126 * overflow condition
3127 */
3128
3129static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3130 .rev_offs = 0x0000,
3131 .sysc_offs = 0x0010,
3132 .syss_offs = 0x0014,
3133 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3134 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3135 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3136 SIDLE_SMART_WKUP),
3137 .sysc_fields = &omap_hwmod_sysc_type1,
3138};
3139
3140static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3141 .name = "wd_timer",
3142 .sysc = &omap44xx_wd_timer_sysc,
3143 .pre_shutdown = &omap2_wd_timer_disable,
Kevin Hilman414e4122012-05-08 11:34:30 -06003144 .reset = &omap2_wd_timer_reset,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003145};
3146
3147/* wd_timer2 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003148static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3149 .name = "wd_timer2",
3150 .class = &omap44xx_wd_timer_hwmod_class,
3151 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003152 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003153 .prcm = {
3154 .omap4 = {
3155 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3156 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3157 .modulemode = MODULEMODE_SWCTRL,
3158 },
3159 },
3160};
3161
3162/* wd_timer3 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003163static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3164 .name = "wd_timer3",
3165 .class = &omap44xx_wd_timer_hwmod_class,
3166 .clkdm_name = "abe_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003167 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003168 .prcm = {
3169 .omap4 = {
3170 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3171 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3172 .modulemode = MODULEMODE_SWCTRL,
3173 },
3174 },
3175};
3176
3177
3178/*
3179 * interfaces
3180 */
3181
3182/* l3_main_1 -> dmm */
3183static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3184 .master = &omap44xx_l3_main_1_hwmod,
3185 .slave = &omap44xx_dmm_hwmod,
3186 .clk = "l3_div_ck",
3187 .user = OCP_USER_SDMA,
3188};
3189
Paul Walmsley844a3b62012-04-19 04:04:33 -06003190/* mpu -> dmm */
3191static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3192 .master = &omap44xx_mpu_hwmod,
3193 .slave = &omap44xx_dmm_hwmod,
3194 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003195 .user = OCP_USER_MPU,
3196};
3197
3198/* iva -> l3_instr */
3199static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3200 .master = &omap44xx_iva_hwmod,
3201 .slave = &omap44xx_l3_instr_hwmod,
3202 .clk = "l3_div_ck",
3203 .user = OCP_USER_MPU | OCP_USER_SDMA,
3204};
3205
3206/* l3_main_3 -> l3_instr */
3207static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3208 .master = &omap44xx_l3_main_3_hwmod,
3209 .slave = &omap44xx_l3_instr_hwmod,
3210 .clk = "l3_div_ck",
3211 .user = OCP_USER_MPU | OCP_USER_SDMA,
3212};
3213
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003214/* ocp_wp_noc -> l3_instr */
3215static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3216 .master = &omap44xx_ocp_wp_noc_hwmod,
3217 .slave = &omap44xx_l3_instr_hwmod,
3218 .clk = "l3_div_ck",
3219 .user = OCP_USER_MPU | OCP_USER_SDMA,
3220};
3221
Paul Walmsley844a3b62012-04-19 04:04:33 -06003222/* dsp -> l3_main_1 */
3223static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3224 .master = &omap44xx_dsp_hwmod,
3225 .slave = &omap44xx_l3_main_1_hwmod,
3226 .clk = "l3_div_ck",
3227 .user = OCP_USER_MPU | OCP_USER_SDMA,
3228};
3229
3230/* dss -> l3_main_1 */
3231static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3232 .master = &omap44xx_dss_hwmod,
3233 .slave = &omap44xx_l3_main_1_hwmod,
3234 .clk = "l3_div_ck",
3235 .user = OCP_USER_MPU | OCP_USER_SDMA,
3236};
3237
3238/* l3_main_2 -> l3_main_1 */
3239static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3240 .master = &omap44xx_l3_main_2_hwmod,
3241 .slave = &omap44xx_l3_main_1_hwmod,
3242 .clk = "l3_div_ck",
3243 .user = OCP_USER_MPU | OCP_USER_SDMA,
3244};
3245
3246/* l4_cfg -> l3_main_1 */
3247static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3248 .master = &omap44xx_l4_cfg_hwmod,
3249 .slave = &omap44xx_l3_main_1_hwmod,
3250 .clk = "l4_div_ck",
3251 .user = OCP_USER_MPU | OCP_USER_SDMA,
3252};
3253
3254/* mmc1 -> l3_main_1 */
3255static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3256 .master = &omap44xx_mmc1_hwmod,
3257 .slave = &omap44xx_l3_main_1_hwmod,
3258 .clk = "l3_div_ck",
3259 .user = OCP_USER_MPU | OCP_USER_SDMA,
3260};
3261
3262/* mmc2 -> l3_main_1 */
3263static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3264 .master = &omap44xx_mmc2_hwmod,
3265 .slave = &omap44xx_l3_main_1_hwmod,
3266 .clk = "l3_div_ck",
3267 .user = OCP_USER_MPU | OCP_USER_SDMA,
3268};
3269
Paul Walmsley844a3b62012-04-19 04:04:33 -06003270/* mpu -> l3_main_1 */
3271static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3272 .master = &omap44xx_mpu_hwmod,
3273 .slave = &omap44xx_l3_main_1_hwmod,
3274 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003275 .user = OCP_USER_MPU,
3276};
3277
Benoît Cousson96566042012-04-19 13:33:59 -06003278/* debugss -> l3_main_2 */
3279static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3280 .master = &omap44xx_debugss_hwmod,
3281 .slave = &omap44xx_l3_main_2_hwmod,
3282 .clk = "dbgclk_mux_ck",
3283 .user = OCP_USER_MPU | OCP_USER_SDMA,
3284};
3285
Paul Walmsley844a3b62012-04-19 04:04:33 -06003286/* dma_system -> l3_main_2 */
3287static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3288 .master = &omap44xx_dma_system_hwmod,
3289 .slave = &omap44xx_l3_main_2_hwmod,
3290 .clk = "l3_div_ck",
3291 .user = OCP_USER_MPU | OCP_USER_SDMA,
3292};
3293
Ming Leib050f682012-04-19 13:33:50 -06003294/* fdif -> l3_main_2 */
3295static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3296 .master = &omap44xx_fdif_hwmod,
3297 .slave = &omap44xx_l3_main_2_hwmod,
3298 .clk = "l3_div_ck",
3299 .user = OCP_USER_MPU | OCP_USER_SDMA,
3300};
3301
Paul Walmsley9def3902012-04-19 13:33:53 -06003302/* gpu -> l3_main_2 */
3303static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3304 .master = &omap44xx_gpu_hwmod,
3305 .slave = &omap44xx_l3_main_2_hwmod,
3306 .clk = "l3_div_ck",
3307 .user = OCP_USER_MPU | OCP_USER_SDMA,
3308};
3309
Paul Walmsley844a3b62012-04-19 04:04:33 -06003310/* hsi -> l3_main_2 */
3311static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3312 .master = &omap44xx_hsi_hwmod,
3313 .slave = &omap44xx_l3_main_2_hwmod,
3314 .clk = "l3_div_ck",
3315 .user = OCP_USER_MPU | OCP_USER_SDMA,
3316};
3317
3318/* ipu -> l3_main_2 */
3319static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3320 .master = &omap44xx_ipu_hwmod,
3321 .slave = &omap44xx_l3_main_2_hwmod,
3322 .clk = "l3_div_ck",
3323 .user = OCP_USER_MPU | OCP_USER_SDMA,
3324};
3325
3326/* iss -> l3_main_2 */
3327static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3328 .master = &omap44xx_iss_hwmod,
3329 .slave = &omap44xx_l3_main_2_hwmod,
3330 .clk = "l3_div_ck",
3331 .user = OCP_USER_MPU | OCP_USER_SDMA,
3332};
3333
3334/* iva -> l3_main_2 */
3335static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3336 .master = &omap44xx_iva_hwmod,
3337 .slave = &omap44xx_l3_main_2_hwmod,
3338 .clk = "l3_div_ck",
3339 .user = OCP_USER_MPU | OCP_USER_SDMA,
3340};
3341
Paul Walmsley844a3b62012-04-19 04:04:33 -06003342/* l3_main_1 -> l3_main_2 */
3343static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3344 .master = &omap44xx_l3_main_1_hwmod,
3345 .slave = &omap44xx_l3_main_2_hwmod,
3346 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003347 .user = OCP_USER_MPU,
3348};
3349
3350/* l4_cfg -> l3_main_2 */
3351static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3352 .master = &omap44xx_l4_cfg_hwmod,
3353 .slave = &omap44xx_l3_main_2_hwmod,
3354 .clk = "l4_div_ck",
3355 .user = OCP_USER_MPU | OCP_USER_SDMA,
3356};
3357
Benoît Cousson0c668872012-04-19 13:33:55 -06003358/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003359static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06003360 .master = &omap44xx_usb_host_fs_hwmod,
3361 .slave = &omap44xx_l3_main_2_hwmod,
3362 .clk = "l3_div_ck",
3363 .user = OCP_USER_MPU | OCP_USER_SDMA,
3364};
3365
Paul Walmsley844a3b62012-04-19 04:04:33 -06003366/* usb_host_hs -> l3_main_2 */
3367static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3368 .master = &omap44xx_usb_host_hs_hwmod,
3369 .slave = &omap44xx_l3_main_2_hwmod,
3370 .clk = "l3_div_ck",
3371 .user = OCP_USER_MPU | OCP_USER_SDMA,
3372};
3373
3374/* usb_otg_hs -> l3_main_2 */
3375static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3376 .master = &omap44xx_usb_otg_hs_hwmod,
3377 .slave = &omap44xx_l3_main_2_hwmod,
3378 .clk = "l3_div_ck",
3379 .user = OCP_USER_MPU | OCP_USER_SDMA,
3380};
3381
Paul Walmsley844a3b62012-04-19 04:04:33 -06003382/* l3_main_1 -> l3_main_3 */
3383static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3384 .master = &omap44xx_l3_main_1_hwmod,
3385 .slave = &omap44xx_l3_main_3_hwmod,
3386 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003387 .user = OCP_USER_MPU,
3388};
3389
3390/* l3_main_2 -> l3_main_3 */
3391static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3392 .master = &omap44xx_l3_main_2_hwmod,
3393 .slave = &omap44xx_l3_main_3_hwmod,
3394 .clk = "l3_div_ck",
3395 .user = OCP_USER_MPU | OCP_USER_SDMA,
3396};
3397
3398/* l4_cfg -> l3_main_3 */
3399static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3400 .master = &omap44xx_l4_cfg_hwmod,
3401 .slave = &omap44xx_l3_main_3_hwmod,
3402 .clk = "l4_div_ck",
3403 .user = OCP_USER_MPU | OCP_USER_SDMA,
3404};
3405
3406/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003407static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003408 .master = &omap44xx_aess_hwmod,
3409 .slave = &omap44xx_l4_abe_hwmod,
3410 .clk = "ocp_abe_iclk",
3411 .user = OCP_USER_MPU | OCP_USER_SDMA,
3412};
3413
3414/* dsp -> l4_abe */
3415static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3416 .master = &omap44xx_dsp_hwmod,
3417 .slave = &omap44xx_l4_abe_hwmod,
3418 .clk = "ocp_abe_iclk",
3419 .user = OCP_USER_MPU | OCP_USER_SDMA,
3420};
3421
3422/* l3_main_1 -> l4_abe */
3423static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3424 .master = &omap44xx_l3_main_1_hwmod,
3425 .slave = &omap44xx_l4_abe_hwmod,
3426 .clk = "l3_div_ck",
3427 .user = OCP_USER_MPU | OCP_USER_SDMA,
3428};
3429
3430/* mpu -> l4_abe */
3431static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3432 .master = &omap44xx_mpu_hwmod,
3433 .slave = &omap44xx_l4_abe_hwmod,
3434 .clk = "ocp_abe_iclk",
3435 .user = OCP_USER_MPU | OCP_USER_SDMA,
3436};
3437
3438/* l3_main_1 -> l4_cfg */
3439static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3440 .master = &omap44xx_l3_main_1_hwmod,
3441 .slave = &omap44xx_l4_cfg_hwmod,
3442 .clk = "l3_div_ck",
3443 .user = OCP_USER_MPU | OCP_USER_SDMA,
3444};
3445
3446/* l3_main_2 -> l4_per */
3447static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3448 .master = &omap44xx_l3_main_2_hwmod,
3449 .slave = &omap44xx_l4_per_hwmod,
3450 .clk = "l3_div_ck",
3451 .user = OCP_USER_MPU | OCP_USER_SDMA,
3452};
3453
3454/* l4_cfg -> l4_wkup */
3455static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3456 .master = &omap44xx_l4_cfg_hwmod,
3457 .slave = &omap44xx_l4_wkup_hwmod,
3458 .clk = "l4_div_ck",
3459 .user = OCP_USER_MPU | OCP_USER_SDMA,
3460};
3461
3462/* mpu -> mpu_private */
3463static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3464 .master = &omap44xx_mpu_hwmod,
3465 .slave = &omap44xx_mpu_private_hwmod,
3466 .clk = "l3_div_ck",
3467 .user = OCP_USER_MPU | OCP_USER_SDMA,
3468};
3469
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003470/* l4_cfg -> ocp_wp_noc */
3471static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3472 .master = &omap44xx_l4_cfg_hwmod,
3473 .slave = &omap44xx_ocp_wp_noc_hwmod,
3474 .clk = "l4_div_ck",
Benoît Cousson9a817bc82012-04-19 13:33:56 -06003475 .user = OCP_USER_MPU | OCP_USER_SDMA,
3476};
3477
Paul Walmsley844a3b62012-04-19 04:04:33 -06003478static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
3479 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003480 .name = "dmem",
3481 .pa_start = 0x40180000,
3482 .pa_end = 0x4018ffff
3483 },
3484 {
3485 .name = "cmem",
3486 .pa_start = 0x401a0000,
3487 .pa_end = 0x401a1fff
3488 },
3489 {
3490 .name = "smem",
3491 .pa_start = 0x401c0000,
3492 .pa_end = 0x401c5fff
3493 },
3494 {
3495 .name = "pmem",
3496 .pa_start = 0x401e0000,
3497 .pa_end = 0x401e1fff
3498 },
3499 {
3500 .name = "mpu",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003501 .pa_start = 0x401f1000,
3502 .pa_end = 0x401f13ff,
3503 .flags = ADDR_TYPE_RT
3504 },
3505 { }
3506};
3507
3508/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003509static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003510 .master = &omap44xx_l4_abe_hwmod,
3511 .slave = &omap44xx_aess_hwmod,
3512 .clk = "ocp_abe_iclk",
3513 .addr = omap44xx_aess_addrs,
3514 .user = OCP_USER_MPU,
3515};
3516
3517static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
3518 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003519 .name = "dmem_dma",
3520 .pa_start = 0x49080000,
3521 .pa_end = 0x4908ffff
3522 },
3523 {
3524 .name = "cmem_dma",
3525 .pa_start = 0x490a0000,
3526 .pa_end = 0x490a1fff
3527 },
3528 {
3529 .name = "smem_dma",
3530 .pa_start = 0x490c0000,
3531 .pa_end = 0x490c5fff
3532 },
3533 {
3534 .name = "pmem_dma",
3535 .pa_start = 0x490e0000,
3536 .pa_end = 0x490e1fff
3537 },
3538 {
3539 .name = "dma",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003540 .pa_start = 0x490f1000,
3541 .pa_end = 0x490f13ff,
3542 .flags = ADDR_TYPE_RT
3543 },
3544 { }
3545};
3546
3547/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003548static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003549 .master = &omap44xx_l4_abe_hwmod,
3550 .slave = &omap44xx_aess_hwmod,
3551 .clk = "ocp_abe_iclk",
3552 .addr = omap44xx_aess_dma_addrs,
3553 .user = OCP_USER_SDMA,
3554};
3555
Paul Walmsley42b9e382012-04-19 13:33:54 -06003556/* l3_main_2 -> c2c */
3557static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3558 .master = &omap44xx_l3_main_2_hwmod,
3559 .slave = &omap44xx_c2c_hwmod,
3560 .clk = "l3_div_ck",
3561 .user = OCP_USER_MPU | OCP_USER_SDMA,
3562};
3563
Paul Walmsley844a3b62012-04-19 04:04:33 -06003564/* l4_wkup -> counter_32k */
3565static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3566 .master = &omap44xx_l4_wkup_hwmod,
3567 .slave = &omap44xx_counter_32k_hwmod,
3568 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003569 .user = OCP_USER_MPU | OCP_USER_SDMA,
3570};
3571
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003572static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
3573 {
3574 .pa_start = 0x4a002000,
3575 .pa_end = 0x4a0027ff,
3576 .flags = ADDR_TYPE_RT
3577 },
3578 { }
3579};
3580
3581/* l4_cfg -> ctrl_module_core */
3582static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3583 .master = &omap44xx_l4_cfg_hwmod,
3584 .slave = &omap44xx_ctrl_module_core_hwmod,
3585 .clk = "l4_div_ck",
3586 .addr = omap44xx_ctrl_module_core_addrs,
3587 .user = OCP_USER_MPU | OCP_USER_SDMA,
3588};
3589
3590static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
3591 {
3592 .pa_start = 0x4a100000,
3593 .pa_end = 0x4a1007ff,
3594 .flags = ADDR_TYPE_RT
3595 },
3596 { }
3597};
3598
3599/* l4_cfg -> ctrl_module_pad_core */
3600static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3601 .master = &omap44xx_l4_cfg_hwmod,
3602 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3603 .clk = "l4_div_ck",
3604 .addr = omap44xx_ctrl_module_pad_core_addrs,
3605 .user = OCP_USER_MPU | OCP_USER_SDMA,
3606};
3607
3608static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
3609 {
3610 .pa_start = 0x4a30c000,
3611 .pa_end = 0x4a30c7ff,
3612 .flags = ADDR_TYPE_RT
3613 },
3614 { }
3615};
3616
3617/* l4_wkup -> ctrl_module_wkup */
3618static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3619 .master = &omap44xx_l4_wkup_hwmod,
3620 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3621 .clk = "l4_wkup_clk_mux_ck",
3622 .addr = omap44xx_ctrl_module_wkup_addrs,
3623 .user = OCP_USER_MPU | OCP_USER_SDMA,
3624};
3625
3626static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
3627 {
3628 .pa_start = 0x4a31e000,
3629 .pa_end = 0x4a31e7ff,
3630 .flags = ADDR_TYPE_RT
3631 },
3632 { }
3633};
3634
3635/* l4_wkup -> ctrl_module_pad_wkup */
3636static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3637 .master = &omap44xx_l4_wkup_hwmod,
3638 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3639 .clk = "l4_wkup_clk_mux_ck",
3640 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
3641 .user = OCP_USER_MPU | OCP_USER_SDMA,
3642};
3643
Benoît Cousson96566042012-04-19 13:33:59 -06003644/* l3_instr -> debugss */
3645static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3646 .master = &omap44xx_l3_instr_hwmod,
3647 .slave = &omap44xx_debugss_hwmod,
3648 .clk = "l3_div_ck",
Benoît Cousson96566042012-04-19 13:33:59 -06003649 .user = OCP_USER_MPU | OCP_USER_SDMA,
3650};
3651
Paul Walmsley844a3b62012-04-19 04:04:33 -06003652static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
3653 {
3654 .pa_start = 0x4a056000,
3655 .pa_end = 0x4a056fff,
3656 .flags = ADDR_TYPE_RT
3657 },
3658 { }
3659};
3660
3661/* l4_cfg -> dma_system */
3662static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3663 .master = &omap44xx_l4_cfg_hwmod,
3664 .slave = &omap44xx_dma_system_hwmod,
3665 .clk = "l4_div_ck",
3666 .addr = omap44xx_dma_system_addrs,
3667 .user = OCP_USER_MPU | OCP_USER_SDMA,
3668};
3669
Paul Walmsley844a3b62012-04-19 04:04:33 -06003670/* l4_abe -> dmic */
3671static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3672 .master = &omap44xx_l4_abe_hwmod,
3673 .slave = &omap44xx_dmic_hwmod,
3674 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003675 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003676};
3677
3678/* dsp -> iva */
3679static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3680 .master = &omap44xx_dsp_hwmod,
3681 .slave = &omap44xx_iva_hwmod,
3682 .clk = "dpll_iva_m5x2_ck",
3683 .user = OCP_USER_DSP,
3684};
3685
Paul Walmsley42b9e382012-04-19 13:33:54 -06003686/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003687static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003688 .master = &omap44xx_dsp_hwmod,
3689 .slave = &omap44xx_sl2if_hwmod,
3690 .clk = "dpll_iva_m5x2_ck",
3691 .user = OCP_USER_DSP,
3692};
3693
Paul Walmsley844a3b62012-04-19 04:04:33 -06003694/* l4_cfg -> dsp */
3695static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3696 .master = &omap44xx_l4_cfg_hwmod,
3697 .slave = &omap44xx_dsp_hwmod,
3698 .clk = "l4_div_ck",
3699 .user = OCP_USER_MPU | OCP_USER_SDMA,
3700};
3701
3702static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
3703 {
3704 .pa_start = 0x58000000,
3705 .pa_end = 0x5800007f,
3706 .flags = ADDR_TYPE_RT
3707 },
3708 { }
3709};
3710
3711/* l3_main_2 -> dss */
3712static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3713 .master = &omap44xx_l3_main_2_hwmod,
3714 .slave = &omap44xx_dss_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003715 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003716 .addr = omap44xx_dss_dma_addrs,
3717 .user = OCP_USER_SDMA,
3718};
3719
3720static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
3721 {
3722 .pa_start = 0x48040000,
3723 .pa_end = 0x4804007f,
3724 .flags = ADDR_TYPE_RT
3725 },
3726 { }
3727};
3728
3729/* l4_per -> dss */
3730static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3731 .master = &omap44xx_l4_per_hwmod,
3732 .slave = &omap44xx_dss_hwmod,
3733 .clk = "l4_div_ck",
3734 .addr = omap44xx_dss_addrs,
3735 .user = OCP_USER_MPU,
3736};
3737
3738static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
3739 {
3740 .pa_start = 0x58001000,
3741 .pa_end = 0x58001fff,
3742 .flags = ADDR_TYPE_RT
3743 },
3744 { }
3745};
3746
3747/* l3_main_2 -> dss_dispc */
3748static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3749 .master = &omap44xx_l3_main_2_hwmod,
3750 .slave = &omap44xx_dss_dispc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003751 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003752 .addr = omap44xx_dss_dispc_dma_addrs,
3753 .user = OCP_USER_SDMA,
3754};
3755
3756static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
3757 {
3758 .pa_start = 0x48041000,
3759 .pa_end = 0x48041fff,
3760 .flags = ADDR_TYPE_RT
3761 },
3762 { }
3763};
3764
3765/* l4_per -> dss_dispc */
3766static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3767 .master = &omap44xx_l4_per_hwmod,
3768 .slave = &omap44xx_dss_dispc_hwmod,
3769 .clk = "l4_div_ck",
3770 .addr = omap44xx_dss_dispc_addrs,
3771 .user = OCP_USER_MPU,
3772};
3773
3774static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
3775 {
3776 .pa_start = 0x58004000,
3777 .pa_end = 0x580041ff,
3778 .flags = ADDR_TYPE_RT
3779 },
3780 { }
3781};
3782
3783/* l3_main_2 -> dss_dsi1 */
3784static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3785 .master = &omap44xx_l3_main_2_hwmod,
3786 .slave = &omap44xx_dss_dsi1_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003787 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003788 .addr = omap44xx_dss_dsi1_dma_addrs,
3789 .user = OCP_USER_SDMA,
3790};
3791
3792static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
3793 {
3794 .pa_start = 0x48044000,
3795 .pa_end = 0x480441ff,
3796 .flags = ADDR_TYPE_RT
3797 },
3798 { }
3799};
3800
3801/* l4_per -> dss_dsi1 */
3802static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3803 .master = &omap44xx_l4_per_hwmod,
3804 .slave = &omap44xx_dss_dsi1_hwmod,
3805 .clk = "l4_div_ck",
3806 .addr = omap44xx_dss_dsi1_addrs,
3807 .user = OCP_USER_MPU,
3808};
3809
3810static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
3811 {
3812 .pa_start = 0x58005000,
3813 .pa_end = 0x580051ff,
3814 .flags = ADDR_TYPE_RT
3815 },
3816 { }
3817};
3818
3819/* l3_main_2 -> dss_dsi2 */
3820static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3821 .master = &omap44xx_l3_main_2_hwmod,
3822 .slave = &omap44xx_dss_dsi2_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003823 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003824 .addr = omap44xx_dss_dsi2_dma_addrs,
3825 .user = OCP_USER_SDMA,
3826};
3827
3828static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
3829 {
3830 .pa_start = 0x48045000,
3831 .pa_end = 0x480451ff,
3832 .flags = ADDR_TYPE_RT
3833 },
3834 { }
3835};
3836
3837/* l4_per -> dss_dsi2 */
3838static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3839 .master = &omap44xx_l4_per_hwmod,
3840 .slave = &omap44xx_dss_dsi2_hwmod,
3841 .clk = "l4_div_ck",
3842 .addr = omap44xx_dss_dsi2_addrs,
3843 .user = OCP_USER_MPU,
3844};
3845
3846static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
3847 {
3848 .pa_start = 0x58006000,
3849 .pa_end = 0x58006fff,
3850 .flags = ADDR_TYPE_RT
3851 },
3852 { }
3853};
3854
3855/* l3_main_2 -> dss_hdmi */
3856static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3857 .master = &omap44xx_l3_main_2_hwmod,
3858 .slave = &omap44xx_dss_hdmi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003859 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003860 .addr = omap44xx_dss_hdmi_dma_addrs,
3861 .user = OCP_USER_SDMA,
3862};
3863
3864static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
3865 {
3866 .pa_start = 0x48046000,
3867 .pa_end = 0x48046fff,
3868 .flags = ADDR_TYPE_RT
3869 },
3870 { }
3871};
3872
3873/* l4_per -> dss_hdmi */
3874static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3875 .master = &omap44xx_l4_per_hwmod,
3876 .slave = &omap44xx_dss_hdmi_hwmod,
3877 .clk = "l4_div_ck",
3878 .addr = omap44xx_dss_hdmi_addrs,
3879 .user = OCP_USER_MPU,
3880};
3881
3882static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
3883 {
3884 .pa_start = 0x58002000,
3885 .pa_end = 0x580020ff,
3886 .flags = ADDR_TYPE_RT
3887 },
3888 { }
3889};
3890
3891/* l3_main_2 -> dss_rfbi */
3892static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3893 .master = &omap44xx_l3_main_2_hwmod,
3894 .slave = &omap44xx_dss_rfbi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003895 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003896 .addr = omap44xx_dss_rfbi_dma_addrs,
3897 .user = OCP_USER_SDMA,
3898};
3899
3900static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
3901 {
3902 .pa_start = 0x48042000,
3903 .pa_end = 0x480420ff,
3904 .flags = ADDR_TYPE_RT
3905 },
3906 { }
3907};
3908
3909/* l4_per -> dss_rfbi */
3910static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3911 .master = &omap44xx_l4_per_hwmod,
3912 .slave = &omap44xx_dss_rfbi_hwmod,
3913 .clk = "l4_div_ck",
3914 .addr = omap44xx_dss_rfbi_addrs,
3915 .user = OCP_USER_MPU,
3916};
3917
3918static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
3919 {
3920 .pa_start = 0x58003000,
3921 .pa_end = 0x580030ff,
3922 .flags = ADDR_TYPE_RT
3923 },
3924 { }
3925};
3926
3927/* l3_main_2 -> dss_venc */
3928static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3929 .master = &omap44xx_l3_main_2_hwmod,
3930 .slave = &omap44xx_dss_venc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003931 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003932 .addr = omap44xx_dss_venc_dma_addrs,
3933 .user = OCP_USER_SDMA,
3934};
3935
3936static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
3937 {
3938 .pa_start = 0x48043000,
3939 .pa_end = 0x480430ff,
3940 .flags = ADDR_TYPE_RT
3941 },
3942 { }
3943};
3944
3945/* l4_per -> dss_venc */
3946static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3947 .master = &omap44xx_l4_per_hwmod,
3948 .slave = &omap44xx_dss_venc_hwmod,
3949 .clk = "l4_div_ck",
3950 .addr = omap44xx_dss_venc_addrs,
3951 .user = OCP_USER_MPU,
3952};
3953
Paul Walmsley42b9e382012-04-19 13:33:54 -06003954/* l4_per -> elm */
3955static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3956 .master = &omap44xx_l4_per_hwmod,
3957 .slave = &omap44xx_elm_hwmod,
3958 .clk = "l4_div_ck",
Paul Walmsley42b9e382012-04-19 13:33:54 -06003959 .user = OCP_USER_MPU | OCP_USER_SDMA,
3960};
3961
Ming Leib050f682012-04-19 13:33:50 -06003962static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
3963 {
3964 .pa_start = 0x4a10a000,
3965 .pa_end = 0x4a10a1ff,
3966 .flags = ADDR_TYPE_RT
3967 },
3968 { }
3969};
3970
3971/* l4_cfg -> fdif */
3972static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3973 .master = &omap44xx_l4_cfg_hwmod,
3974 .slave = &omap44xx_fdif_hwmod,
3975 .clk = "l4_div_ck",
3976 .addr = omap44xx_fdif_addrs,
3977 .user = OCP_USER_MPU | OCP_USER_SDMA,
3978};
3979
Paul Walmsley844a3b62012-04-19 04:04:33 -06003980/* l4_wkup -> gpio1 */
3981static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3982 .master = &omap44xx_l4_wkup_hwmod,
3983 .slave = &omap44xx_gpio1_hwmod,
3984 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003985 .user = OCP_USER_MPU | OCP_USER_SDMA,
3986};
3987
Paul Walmsley844a3b62012-04-19 04:04:33 -06003988/* l4_per -> gpio2 */
3989static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3990 .master = &omap44xx_l4_per_hwmod,
3991 .slave = &omap44xx_gpio2_hwmod,
3992 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003993 .user = OCP_USER_MPU | OCP_USER_SDMA,
3994};
3995
Paul Walmsley844a3b62012-04-19 04:04:33 -06003996/* l4_per -> gpio3 */
3997static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3998 .master = &omap44xx_l4_per_hwmod,
3999 .slave = &omap44xx_gpio3_hwmod,
4000 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004001 .user = OCP_USER_MPU | OCP_USER_SDMA,
4002};
4003
Paul Walmsley844a3b62012-04-19 04:04:33 -06004004/* l4_per -> gpio4 */
4005static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
4006 .master = &omap44xx_l4_per_hwmod,
4007 .slave = &omap44xx_gpio4_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_per -> gpio5 */
4013static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
4014 .master = &omap44xx_l4_per_hwmod,
4015 .slave = &omap44xx_gpio5_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_per -> gpio6 */
4021static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
4022 .master = &omap44xx_l4_per_hwmod,
4023 .slave = &omap44xx_gpio6_hwmod,
4024 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004025 .user = OCP_USER_MPU | OCP_USER_SDMA,
4026};
4027
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004028/* l3_main_2 -> gpmc */
4029static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4030 .master = &omap44xx_l3_main_2_hwmod,
4031 .slave = &omap44xx_gpmc_hwmod,
4032 .clk = "l3_div_ck",
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004033 .user = OCP_USER_MPU | OCP_USER_SDMA,
4034};
4035
Paul Walmsley9def3902012-04-19 13:33:53 -06004036static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4037 {
4038 .pa_start = 0x56000000,
4039 .pa_end = 0x5600ffff,
4040 .flags = ADDR_TYPE_RT
4041 },
4042 { }
4043};
4044
4045/* l3_main_2 -> gpu */
4046static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4047 .master = &omap44xx_l3_main_2_hwmod,
4048 .slave = &omap44xx_gpu_hwmod,
4049 .clk = "l3_div_ck",
4050 .addr = omap44xx_gpu_addrs,
4051 .user = OCP_USER_MPU | OCP_USER_SDMA,
4052};
4053
Paul Walmsleya091c082012-04-19 13:33:50 -06004054static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4055 {
4056 .pa_start = 0x480b2000,
4057 .pa_end = 0x480b201f,
4058 .flags = ADDR_TYPE_RT
4059 },
4060 { }
4061};
4062
4063/* l4_per -> hdq1w */
4064static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
4065 .master = &omap44xx_l4_per_hwmod,
4066 .slave = &omap44xx_hdq1w_hwmod,
4067 .clk = "l4_div_ck",
4068 .addr = omap44xx_hdq1w_addrs,
4069 .user = OCP_USER_MPU | OCP_USER_SDMA,
4070};
4071
Paul Walmsley844a3b62012-04-19 04:04:33 -06004072static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
4073 {
4074 .pa_start = 0x4a058000,
4075 .pa_end = 0x4a05bfff,
4076 .flags = ADDR_TYPE_RT
4077 },
4078 { }
4079};
4080
4081/* l4_cfg -> hsi */
4082static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
4083 .master = &omap44xx_l4_cfg_hwmod,
4084 .slave = &omap44xx_hsi_hwmod,
4085 .clk = "l4_div_ck",
4086 .addr = omap44xx_hsi_addrs,
4087 .user = OCP_USER_MPU | OCP_USER_SDMA,
4088};
4089
Paul Walmsley844a3b62012-04-19 04:04:33 -06004090/* l4_per -> i2c1 */
4091static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
4092 .master = &omap44xx_l4_per_hwmod,
4093 .slave = &omap44xx_i2c1_hwmod,
4094 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004095 .user = OCP_USER_MPU | OCP_USER_SDMA,
4096};
4097
Paul Walmsley844a3b62012-04-19 04:04:33 -06004098/* l4_per -> i2c2 */
4099static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
4100 .master = &omap44xx_l4_per_hwmod,
4101 .slave = &omap44xx_i2c2_hwmod,
4102 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004103 .user = OCP_USER_MPU | OCP_USER_SDMA,
4104};
4105
Paul Walmsley844a3b62012-04-19 04:04:33 -06004106/* l4_per -> i2c3 */
4107static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
4108 .master = &omap44xx_l4_per_hwmod,
4109 .slave = &omap44xx_i2c3_hwmod,
4110 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004111 .user = OCP_USER_MPU | OCP_USER_SDMA,
4112};
4113
Paul Walmsley844a3b62012-04-19 04:04:33 -06004114/* l4_per -> i2c4 */
4115static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
4116 .master = &omap44xx_l4_per_hwmod,
4117 .slave = &omap44xx_i2c4_hwmod,
4118 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004119 .user = OCP_USER_MPU | OCP_USER_SDMA,
4120};
4121
4122/* l3_main_2 -> ipu */
4123static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
4124 .master = &omap44xx_l3_main_2_hwmod,
4125 .slave = &omap44xx_ipu_hwmod,
4126 .clk = "l3_div_ck",
4127 .user = OCP_USER_MPU | OCP_USER_SDMA,
4128};
4129
4130static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
4131 {
4132 .pa_start = 0x52000000,
4133 .pa_end = 0x520000ff,
4134 .flags = ADDR_TYPE_RT
4135 },
4136 { }
4137};
4138
4139/* l3_main_2 -> iss */
4140static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
4141 .master = &omap44xx_l3_main_2_hwmod,
4142 .slave = &omap44xx_iss_hwmod,
4143 .clk = "l3_div_ck",
4144 .addr = omap44xx_iss_addrs,
4145 .user = OCP_USER_MPU | OCP_USER_SDMA,
4146};
4147
Paul Walmsley42b9e382012-04-19 13:33:54 -06004148/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004149static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004150 .master = &omap44xx_iva_hwmod,
4151 .slave = &omap44xx_sl2if_hwmod,
4152 .clk = "dpll_iva_m5x2_ck",
4153 .user = OCP_USER_IVA,
4154};
4155
Paul Walmsley844a3b62012-04-19 04:04:33 -06004156/* l3_main_2 -> iva */
4157static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
4158 .master = &omap44xx_l3_main_2_hwmod,
4159 .slave = &omap44xx_iva_hwmod,
4160 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004161 .user = OCP_USER_MPU,
4162};
4163
Paul Walmsley844a3b62012-04-19 04:04:33 -06004164/* l4_wkup -> kbd */
4165static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
4166 .master = &omap44xx_l4_wkup_hwmod,
4167 .slave = &omap44xx_kbd_hwmod,
4168 .clk = "l4_wkup_clk_mux_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 -> mailbox */
4173static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
4174 .master = &omap44xx_l4_cfg_hwmod,
4175 .slave = &omap44xx_mailbox_hwmod,
4176 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004177 .user = OCP_USER_MPU | OCP_USER_SDMA,
4178};
4179
Benoît Cousson896d4e92012-04-19 13:33:54 -06004180static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
4181 {
4182 .pa_start = 0x40128000,
4183 .pa_end = 0x401283ff,
4184 .flags = ADDR_TYPE_RT
4185 },
4186 { }
4187};
4188
4189/* l4_abe -> mcasp */
4190static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
4191 .master = &omap44xx_l4_abe_hwmod,
4192 .slave = &omap44xx_mcasp_hwmod,
4193 .clk = "ocp_abe_iclk",
4194 .addr = omap44xx_mcasp_addrs,
4195 .user = OCP_USER_MPU,
4196};
4197
4198static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
4199 {
4200 .pa_start = 0x49028000,
4201 .pa_end = 0x490283ff,
4202 .flags = ADDR_TYPE_RT
4203 },
4204 { }
4205};
4206
4207/* l4_abe -> mcasp (dma) */
4208static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
4209 .master = &omap44xx_l4_abe_hwmod,
4210 .slave = &omap44xx_mcasp_hwmod,
4211 .clk = "ocp_abe_iclk",
4212 .addr = omap44xx_mcasp_dma_addrs,
4213 .user = OCP_USER_SDMA,
4214};
4215
Paul Walmsley844a3b62012-04-19 04:04:33 -06004216/* l4_abe -> mcbsp1 */
4217static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
4218 .master = &omap44xx_l4_abe_hwmod,
4219 .slave = &omap44xx_mcbsp1_hwmod,
4220 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004221 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004222};
4223
Paul Walmsley844a3b62012-04-19 04:04:33 -06004224/* l4_abe -> mcbsp2 */
4225static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
4226 .master = &omap44xx_l4_abe_hwmod,
4227 .slave = &omap44xx_mcbsp2_hwmod,
4228 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004229 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004230};
4231
Paul Walmsley844a3b62012-04-19 04:04:33 -06004232/* l4_abe -> mcbsp3 */
4233static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
4234 .master = &omap44xx_l4_abe_hwmod,
4235 .slave = &omap44xx_mcbsp3_hwmod,
4236 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004237 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004238};
4239
Paul Walmsley844a3b62012-04-19 04:04:33 -06004240/* l4_per -> mcbsp4 */
4241static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
4242 .master = &omap44xx_l4_per_hwmod,
4243 .slave = &omap44xx_mcbsp4_hwmod,
4244 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004245 .user = OCP_USER_MPU | OCP_USER_SDMA,
4246};
4247
Paul Walmsley844a3b62012-04-19 04:04:33 -06004248/* l4_abe -> mcpdm */
4249static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
4250 .master = &omap44xx_l4_abe_hwmod,
4251 .slave = &omap44xx_mcpdm_hwmod,
4252 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004253 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004254};
4255
Paul Walmsley844a3b62012-04-19 04:04:33 -06004256/* l4_per -> mcspi1 */
4257static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
4258 .master = &omap44xx_l4_per_hwmod,
4259 .slave = &omap44xx_mcspi1_hwmod,
4260 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004261 .user = OCP_USER_MPU | OCP_USER_SDMA,
4262};
4263
Paul Walmsley844a3b62012-04-19 04:04:33 -06004264/* l4_per -> mcspi2 */
4265static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
4266 .master = &omap44xx_l4_per_hwmod,
4267 .slave = &omap44xx_mcspi2_hwmod,
4268 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004269 .user = OCP_USER_MPU | OCP_USER_SDMA,
4270};
4271
Paul Walmsley844a3b62012-04-19 04:04:33 -06004272/* l4_per -> mcspi3 */
4273static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
4274 .master = &omap44xx_l4_per_hwmod,
4275 .slave = &omap44xx_mcspi3_hwmod,
4276 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004277 .user = OCP_USER_MPU | OCP_USER_SDMA,
4278};
4279
Paul Walmsley844a3b62012-04-19 04:04:33 -06004280/* l4_per -> mcspi4 */
4281static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
4282 .master = &omap44xx_l4_per_hwmod,
4283 .slave = &omap44xx_mcspi4_hwmod,
4284 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004285 .user = OCP_USER_MPU | OCP_USER_SDMA,
4286};
4287
Paul Walmsley844a3b62012-04-19 04:04:33 -06004288/* l4_per -> mmc1 */
4289static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
4290 .master = &omap44xx_l4_per_hwmod,
4291 .slave = &omap44xx_mmc1_hwmod,
4292 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004293 .user = OCP_USER_MPU | OCP_USER_SDMA,
4294};
4295
Paul Walmsley844a3b62012-04-19 04:04:33 -06004296/* l4_per -> mmc2 */
4297static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
4298 .master = &omap44xx_l4_per_hwmod,
4299 .slave = &omap44xx_mmc2_hwmod,
4300 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004301 .user = OCP_USER_MPU | OCP_USER_SDMA,
4302};
4303
Paul Walmsley844a3b62012-04-19 04:04:33 -06004304/* l4_per -> mmc3 */
4305static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
4306 .master = &omap44xx_l4_per_hwmod,
4307 .slave = &omap44xx_mmc3_hwmod,
4308 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004309 .user = OCP_USER_MPU | OCP_USER_SDMA,
4310};
4311
Paul Walmsley844a3b62012-04-19 04:04:33 -06004312/* l4_per -> mmc4 */
4313static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
4314 .master = &omap44xx_l4_per_hwmod,
4315 .slave = &omap44xx_mmc4_hwmod,
4316 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004317 .user = OCP_USER_MPU | OCP_USER_SDMA,
4318};
4319
Paul Walmsley844a3b62012-04-19 04:04:33 -06004320/* l4_per -> mmc5 */
4321static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
4322 .master = &omap44xx_l4_per_hwmod,
4323 .slave = &omap44xx_mmc5_hwmod,
4324 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004325 .user = OCP_USER_MPU | OCP_USER_SDMA,
4326};
4327
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004328/* l3_main_2 -> ocmc_ram */
4329static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
4330 .master = &omap44xx_l3_main_2_hwmod,
4331 .slave = &omap44xx_ocmc_ram_hwmod,
4332 .clk = "l3_div_ck",
4333 .user = OCP_USER_MPU | OCP_USER_SDMA,
4334};
4335
Benoît Cousson0c668872012-04-19 13:33:55 -06004336/* l4_cfg -> ocp2scp_usb_phy */
4337static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
4338 .master = &omap44xx_l4_cfg_hwmod,
4339 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
4340 .clk = "l4_div_ck",
4341 .user = OCP_USER_MPU | OCP_USER_SDMA,
4342};
4343
Paul Walmsley794b4802012-04-19 13:33:58 -06004344/* mpu_private -> prcm_mpu */
4345static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
4346 .master = &omap44xx_mpu_private_hwmod,
4347 .slave = &omap44xx_prcm_mpu_hwmod,
4348 .clk = "l3_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004349 .user = OCP_USER_MPU | OCP_USER_SDMA,
4350};
4351
Paul Walmsley794b4802012-04-19 13:33:58 -06004352/* l4_wkup -> cm_core_aon */
4353static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
4354 .master = &omap44xx_l4_wkup_hwmod,
4355 .slave = &omap44xx_cm_core_aon_hwmod,
4356 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004357 .user = OCP_USER_MPU | OCP_USER_SDMA,
4358};
4359
Paul Walmsley794b4802012-04-19 13:33:58 -06004360/* l4_cfg -> cm_core */
4361static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
4362 .master = &omap44xx_l4_cfg_hwmod,
4363 .slave = &omap44xx_cm_core_hwmod,
4364 .clk = "l4_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004365 .user = OCP_USER_MPU | OCP_USER_SDMA,
4366};
4367
Paul Walmsley794b4802012-04-19 13:33:58 -06004368/* l4_wkup -> prm */
4369static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
4370 .master = &omap44xx_l4_wkup_hwmod,
4371 .slave = &omap44xx_prm_hwmod,
4372 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004373 .user = OCP_USER_MPU | OCP_USER_SDMA,
4374};
4375
Paul Walmsley794b4802012-04-19 13:33:58 -06004376/* l4_wkup -> scrm */
4377static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
4378 .master = &omap44xx_l4_wkup_hwmod,
4379 .slave = &omap44xx_scrm_hwmod,
4380 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004381 .user = OCP_USER_MPU | OCP_USER_SDMA,
4382};
4383
Paul Walmsley42b9e382012-04-19 13:33:54 -06004384/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004385static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004386 .master = &omap44xx_l3_main_2_hwmod,
4387 .slave = &omap44xx_sl2if_hwmod,
4388 .clk = "l3_div_ck",
4389 .user = OCP_USER_MPU | OCP_USER_SDMA,
4390};
4391
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004392static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
4393 {
4394 .pa_start = 0x4012c000,
4395 .pa_end = 0x4012c3ff,
4396 .flags = ADDR_TYPE_RT
4397 },
4398 { }
4399};
4400
4401/* l4_abe -> slimbus1 */
4402static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
4403 .master = &omap44xx_l4_abe_hwmod,
4404 .slave = &omap44xx_slimbus1_hwmod,
4405 .clk = "ocp_abe_iclk",
4406 .addr = omap44xx_slimbus1_addrs,
4407 .user = OCP_USER_MPU,
4408};
4409
4410static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
4411 {
4412 .pa_start = 0x4902c000,
4413 .pa_end = 0x4902c3ff,
4414 .flags = ADDR_TYPE_RT
4415 },
4416 { }
4417};
4418
4419/* l4_abe -> slimbus1 (dma) */
4420static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
4421 .master = &omap44xx_l4_abe_hwmod,
4422 .slave = &omap44xx_slimbus1_hwmod,
4423 .clk = "ocp_abe_iclk",
4424 .addr = omap44xx_slimbus1_dma_addrs,
4425 .user = OCP_USER_SDMA,
4426};
4427
4428static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
4429 {
4430 .pa_start = 0x48076000,
4431 .pa_end = 0x480763ff,
4432 .flags = ADDR_TYPE_RT
4433 },
4434 { }
4435};
4436
4437/* l4_per -> slimbus2 */
4438static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
4439 .master = &omap44xx_l4_per_hwmod,
4440 .slave = &omap44xx_slimbus2_hwmod,
4441 .clk = "l4_div_ck",
4442 .addr = omap44xx_slimbus2_addrs,
4443 .user = OCP_USER_MPU | OCP_USER_SDMA,
4444};
4445
Paul Walmsley844a3b62012-04-19 04:04:33 -06004446static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
4447 {
4448 .pa_start = 0x4a0dd000,
4449 .pa_end = 0x4a0dd03f,
4450 .flags = ADDR_TYPE_RT
4451 },
4452 { }
4453};
4454
4455/* l4_cfg -> smartreflex_core */
4456static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
4457 .master = &omap44xx_l4_cfg_hwmod,
4458 .slave = &omap44xx_smartreflex_core_hwmod,
4459 .clk = "l4_div_ck",
4460 .addr = omap44xx_smartreflex_core_addrs,
4461 .user = OCP_USER_MPU | OCP_USER_SDMA,
4462};
4463
4464static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
4465 {
4466 .pa_start = 0x4a0db000,
4467 .pa_end = 0x4a0db03f,
4468 .flags = ADDR_TYPE_RT
4469 },
4470 { }
4471};
4472
4473/* l4_cfg -> smartreflex_iva */
4474static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4475 .master = &omap44xx_l4_cfg_hwmod,
4476 .slave = &omap44xx_smartreflex_iva_hwmod,
4477 .clk = "l4_div_ck",
4478 .addr = omap44xx_smartreflex_iva_addrs,
4479 .user = OCP_USER_MPU | OCP_USER_SDMA,
4480};
4481
4482static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4483 {
4484 .pa_start = 0x4a0d9000,
4485 .pa_end = 0x4a0d903f,
4486 .flags = ADDR_TYPE_RT
4487 },
4488 { }
4489};
4490
4491/* l4_cfg -> smartreflex_mpu */
4492static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4493 .master = &omap44xx_l4_cfg_hwmod,
4494 .slave = &omap44xx_smartreflex_mpu_hwmod,
4495 .clk = "l4_div_ck",
4496 .addr = omap44xx_smartreflex_mpu_addrs,
4497 .user = OCP_USER_MPU | OCP_USER_SDMA,
4498};
4499
Paul Walmsley844a3b62012-04-19 04:04:33 -06004500/* l4_cfg -> spinlock */
4501static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4502 .master = &omap44xx_l4_cfg_hwmod,
4503 .slave = &omap44xx_spinlock_hwmod,
4504 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004505 .user = OCP_USER_MPU | OCP_USER_SDMA,
4506};
4507
Paul Walmsley844a3b62012-04-19 04:04:33 -06004508/* l4_wkup -> timer1 */
4509static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4510 .master = &omap44xx_l4_wkup_hwmod,
4511 .slave = &omap44xx_timer1_hwmod,
4512 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004513 .user = OCP_USER_MPU | OCP_USER_SDMA,
4514};
4515
Paul Walmsley844a3b62012-04-19 04:04:33 -06004516/* l4_per -> timer2 */
4517static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4518 .master = &omap44xx_l4_per_hwmod,
4519 .slave = &omap44xx_timer2_hwmod,
4520 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004521 .user = OCP_USER_MPU | OCP_USER_SDMA,
4522};
4523
Paul Walmsley844a3b62012-04-19 04:04:33 -06004524/* l4_per -> timer3 */
4525static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4526 .master = &omap44xx_l4_per_hwmod,
4527 .slave = &omap44xx_timer3_hwmod,
4528 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004529 .user = OCP_USER_MPU | OCP_USER_SDMA,
4530};
4531
Paul Walmsley844a3b62012-04-19 04:04:33 -06004532/* l4_per -> timer4 */
4533static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4534 .master = &omap44xx_l4_per_hwmod,
4535 .slave = &omap44xx_timer4_hwmod,
4536 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004537 .user = OCP_USER_MPU | OCP_USER_SDMA,
4538};
4539
Paul Walmsley844a3b62012-04-19 04:04:33 -06004540/* l4_abe -> timer5 */
4541static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4542 .master = &omap44xx_l4_abe_hwmod,
4543 .slave = &omap44xx_timer5_hwmod,
4544 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004545 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004546};
4547
Paul Walmsley844a3b62012-04-19 04:04:33 -06004548/* l4_abe -> timer6 */
4549static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4550 .master = &omap44xx_l4_abe_hwmod,
4551 .slave = &omap44xx_timer6_hwmod,
4552 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004553 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004554};
4555
Paul Walmsley844a3b62012-04-19 04:04:33 -06004556/* l4_abe -> timer7 */
4557static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4558 .master = &omap44xx_l4_abe_hwmod,
4559 .slave = &omap44xx_timer7_hwmod,
4560 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004561 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004562};
4563
Paul Walmsley844a3b62012-04-19 04:04:33 -06004564/* l4_abe -> timer8 */
4565static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4566 .master = &omap44xx_l4_abe_hwmod,
4567 .slave = &omap44xx_timer8_hwmod,
4568 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004569 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004570};
4571
Paul Walmsley844a3b62012-04-19 04:04:33 -06004572/* l4_per -> timer9 */
4573static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4574 .master = &omap44xx_l4_per_hwmod,
4575 .slave = &omap44xx_timer9_hwmod,
4576 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004577 .user = OCP_USER_MPU | OCP_USER_SDMA,
4578};
4579
Paul Walmsley844a3b62012-04-19 04:04:33 -06004580/* l4_per -> timer10 */
4581static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4582 .master = &omap44xx_l4_per_hwmod,
4583 .slave = &omap44xx_timer10_hwmod,
4584 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004585 .user = OCP_USER_MPU | OCP_USER_SDMA,
4586};
4587
Paul Walmsley844a3b62012-04-19 04:04:33 -06004588/* l4_per -> timer11 */
4589static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4590 .master = &omap44xx_l4_per_hwmod,
4591 .slave = &omap44xx_timer11_hwmod,
4592 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004593 .user = OCP_USER_MPU | OCP_USER_SDMA,
4594};
4595
Paul Walmsley844a3b62012-04-19 04:04:33 -06004596/* l4_per -> uart1 */
4597static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4598 .master = &omap44xx_l4_per_hwmod,
4599 .slave = &omap44xx_uart1_hwmod,
4600 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004601 .user = OCP_USER_MPU | OCP_USER_SDMA,
4602};
4603
Paul Walmsley844a3b62012-04-19 04:04:33 -06004604/* l4_per -> uart2 */
4605static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4606 .master = &omap44xx_l4_per_hwmod,
4607 .slave = &omap44xx_uart2_hwmod,
4608 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004609 .user = OCP_USER_MPU | OCP_USER_SDMA,
4610};
4611
Paul Walmsley844a3b62012-04-19 04:04:33 -06004612/* l4_per -> uart3 */
4613static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4614 .master = &omap44xx_l4_per_hwmod,
4615 .slave = &omap44xx_uart3_hwmod,
4616 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004617 .user = OCP_USER_MPU | OCP_USER_SDMA,
4618};
4619
Paul Walmsley844a3b62012-04-19 04:04:33 -06004620/* l4_per -> uart4 */
4621static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4622 .master = &omap44xx_l4_per_hwmod,
4623 .slave = &omap44xx_uart4_hwmod,
4624 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004625 .user = OCP_USER_MPU | OCP_USER_SDMA,
4626};
4627
Benoît Cousson0c668872012-04-19 13:33:55 -06004628/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004629static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06004630 .master = &omap44xx_l4_cfg_hwmod,
4631 .slave = &omap44xx_usb_host_fs_hwmod,
4632 .clk = "l4_div_ck",
Benoît Cousson0c668872012-04-19 13:33:55 -06004633 .user = OCP_USER_MPU | OCP_USER_SDMA,
4634};
4635
Paul Walmsley844a3b62012-04-19 04:04:33 -06004636/* l4_cfg -> usb_host_hs */
4637static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4638 .master = &omap44xx_l4_cfg_hwmod,
4639 .slave = &omap44xx_usb_host_hs_hwmod,
4640 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004641 .user = OCP_USER_MPU | OCP_USER_SDMA,
4642};
4643
Paul Walmsley844a3b62012-04-19 04:04:33 -06004644/* l4_cfg -> usb_otg_hs */
4645static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4646 .master = &omap44xx_l4_cfg_hwmod,
4647 .slave = &omap44xx_usb_otg_hs_hwmod,
4648 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004649 .user = OCP_USER_MPU | OCP_USER_SDMA,
4650};
4651
Paul Walmsley844a3b62012-04-19 04:04:33 -06004652/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004653static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4654 .master = &omap44xx_l4_cfg_hwmod,
4655 .slave = &omap44xx_usb_tll_hs_hwmod,
4656 .clk = "l4_div_ck",
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004657 .user = OCP_USER_MPU | OCP_USER_SDMA,
4658};
4659
Paul Walmsley844a3b62012-04-19 04:04:33 -06004660/* l4_wkup -> wd_timer2 */
4661static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4662 .master = &omap44xx_l4_wkup_hwmod,
4663 .slave = &omap44xx_wd_timer2_hwmod,
4664 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004665 .user = OCP_USER_MPU | OCP_USER_SDMA,
4666};
4667
4668static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4669 {
4670 .pa_start = 0x40130000,
4671 .pa_end = 0x4013007f,
4672 .flags = ADDR_TYPE_RT
4673 },
4674 { }
4675};
4676
4677/* l4_abe -> wd_timer3 */
4678static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4679 .master = &omap44xx_l4_abe_hwmod,
4680 .slave = &omap44xx_wd_timer3_hwmod,
4681 .clk = "ocp_abe_iclk",
4682 .addr = omap44xx_wd_timer3_addrs,
4683 .user = OCP_USER_MPU,
4684};
4685
4686static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4687 {
4688 .pa_start = 0x49030000,
4689 .pa_end = 0x4903007f,
4690 .flags = ADDR_TYPE_RT
4691 },
4692 { }
4693};
4694
4695/* l4_abe -> wd_timer3 (dma) */
4696static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4697 .master = &omap44xx_l4_abe_hwmod,
4698 .slave = &omap44xx_wd_timer3_hwmod,
4699 .clk = "ocp_abe_iclk",
4700 .addr = omap44xx_wd_timer3_dma_addrs,
4701 .user = OCP_USER_SDMA,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004702};
4703
Sricharan R3b9b1012013-06-07 17:26:15 +05304704/* mpu -> emif1 */
4705static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4706 .master = &omap44xx_mpu_hwmod,
4707 .slave = &omap44xx_emif1_hwmod,
4708 .clk = "l3_div_ck",
4709 .user = OCP_USER_MPU | OCP_USER_SDMA,
4710};
4711
4712/* mpu -> emif2 */
4713static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4714 .master = &omap44xx_mpu_hwmod,
4715 .slave = &omap44xx_emif2_hwmod,
4716 .clk = "l3_div_ck",
4717 .user = OCP_USER_MPU | OCP_USER_SDMA,
4718};
4719
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004720static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4721 &omap44xx_l3_main_1__dmm,
4722 &omap44xx_mpu__dmm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004723 &omap44xx_iva__l3_instr,
4724 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc82012-04-19 13:33:56 -06004725 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004726 &omap44xx_dsp__l3_main_1,
4727 &omap44xx_dss__l3_main_1,
4728 &omap44xx_l3_main_2__l3_main_1,
4729 &omap44xx_l4_cfg__l3_main_1,
4730 &omap44xx_mmc1__l3_main_1,
4731 &omap44xx_mmc2__l3_main_1,
4732 &omap44xx_mpu__l3_main_1,
Benoît Cousson96566042012-04-19 13:33:59 -06004733 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004734 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06004735 &omap44xx_fdif__l3_main_2,
Paul Walmsley9def3902012-04-19 13:33:53 -06004736 &omap44xx_gpu__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004737 &omap44xx_hsi__l3_main_2,
4738 &omap44xx_ipu__l3_main_2,
4739 &omap44xx_iss__l3_main_2,
4740 &omap44xx_iva__l3_main_2,
4741 &omap44xx_l3_main_1__l3_main_2,
4742 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004743 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004744 &omap44xx_usb_host_hs__l3_main_2,
4745 &omap44xx_usb_otg_hs__l3_main_2,
4746 &omap44xx_l3_main_1__l3_main_3,
4747 &omap44xx_l3_main_2__l3_main_3,
4748 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004749 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004750 &omap44xx_dsp__l4_abe,
4751 &omap44xx_l3_main_1__l4_abe,
4752 &omap44xx_mpu__l4_abe,
4753 &omap44xx_l3_main_1__l4_cfg,
4754 &omap44xx_l3_main_2__l4_per,
4755 &omap44xx_l4_cfg__l4_wkup,
4756 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc82012-04-19 13:33:56 -06004757 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004758 &omap44xx_l4_abe__aess,
4759 &omap44xx_l4_abe__aess_dma,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004760 &omap44xx_l3_main_2__c2c,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004761 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06004762 &omap44xx_l4_cfg__ctrl_module_core,
4763 &omap44xx_l4_cfg__ctrl_module_pad_core,
4764 &omap44xx_l4_wkup__ctrl_module_wkup,
4765 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06004766 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004767 &omap44xx_l4_cfg__dma_system,
4768 &omap44xx_l4_abe__dmic,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004769 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06004770 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004771 &omap44xx_l4_cfg__dsp,
4772 &omap44xx_l3_main_2__dss,
4773 &omap44xx_l4_per__dss,
4774 &omap44xx_l3_main_2__dss_dispc,
4775 &omap44xx_l4_per__dss_dispc,
4776 &omap44xx_l3_main_2__dss_dsi1,
4777 &omap44xx_l4_per__dss_dsi1,
4778 &omap44xx_l3_main_2__dss_dsi2,
4779 &omap44xx_l4_per__dss_dsi2,
4780 &omap44xx_l3_main_2__dss_hdmi,
4781 &omap44xx_l4_per__dss_hdmi,
4782 &omap44xx_l3_main_2__dss_rfbi,
4783 &omap44xx_l4_per__dss_rfbi,
4784 &omap44xx_l3_main_2__dss_venc,
4785 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004786 &omap44xx_l4_per__elm,
Ming Leib050f682012-04-19 13:33:50 -06004787 &omap44xx_l4_cfg__fdif,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004788 &omap44xx_l4_wkup__gpio1,
4789 &omap44xx_l4_per__gpio2,
4790 &omap44xx_l4_per__gpio3,
4791 &omap44xx_l4_per__gpio4,
4792 &omap44xx_l4_per__gpio5,
4793 &omap44xx_l4_per__gpio6,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004794 &omap44xx_l3_main_2__gpmc,
Paul Walmsley9def3902012-04-19 13:33:53 -06004795 &omap44xx_l3_main_2__gpu,
Paul Walmsleya091c082012-04-19 13:33:50 -06004796 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004797 &omap44xx_l4_cfg__hsi,
4798 &omap44xx_l4_per__i2c1,
4799 &omap44xx_l4_per__i2c2,
4800 &omap44xx_l4_per__i2c3,
4801 &omap44xx_l4_per__i2c4,
4802 &omap44xx_l3_main_2__ipu,
4803 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06004804 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004805 &omap44xx_l3_main_2__iva,
4806 &omap44xx_l4_wkup__kbd,
4807 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06004808 &omap44xx_l4_abe__mcasp,
4809 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004810 &omap44xx_l4_abe__mcbsp1,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004811 &omap44xx_l4_abe__mcbsp2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004812 &omap44xx_l4_abe__mcbsp3,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004813 &omap44xx_l4_per__mcbsp4,
4814 &omap44xx_l4_abe__mcpdm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004815 &omap44xx_l4_per__mcspi1,
4816 &omap44xx_l4_per__mcspi2,
4817 &omap44xx_l4_per__mcspi3,
4818 &omap44xx_l4_per__mcspi4,
4819 &omap44xx_l4_per__mmc1,
4820 &omap44xx_l4_per__mmc2,
4821 &omap44xx_l4_per__mmc3,
4822 &omap44xx_l4_per__mmc4,
4823 &omap44xx_l4_per__mmc5,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06004824 &omap44xx_l3_main_2__mmu_ipu,
4825 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004826 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06004827 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06004828 &omap44xx_mpu_private__prcm_mpu,
4829 &omap44xx_l4_wkup__cm_core_aon,
4830 &omap44xx_l4_cfg__cm_core,
4831 &omap44xx_l4_wkup__prm,
4832 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06004833 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004834 &omap44xx_l4_abe__slimbus1,
4835 &omap44xx_l4_abe__slimbus1_dma,
4836 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004837 &omap44xx_l4_cfg__smartreflex_core,
4838 &omap44xx_l4_cfg__smartreflex_iva,
4839 &omap44xx_l4_cfg__smartreflex_mpu,
4840 &omap44xx_l4_cfg__spinlock,
4841 &omap44xx_l4_wkup__timer1,
4842 &omap44xx_l4_per__timer2,
4843 &omap44xx_l4_per__timer3,
4844 &omap44xx_l4_per__timer4,
4845 &omap44xx_l4_abe__timer5,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004846 &omap44xx_l4_abe__timer6,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004847 &omap44xx_l4_abe__timer7,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004848 &omap44xx_l4_abe__timer8,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004849 &omap44xx_l4_per__timer9,
4850 &omap44xx_l4_per__timer10,
4851 &omap44xx_l4_per__timer11,
4852 &omap44xx_l4_per__uart1,
4853 &omap44xx_l4_per__uart2,
4854 &omap44xx_l4_per__uart3,
4855 &omap44xx_l4_per__uart4,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004856 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004857 &omap44xx_l4_cfg__usb_host_hs,
4858 &omap44xx_l4_cfg__usb_otg_hs,
4859 &omap44xx_l4_cfg__usb_tll_hs,
4860 &omap44xx_l4_wkup__wd_timer2,
4861 &omap44xx_l4_abe__wd_timer3,
4862 &omap44xx_l4_abe__wd_timer3_dma,
Sricharan R3b9b1012013-06-07 17:26:15 +05304863 &omap44xx_mpu__emif1,
4864 &omap44xx_mpu__emif2,
Sebastian Reichel9a9ded82017-06-13 11:28:45 +02004865 &omap44xx_l3_main_2__aes1,
Sebastian Reichel478523d2017-06-13 11:28:46 +02004866 &omap44xx_l3_main_2__aes2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004867 NULL,
4868};
4869
4870int __init omap44xx_hwmod_init(void)
4871{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06004872 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004873 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004874}
4875