blob: c314b3c31117e8cbee248db6aec7c0feb64f4fa9 [file] [log] [blame]
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001/*
2 * Hardware modules present on the OMAP44xx chips
3 *
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004 * Copyright (C) 2009-2012 Texas Instruments, Inc.
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005 * Copyright (C) 2009-2010 Nokia Corporation
6 *
7 * Paul Walmsley
8 * Benoit Cousson
9 *
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
Sricharan R3b9b1012013-06-07 17:26:15 +053015 * Note that this file is currently not in sync with autogeneration scripts.
16 * The above note to be removed, once it is synced up.
Benoit Cousson55d2cb02010-05-12 17:54:36 +020017 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License version 2 as
20 * published by the Free Software Foundation.
21 */
22
23#include <linux/io.h>
Tony Lindgren4b254082012-08-30 15:37:24 -070024#include <linux/platform_data/gpio-omap.h>
Andreas Fenkart55143432014-11-08 15:33:09 +010025#include <linux/platform_data/hsmmc-omap.h>
Jean Pihetb86aeaf2012-04-25 16:06:20 +053026#include <linux/power/smartreflex.h>
Tony Lindgren3a8761c2012-10-08 09:11:22 -070027#include <linux/i2c-omap.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020028
Tony Lindgren45c3eb72012-11-30 08:41:50 -080029#include <linux/omap-dma.h>
Tony Lindgren2a296c82012-10-02 17:41:35 -070030
Arnd Bergmann22037472012-08-24 15:21:06 +020031#include <linux/platform_data/spi-omap2-mcspi.h>
32#include <linux/platform_data/asoc-ti-mcbsp.h>
Tony Lindgren2ab7c842012-11-02 12:24:14 -070033#include <linux/platform_data/iommu-omap.h>
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +053034#include <plat/dmtimer.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020035
Tony Lindgren2a296c82012-10-02 17:41:35 -070036#include "omap_hwmod.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020037#include "omap_hwmod_common_data.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070038#include "cm1_44xx.h"
39#include "cm2_44xx.h"
40#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020041#include "prm-regbits-44xx.h"
Tony Lindgren3a8761c2012-10-08 09:11:22 -070042#include "i2c.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070043#include "wd_timer.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020044
45/* Base offset for all OMAP4 interrupts external to MPUSS */
46#define OMAP44XX_IRQ_GIC_START 32
47
48/* Base offset for all OMAP4 dma requests */
Paul Walmsley844a3b62012-04-19 04:04:33 -060049#define OMAP44XX_DMA_REQ_START 1
Benoit Cousson55d2cb02010-05-12 17:54:36 +020050
51/*
Paul Walmsley844a3b62012-04-19 04:04:33 -060052 * IP blocks
Benoit Cousson55d2cb02010-05-12 17:54:36 +020053 */
54
55/*
56 * 'dmm' class
57 * instance(s): dmm
58 */
59static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000060 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020061};
62
Benoit Cousson7e69ed92011-07-09 19:14:28 -060063/* dmm */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020064static struct omap_hwmod omap44xx_dmm_hwmod = {
65 .name = "dmm",
66 .class = &omap44xx_dmm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060067 .clkdm_name = "l3_emif_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060068 .prcm = {
69 .omap4 = {
70 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060071 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -060072 },
73 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020074};
75
76/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +020077 * 'l3' class
78 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
79 */
80static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000081 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020082};
83
Benoit Cousson7e69ed92011-07-09 19:14:28 -060084/* l3_instr */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020085static struct omap_hwmod omap44xx_l3_instr_hwmod = {
86 .name = "l3_instr",
87 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060088 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060089 .prcm = {
90 .omap4 = {
91 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060092 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -060093 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -060094 },
95 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020096};
97
Benoit Cousson7e69ed92011-07-09 19:14:28 -060098/* l3_main_1 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020099static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
100 .name = "l3_main_1",
101 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600102 .clkdm_name = "l3_1_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600103 .prcm = {
104 .omap4 = {
105 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600106 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600107 },
108 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200109};
110
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600111/* l3_main_2 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200112static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
113 .name = "l3_main_2",
114 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600115 .clkdm_name = "l3_2_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600116 .prcm = {
117 .omap4 = {
118 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600119 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600120 },
121 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200122};
123
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600124/* l3_main_3 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200125static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
126 .name = "l3_main_3",
127 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600128 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600129 .prcm = {
130 .omap4 = {
131 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600132 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600133 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600134 },
135 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200136};
137
138/*
139 * 'l4' class
140 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
141 */
142static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000143 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200144};
145
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600146/* l4_abe */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200147static struct omap_hwmod omap44xx_l4_abe_hwmod = {
148 .name = "l4_abe",
149 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600150 .clkdm_name = "abe_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600151 .prcm = {
152 .omap4 = {
153 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600154 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
155 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
Tero Kristo46b3af22012-09-23 17:28:20 -0600156 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
Benoit Coussond0f06312011-07-10 05:56:30 -0600157 },
158 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200159};
160
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600161/* l4_cfg */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200162static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
163 .name = "l4_cfg",
164 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600165 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600166 .prcm = {
167 .omap4 = {
168 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600169 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600170 },
171 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200172};
173
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600174/* l4_per */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200175static struct omap_hwmod omap44xx_l4_per_hwmod = {
176 .name = "l4_per",
177 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600178 .clkdm_name = "l4_per_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600179 .prcm = {
180 .omap4 = {
181 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600182 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600183 },
184 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200185};
186
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600187/* l4_wkup */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200188static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
189 .name = "l4_wkup",
190 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600191 .clkdm_name = "l4_wkup_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600192 .prcm = {
193 .omap4 = {
194 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600195 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600196 },
197 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200198};
199
200/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700201 * 'mpu_bus' class
202 * instance(s): mpu_private
203 */
204static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000205 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700206};
207
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600208/* mpu_private */
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700209static struct omap_hwmod omap44xx_mpu_private_hwmod = {
210 .name = "mpu_private",
211 .class = &omap44xx_mpu_bus_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600212 .clkdm_name = "mpuss_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600213 .prcm = {
214 .omap4 = {
215 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
216 },
217 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700218};
219
220/*
Benoît Cousson9a817bc2012-04-19 13:33:56 -0600221 * 'ocp_wp_noc' class
222 * instance(s): ocp_wp_noc
223 */
224static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
225 .name = "ocp_wp_noc",
226};
227
228/* ocp_wp_noc */
229static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
230 .name = "ocp_wp_noc",
231 .class = &omap44xx_ocp_wp_noc_hwmod_class,
232 .clkdm_name = "l3_instr_clkdm",
233 .prcm = {
234 .omap4 = {
235 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
236 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
237 .modulemode = MODULEMODE_HWCTRL,
238 },
239 },
240};
241
242/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700243 * Modules omap_hwmod structures
244 *
245 * The following IPs are excluded for the moment because:
246 * - They do not need an explicit SW control using omap_hwmod API.
247 * - They still need to be validated with the driver
248 * properly adapted to omap_hwmod / omap_device
249 *
Benoît Cousson96566042012-04-19 13:33:59 -0600250 * usim
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700251 */
252
253/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100254 * 'aess' class
255 * audio engine sub system
256 */
257
258static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
259 .rev_offs = 0x0000,
260 .sysc_offs = 0x0010,
261 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
262 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
Benoit Coussonc614ebf2011-07-01 22:54:01 +0200263 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
264 MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +0100265 .sysc_fields = &omap_hwmod_sysc_type2,
266};
267
268static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
269 .name = "aess",
270 .sysc = &omap44xx_aess_sysc,
Paul Walmsleyc02060d2013-02-10 11:22:23 -0700271 .enable_preprogram = omap_hwmod_aess_preprogram,
Benoit Cousson407a6882011-02-15 22:39:48 +0100272};
273
274/* aess */
Benoit Cousson407a6882011-02-15 22:39:48 +0100275static struct omap_hwmod omap44xx_aess_hwmod = {
276 .name = "aess",
277 .class = &omap44xx_aess_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600278 .clkdm_name = "abe_clkdm",
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -0700279 .main_clk = "aess_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600280 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100281 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600282 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600283 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600284 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600285 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +0100286 },
287 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100288};
289
290/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600291 * 'c2c' class
292 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
293 * soc
294 */
295
296static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
297 .name = "c2c",
298};
299
300/* c2c */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600301static struct omap_hwmod omap44xx_c2c_hwmod = {
302 .name = "c2c",
303 .class = &omap44xx_c2c_hwmod_class,
304 .clkdm_name = "d2d_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600305 .prcm = {
306 .omap4 = {
307 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
308 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
309 },
310 },
311};
312
313/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100314 * 'counter' class
315 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
316 */
317
318static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
319 .rev_offs = 0x0000,
320 .sysc_offs = 0x0004,
321 .sysc_flags = SYSC_HAS_SIDLEMODE,
Paul Walmsley252a4c52012-06-17 11:57:51 -0600322 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
Benoit Cousson407a6882011-02-15 22:39:48 +0100323 .sysc_fields = &omap_hwmod_sysc_type1,
324};
325
326static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
327 .name = "counter",
328 .sysc = &omap44xx_counter_sysc,
329};
330
331/* counter_32k */
Benoit Cousson407a6882011-02-15 22:39:48 +0100332static struct omap_hwmod omap44xx_counter_32k_hwmod = {
333 .name = "counter_32k",
334 .class = &omap44xx_counter_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600335 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100336 .flags = HWMOD_SWSUP_SIDLE,
337 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600338 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100339 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600340 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600341 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +0100342 },
343 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100344};
345
346/*
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600347 * 'ctrl_module' class
348 * attila core control module + core pad control module + wkup pad control
349 * module + attila wkup control module
350 */
351
352static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
353 .rev_offs = 0x0000,
354 .sysc_offs = 0x0010,
355 .sysc_flags = SYSC_HAS_SIDLEMODE,
356 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
357 SIDLE_SMART_WKUP),
358 .sysc_fields = &omap_hwmod_sysc_type2,
359};
360
361static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
362 .name = "ctrl_module",
363 .sysc = &omap44xx_ctrl_module_sysc,
364};
365
366/* ctrl_module_core */
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600367static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
368 .name = "ctrl_module_core",
369 .class = &omap44xx_ctrl_module_hwmod_class,
370 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600371 .prcm = {
372 .omap4 = {
373 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
374 },
375 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600376};
377
378/* ctrl_module_pad_core */
379static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
380 .name = "ctrl_module_pad_core",
381 .class = &omap44xx_ctrl_module_hwmod_class,
382 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600383 .prcm = {
384 .omap4 = {
385 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
386 },
387 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600388};
389
390/* ctrl_module_wkup */
391static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
392 .name = "ctrl_module_wkup",
393 .class = &omap44xx_ctrl_module_hwmod_class,
394 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600395 .prcm = {
396 .omap4 = {
397 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
398 },
399 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600400};
401
402/* ctrl_module_pad_wkup */
403static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
404 .name = "ctrl_module_pad_wkup",
405 .class = &omap44xx_ctrl_module_hwmod_class,
406 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600407 .prcm = {
408 .omap4 = {
409 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
410 },
411 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600412};
413
414/*
Benoît Cousson96566042012-04-19 13:33:59 -0600415 * 'debugss' class
416 * debug and emulation sub system
417 */
418
419static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
420 .name = "debugss",
421};
422
423/* debugss */
424static struct omap_hwmod omap44xx_debugss_hwmod = {
425 .name = "debugss",
426 .class = &omap44xx_debugss_hwmod_class,
427 .clkdm_name = "emu_sys_clkdm",
428 .main_clk = "trace_clk_div_ck",
429 .prcm = {
430 .omap4 = {
431 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
432 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
433 },
434 },
435};
436
437/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000438 * 'dma' class
439 * dma controller for data exchange between memory to memory (i.e. internal or
440 * external memory) and gp peripherals to memory or memory to gp peripherals
441 */
442
443static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
444 .rev_offs = 0x0000,
445 .sysc_offs = 0x002c,
446 .syss_offs = 0x0028,
447 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
448 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
449 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
450 SYSS_HAS_RESET_STATUS),
451 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
452 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
453 .sysc_fields = &omap_hwmod_sysc_type1,
454};
455
456static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
457 .name = "dma",
458 .sysc = &omap44xx_dma_sysc,
459};
460
461/* dma dev_attr */
462static struct omap_dma_dev_attr dma_dev_attr = {
463 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
464 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
465 .lch_count = 32,
466};
467
468/* dma_system */
469static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
470 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
471 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
472 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
473 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600474 { .irq = -1 }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000475};
476
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000477static struct omap_hwmod omap44xx_dma_system_hwmod = {
478 .name = "dma_system",
479 .class = &omap44xx_dma_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600480 .clkdm_name = "l3_dma_clkdm",
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000481 .mpu_irqs = omap44xx_dma_system_irqs,
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,
643 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600644 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000645 .prcm = {
646 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600647 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600648 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000649 },
650 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300651 .dev_attr = &omap44xx_dss_dispc_dev_attr,
652 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000653};
654
655/*
656 * 'dsi' class
657 * display serial interface controller
658 */
659
660static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
661 .rev_offs = 0x0000,
662 .sysc_offs = 0x0010,
663 .syss_offs = 0x0014,
664 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
665 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
666 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
667 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
668 .sysc_fields = &omap_hwmod_sysc_type1,
669};
670
671static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
672 .name = "dsi",
673 .sysc = &omap44xx_dsi_sysc,
674};
675
676/* dss_dsi1 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300677static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
678 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
679 { .irq = -1 }
680};
681
682static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
683 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
684 { .dma_req = -1 }
685};
686
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600687static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
688 { .role = "sys_clk", .clk = "dss_sys_clk" },
689};
690
Benoit Coussond63bd742011-01-27 11:17:03 +0000691static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
692 .name = "dss_dsi1",
693 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600694 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300695 .mpu_irqs = omap44xx_dss_dsi1_irqs,
696 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600697 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000698 .prcm = {
699 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600700 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600701 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000702 },
703 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600704 .opt_clks = dss_dsi1_opt_clks,
705 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300706 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000707};
708
709/* dss_dsi2 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300710static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
711 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
712 { .irq = -1 }
713};
714
715static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
716 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
717 { .dma_req = -1 }
718};
719
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600720static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
721 { .role = "sys_clk", .clk = "dss_sys_clk" },
722};
723
Benoit Coussond63bd742011-01-27 11:17:03 +0000724static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
725 .name = "dss_dsi2",
726 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600727 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300728 .mpu_irqs = omap44xx_dss_dsi2_irqs,
729 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600730 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000731 .prcm = {
732 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600733 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600734 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000735 },
736 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600737 .opt_clks = dss_dsi2_opt_clks,
738 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300739 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000740};
741
742/*
743 * 'hdmi' class
744 * hdmi controller
745 */
746
747static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
748 .rev_offs = 0x0000,
749 .sysc_offs = 0x0010,
750 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
751 SYSC_HAS_SOFTRESET),
752 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
753 SIDLE_SMART_WKUP),
754 .sysc_fields = &omap_hwmod_sysc_type2,
755};
756
757static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
758 .name = "hdmi",
759 .sysc = &omap44xx_hdmi_sysc,
760};
761
762/* dss_hdmi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300763static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
764 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
765 { .irq = -1 }
766};
767
768static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
769 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
770 { .dma_req = -1 }
771};
772
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600773static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
774 { .role = "sys_clk", .clk = "dss_sys_clk" },
775};
776
Benoit Coussond63bd742011-01-27 11:17:03 +0000777static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
778 .name = "dss_hdmi",
779 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600780 .clkdm_name = "l3_dss_clkdm",
Ricardo Neridc57aef2012-06-21 10:08:53 +0200781 /*
782 * HDMI audio requires to use no-idle mode. Hence,
783 * set idle mode by software.
784 */
785 .flags = HWMOD_SWSUP_SIDLE,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300786 .mpu_irqs = omap44xx_dss_hdmi_irqs,
787 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700788 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000789 .prcm = {
790 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600791 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600792 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000793 },
794 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600795 .opt_clks = dss_hdmi_opt_clks,
796 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300797 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000798};
799
800/*
801 * 'rfbi' class
802 * remote frame buffer interface
803 */
804
805static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
806 .rev_offs = 0x0000,
807 .sysc_offs = 0x0010,
808 .syss_offs = 0x0014,
809 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
810 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
811 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
812 .sysc_fields = &omap_hwmod_sysc_type1,
813};
814
815static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
816 .name = "rfbi",
817 .sysc = &omap44xx_rfbi_sysc,
818};
819
820/* dss_rfbi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300821static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
822 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
823 { .dma_req = -1 }
824};
825
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600826static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
Tomi Valkeinen2cc84f42014-10-09 17:03:18 +0300827 { .role = "ick", .clk = "l3_div_ck" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600828};
829
Benoit Coussond63bd742011-01-27 11:17:03 +0000830static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
831 .name = "dss_rfbi",
832 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600833 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300834 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600835 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000836 .prcm = {
837 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600838 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600839 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000840 },
841 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600842 .opt_clks = dss_rfbi_opt_clks,
843 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300844 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000845};
846
847/*
848 * 'venc' class
849 * video encoder
850 */
851
852static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
853 .name = "venc",
854};
855
856/* dss_venc */
Benoit Coussond63bd742011-01-27 11:17:03 +0000857static struct omap_hwmod omap44xx_dss_venc_hwmod = {
858 .name = "dss_venc",
859 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600860 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700861 .main_clk = "dss_tv_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000862 .prcm = {
863 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600864 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600865 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000866 },
867 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300868 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000869};
870
871/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600872 * 'elm' class
873 * bch error location module
874 */
875
876static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
877 .rev_offs = 0x0000,
878 .sysc_offs = 0x0010,
879 .syss_offs = 0x0014,
880 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
881 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
882 SYSS_HAS_RESET_STATUS),
883 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
884 .sysc_fields = &omap_hwmod_sysc_type1,
885};
886
887static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
888 .name = "elm",
889 .sysc = &omap44xx_elm_sysc,
890};
891
892/* elm */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600893static struct omap_hwmod omap44xx_elm_hwmod = {
894 .name = "elm",
895 .class = &omap44xx_elm_hwmod_class,
896 .clkdm_name = "l4_per_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600897 .prcm = {
898 .omap4 = {
899 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
900 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
901 },
902 },
903};
904
905/*
Paul Walmsleybf30f952012-04-19 13:33:52 -0600906 * 'emif' class
907 * external memory interface no1
908 */
909
910static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
911 .rev_offs = 0x0000,
912};
913
914static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
915 .name = "emif",
916 .sysc = &omap44xx_emif_sysc,
917};
918
919/* emif1 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600920static struct omap_hwmod omap44xx_emif1_hwmod = {
921 .name = "emif1",
922 .class = &omap44xx_emif_hwmod_class,
923 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530924 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600925 .main_clk = "ddrphy_ck",
926 .prcm = {
927 .omap4 = {
928 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
929 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
930 .modulemode = MODULEMODE_HWCTRL,
931 },
932 },
933};
934
935/* emif2 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600936static struct omap_hwmod omap44xx_emif2_hwmod = {
937 .name = "emif2",
938 .class = &omap44xx_emif_hwmod_class,
939 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530940 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600941 .main_clk = "ddrphy_ck",
942 .prcm = {
943 .omap4 = {
944 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
945 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
946 .modulemode = MODULEMODE_HWCTRL,
947 },
948 },
949};
950
951/*
Ming Leib050f682012-04-19 13:33:50 -0600952 * 'fdif' class
953 * face detection hw accelerator module
954 */
955
956static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
957 .rev_offs = 0x0000,
958 .sysc_offs = 0x0010,
959 /*
960 * FDIF needs 100 OCP clk cycles delay after a softreset before
961 * accessing sysconfig again.
962 * The lowest frequency at the moment for L3 bus is 100 MHz, so
963 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
964 *
965 * TODO: Indicate errata when available.
966 */
967 .srst_udelay = 2,
968 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
969 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
970 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
971 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
972 .sysc_fields = &omap_hwmod_sysc_type2,
973};
974
975static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
976 .name = "fdif",
977 .sysc = &omap44xx_fdif_sysc,
978};
979
980/* fdif */
Ming Leib050f682012-04-19 13:33:50 -0600981static struct omap_hwmod omap44xx_fdif_hwmod = {
982 .name = "fdif",
983 .class = &omap44xx_fdif_hwmod_class,
984 .clkdm_name = "iss_clkdm",
Ming Leib050f682012-04-19 13:33:50 -0600985 .main_clk = "fdif_fck",
986 .prcm = {
987 .omap4 = {
988 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
989 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
990 .modulemode = MODULEMODE_SWCTRL,
991 },
992 },
993};
994
995/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700996 * 'gpio' class
997 * general purpose io module
998 */
999
1000static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1001 .rev_offs = 0x0000,
1002 .sysc_offs = 0x0010,
1003 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001004 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1005 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1006 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001007 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1008 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001009 .sysc_fields = &omap_hwmod_sysc_type1,
1010};
1011
1012static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001013 .name = "gpio",
1014 .sysc = &omap44xx_gpio_sysc,
1015 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001016};
1017
1018/* gpio dev_attr */
1019static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001020 .bank_width = 32,
1021 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001022};
1023
1024/* gpio1 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001025static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001026 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001027};
1028
1029static struct omap_hwmod omap44xx_gpio1_hwmod = {
1030 .name = "gpio1",
1031 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001032 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001033 .main_clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001034 .prcm = {
1035 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001036 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001037 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001038 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001039 },
1040 },
1041 .opt_clks = gpio1_opt_clks,
1042 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1043 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001044};
1045
1046/* gpio2 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001047static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001048 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001049};
1050
1051static struct omap_hwmod omap44xx_gpio2_hwmod = {
1052 .name = "gpio2",
1053 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001054 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001055 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001056 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001057 .prcm = {
1058 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001059 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001060 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001061 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001062 },
1063 },
1064 .opt_clks = gpio2_opt_clks,
1065 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1066 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001067};
1068
1069/* gpio3 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001070static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001071 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001072};
1073
1074static struct omap_hwmod omap44xx_gpio3_hwmod = {
1075 .name = "gpio3",
1076 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001077 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001078 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001079 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001080 .prcm = {
1081 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001082 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001083 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001084 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001085 },
1086 },
1087 .opt_clks = gpio3_opt_clks,
1088 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1089 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001090};
1091
1092/* gpio4 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001093static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001094 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001095};
1096
1097static struct omap_hwmod omap44xx_gpio4_hwmod = {
1098 .name = "gpio4",
1099 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001100 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001101 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001102 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001103 .prcm = {
1104 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001105 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001106 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001107 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001108 },
1109 },
1110 .opt_clks = gpio4_opt_clks,
1111 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1112 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001113};
1114
1115/* gpio5 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001116static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001117 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001118};
1119
1120static struct omap_hwmod omap44xx_gpio5_hwmod = {
1121 .name = "gpio5",
1122 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001123 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001124 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001125 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001126 .prcm = {
1127 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001128 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001129 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001130 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001131 },
1132 },
1133 .opt_clks = gpio5_opt_clks,
1134 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1135 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001136};
1137
1138/* gpio6 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001139static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001140 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001141};
1142
1143static struct omap_hwmod omap44xx_gpio6_hwmod = {
1144 .name = "gpio6",
1145 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001146 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001147 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001148 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001149 .prcm = {
1150 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001151 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001152 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001153 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001154 },
1155 },
1156 .opt_clks = gpio6_opt_clks,
1157 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1158 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001159};
1160
1161/*
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001162 * 'gpmc' class
1163 * general purpose memory controller
1164 */
1165
1166static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1167 .rev_offs = 0x0000,
1168 .sysc_offs = 0x0010,
1169 .syss_offs = 0x0014,
1170 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1171 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1172 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1173 .sysc_fields = &omap_hwmod_sysc_type1,
1174};
1175
1176static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1177 .name = "gpmc",
1178 .sysc = &omap44xx_gpmc_sysc,
1179};
1180
1181/* gpmc */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001182static struct omap_hwmod omap44xx_gpmc_hwmod = {
1183 .name = "gpmc",
1184 .class = &omap44xx_gpmc_hwmod_class,
1185 .clkdm_name = "l3_2_clkdm",
Afzal Mohammed49484a62012-09-23 17:28:24 -06001186 /*
1187 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
1188 * block. It is not being added due to any known bugs with
1189 * resetting the GPMC IP block, but rather because any timings
1190 * set by the bootloader are not being correctly programmed by
1191 * the kernel from the board file or DT data.
1192 * HWMOD_INIT_NO_RESET should be removed ASAP.
1193 */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001194 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001195 .prcm = {
1196 .omap4 = {
1197 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1198 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1199 .modulemode = MODULEMODE_HWCTRL,
1200 },
1201 },
1202};
1203
1204/*
Paul Walmsley9def3902012-04-19 13:33:53 -06001205 * 'gpu' class
1206 * 2d/3d graphics accelerator
1207 */
1208
1209static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1210 .rev_offs = 0x1fc00,
1211 .sysc_offs = 0x1fc10,
1212 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1213 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1214 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1215 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1216 .sysc_fields = &omap_hwmod_sysc_type2,
1217};
1218
1219static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1220 .name = "gpu",
1221 .sysc = &omap44xx_gpu_sysc,
1222};
1223
1224/* gpu */
Paul Walmsley9def3902012-04-19 13:33:53 -06001225static struct omap_hwmod omap44xx_gpu_hwmod = {
1226 .name = "gpu",
1227 .class = &omap44xx_gpu_hwmod_class,
1228 .clkdm_name = "l3_gfx_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001229 .main_clk = "sgx_clk_mux",
Paul Walmsley9def3902012-04-19 13:33:53 -06001230 .prcm = {
1231 .omap4 = {
1232 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1233 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1234 .modulemode = MODULEMODE_SWCTRL,
1235 },
1236 },
1237};
1238
1239/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001240 * 'hdq1w' class
1241 * hdq / 1-wire serial interface controller
1242 */
1243
1244static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1245 .rev_offs = 0x0000,
1246 .sysc_offs = 0x0014,
1247 .syss_offs = 0x0018,
1248 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1249 SYSS_HAS_RESET_STATUS),
1250 .sysc_fields = &omap_hwmod_sysc_type1,
1251};
1252
1253static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1254 .name = "hdq1w",
1255 .sysc = &omap44xx_hdq1w_sysc,
1256};
1257
1258/* hdq1w */
Paul Walmsleya091c082012-04-19 13:33:50 -06001259static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1260 .name = "hdq1w",
1261 .class = &omap44xx_hdq1w_hwmod_class,
1262 .clkdm_name = "l4_per_clkdm",
1263 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001264 .main_clk = "func_12m_fclk",
Paul Walmsleya091c082012-04-19 13:33:50 -06001265 .prcm = {
1266 .omap4 = {
1267 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1268 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1269 .modulemode = MODULEMODE_SWCTRL,
1270 },
1271 },
1272};
1273
1274/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001275 * 'hsi' class
1276 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1277 * serial if)
1278 */
1279
1280static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1281 .rev_offs = 0x0000,
1282 .sysc_offs = 0x0010,
1283 .syss_offs = 0x0014,
1284 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1285 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1286 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1287 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1288 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001289 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001290 .sysc_fields = &omap_hwmod_sysc_type1,
1291};
1292
1293static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1294 .name = "hsi",
1295 .sysc = &omap44xx_hsi_sysc,
1296};
1297
1298/* hsi */
Benoit Cousson407a6882011-02-15 22:39:48 +01001299static struct omap_hwmod omap44xx_hsi_hwmod = {
1300 .name = "hsi",
1301 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001302 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001303 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001304 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001305 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001306 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001307 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001308 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001309 },
1310 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001311};
1312
1313/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301314 * 'i2c' class
1315 * multimaster high-speed i2c controller
1316 */
1317
1318static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1319 .sysc_offs = 0x0010,
1320 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001321 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1322 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001323 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001324 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1325 SIDLE_SMART_WKUP),
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301326 .clockact = CLOCKACT_TEST_ICLK,
Benoit Coussonf7764712010-09-21 19:37:14 +05301327 .sysc_fields = &omap_hwmod_sysc_type1,
1328};
1329
1330static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001331 .name = "i2c",
1332 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06001333 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06001334 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05301335};
1336
Andy Green4d4441a2011-07-10 05:27:16 -06001337static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +05301338 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Andy Green4d4441a2011-07-10 05:27:16 -06001339};
1340
Benoit Coussonf7764712010-09-21 19:37:14 +05301341/* i2c1 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301342static struct omap_hwmod omap44xx_i2c1_hwmod = {
1343 .name = "i2c1",
1344 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001345 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301346 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001347 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301348 .prcm = {
1349 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001350 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001351 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001352 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301353 },
1354 },
Andy Green4d4441a2011-07-10 05:27:16 -06001355 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301356};
1357
1358/* i2c2 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301359static struct omap_hwmod omap44xx_i2c2_hwmod = {
1360 .name = "i2c2",
1361 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001362 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301363 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001364 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301365 .prcm = {
1366 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001367 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001368 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001369 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301370 },
1371 },
Andy Green4d4441a2011-07-10 05:27:16 -06001372 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301373};
1374
1375/* i2c3 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301376static struct omap_hwmod omap44xx_i2c3_hwmod = {
1377 .name = "i2c3",
1378 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001379 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301380 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001381 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301382 .prcm = {
1383 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001384 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001385 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001386 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301387 },
1388 },
Andy Green4d4441a2011-07-10 05:27:16 -06001389 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301390};
1391
1392/* i2c4 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301393static struct omap_hwmod omap44xx_i2c4_hwmod = {
1394 .name = "i2c4",
1395 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001396 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301397 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001398 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301399 .prcm = {
1400 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001401 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001402 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001403 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301404 },
1405 },
Andy Green4d4441a2011-07-10 05:27:16 -06001406 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301407};
1408
1409/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001410 * 'ipu' class
1411 * imaging processor unit
1412 */
1413
1414static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1415 .name = "ipu",
1416};
1417
1418/* ipu */
Benoit Cousson407a6882011-02-15 22:39:48 +01001419static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001420 { .name = "cpu0", .rst_shift = 0 },
1421 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001422};
1423
Benoit Cousson407a6882011-02-15 22:39:48 +01001424static struct omap_hwmod omap44xx_ipu_hwmod = {
1425 .name = "ipu",
1426 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001427 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001428 .rst_lines = omap44xx_ipu_resets,
1429 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001430 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001431 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001432 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001433 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001434 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001435 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001436 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001437 },
1438 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001439};
1440
1441/*
1442 * 'iss' class
1443 * external images sensor pixel data processor
1444 */
1445
1446static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1447 .rev_offs = 0x0000,
1448 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001449 /*
1450 * ISS needs 100 OCP clk cycles delay after a softreset before
1451 * accessing sysconfig again.
1452 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1453 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1454 *
1455 * TODO: Indicate errata when available.
1456 */
1457 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001458 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1459 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1460 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1461 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001462 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001463 .sysc_fields = &omap_hwmod_sysc_type2,
1464};
1465
1466static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1467 .name = "iss",
1468 .sysc = &omap44xx_iss_sysc,
1469};
1470
1471/* iss */
Benoit Cousson407a6882011-02-15 22:39:48 +01001472static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1473 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1474};
1475
1476static struct omap_hwmod omap44xx_iss_hwmod = {
1477 .name = "iss",
1478 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001479 .clkdm_name = "iss_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001480 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001481 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001482 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001483 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001484 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001485 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001486 },
1487 },
1488 .opt_clks = iss_opt_clks,
1489 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001490};
1491
1492/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001493 * 'iva' class
1494 * multi-standard video encoder/decoder hardware accelerator
1495 */
1496
1497static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001498 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001499};
1500
1501/* iva */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001502static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001503 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001504 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001505 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001506};
1507
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001508static struct omap_hwmod omap44xx_iva_hwmod = {
1509 .name = "iva",
1510 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001511 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001512 .rst_lines = omap44xx_iva_resets,
1513 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001514 .main_clk = "dpll_iva_m5x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001515 .prcm = {
1516 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001517 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001518 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001519 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001520 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001521 },
1522 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001523};
1524
1525/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001526 * 'kbd' class
1527 * keyboard controller
1528 */
1529
1530static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1531 .rev_offs = 0x0000,
1532 .sysc_offs = 0x0010,
1533 .syss_offs = 0x0014,
1534 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1535 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1536 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1537 SYSS_HAS_RESET_STATUS),
1538 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1539 .sysc_fields = &omap_hwmod_sysc_type1,
1540};
1541
1542static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1543 .name = "kbd",
1544 .sysc = &omap44xx_kbd_sysc,
1545};
1546
1547/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001548static struct omap_hwmod omap44xx_kbd_hwmod = {
1549 .name = "kbd",
1550 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001551 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001552 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001553 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001554 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001555 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001556 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001557 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001558 },
1559 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001560};
1561
1562/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001563 * 'mailbox' class
1564 * mailbox module allowing communication between the on-chip processors using a
1565 * queued mailbox-interrupt mechanism.
1566 */
1567
1568static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1569 .rev_offs = 0x0000,
1570 .sysc_offs = 0x0010,
1571 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1572 SYSC_HAS_SOFTRESET),
1573 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1574 .sysc_fields = &omap_hwmod_sysc_type2,
1575};
1576
1577static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1578 .name = "mailbox",
1579 .sysc = &omap44xx_mailbox_sysc,
1580};
1581
1582/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001583static struct omap_hwmod omap44xx_mailbox_hwmod = {
1584 .name = "mailbox",
1585 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001586 .clkdm_name = "l4_cfg_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001587 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001588 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001589 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001590 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001591 },
1592 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001593};
1594
1595/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001596 * 'mcasp' class
1597 * multi-channel audio serial port controller
1598 */
1599
1600/* The IP is not compliant to type1 / type2 scheme */
1601static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1602 .sidle_shift = 0,
1603};
1604
1605static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1606 .sysc_offs = 0x0004,
1607 .sysc_flags = SYSC_HAS_SIDLEMODE,
1608 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1609 SIDLE_SMART_WKUP),
1610 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1611};
1612
1613static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1614 .name = "mcasp",
1615 .sysc = &omap44xx_mcasp_sysc,
1616};
1617
1618/* mcasp */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001619static struct omap_hwmod omap44xx_mcasp_hwmod = {
1620 .name = "mcasp",
1621 .class = &omap44xx_mcasp_hwmod_class,
1622 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001623 .main_clk = "func_mcasp_abe_gfclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06001624 .prcm = {
1625 .omap4 = {
1626 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1627 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1628 .modulemode = MODULEMODE_SWCTRL,
1629 },
1630 },
1631};
1632
1633/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001634 * 'mcbsp' class
1635 * multi channel buffered serial port controller
1636 */
1637
1638static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1639 .sysc_offs = 0x008c,
1640 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1641 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1642 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1643 .sysc_fields = &omap_hwmod_sysc_type1,
1644};
1645
1646static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1647 .name = "mcbsp",
1648 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05301649 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001650};
1651
1652/* mcbsp1 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001653static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1654 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001655 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001656};
1657
Benoit Cousson4ddff492011-01-31 14:50:30 +00001658static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1659 .name = "mcbsp1",
1660 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001661 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001662 .main_clk = "func_mcbsp1_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001663 .prcm = {
1664 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001665 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001666 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001667 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001668 },
1669 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001670 .opt_clks = mcbsp1_opt_clks,
1671 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001672};
1673
1674/* mcbsp2 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001675static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1676 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001677 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001678};
1679
Benoit Cousson4ddff492011-01-31 14:50:30 +00001680static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1681 .name = "mcbsp2",
1682 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001683 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001684 .main_clk = "func_mcbsp2_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001685 .prcm = {
1686 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001687 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001688 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001689 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001690 },
1691 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001692 .opt_clks = mcbsp2_opt_clks,
1693 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001694};
1695
1696/* mcbsp3 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001697static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1698 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001699 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001700};
1701
Benoit Cousson4ddff492011-01-31 14:50:30 +00001702static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1703 .name = "mcbsp3",
1704 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001705 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001706 .main_clk = "func_mcbsp3_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001707 .prcm = {
1708 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001709 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001710 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001711 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001712 },
1713 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001714 .opt_clks = mcbsp3_opt_clks,
1715 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001716};
1717
1718/* mcbsp4 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001719static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1720 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001721 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001722};
1723
Benoit Cousson4ddff492011-01-31 14:50:30 +00001724static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1725 .name = "mcbsp4",
1726 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001727 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001728 .main_clk = "per_mcbsp4_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001729 .prcm = {
1730 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001731 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001732 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001733 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001734 },
1735 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001736 .opt_clks = mcbsp4_opt_clks,
1737 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001738};
1739
1740/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001741 * 'mcpdm' class
1742 * multi channel pdm controller (proprietary interface with phoenix power
1743 * ic)
1744 */
1745
1746static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1747 .rev_offs = 0x0000,
1748 .sysc_offs = 0x0010,
1749 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1750 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1751 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1752 SIDLE_SMART_WKUP),
1753 .sysc_fields = &omap_hwmod_sysc_type2,
1754};
1755
1756static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1757 .name = "mcpdm",
1758 .sysc = &omap44xx_mcpdm_sysc,
1759};
1760
1761/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01001762static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1763 .name = "mcpdm",
1764 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001765 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06001766 /*
1767 * It's suspected that the McPDM requires an off-chip main
1768 * functional clock, controlled via I2C. This IP block is
1769 * currently reset very early during boot, before I2C is
1770 * available, so it doesn't seem that we have any choice in
1771 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001772 *
1773 * Also, McPDM needs to be configured to NO_IDLE mode when it
1774 * is in used otherwise vital clocks will be gated which
1775 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06001776 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001777 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001778 .main_clk = "pad_clks_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001779 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001780 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001781 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001782 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001783 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001784 },
1785 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001786};
1787
1788/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301789 * 'mcspi' class
1790 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1791 * bus
1792 */
1793
1794static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1795 .rev_offs = 0x0000,
1796 .sysc_offs = 0x0010,
1797 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1798 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1799 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1800 SIDLE_SMART_WKUP),
1801 .sysc_fields = &omap_hwmod_sysc_type2,
1802};
1803
1804static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1805 .name = "mcspi",
1806 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01001807 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301808};
1809
1810/* mcspi1 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301811static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
1812 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
1813 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
1814 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
1815 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
1816 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
1817 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
1818 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
1819 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001820 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301821};
1822
Benoit Cousson905a74d2011-02-18 14:01:06 +01001823/* mcspi1 dev_attr */
1824static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1825 .num_chipselect = 4,
1826};
1827
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301828static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1829 .name = "mcspi1",
1830 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001831 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301832 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001833 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301834 .prcm = {
1835 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001836 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001837 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001838 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301839 },
1840 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001841 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301842};
1843
1844/* mcspi2 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301845static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
1846 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
1847 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
1848 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
1849 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001850 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301851};
1852
Benoit Cousson905a74d2011-02-18 14:01:06 +01001853/* mcspi2 dev_attr */
1854static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1855 .num_chipselect = 2,
1856};
1857
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301858static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1859 .name = "mcspi2",
1860 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001861 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301862 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001863 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301864 .prcm = {
1865 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001866 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001867 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001868 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301869 },
1870 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001871 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301872};
1873
1874/* mcspi3 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301875static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
1876 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
1877 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
1878 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
1879 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001880 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301881};
1882
Benoit Cousson905a74d2011-02-18 14:01:06 +01001883/* mcspi3 dev_attr */
1884static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1885 .num_chipselect = 2,
1886};
1887
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301888static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1889 .name = "mcspi3",
1890 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001891 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301892 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001893 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301894 .prcm = {
1895 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001896 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001897 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001898 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301899 },
1900 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001901 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301902};
1903
1904/* mcspi4 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301905static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
1906 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
1907 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001908 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301909};
1910
Benoit Cousson905a74d2011-02-18 14:01:06 +01001911/* mcspi4 dev_attr */
1912static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1913 .num_chipselect = 1,
1914};
1915
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301916static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1917 .name = "mcspi4",
1918 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001919 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301920 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001921 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301922 .prcm = {
1923 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001924 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001925 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001926 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301927 },
1928 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001929 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301930};
1931
1932/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001933 * 'mmc' class
1934 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1935 */
1936
1937static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
1938 .rev_offs = 0x0000,
1939 .sysc_offs = 0x0010,
1940 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1941 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1942 SYSC_HAS_SOFTRESET),
1943 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1944 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001945 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001946 .sysc_fields = &omap_hwmod_sysc_type2,
1947};
1948
1949static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
1950 .name = "mmc",
1951 .sysc = &omap44xx_mmc_sysc,
1952};
1953
1954/* mmc1 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001955static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
1956 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
1957 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001958 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001959};
1960
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001961/* mmc1 dev_attr */
Andreas Fenkart55143432014-11-08 15:33:09 +01001962static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001963 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1964};
1965
Benoit Cousson407a6882011-02-15 22:39:48 +01001966static struct omap_hwmod omap44xx_mmc1_hwmod = {
1967 .name = "mmc1",
1968 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001969 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001970 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001971 .main_clk = "hsmmc1_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001972 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001973 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001974 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001975 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001976 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001977 },
1978 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001979 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01001980};
1981
1982/* mmc2 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001983static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
1984 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
1985 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001986 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001987};
1988
Benoit Cousson407a6882011-02-15 22:39:48 +01001989static struct omap_hwmod omap44xx_mmc2_hwmod = {
1990 .name = "mmc2",
1991 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001992 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001993 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001994 .main_clk = "hsmmc2_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001995 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001996 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001997 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001998 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001999 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002000 },
2001 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002002};
2003
2004/* mmc3 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002005static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2006 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2007 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002008 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002009};
2010
Benoit Cousson407a6882011-02-15 22:39:48 +01002011static struct omap_hwmod omap44xx_mmc3_hwmod = {
2012 .name = "mmc3",
2013 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002014 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002015 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002016 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002017 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002018 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002019 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002020 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002021 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002022 },
2023 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002024};
2025
2026/* mmc4 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002027static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2028 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2029 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002030 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002031};
2032
Benoit Cousson407a6882011-02-15 22:39:48 +01002033static struct omap_hwmod omap44xx_mmc4_hwmod = {
2034 .name = "mmc4",
2035 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002036 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002037 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002038 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002039 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002040 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002041 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002042 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002043 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002044 },
2045 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002046};
2047
2048/* mmc5 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002049static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2050 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2051 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002052 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002053};
2054
Benoit Cousson407a6882011-02-15 22:39:48 +01002055static struct omap_hwmod omap44xx_mmc5_hwmod = {
2056 .name = "mmc5",
2057 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002058 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002059 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002060 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002061 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002062 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002063 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002064 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002065 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002066 },
2067 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002068};
2069
2070/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002071 * 'mmu' class
2072 * The memory management unit performs virtual to physical address translation
2073 * for its requestors.
2074 */
2075
2076static struct omap_hwmod_class_sysconfig mmu_sysc = {
2077 .rev_offs = 0x000,
2078 .sysc_offs = 0x010,
2079 .syss_offs = 0x014,
2080 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2081 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2082 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2083 .sysc_fields = &omap_hwmod_sysc_type1,
2084};
2085
2086static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2087 .name = "mmu",
2088 .sysc = &mmu_sysc,
2089};
2090
2091/* mmu ipu */
2092
2093static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002094 .nr_tlb_entries = 32,
2095};
2096
2097static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002098static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2099 { .name = "mmu_cache", .rst_shift = 2 },
2100};
2101
2102static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
2103 {
2104 .pa_start = 0x55082000,
2105 .pa_end = 0x550820ff,
2106 .flags = ADDR_TYPE_RT,
2107 },
2108 { }
2109};
2110
2111/* l3_main_2 -> mmu_ipu */
2112static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2113 .master = &omap44xx_l3_main_2_hwmod,
2114 .slave = &omap44xx_mmu_ipu_hwmod,
2115 .clk = "l3_div_ck",
2116 .addr = omap44xx_mmu_ipu_addrs,
2117 .user = OCP_USER_MPU | OCP_USER_SDMA,
2118};
2119
2120static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2121 .name = "mmu_ipu",
2122 .class = &omap44xx_mmu_hwmod_class,
2123 .clkdm_name = "ducati_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002124 .rst_lines = omap44xx_mmu_ipu_resets,
2125 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2126 .main_clk = "ducati_clk_mux_ck",
2127 .prcm = {
2128 .omap4 = {
2129 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2130 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2131 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2132 .modulemode = MODULEMODE_HWCTRL,
2133 },
2134 },
2135 .dev_attr = &mmu_ipu_dev_attr,
2136};
2137
2138/* mmu dsp */
2139
2140static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002141 .nr_tlb_entries = 32,
2142};
2143
2144static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002145static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2146 { .name = "mmu_cache", .rst_shift = 1 },
2147};
2148
2149static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
2150 {
2151 .pa_start = 0x4a066000,
2152 .pa_end = 0x4a0660ff,
2153 .flags = ADDR_TYPE_RT,
2154 },
2155 { }
2156};
2157
2158/* l4_cfg -> dsp */
2159static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2160 .master = &omap44xx_l4_cfg_hwmod,
2161 .slave = &omap44xx_mmu_dsp_hwmod,
2162 .clk = "l4_div_ck",
2163 .addr = omap44xx_mmu_dsp_addrs,
2164 .user = OCP_USER_MPU | OCP_USER_SDMA,
2165};
2166
2167static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2168 .name = "mmu_dsp",
2169 .class = &omap44xx_mmu_hwmod_class,
2170 .clkdm_name = "tesla_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002171 .rst_lines = omap44xx_mmu_dsp_resets,
2172 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2173 .main_clk = "dpll_iva_m4x2_ck",
2174 .prcm = {
2175 .omap4 = {
2176 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2177 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2178 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2179 .modulemode = MODULEMODE_HWCTRL,
2180 },
2181 },
2182 .dev_attr = &mmu_dsp_dev_attr,
2183};
2184
2185/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002186 * 'mpu' class
2187 * mpu sub-system
2188 */
2189
2190static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002191 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002192};
2193
2194/* mpu */
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002195static struct omap_hwmod omap44xx_mpu_hwmod = {
2196 .name = "mpu",
2197 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002198 .clkdm_name = "mpuss_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +05302199 .flags = HWMOD_INIT_NO_IDLE,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002200 .main_clk = "dpll_mpu_m2_ck",
2201 .prcm = {
2202 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002203 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002204 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002205 },
2206 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002207};
2208
Benoit Cousson92b18d12010-09-23 20:02:41 +05302209/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06002210 * 'ocmc_ram' class
2211 * top-level core on-chip ram
2212 */
2213
2214static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2215 .name = "ocmc_ram",
2216};
2217
2218/* ocmc_ram */
2219static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2220 .name = "ocmc_ram",
2221 .class = &omap44xx_ocmc_ram_hwmod_class,
2222 .clkdm_name = "l3_2_clkdm",
2223 .prcm = {
2224 .omap4 = {
2225 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2226 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2227 },
2228 },
2229};
2230
2231/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002232 * 'ocp2scp' class
2233 * bridge to transform ocp interface protocol to scp (serial control port)
2234 * protocol
2235 */
2236
Benoit Cousson33c976e2012-09-23 17:28:21 -06002237static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2238 .rev_offs = 0x0000,
2239 .sysc_offs = 0x0010,
2240 .syss_offs = 0x0014,
2241 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2242 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2243 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2244 .sysc_fields = &omap_hwmod_sysc_type1,
2245};
2246
Benoît Cousson0c668872012-04-19 13:33:55 -06002247static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2248 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06002249 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06002250};
2251
2252/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06002253static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2254 .name = "ocp2scp_usb_phy",
2255 .class = &omap44xx_ocp2scp_hwmod_class,
2256 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham If4d7a532013-04-10 19:41:38 +00002257 /*
2258 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2259 * block as an "optional clock," and normally should never be
2260 * specified as the main_clk for an OMAP IP block. However it
2261 * turns out that this clock is actually the main clock for
2262 * the ocp2scp_usb_phy IP block:
2263 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2264 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2265 * to be the best workaround.
2266 */
2267 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06002268 .prcm = {
2269 .omap4 = {
2270 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2271 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2272 .modulemode = MODULEMODE_HWCTRL,
2273 },
2274 },
Benoît Cousson0c668872012-04-19 13:33:55 -06002275};
2276
2277/*
Paul Walmsley794b4802012-04-19 13:33:58 -06002278 * 'prcm' class
2279 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2280 * + clock manager 1 (in always on power domain) + local prm in mpu
2281 */
2282
2283static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2284 .name = "prcm",
2285};
2286
2287/* prcm_mpu */
2288static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2289 .name = "prcm_mpu",
2290 .class = &omap44xx_prcm_hwmod_class,
2291 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06002292 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002293 .prcm = {
2294 .omap4 = {
2295 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2296 },
2297 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002298};
2299
2300/* cm_core_aon */
2301static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2302 .name = "cm_core_aon",
2303 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002304 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002305 .prcm = {
2306 .omap4 = {
2307 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2308 },
2309 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002310};
2311
2312/* cm_core */
2313static struct omap_hwmod omap44xx_cm_core_hwmod = {
2314 .name = "cm_core",
2315 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002316 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002317 .prcm = {
2318 .omap4 = {
2319 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2320 },
2321 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002322};
2323
2324/* prm */
Paul Walmsley794b4802012-04-19 13:33:58 -06002325static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2326 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2327 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2328};
2329
2330static struct omap_hwmod omap44xx_prm_hwmod = {
2331 .name = "prm",
2332 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06002333 .rst_lines = omap44xx_prm_resets,
2334 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2335};
2336
2337/*
2338 * 'scrm' class
2339 * system clock and reset manager
2340 */
2341
2342static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2343 .name = "scrm",
2344};
2345
2346/* scrm */
2347static struct omap_hwmod omap44xx_scrm_hwmod = {
2348 .name = "scrm",
2349 .class = &omap44xx_scrm_hwmod_class,
2350 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06002351 .prcm = {
2352 .omap4 = {
2353 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2354 },
2355 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002356};
2357
2358/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06002359 * 'sl2if' class
2360 * shared level 2 memory interface
2361 */
2362
2363static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2364 .name = "sl2if",
2365};
2366
2367/* sl2if */
2368static struct omap_hwmod omap44xx_sl2if_hwmod = {
2369 .name = "sl2if",
2370 .class = &omap44xx_sl2if_hwmod_class,
2371 .clkdm_name = "ivahd_clkdm",
2372 .prcm = {
2373 .omap4 = {
2374 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2375 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2376 .modulemode = MODULEMODE_HWCTRL,
2377 },
2378 },
2379};
2380
2381/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002382 * 'slimbus' class
2383 * bidirectional, multi-drop, multi-channel two-line serial interface between
2384 * the device and external components
2385 */
2386
2387static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2388 .rev_offs = 0x0000,
2389 .sysc_offs = 0x0010,
2390 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2391 SYSC_HAS_SOFTRESET),
2392 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2393 SIDLE_SMART_WKUP),
2394 .sysc_fields = &omap_hwmod_sysc_type2,
2395};
2396
2397static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2398 .name = "slimbus",
2399 .sysc = &omap44xx_slimbus_sysc,
2400};
2401
2402/* slimbus1 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002403static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2404 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2405 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2406 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2407 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2408};
2409
2410static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2411 .name = "slimbus1",
2412 .class = &omap44xx_slimbus_hwmod_class,
2413 .clkdm_name = "abe_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002414 .prcm = {
2415 .omap4 = {
2416 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2417 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2418 .modulemode = MODULEMODE_SWCTRL,
2419 },
2420 },
2421 .opt_clks = slimbus1_opt_clks,
2422 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2423};
2424
2425/* slimbus2 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002426static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2427 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2428 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2429 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2430};
2431
2432static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2433 .name = "slimbus2",
2434 .class = &omap44xx_slimbus_hwmod_class,
2435 .clkdm_name = "l4_per_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002436 .prcm = {
2437 .omap4 = {
2438 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2439 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2440 .modulemode = MODULEMODE_SWCTRL,
2441 },
2442 },
2443 .opt_clks = slimbus2_opt_clks,
2444 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2445};
2446
2447/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002448 * 'smartreflex' class
2449 * smartreflex module (monitor silicon performance and outputs a measure of
2450 * performance error)
2451 */
2452
2453/* The IP is not compliant to type1 / type2 scheme */
2454static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2455 .sidle_shift = 24,
2456 .enwkup_shift = 26,
2457};
2458
2459static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2460 .sysc_offs = 0x0038,
2461 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2462 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2463 SIDLE_SMART_WKUP),
2464 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2465};
2466
2467static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002468 .name = "smartreflex",
2469 .sysc = &omap44xx_smartreflex_sysc,
2470 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002471};
2472
2473/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002474static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2475 .sensor_voltdm_name = "core",
2476};
2477
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002478static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2479 .name = "smartreflex_core",
2480 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002481 .clkdm_name = "l4_ao_clkdm",
Paul Walmsley212738a2011-07-09 19:14:06 -06002482
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002483 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002484 .prcm = {
2485 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002486 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002487 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002488 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002489 },
2490 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002491 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002492};
2493
2494/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002495static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2496 .sensor_voltdm_name = "iva",
2497};
2498
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002499static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2500 .name = "smartreflex_iva",
2501 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002502 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002503 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002504 .prcm = {
2505 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002506 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002507 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002508 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002509 },
2510 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002511 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002512};
2513
2514/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002515static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2516 .sensor_voltdm_name = "mpu",
2517};
2518
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002519static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2520 .name = "smartreflex_mpu",
2521 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002522 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002523 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002524 .prcm = {
2525 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002526 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002527 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002528 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002529 },
2530 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002531 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002532};
2533
2534/*
Benoit Coussond11c2172011-02-02 12:04:36 +00002535 * 'spinlock' class
2536 * spinlock provides hardware assistance for synchronizing the processes
2537 * running on multiple processors
2538 */
2539
2540static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2541 .rev_offs = 0x0000,
2542 .sysc_offs = 0x0010,
2543 .syss_offs = 0x0014,
2544 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2545 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2546 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Suman Anna77319662013-12-23 16:48:48 -06002547 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Benoit Coussond11c2172011-02-02 12:04:36 +00002548 .sysc_fields = &omap_hwmod_sysc_type1,
2549};
2550
2551static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2552 .name = "spinlock",
2553 .sysc = &omap44xx_spinlock_sysc,
2554};
2555
2556/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00002557static struct omap_hwmod omap44xx_spinlock_hwmod = {
2558 .name = "spinlock",
2559 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002560 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00002561 .prcm = {
2562 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002563 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002564 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00002565 },
2566 },
Benoit Coussond11c2172011-02-02 12:04:36 +00002567};
2568
2569/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00002570 * 'timer' class
2571 * general purpose timer module with accurate 1ms tick
2572 * This class contains several variants: ['timer_1ms', 'timer']
2573 */
2574
2575static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_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_EMUFREE | SYSC_HAS_ENAWAKEUP |
2581 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2582 SYSS_HAS_RESET_STATUS),
2583 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Jon Hunter10759e82012-07-11 13:00:13 -05002584 .clockact = CLOCKACT_TEST_ICLK,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002585 .sysc_fields = &omap_hwmod_sysc_type1,
2586};
2587
2588static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2589 .name = "timer",
2590 .sysc = &omap44xx_timer_1ms_sysc,
2591};
2592
2593static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2594 .rev_offs = 0x0000,
2595 .sysc_offs = 0x0010,
2596 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2597 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2598 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2599 SIDLE_SMART_WKUP),
2600 .sysc_fields = &omap_hwmod_sysc_type2,
2601};
2602
2603static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2604 .name = "timer",
2605 .sysc = &omap44xx_timer_sysc,
2606};
2607
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302608/* always-on timers dev attribute */
2609static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
2610 .timer_capability = OMAP_TIMER_ALWON,
2611};
2612
2613/* pwm timers dev attribute */
2614static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
2615 .timer_capability = OMAP_TIMER_HAS_PWM,
2616};
2617
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002618/* timers with DSP interrupt dev attribute */
2619static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
2620 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
2621};
2622
2623/* pwm timers with DSP interrupt dev attribute */
2624static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
2625 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
2626};
2627
Benoit Cousson35d1a662011-02-11 11:17:14 +00002628/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002629static struct omap_hwmod omap44xx_timer1_hwmod = {
2630 .name = "timer1",
2631 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002632 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002633 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002634 .main_clk = "dmt1_clk_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002635 .prcm = {
2636 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002637 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002638 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002639 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002640 },
2641 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302642 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002643};
2644
2645/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002646static struct omap_hwmod omap44xx_timer2_hwmod = {
2647 .name = "timer2",
2648 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002649 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002650 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002651 .main_clk = "cm2_dm2_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002652 .prcm = {
2653 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002654 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002655 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002656 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002657 },
2658 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002659};
2660
2661/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002662static struct omap_hwmod omap44xx_timer3_hwmod = {
2663 .name = "timer3",
2664 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002665 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002666 .main_clk = "cm2_dm3_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002667 .prcm = {
2668 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002669 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002670 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002671 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002672 },
2673 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002674};
2675
2676/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002677static struct omap_hwmod omap44xx_timer4_hwmod = {
2678 .name = "timer4",
2679 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002680 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002681 .main_clk = "cm2_dm4_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002682 .prcm = {
2683 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002684 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002685 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002686 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002687 },
2688 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002689};
2690
2691/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002692static struct omap_hwmod omap44xx_timer5_hwmod = {
2693 .name = "timer5",
2694 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002695 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002696 .main_clk = "timer5_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002697 .prcm = {
2698 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002699 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002700 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002701 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002702 },
2703 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002704 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002705};
2706
2707/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002708static struct omap_hwmod omap44xx_timer6_hwmod = {
2709 .name = "timer6",
2710 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002711 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002712 .main_clk = "timer6_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002713 .prcm = {
2714 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002715 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002716 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002717 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002718 },
2719 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002720 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002721};
2722
2723/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002724static struct omap_hwmod omap44xx_timer7_hwmod = {
2725 .name = "timer7",
2726 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002727 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002728 .main_clk = "timer7_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002729 .prcm = {
2730 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002731 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002732 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002733 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002734 },
2735 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002736 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002737};
2738
2739/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002740static struct omap_hwmod omap44xx_timer8_hwmod = {
2741 .name = "timer8",
2742 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002743 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002744 .main_clk = "timer8_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002745 .prcm = {
2746 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002747 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002748 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002749 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002750 },
2751 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002752 .dev_attr = &capability_dsp_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002753};
2754
2755/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002756static struct omap_hwmod omap44xx_timer9_hwmod = {
2757 .name = "timer9",
2758 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002759 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002760 .main_clk = "cm2_dm9_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002761 .prcm = {
2762 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002763 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002764 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002765 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002766 },
2767 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302768 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002769};
2770
2771/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002772static struct omap_hwmod omap44xx_timer10_hwmod = {
2773 .name = "timer10",
2774 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002775 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002776 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002777 .main_clk = "cm2_dm10_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002778 .prcm = {
2779 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002780 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002781 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002782 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002783 },
2784 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302785 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002786};
2787
2788/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002789static struct omap_hwmod omap44xx_timer11_hwmod = {
2790 .name = "timer11",
2791 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002792 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002793 .main_clk = "cm2_dm11_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002794 .prcm = {
2795 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002796 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002797 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002798 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002799 },
2800 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302801 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002802};
2803
2804/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05302805 * 'uart' class
2806 * universal asynchronous receiver/transmitter (uart)
2807 */
2808
2809static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2810 .rev_offs = 0x0050,
2811 .sysc_offs = 0x0054,
2812 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002813 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002814 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2815 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002816 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2817 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05302818 .sysc_fields = &omap_hwmod_sysc_type1,
2819};
2820
2821static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002822 .name = "uart",
2823 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302824};
2825
2826/* uart1 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302827static struct omap_hwmod omap44xx_uart1_hwmod = {
2828 .name = "uart1",
2829 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002830 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302831 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002832 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302833 .prcm = {
2834 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002835 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002836 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002837 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302838 },
2839 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302840};
2841
2842/* uart2 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302843static struct omap_hwmod omap44xx_uart2_hwmod = {
2844 .name = "uart2",
2845 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002846 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302847 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002848 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302849 .prcm = {
2850 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002851 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002852 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002853 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302854 },
2855 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302856};
2857
2858/* uart3 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302859static struct omap_hwmod omap44xx_uart3_hwmod = {
2860 .name = "uart3",
2861 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002862 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002863 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002864 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302865 .prcm = {
2866 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002867 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002868 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002869 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302870 },
2871 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302872};
2873
2874/* uart4 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302875static struct omap_hwmod omap44xx_uart4_hwmod = {
2876 .name = "uart4",
2877 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002878 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002879 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002880 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302881 .prcm = {
2882 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002883 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002884 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002885 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302886 },
2887 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302888};
2889
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002890/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002891 * 'usb_host_fs' class
2892 * full-speed usb host controller
2893 */
2894
2895/* The IP is not compliant to type1 / type2 scheme */
2896static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
2897 .midle_shift = 4,
2898 .sidle_shift = 2,
2899 .srst_shift = 1,
2900};
2901
2902static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2903 .rev_offs = 0x0000,
2904 .sysc_offs = 0x0210,
2905 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2906 SYSC_HAS_SOFTRESET),
2907 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2908 SIDLE_SMART_WKUP),
2909 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2910};
2911
2912static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2913 .name = "usb_host_fs",
2914 .sysc = &omap44xx_usb_host_fs_sysc,
2915};
2916
2917/* usb_host_fs */
Benoît Cousson0c668872012-04-19 13:33:55 -06002918static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2919 .name = "usb_host_fs",
2920 .class = &omap44xx_usb_host_fs_hwmod_class,
2921 .clkdm_name = "l3_init_clkdm",
Benoît Cousson0c668872012-04-19 13:33:55 -06002922 .main_clk = "usb_host_fs_fck",
2923 .prcm = {
2924 .omap4 = {
2925 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2926 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2927 .modulemode = MODULEMODE_SWCTRL,
2928 },
2929 },
2930};
2931
2932/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002933 * 'usb_host_hs' class
2934 * high-speed multi-port usb host controller
2935 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002936
2937static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2938 .rev_offs = 0x0000,
2939 .sysc_offs = 0x0010,
2940 .syss_offs = 0x0014,
2941 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002942 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002943 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2944 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2945 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2946 .sysc_fields = &omap_hwmod_sysc_type2,
2947};
2948
2949static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002950 .name = "usb_host_hs",
2951 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002952};
2953
Paul Walmsley844a3b62012-04-19 04:04:33 -06002954/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002955static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2956 .name = "usb_host_hs",
2957 .class = &omap44xx_usb_host_hs_hwmod_class,
2958 .clkdm_name = "l3_init_clkdm",
2959 .main_clk = "usb_host_hs_fck",
2960 .prcm = {
2961 .omap4 = {
2962 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2963 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2964 .modulemode = MODULEMODE_SWCTRL,
2965 },
2966 },
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002967
2968 /*
2969 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2970 * id: i660
2971 *
2972 * Description:
2973 * In the following configuration :
2974 * - USBHOST module is set to smart-idle mode
2975 * - PRCM asserts idle_req to the USBHOST module ( This typically
2976 * happens when the system is going to a low power mode : all ports
2977 * have been suspended, the master part of the USBHOST module has
2978 * entered the standby state, and SW has cut the functional clocks)
2979 * - an USBHOST interrupt occurs before the module is able to answer
2980 * idle_ack, typically a remote wakeup IRQ.
2981 * Then the USB HOST module will enter a deadlock situation where it
2982 * is no more accessible nor functional.
2983 *
2984 * Workaround:
2985 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2986 */
2987
2988 /*
2989 * Errata: USB host EHCI may stall when entering smart-standby mode
2990 * Id: i571
2991 *
2992 * Description:
2993 * When the USBHOST module is set to smart-standby mode, and when it is
2994 * ready to enter the standby state (i.e. all ports are suspended and
2995 * all attached devices are in suspend mode), then it can wrongly assert
2996 * the Mstandby signal too early while there are still some residual OCP
2997 * transactions ongoing. If this condition occurs, the internal state
2998 * machine may go to an undefined state and the USB link may be stuck
2999 * upon the next resume.
3000 *
3001 * Workaround:
3002 * Don't use smart standby; use only force standby,
3003 * hence HWMOD_SWSUP_MSTANDBY
3004 */
3005
Roger Quadrosb483a4a2013-12-03 16:25:46 +02003006 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003007};
3008
3009/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06003010 * 'usb_otg_hs' class
3011 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3012 */
3013
3014static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3015 .rev_offs = 0x0400,
3016 .sysc_offs = 0x0404,
3017 .syss_offs = 0x0408,
3018 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3019 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3020 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3021 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3022 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3023 MSTANDBY_SMART),
3024 .sysc_fields = &omap_hwmod_sysc_type1,
3025};
3026
3027static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3028 .name = "usb_otg_hs",
3029 .sysc = &omap44xx_usb_otg_hs_sysc,
3030};
3031
3032/* usb_otg_hs */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003033static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3034 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3035};
3036
3037static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3038 .name = "usb_otg_hs",
3039 .class = &omap44xx_usb_otg_hs_hwmod_class,
3040 .clkdm_name = "l3_init_clkdm",
3041 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003042 .main_clk = "usb_otg_hs_ick",
3043 .prcm = {
3044 .omap4 = {
3045 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3046 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3047 .modulemode = MODULEMODE_HWCTRL,
3048 },
3049 },
3050 .opt_clks = usb_otg_hs_opt_clks,
3051 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3052};
3053
3054/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003055 * 'usb_tll_hs' class
3056 * usb_tll_hs module is the adapter on the usb_host_hs ports
3057 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003058
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003059static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3060 .rev_offs = 0x0000,
3061 .sysc_offs = 0x0010,
3062 .syss_offs = 0x0014,
3063 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3064 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3065 SYSC_HAS_AUTOIDLE),
3066 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3067 .sysc_fields = &omap_hwmod_sysc_type1,
3068};
3069
3070static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003071 .name = "usb_tll_hs",
3072 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003073};
3074
Paul Walmsley844a3b62012-04-19 04:04:33 -06003075static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3076 .name = "usb_tll_hs",
3077 .class = &omap44xx_usb_tll_hs_hwmod_class,
3078 .clkdm_name = "l3_init_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003079 .main_clk = "usb_tll_hs_ick",
3080 .prcm = {
3081 .omap4 = {
3082 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3083 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3084 .modulemode = MODULEMODE_HWCTRL,
3085 },
3086 },
3087};
3088
3089/*
3090 * 'wd_timer' class
3091 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3092 * overflow condition
3093 */
3094
3095static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3096 .rev_offs = 0x0000,
3097 .sysc_offs = 0x0010,
3098 .syss_offs = 0x0014,
3099 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3100 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3101 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3102 SIDLE_SMART_WKUP),
3103 .sysc_fields = &omap_hwmod_sysc_type1,
3104};
3105
3106static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3107 .name = "wd_timer",
3108 .sysc = &omap44xx_wd_timer_sysc,
3109 .pre_shutdown = &omap2_wd_timer_disable,
Kevin Hilman414e4122012-05-08 11:34:30 -06003110 .reset = &omap2_wd_timer_reset,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003111};
3112
3113/* wd_timer2 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003114static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3115 .name = "wd_timer2",
3116 .class = &omap44xx_wd_timer_hwmod_class,
3117 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003118 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003119 .prcm = {
3120 .omap4 = {
3121 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3122 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3123 .modulemode = MODULEMODE_SWCTRL,
3124 },
3125 },
3126};
3127
3128/* wd_timer3 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003129static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3130 .name = "wd_timer3",
3131 .class = &omap44xx_wd_timer_hwmod_class,
3132 .clkdm_name = "abe_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003133 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003134 .prcm = {
3135 .omap4 = {
3136 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3137 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3138 .modulemode = MODULEMODE_SWCTRL,
3139 },
3140 },
3141};
3142
3143
3144/*
3145 * interfaces
3146 */
3147
3148/* l3_main_1 -> dmm */
3149static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3150 .master = &omap44xx_l3_main_1_hwmod,
3151 .slave = &omap44xx_dmm_hwmod,
3152 .clk = "l3_div_ck",
3153 .user = OCP_USER_SDMA,
3154};
3155
Paul Walmsley844a3b62012-04-19 04:04:33 -06003156/* mpu -> dmm */
3157static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3158 .master = &omap44xx_mpu_hwmod,
3159 .slave = &omap44xx_dmm_hwmod,
3160 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003161 .user = OCP_USER_MPU,
3162};
3163
3164/* iva -> l3_instr */
3165static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3166 .master = &omap44xx_iva_hwmod,
3167 .slave = &omap44xx_l3_instr_hwmod,
3168 .clk = "l3_div_ck",
3169 .user = OCP_USER_MPU | OCP_USER_SDMA,
3170};
3171
3172/* l3_main_3 -> l3_instr */
3173static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3174 .master = &omap44xx_l3_main_3_hwmod,
3175 .slave = &omap44xx_l3_instr_hwmod,
3176 .clk = "l3_div_ck",
3177 .user = OCP_USER_MPU | OCP_USER_SDMA,
3178};
3179
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003180/* ocp_wp_noc -> l3_instr */
3181static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3182 .master = &omap44xx_ocp_wp_noc_hwmod,
3183 .slave = &omap44xx_l3_instr_hwmod,
3184 .clk = "l3_div_ck",
3185 .user = OCP_USER_MPU | OCP_USER_SDMA,
3186};
3187
Paul Walmsley844a3b62012-04-19 04:04:33 -06003188/* dsp -> l3_main_1 */
3189static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3190 .master = &omap44xx_dsp_hwmod,
3191 .slave = &omap44xx_l3_main_1_hwmod,
3192 .clk = "l3_div_ck",
3193 .user = OCP_USER_MPU | OCP_USER_SDMA,
3194};
3195
3196/* dss -> l3_main_1 */
3197static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3198 .master = &omap44xx_dss_hwmod,
3199 .slave = &omap44xx_l3_main_1_hwmod,
3200 .clk = "l3_div_ck",
3201 .user = OCP_USER_MPU | OCP_USER_SDMA,
3202};
3203
3204/* l3_main_2 -> l3_main_1 */
3205static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3206 .master = &omap44xx_l3_main_2_hwmod,
3207 .slave = &omap44xx_l3_main_1_hwmod,
3208 .clk = "l3_div_ck",
3209 .user = OCP_USER_MPU | OCP_USER_SDMA,
3210};
3211
3212/* l4_cfg -> l3_main_1 */
3213static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3214 .master = &omap44xx_l4_cfg_hwmod,
3215 .slave = &omap44xx_l3_main_1_hwmod,
3216 .clk = "l4_div_ck",
3217 .user = OCP_USER_MPU | OCP_USER_SDMA,
3218};
3219
3220/* mmc1 -> l3_main_1 */
3221static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3222 .master = &omap44xx_mmc1_hwmod,
3223 .slave = &omap44xx_l3_main_1_hwmod,
3224 .clk = "l3_div_ck",
3225 .user = OCP_USER_MPU | OCP_USER_SDMA,
3226};
3227
3228/* mmc2 -> l3_main_1 */
3229static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3230 .master = &omap44xx_mmc2_hwmod,
3231 .slave = &omap44xx_l3_main_1_hwmod,
3232 .clk = "l3_div_ck",
3233 .user = OCP_USER_MPU | OCP_USER_SDMA,
3234};
3235
Paul Walmsley844a3b62012-04-19 04:04:33 -06003236/* mpu -> l3_main_1 */
3237static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3238 .master = &omap44xx_mpu_hwmod,
3239 .slave = &omap44xx_l3_main_1_hwmod,
3240 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003241 .user = OCP_USER_MPU,
3242};
3243
Benoît Cousson96566042012-04-19 13:33:59 -06003244/* debugss -> l3_main_2 */
3245static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3246 .master = &omap44xx_debugss_hwmod,
3247 .slave = &omap44xx_l3_main_2_hwmod,
3248 .clk = "dbgclk_mux_ck",
3249 .user = OCP_USER_MPU | OCP_USER_SDMA,
3250};
3251
Paul Walmsley844a3b62012-04-19 04:04:33 -06003252/* dma_system -> l3_main_2 */
3253static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3254 .master = &omap44xx_dma_system_hwmod,
3255 .slave = &omap44xx_l3_main_2_hwmod,
3256 .clk = "l3_div_ck",
3257 .user = OCP_USER_MPU | OCP_USER_SDMA,
3258};
3259
Ming Leib050f682012-04-19 13:33:50 -06003260/* fdif -> l3_main_2 */
3261static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3262 .master = &omap44xx_fdif_hwmod,
3263 .slave = &omap44xx_l3_main_2_hwmod,
3264 .clk = "l3_div_ck",
3265 .user = OCP_USER_MPU | OCP_USER_SDMA,
3266};
3267
Paul Walmsley9def3902012-04-19 13:33:53 -06003268/* gpu -> l3_main_2 */
3269static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3270 .master = &omap44xx_gpu_hwmod,
3271 .slave = &omap44xx_l3_main_2_hwmod,
3272 .clk = "l3_div_ck",
3273 .user = OCP_USER_MPU | OCP_USER_SDMA,
3274};
3275
Paul Walmsley844a3b62012-04-19 04:04:33 -06003276/* hsi -> l3_main_2 */
3277static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3278 .master = &omap44xx_hsi_hwmod,
3279 .slave = &omap44xx_l3_main_2_hwmod,
3280 .clk = "l3_div_ck",
3281 .user = OCP_USER_MPU | OCP_USER_SDMA,
3282};
3283
3284/* ipu -> l3_main_2 */
3285static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3286 .master = &omap44xx_ipu_hwmod,
3287 .slave = &omap44xx_l3_main_2_hwmod,
3288 .clk = "l3_div_ck",
3289 .user = OCP_USER_MPU | OCP_USER_SDMA,
3290};
3291
3292/* iss -> l3_main_2 */
3293static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3294 .master = &omap44xx_iss_hwmod,
3295 .slave = &omap44xx_l3_main_2_hwmod,
3296 .clk = "l3_div_ck",
3297 .user = OCP_USER_MPU | OCP_USER_SDMA,
3298};
3299
3300/* iva -> l3_main_2 */
3301static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3302 .master = &omap44xx_iva_hwmod,
3303 .slave = &omap44xx_l3_main_2_hwmod,
3304 .clk = "l3_div_ck",
3305 .user = OCP_USER_MPU | OCP_USER_SDMA,
3306};
3307
Paul Walmsley844a3b62012-04-19 04:04:33 -06003308/* l3_main_1 -> l3_main_2 */
3309static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3310 .master = &omap44xx_l3_main_1_hwmod,
3311 .slave = &omap44xx_l3_main_2_hwmod,
3312 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003313 .user = OCP_USER_MPU,
3314};
3315
3316/* l4_cfg -> l3_main_2 */
3317static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3318 .master = &omap44xx_l4_cfg_hwmod,
3319 .slave = &omap44xx_l3_main_2_hwmod,
3320 .clk = "l4_div_ck",
3321 .user = OCP_USER_MPU | OCP_USER_SDMA,
3322};
3323
Benoît Cousson0c668872012-04-19 13:33:55 -06003324/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003325static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06003326 .master = &omap44xx_usb_host_fs_hwmod,
3327 .slave = &omap44xx_l3_main_2_hwmod,
3328 .clk = "l3_div_ck",
3329 .user = OCP_USER_MPU | OCP_USER_SDMA,
3330};
3331
Paul Walmsley844a3b62012-04-19 04:04:33 -06003332/* usb_host_hs -> l3_main_2 */
3333static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3334 .master = &omap44xx_usb_host_hs_hwmod,
3335 .slave = &omap44xx_l3_main_2_hwmod,
3336 .clk = "l3_div_ck",
3337 .user = OCP_USER_MPU | OCP_USER_SDMA,
3338};
3339
3340/* usb_otg_hs -> l3_main_2 */
3341static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3342 .master = &omap44xx_usb_otg_hs_hwmod,
3343 .slave = &omap44xx_l3_main_2_hwmod,
3344 .clk = "l3_div_ck",
3345 .user = OCP_USER_MPU | OCP_USER_SDMA,
3346};
3347
Paul Walmsley844a3b62012-04-19 04:04:33 -06003348/* l3_main_1 -> l3_main_3 */
3349static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3350 .master = &omap44xx_l3_main_1_hwmod,
3351 .slave = &omap44xx_l3_main_3_hwmod,
3352 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003353 .user = OCP_USER_MPU,
3354};
3355
3356/* l3_main_2 -> l3_main_3 */
3357static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3358 .master = &omap44xx_l3_main_2_hwmod,
3359 .slave = &omap44xx_l3_main_3_hwmod,
3360 .clk = "l3_div_ck",
3361 .user = OCP_USER_MPU | OCP_USER_SDMA,
3362};
3363
3364/* l4_cfg -> l3_main_3 */
3365static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3366 .master = &omap44xx_l4_cfg_hwmod,
3367 .slave = &omap44xx_l3_main_3_hwmod,
3368 .clk = "l4_div_ck",
3369 .user = OCP_USER_MPU | OCP_USER_SDMA,
3370};
3371
3372/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003373static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003374 .master = &omap44xx_aess_hwmod,
3375 .slave = &omap44xx_l4_abe_hwmod,
3376 .clk = "ocp_abe_iclk",
3377 .user = OCP_USER_MPU | OCP_USER_SDMA,
3378};
3379
3380/* dsp -> l4_abe */
3381static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3382 .master = &omap44xx_dsp_hwmod,
3383 .slave = &omap44xx_l4_abe_hwmod,
3384 .clk = "ocp_abe_iclk",
3385 .user = OCP_USER_MPU | OCP_USER_SDMA,
3386};
3387
3388/* l3_main_1 -> l4_abe */
3389static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3390 .master = &omap44xx_l3_main_1_hwmod,
3391 .slave = &omap44xx_l4_abe_hwmod,
3392 .clk = "l3_div_ck",
3393 .user = OCP_USER_MPU | OCP_USER_SDMA,
3394};
3395
3396/* mpu -> l4_abe */
3397static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3398 .master = &omap44xx_mpu_hwmod,
3399 .slave = &omap44xx_l4_abe_hwmod,
3400 .clk = "ocp_abe_iclk",
3401 .user = OCP_USER_MPU | OCP_USER_SDMA,
3402};
3403
3404/* l3_main_1 -> l4_cfg */
3405static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3406 .master = &omap44xx_l3_main_1_hwmod,
3407 .slave = &omap44xx_l4_cfg_hwmod,
3408 .clk = "l3_div_ck",
3409 .user = OCP_USER_MPU | OCP_USER_SDMA,
3410};
3411
3412/* l3_main_2 -> l4_per */
3413static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3414 .master = &omap44xx_l3_main_2_hwmod,
3415 .slave = &omap44xx_l4_per_hwmod,
3416 .clk = "l3_div_ck",
3417 .user = OCP_USER_MPU | OCP_USER_SDMA,
3418};
3419
3420/* l4_cfg -> l4_wkup */
3421static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3422 .master = &omap44xx_l4_cfg_hwmod,
3423 .slave = &omap44xx_l4_wkup_hwmod,
3424 .clk = "l4_div_ck",
3425 .user = OCP_USER_MPU | OCP_USER_SDMA,
3426};
3427
3428/* mpu -> mpu_private */
3429static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3430 .master = &omap44xx_mpu_hwmod,
3431 .slave = &omap44xx_mpu_private_hwmod,
3432 .clk = "l3_div_ck",
3433 .user = OCP_USER_MPU | OCP_USER_SDMA,
3434};
3435
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003436/* l4_cfg -> ocp_wp_noc */
3437static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3438 .master = &omap44xx_l4_cfg_hwmod,
3439 .slave = &omap44xx_ocp_wp_noc_hwmod,
3440 .clk = "l4_div_ck",
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003441 .user = OCP_USER_MPU | OCP_USER_SDMA,
3442};
3443
Paul Walmsley844a3b62012-04-19 04:04:33 -06003444static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
3445 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003446 .name = "dmem",
3447 .pa_start = 0x40180000,
3448 .pa_end = 0x4018ffff
3449 },
3450 {
3451 .name = "cmem",
3452 .pa_start = 0x401a0000,
3453 .pa_end = 0x401a1fff
3454 },
3455 {
3456 .name = "smem",
3457 .pa_start = 0x401c0000,
3458 .pa_end = 0x401c5fff
3459 },
3460 {
3461 .name = "pmem",
3462 .pa_start = 0x401e0000,
3463 .pa_end = 0x401e1fff
3464 },
3465 {
3466 .name = "mpu",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003467 .pa_start = 0x401f1000,
3468 .pa_end = 0x401f13ff,
3469 .flags = ADDR_TYPE_RT
3470 },
3471 { }
3472};
3473
3474/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003475static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003476 .master = &omap44xx_l4_abe_hwmod,
3477 .slave = &omap44xx_aess_hwmod,
3478 .clk = "ocp_abe_iclk",
3479 .addr = omap44xx_aess_addrs,
3480 .user = OCP_USER_MPU,
3481};
3482
3483static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
3484 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003485 .name = "dmem_dma",
3486 .pa_start = 0x49080000,
3487 .pa_end = 0x4908ffff
3488 },
3489 {
3490 .name = "cmem_dma",
3491 .pa_start = 0x490a0000,
3492 .pa_end = 0x490a1fff
3493 },
3494 {
3495 .name = "smem_dma",
3496 .pa_start = 0x490c0000,
3497 .pa_end = 0x490c5fff
3498 },
3499 {
3500 .name = "pmem_dma",
3501 .pa_start = 0x490e0000,
3502 .pa_end = 0x490e1fff
3503 },
3504 {
3505 .name = "dma",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003506 .pa_start = 0x490f1000,
3507 .pa_end = 0x490f13ff,
3508 .flags = ADDR_TYPE_RT
3509 },
3510 { }
3511};
3512
3513/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003514static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003515 .master = &omap44xx_l4_abe_hwmod,
3516 .slave = &omap44xx_aess_hwmod,
3517 .clk = "ocp_abe_iclk",
3518 .addr = omap44xx_aess_dma_addrs,
3519 .user = OCP_USER_SDMA,
3520};
3521
Paul Walmsley42b9e382012-04-19 13:33:54 -06003522/* l3_main_2 -> c2c */
3523static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3524 .master = &omap44xx_l3_main_2_hwmod,
3525 .slave = &omap44xx_c2c_hwmod,
3526 .clk = "l3_div_ck",
3527 .user = OCP_USER_MPU | OCP_USER_SDMA,
3528};
3529
Paul Walmsley844a3b62012-04-19 04:04:33 -06003530/* l4_wkup -> counter_32k */
3531static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3532 .master = &omap44xx_l4_wkup_hwmod,
3533 .slave = &omap44xx_counter_32k_hwmod,
3534 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003535 .user = OCP_USER_MPU | OCP_USER_SDMA,
3536};
3537
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003538static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
3539 {
3540 .pa_start = 0x4a002000,
3541 .pa_end = 0x4a0027ff,
3542 .flags = ADDR_TYPE_RT
3543 },
3544 { }
3545};
3546
3547/* l4_cfg -> ctrl_module_core */
3548static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3549 .master = &omap44xx_l4_cfg_hwmod,
3550 .slave = &omap44xx_ctrl_module_core_hwmod,
3551 .clk = "l4_div_ck",
3552 .addr = omap44xx_ctrl_module_core_addrs,
3553 .user = OCP_USER_MPU | OCP_USER_SDMA,
3554};
3555
3556static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
3557 {
3558 .pa_start = 0x4a100000,
3559 .pa_end = 0x4a1007ff,
3560 .flags = ADDR_TYPE_RT
3561 },
3562 { }
3563};
3564
3565/* l4_cfg -> ctrl_module_pad_core */
3566static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3567 .master = &omap44xx_l4_cfg_hwmod,
3568 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3569 .clk = "l4_div_ck",
3570 .addr = omap44xx_ctrl_module_pad_core_addrs,
3571 .user = OCP_USER_MPU | OCP_USER_SDMA,
3572};
3573
3574static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
3575 {
3576 .pa_start = 0x4a30c000,
3577 .pa_end = 0x4a30c7ff,
3578 .flags = ADDR_TYPE_RT
3579 },
3580 { }
3581};
3582
3583/* l4_wkup -> ctrl_module_wkup */
3584static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3585 .master = &omap44xx_l4_wkup_hwmod,
3586 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3587 .clk = "l4_wkup_clk_mux_ck",
3588 .addr = omap44xx_ctrl_module_wkup_addrs,
3589 .user = OCP_USER_MPU | OCP_USER_SDMA,
3590};
3591
3592static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
3593 {
3594 .pa_start = 0x4a31e000,
3595 .pa_end = 0x4a31e7ff,
3596 .flags = ADDR_TYPE_RT
3597 },
3598 { }
3599};
3600
3601/* l4_wkup -> ctrl_module_pad_wkup */
3602static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3603 .master = &omap44xx_l4_wkup_hwmod,
3604 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3605 .clk = "l4_wkup_clk_mux_ck",
3606 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
3607 .user = OCP_USER_MPU | OCP_USER_SDMA,
3608};
3609
Benoît Cousson96566042012-04-19 13:33:59 -06003610/* l3_instr -> debugss */
3611static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3612 .master = &omap44xx_l3_instr_hwmod,
3613 .slave = &omap44xx_debugss_hwmod,
3614 .clk = "l3_div_ck",
Benoît Cousson96566042012-04-19 13:33:59 -06003615 .user = OCP_USER_MPU | OCP_USER_SDMA,
3616};
3617
Paul Walmsley844a3b62012-04-19 04:04:33 -06003618static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
3619 {
3620 .pa_start = 0x4a056000,
3621 .pa_end = 0x4a056fff,
3622 .flags = ADDR_TYPE_RT
3623 },
3624 { }
3625};
3626
3627/* l4_cfg -> dma_system */
3628static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3629 .master = &omap44xx_l4_cfg_hwmod,
3630 .slave = &omap44xx_dma_system_hwmod,
3631 .clk = "l4_div_ck",
3632 .addr = omap44xx_dma_system_addrs,
3633 .user = OCP_USER_MPU | OCP_USER_SDMA,
3634};
3635
Paul Walmsley844a3b62012-04-19 04:04:33 -06003636/* l4_abe -> dmic */
3637static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3638 .master = &omap44xx_l4_abe_hwmod,
3639 .slave = &omap44xx_dmic_hwmod,
3640 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003641 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003642};
3643
3644/* dsp -> iva */
3645static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3646 .master = &omap44xx_dsp_hwmod,
3647 .slave = &omap44xx_iva_hwmod,
3648 .clk = "dpll_iva_m5x2_ck",
3649 .user = OCP_USER_DSP,
3650};
3651
Paul Walmsley42b9e382012-04-19 13:33:54 -06003652/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003653static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003654 .master = &omap44xx_dsp_hwmod,
3655 .slave = &omap44xx_sl2if_hwmod,
3656 .clk = "dpll_iva_m5x2_ck",
3657 .user = OCP_USER_DSP,
3658};
3659
Paul Walmsley844a3b62012-04-19 04:04:33 -06003660/* l4_cfg -> dsp */
3661static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3662 .master = &omap44xx_l4_cfg_hwmod,
3663 .slave = &omap44xx_dsp_hwmod,
3664 .clk = "l4_div_ck",
3665 .user = OCP_USER_MPU | OCP_USER_SDMA,
3666};
3667
3668static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
3669 {
3670 .pa_start = 0x58000000,
3671 .pa_end = 0x5800007f,
3672 .flags = ADDR_TYPE_RT
3673 },
3674 { }
3675};
3676
3677/* l3_main_2 -> dss */
3678static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3679 .master = &omap44xx_l3_main_2_hwmod,
3680 .slave = &omap44xx_dss_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003681 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003682 .addr = omap44xx_dss_dma_addrs,
3683 .user = OCP_USER_SDMA,
3684};
3685
3686static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
3687 {
3688 .pa_start = 0x48040000,
3689 .pa_end = 0x4804007f,
3690 .flags = ADDR_TYPE_RT
3691 },
3692 { }
3693};
3694
3695/* l4_per -> dss */
3696static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3697 .master = &omap44xx_l4_per_hwmod,
3698 .slave = &omap44xx_dss_hwmod,
3699 .clk = "l4_div_ck",
3700 .addr = omap44xx_dss_addrs,
3701 .user = OCP_USER_MPU,
3702};
3703
3704static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
3705 {
3706 .pa_start = 0x58001000,
3707 .pa_end = 0x58001fff,
3708 .flags = ADDR_TYPE_RT
3709 },
3710 { }
3711};
3712
3713/* l3_main_2 -> dss_dispc */
3714static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3715 .master = &omap44xx_l3_main_2_hwmod,
3716 .slave = &omap44xx_dss_dispc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003717 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003718 .addr = omap44xx_dss_dispc_dma_addrs,
3719 .user = OCP_USER_SDMA,
3720};
3721
3722static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
3723 {
3724 .pa_start = 0x48041000,
3725 .pa_end = 0x48041fff,
3726 .flags = ADDR_TYPE_RT
3727 },
3728 { }
3729};
3730
3731/* l4_per -> dss_dispc */
3732static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3733 .master = &omap44xx_l4_per_hwmod,
3734 .slave = &omap44xx_dss_dispc_hwmod,
3735 .clk = "l4_div_ck",
3736 .addr = omap44xx_dss_dispc_addrs,
3737 .user = OCP_USER_MPU,
3738};
3739
3740static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
3741 {
3742 .pa_start = 0x58004000,
3743 .pa_end = 0x580041ff,
3744 .flags = ADDR_TYPE_RT
3745 },
3746 { }
3747};
3748
3749/* l3_main_2 -> dss_dsi1 */
3750static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3751 .master = &omap44xx_l3_main_2_hwmod,
3752 .slave = &omap44xx_dss_dsi1_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003753 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003754 .addr = omap44xx_dss_dsi1_dma_addrs,
3755 .user = OCP_USER_SDMA,
3756};
3757
3758static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
3759 {
3760 .pa_start = 0x48044000,
3761 .pa_end = 0x480441ff,
3762 .flags = ADDR_TYPE_RT
3763 },
3764 { }
3765};
3766
3767/* l4_per -> dss_dsi1 */
3768static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3769 .master = &omap44xx_l4_per_hwmod,
3770 .slave = &omap44xx_dss_dsi1_hwmod,
3771 .clk = "l4_div_ck",
3772 .addr = omap44xx_dss_dsi1_addrs,
3773 .user = OCP_USER_MPU,
3774};
3775
3776static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
3777 {
3778 .pa_start = 0x58005000,
3779 .pa_end = 0x580051ff,
3780 .flags = ADDR_TYPE_RT
3781 },
3782 { }
3783};
3784
3785/* l3_main_2 -> dss_dsi2 */
3786static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3787 .master = &omap44xx_l3_main_2_hwmod,
3788 .slave = &omap44xx_dss_dsi2_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003789 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003790 .addr = omap44xx_dss_dsi2_dma_addrs,
3791 .user = OCP_USER_SDMA,
3792};
3793
3794static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
3795 {
3796 .pa_start = 0x48045000,
3797 .pa_end = 0x480451ff,
3798 .flags = ADDR_TYPE_RT
3799 },
3800 { }
3801};
3802
3803/* l4_per -> dss_dsi2 */
3804static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3805 .master = &omap44xx_l4_per_hwmod,
3806 .slave = &omap44xx_dss_dsi2_hwmod,
3807 .clk = "l4_div_ck",
3808 .addr = omap44xx_dss_dsi2_addrs,
3809 .user = OCP_USER_MPU,
3810};
3811
3812static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
3813 {
3814 .pa_start = 0x58006000,
3815 .pa_end = 0x58006fff,
3816 .flags = ADDR_TYPE_RT
3817 },
3818 { }
3819};
3820
3821/* l3_main_2 -> dss_hdmi */
3822static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3823 .master = &omap44xx_l3_main_2_hwmod,
3824 .slave = &omap44xx_dss_hdmi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003825 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003826 .addr = omap44xx_dss_hdmi_dma_addrs,
3827 .user = OCP_USER_SDMA,
3828};
3829
3830static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
3831 {
3832 .pa_start = 0x48046000,
3833 .pa_end = 0x48046fff,
3834 .flags = ADDR_TYPE_RT
3835 },
3836 { }
3837};
3838
3839/* l4_per -> dss_hdmi */
3840static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3841 .master = &omap44xx_l4_per_hwmod,
3842 .slave = &omap44xx_dss_hdmi_hwmod,
3843 .clk = "l4_div_ck",
3844 .addr = omap44xx_dss_hdmi_addrs,
3845 .user = OCP_USER_MPU,
3846};
3847
3848static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
3849 {
3850 .pa_start = 0x58002000,
3851 .pa_end = 0x580020ff,
3852 .flags = ADDR_TYPE_RT
3853 },
3854 { }
3855};
3856
3857/* l3_main_2 -> dss_rfbi */
3858static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3859 .master = &omap44xx_l3_main_2_hwmod,
3860 .slave = &omap44xx_dss_rfbi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003861 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003862 .addr = omap44xx_dss_rfbi_dma_addrs,
3863 .user = OCP_USER_SDMA,
3864};
3865
3866static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
3867 {
3868 .pa_start = 0x48042000,
3869 .pa_end = 0x480420ff,
3870 .flags = ADDR_TYPE_RT
3871 },
3872 { }
3873};
3874
3875/* l4_per -> dss_rfbi */
3876static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3877 .master = &omap44xx_l4_per_hwmod,
3878 .slave = &omap44xx_dss_rfbi_hwmod,
3879 .clk = "l4_div_ck",
3880 .addr = omap44xx_dss_rfbi_addrs,
3881 .user = OCP_USER_MPU,
3882};
3883
3884static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
3885 {
3886 .pa_start = 0x58003000,
3887 .pa_end = 0x580030ff,
3888 .flags = ADDR_TYPE_RT
3889 },
3890 { }
3891};
3892
3893/* l3_main_2 -> dss_venc */
3894static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3895 .master = &omap44xx_l3_main_2_hwmod,
3896 .slave = &omap44xx_dss_venc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003897 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003898 .addr = omap44xx_dss_venc_dma_addrs,
3899 .user = OCP_USER_SDMA,
3900};
3901
3902static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
3903 {
3904 .pa_start = 0x48043000,
3905 .pa_end = 0x480430ff,
3906 .flags = ADDR_TYPE_RT
3907 },
3908 { }
3909};
3910
3911/* l4_per -> dss_venc */
3912static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3913 .master = &omap44xx_l4_per_hwmod,
3914 .slave = &omap44xx_dss_venc_hwmod,
3915 .clk = "l4_div_ck",
3916 .addr = omap44xx_dss_venc_addrs,
3917 .user = OCP_USER_MPU,
3918};
3919
Paul Walmsley42b9e382012-04-19 13:33:54 -06003920static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
3921 {
3922 .pa_start = 0x48078000,
3923 .pa_end = 0x48078fff,
3924 .flags = ADDR_TYPE_RT
3925 },
3926 { }
3927};
3928
3929/* l4_per -> elm */
3930static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3931 .master = &omap44xx_l4_per_hwmod,
3932 .slave = &omap44xx_elm_hwmod,
3933 .clk = "l4_div_ck",
3934 .addr = omap44xx_elm_addrs,
3935 .user = OCP_USER_MPU | OCP_USER_SDMA,
3936};
3937
Ming Leib050f682012-04-19 13:33:50 -06003938static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
3939 {
3940 .pa_start = 0x4a10a000,
3941 .pa_end = 0x4a10a1ff,
3942 .flags = ADDR_TYPE_RT
3943 },
3944 { }
3945};
3946
3947/* l4_cfg -> fdif */
3948static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3949 .master = &omap44xx_l4_cfg_hwmod,
3950 .slave = &omap44xx_fdif_hwmod,
3951 .clk = "l4_div_ck",
3952 .addr = omap44xx_fdif_addrs,
3953 .user = OCP_USER_MPU | OCP_USER_SDMA,
3954};
3955
Paul Walmsley844a3b62012-04-19 04:04:33 -06003956/* l4_wkup -> gpio1 */
3957static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3958 .master = &omap44xx_l4_wkup_hwmod,
3959 .slave = &omap44xx_gpio1_hwmod,
3960 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003961 .user = OCP_USER_MPU | OCP_USER_SDMA,
3962};
3963
Paul Walmsley844a3b62012-04-19 04:04:33 -06003964/* l4_per -> gpio2 */
3965static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3966 .master = &omap44xx_l4_per_hwmod,
3967 .slave = &omap44xx_gpio2_hwmod,
3968 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003969 .user = OCP_USER_MPU | OCP_USER_SDMA,
3970};
3971
Paul Walmsley844a3b62012-04-19 04:04:33 -06003972/* l4_per -> gpio3 */
3973static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3974 .master = &omap44xx_l4_per_hwmod,
3975 .slave = &omap44xx_gpio3_hwmod,
3976 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003977 .user = OCP_USER_MPU | OCP_USER_SDMA,
3978};
3979
Paul Walmsley844a3b62012-04-19 04:04:33 -06003980/* l4_per -> gpio4 */
3981static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
3982 .master = &omap44xx_l4_per_hwmod,
3983 .slave = &omap44xx_gpio4_hwmod,
3984 .clk = "l4_div_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 -> gpio5 */
3989static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
3990 .master = &omap44xx_l4_per_hwmod,
3991 .slave = &omap44xx_gpio5_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 -> gpio6 */
3997static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
3998 .master = &omap44xx_l4_per_hwmod,
3999 .slave = &omap44xx_gpio6_hwmod,
4000 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004001 .user = OCP_USER_MPU | OCP_USER_SDMA,
4002};
4003
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004004/* l3_main_2 -> gpmc */
4005static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4006 .master = &omap44xx_l3_main_2_hwmod,
4007 .slave = &omap44xx_gpmc_hwmod,
4008 .clk = "l3_div_ck",
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004009 .user = OCP_USER_MPU | OCP_USER_SDMA,
4010};
4011
Paul Walmsley9def3902012-04-19 13:33:53 -06004012static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4013 {
4014 .pa_start = 0x56000000,
4015 .pa_end = 0x5600ffff,
4016 .flags = ADDR_TYPE_RT
4017 },
4018 { }
4019};
4020
4021/* l3_main_2 -> gpu */
4022static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4023 .master = &omap44xx_l3_main_2_hwmod,
4024 .slave = &omap44xx_gpu_hwmod,
4025 .clk = "l3_div_ck",
4026 .addr = omap44xx_gpu_addrs,
4027 .user = OCP_USER_MPU | OCP_USER_SDMA,
4028};
4029
Paul Walmsleya091c082012-04-19 13:33:50 -06004030static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4031 {
4032 .pa_start = 0x480b2000,
4033 .pa_end = 0x480b201f,
4034 .flags = ADDR_TYPE_RT
4035 },
4036 { }
4037};
4038
4039/* l4_per -> hdq1w */
4040static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
4041 .master = &omap44xx_l4_per_hwmod,
4042 .slave = &omap44xx_hdq1w_hwmod,
4043 .clk = "l4_div_ck",
4044 .addr = omap44xx_hdq1w_addrs,
4045 .user = OCP_USER_MPU | OCP_USER_SDMA,
4046};
4047
Paul Walmsley844a3b62012-04-19 04:04:33 -06004048static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
4049 {
4050 .pa_start = 0x4a058000,
4051 .pa_end = 0x4a05bfff,
4052 .flags = ADDR_TYPE_RT
4053 },
4054 { }
4055};
4056
4057/* l4_cfg -> hsi */
4058static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
4059 .master = &omap44xx_l4_cfg_hwmod,
4060 .slave = &omap44xx_hsi_hwmod,
4061 .clk = "l4_div_ck",
4062 .addr = omap44xx_hsi_addrs,
4063 .user = OCP_USER_MPU | OCP_USER_SDMA,
4064};
4065
Paul Walmsley844a3b62012-04-19 04:04:33 -06004066/* l4_per -> i2c1 */
4067static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
4068 .master = &omap44xx_l4_per_hwmod,
4069 .slave = &omap44xx_i2c1_hwmod,
4070 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004071 .user = OCP_USER_MPU | OCP_USER_SDMA,
4072};
4073
Paul Walmsley844a3b62012-04-19 04:04:33 -06004074/* l4_per -> i2c2 */
4075static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
4076 .master = &omap44xx_l4_per_hwmod,
4077 .slave = &omap44xx_i2c2_hwmod,
4078 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004079 .user = OCP_USER_MPU | OCP_USER_SDMA,
4080};
4081
Paul Walmsley844a3b62012-04-19 04:04:33 -06004082/* l4_per -> i2c3 */
4083static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
4084 .master = &omap44xx_l4_per_hwmod,
4085 .slave = &omap44xx_i2c3_hwmod,
4086 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004087 .user = OCP_USER_MPU | OCP_USER_SDMA,
4088};
4089
Paul Walmsley844a3b62012-04-19 04:04:33 -06004090/* l4_per -> i2c4 */
4091static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
4092 .master = &omap44xx_l4_per_hwmod,
4093 .slave = &omap44xx_i2c4_hwmod,
4094 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004095 .user = OCP_USER_MPU | OCP_USER_SDMA,
4096};
4097
4098/* l3_main_2 -> ipu */
4099static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
4100 .master = &omap44xx_l3_main_2_hwmod,
4101 .slave = &omap44xx_ipu_hwmod,
4102 .clk = "l3_div_ck",
4103 .user = OCP_USER_MPU | OCP_USER_SDMA,
4104};
4105
4106static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
4107 {
4108 .pa_start = 0x52000000,
4109 .pa_end = 0x520000ff,
4110 .flags = ADDR_TYPE_RT
4111 },
4112 { }
4113};
4114
4115/* l3_main_2 -> iss */
4116static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
4117 .master = &omap44xx_l3_main_2_hwmod,
4118 .slave = &omap44xx_iss_hwmod,
4119 .clk = "l3_div_ck",
4120 .addr = omap44xx_iss_addrs,
4121 .user = OCP_USER_MPU | OCP_USER_SDMA,
4122};
4123
Paul Walmsley42b9e382012-04-19 13:33:54 -06004124/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004125static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004126 .master = &omap44xx_iva_hwmod,
4127 .slave = &omap44xx_sl2if_hwmod,
4128 .clk = "dpll_iva_m5x2_ck",
4129 .user = OCP_USER_IVA,
4130};
4131
Paul Walmsley844a3b62012-04-19 04:04:33 -06004132/* l3_main_2 -> iva */
4133static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
4134 .master = &omap44xx_l3_main_2_hwmod,
4135 .slave = &omap44xx_iva_hwmod,
4136 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004137 .user = OCP_USER_MPU,
4138};
4139
Paul Walmsley844a3b62012-04-19 04:04:33 -06004140/* l4_wkup -> kbd */
4141static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
4142 .master = &omap44xx_l4_wkup_hwmod,
4143 .slave = &omap44xx_kbd_hwmod,
4144 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004145 .user = OCP_USER_MPU | OCP_USER_SDMA,
4146};
4147
Paul Walmsley844a3b62012-04-19 04:04:33 -06004148/* l4_cfg -> mailbox */
4149static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
4150 .master = &omap44xx_l4_cfg_hwmod,
4151 .slave = &omap44xx_mailbox_hwmod,
4152 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004153 .user = OCP_USER_MPU | OCP_USER_SDMA,
4154};
4155
Benoît Cousson896d4e92012-04-19 13:33:54 -06004156static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
4157 {
4158 .pa_start = 0x40128000,
4159 .pa_end = 0x401283ff,
4160 .flags = ADDR_TYPE_RT
4161 },
4162 { }
4163};
4164
4165/* l4_abe -> mcasp */
4166static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
4167 .master = &omap44xx_l4_abe_hwmod,
4168 .slave = &omap44xx_mcasp_hwmod,
4169 .clk = "ocp_abe_iclk",
4170 .addr = omap44xx_mcasp_addrs,
4171 .user = OCP_USER_MPU,
4172};
4173
4174static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
4175 {
4176 .pa_start = 0x49028000,
4177 .pa_end = 0x490283ff,
4178 .flags = ADDR_TYPE_RT
4179 },
4180 { }
4181};
4182
4183/* l4_abe -> mcasp (dma) */
4184static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
4185 .master = &omap44xx_l4_abe_hwmod,
4186 .slave = &omap44xx_mcasp_hwmod,
4187 .clk = "ocp_abe_iclk",
4188 .addr = omap44xx_mcasp_dma_addrs,
4189 .user = OCP_USER_SDMA,
4190};
4191
Paul Walmsley844a3b62012-04-19 04:04:33 -06004192/* l4_abe -> mcbsp1 */
4193static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
4194 .master = &omap44xx_l4_abe_hwmod,
4195 .slave = &omap44xx_mcbsp1_hwmod,
4196 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004197 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004198};
4199
Paul Walmsley844a3b62012-04-19 04:04:33 -06004200/* l4_abe -> mcbsp2 */
4201static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
4202 .master = &omap44xx_l4_abe_hwmod,
4203 .slave = &omap44xx_mcbsp2_hwmod,
4204 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004205 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004206};
4207
Paul Walmsley844a3b62012-04-19 04:04:33 -06004208/* l4_abe -> mcbsp3 */
4209static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
4210 .master = &omap44xx_l4_abe_hwmod,
4211 .slave = &omap44xx_mcbsp3_hwmod,
4212 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004213 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004214};
4215
Paul Walmsley844a3b62012-04-19 04:04:33 -06004216/* l4_per -> mcbsp4 */
4217static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
4218 .master = &omap44xx_l4_per_hwmod,
4219 .slave = &omap44xx_mcbsp4_hwmod,
4220 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004221 .user = OCP_USER_MPU | OCP_USER_SDMA,
4222};
4223
Paul Walmsley844a3b62012-04-19 04:04:33 -06004224/* l4_abe -> mcpdm */
4225static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
4226 .master = &omap44xx_l4_abe_hwmod,
4227 .slave = &omap44xx_mcpdm_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_per -> mcspi1 */
4233static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
4234 .master = &omap44xx_l4_per_hwmod,
4235 .slave = &omap44xx_mcspi1_hwmod,
4236 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004237 .user = OCP_USER_MPU | OCP_USER_SDMA,
4238};
4239
Paul Walmsley844a3b62012-04-19 04:04:33 -06004240/* l4_per -> mcspi2 */
4241static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
4242 .master = &omap44xx_l4_per_hwmod,
4243 .slave = &omap44xx_mcspi2_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_per -> mcspi3 */
4249static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
4250 .master = &omap44xx_l4_per_hwmod,
4251 .slave = &omap44xx_mcspi3_hwmod,
4252 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004253 .user = OCP_USER_MPU | OCP_USER_SDMA,
4254};
4255
Paul Walmsley844a3b62012-04-19 04:04:33 -06004256/* l4_per -> mcspi4 */
4257static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
4258 .master = &omap44xx_l4_per_hwmod,
4259 .slave = &omap44xx_mcspi4_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 -> mmc1 */
4265static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
4266 .master = &omap44xx_l4_per_hwmod,
4267 .slave = &omap44xx_mmc1_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 -> mmc2 */
4273static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
4274 .master = &omap44xx_l4_per_hwmod,
4275 .slave = &omap44xx_mmc2_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 -> mmc3 */
4281static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
4282 .master = &omap44xx_l4_per_hwmod,
4283 .slave = &omap44xx_mmc3_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 -> mmc4 */
4289static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
4290 .master = &omap44xx_l4_per_hwmod,
4291 .slave = &omap44xx_mmc4_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 -> mmc5 */
4297static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
4298 .master = &omap44xx_l4_per_hwmod,
4299 .slave = &omap44xx_mmc5_hwmod,
4300 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004301 .user = OCP_USER_MPU | OCP_USER_SDMA,
4302};
4303
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004304/* l3_main_2 -> ocmc_ram */
4305static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
4306 .master = &omap44xx_l3_main_2_hwmod,
4307 .slave = &omap44xx_ocmc_ram_hwmod,
4308 .clk = "l3_div_ck",
4309 .user = OCP_USER_MPU | OCP_USER_SDMA,
4310};
4311
Benoît Cousson0c668872012-04-19 13:33:55 -06004312/* l4_cfg -> ocp2scp_usb_phy */
4313static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
4314 .master = &omap44xx_l4_cfg_hwmod,
4315 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
4316 .clk = "l4_div_ck",
4317 .user = OCP_USER_MPU | OCP_USER_SDMA,
4318};
4319
Paul Walmsley794b4802012-04-19 13:33:58 -06004320/* mpu_private -> prcm_mpu */
4321static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
4322 .master = &omap44xx_mpu_private_hwmod,
4323 .slave = &omap44xx_prcm_mpu_hwmod,
4324 .clk = "l3_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004325 .user = OCP_USER_MPU | OCP_USER_SDMA,
4326};
4327
Paul Walmsley794b4802012-04-19 13:33:58 -06004328/* l4_wkup -> cm_core_aon */
4329static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
4330 .master = &omap44xx_l4_wkup_hwmod,
4331 .slave = &omap44xx_cm_core_aon_hwmod,
4332 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004333 .user = OCP_USER_MPU | OCP_USER_SDMA,
4334};
4335
Paul Walmsley794b4802012-04-19 13:33:58 -06004336/* l4_cfg -> cm_core */
4337static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
4338 .master = &omap44xx_l4_cfg_hwmod,
4339 .slave = &omap44xx_cm_core_hwmod,
4340 .clk = "l4_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004341 .user = OCP_USER_MPU | OCP_USER_SDMA,
4342};
4343
Paul Walmsley794b4802012-04-19 13:33:58 -06004344/* l4_wkup -> prm */
4345static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
4346 .master = &omap44xx_l4_wkup_hwmod,
4347 .slave = &omap44xx_prm_hwmod,
4348 .clk = "l4_wkup_clk_mux_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 -> scrm */
4353static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
4354 .master = &omap44xx_l4_wkup_hwmod,
4355 .slave = &omap44xx_scrm_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 Walmsley42b9e382012-04-19 13:33:54 -06004360/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004361static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004362 .master = &omap44xx_l3_main_2_hwmod,
4363 .slave = &omap44xx_sl2if_hwmod,
4364 .clk = "l3_div_ck",
4365 .user = OCP_USER_MPU | OCP_USER_SDMA,
4366};
4367
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004368static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
4369 {
4370 .pa_start = 0x4012c000,
4371 .pa_end = 0x4012c3ff,
4372 .flags = ADDR_TYPE_RT
4373 },
4374 { }
4375};
4376
4377/* l4_abe -> slimbus1 */
4378static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
4379 .master = &omap44xx_l4_abe_hwmod,
4380 .slave = &omap44xx_slimbus1_hwmod,
4381 .clk = "ocp_abe_iclk",
4382 .addr = omap44xx_slimbus1_addrs,
4383 .user = OCP_USER_MPU,
4384};
4385
4386static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
4387 {
4388 .pa_start = 0x4902c000,
4389 .pa_end = 0x4902c3ff,
4390 .flags = ADDR_TYPE_RT
4391 },
4392 { }
4393};
4394
4395/* l4_abe -> slimbus1 (dma) */
4396static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
4397 .master = &omap44xx_l4_abe_hwmod,
4398 .slave = &omap44xx_slimbus1_hwmod,
4399 .clk = "ocp_abe_iclk",
4400 .addr = omap44xx_slimbus1_dma_addrs,
4401 .user = OCP_USER_SDMA,
4402};
4403
4404static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
4405 {
4406 .pa_start = 0x48076000,
4407 .pa_end = 0x480763ff,
4408 .flags = ADDR_TYPE_RT
4409 },
4410 { }
4411};
4412
4413/* l4_per -> slimbus2 */
4414static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
4415 .master = &omap44xx_l4_per_hwmod,
4416 .slave = &omap44xx_slimbus2_hwmod,
4417 .clk = "l4_div_ck",
4418 .addr = omap44xx_slimbus2_addrs,
4419 .user = OCP_USER_MPU | OCP_USER_SDMA,
4420};
4421
Paul Walmsley844a3b62012-04-19 04:04:33 -06004422static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
4423 {
4424 .pa_start = 0x4a0dd000,
4425 .pa_end = 0x4a0dd03f,
4426 .flags = ADDR_TYPE_RT
4427 },
4428 { }
4429};
4430
4431/* l4_cfg -> smartreflex_core */
4432static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
4433 .master = &omap44xx_l4_cfg_hwmod,
4434 .slave = &omap44xx_smartreflex_core_hwmod,
4435 .clk = "l4_div_ck",
4436 .addr = omap44xx_smartreflex_core_addrs,
4437 .user = OCP_USER_MPU | OCP_USER_SDMA,
4438};
4439
4440static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
4441 {
4442 .pa_start = 0x4a0db000,
4443 .pa_end = 0x4a0db03f,
4444 .flags = ADDR_TYPE_RT
4445 },
4446 { }
4447};
4448
4449/* l4_cfg -> smartreflex_iva */
4450static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4451 .master = &omap44xx_l4_cfg_hwmod,
4452 .slave = &omap44xx_smartreflex_iva_hwmod,
4453 .clk = "l4_div_ck",
4454 .addr = omap44xx_smartreflex_iva_addrs,
4455 .user = OCP_USER_MPU | OCP_USER_SDMA,
4456};
4457
4458static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4459 {
4460 .pa_start = 0x4a0d9000,
4461 .pa_end = 0x4a0d903f,
4462 .flags = ADDR_TYPE_RT
4463 },
4464 { }
4465};
4466
4467/* l4_cfg -> smartreflex_mpu */
4468static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4469 .master = &omap44xx_l4_cfg_hwmod,
4470 .slave = &omap44xx_smartreflex_mpu_hwmod,
4471 .clk = "l4_div_ck",
4472 .addr = omap44xx_smartreflex_mpu_addrs,
4473 .user = OCP_USER_MPU | OCP_USER_SDMA,
4474};
4475
4476static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
4477 {
4478 .pa_start = 0x4a0f6000,
4479 .pa_end = 0x4a0f6fff,
4480 .flags = ADDR_TYPE_RT
4481 },
4482 { }
4483};
4484
4485/* l4_cfg -> spinlock */
4486static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4487 .master = &omap44xx_l4_cfg_hwmod,
4488 .slave = &omap44xx_spinlock_hwmod,
4489 .clk = "l4_div_ck",
4490 .addr = omap44xx_spinlock_addrs,
4491 .user = OCP_USER_MPU | OCP_USER_SDMA,
4492};
4493
Paul Walmsley844a3b62012-04-19 04:04:33 -06004494/* l4_wkup -> timer1 */
4495static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4496 .master = &omap44xx_l4_wkup_hwmod,
4497 .slave = &omap44xx_timer1_hwmod,
4498 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004499 .user = OCP_USER_MPU | OCP_USER_SDMA,
4500};
4501
Paul Walmsley844a3b62012-04-19 04:04:33 -06004502/* l4_per -> timer2 */
4503static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4504 .master = &omap44xx_l4_per_hwmod,
4505 .slave = &omap44xx_timer2_hwmod,
4506 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004507 .user = OCP_USER_MPU | OCP_USER_SDMA,
4508};
4509
Paul Walmsley844a3b62012-04-19 04:04:33 -06004510/* l4_per -> timer3 */
4511static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4512 .master = &omap44xx_l4_per_hwmod,
4513 .slave = &omap44xx_timer3_hwmod,
4514 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004515 .user = OCP_USER_MPU | OCP_USER_SDMA,
4516};
4517
Paul Walmsley844a3b62012-04-19 04:04:33 -06004518/* l4_per -> timer4 */
4519static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4520 .master = &omap44xx_l4_per_hwmod,
4521 .slave = &omap44xx_timer4_hwmod,
4522 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004523 .user = OCP_USER_MPU | OCP_USER_SDMA,
4524};
4525
Paul Walmsley844a3b62012-04-19 04:04:33 -06004526/* l4_abe -> timer5 */
4527static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4528 .master = &omap44xx_l4_abe_hwmod,
4529 .slave = &omap44xx_timer5_hwmod,
4530 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004531 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004532};
4533
Paul Walmsley844a3b62012-04-19 04:04:33 -06004534/* l4_abe -> timer6 */
4535static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4536 .master = &omap44xx_l4_abe_hwmod,
4537 .slave = &omap44xx_timer6_hwmod,
4538 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004539 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004540};
4541
Paul Walmsley844a3b62012-04-19 04:04:33 -06004542/* l4_abe -> timer7 */
4543static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4544 .master = &omap44xx_l4_abe_hwmod,
4545 .slave = &omap44xx_timer7_hwmod,
4546 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004547 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004548};
4549
Paul Walmsley844a3b62012-04-19 04:04:33 -06004550/* l4_abe -> timer8 */
4551static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4552 .master = &omap44xx_l4_abe_hwmod,
4553 .slave = &omap44xx_timer8_hwmod,
4554 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004555 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004556};
4557
Paul Walmsley844a3b62012-04-19 04:04:33 -06004558/* l4_per -> timer9 */
4559static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4560 .master = &omap44xx_l4_per_hwmod,
4561 .slave = &omap44xx_timer9_hwmod,
4562 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004563 .user = OCP_USER_MPU | OCP_USER_SDMA,
4564};
4565
Paul Walmsley844a3b62012-04-19 04:04:33 -06004566/* l4_per -> timer10 */
4567static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4568 .master = &omap44xx_l4_per_hwmod,
4569 .slave = &omap44xx_timer10_hwmod,
4570 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004571 .user = OCP_USER_MPU | OCP_USER_SDMA,
4572};
4573
Paul Walmsley844a3b62012-04-19 04:04:33 -06004574/* l4_per -> timer11 */
4575static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4576 .master = &omap44xx_l4_per_hwmod,
4577 .slave = &omap44xx_timer11_hwmod,
4578 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004579 .user = OCP_USER_MPU | OCP_USER_SDMA,
4580};
4581
Paul Walmsley844a3b62012-04-19 04:04:33 -06004582/* l4_per -> uart1 */
4583static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4584 .master = &omap44xx_l4_per_hwmod,
4585 .slave = &omap44xx_uart1_hwmod,
4586 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004587 .user = OCP_USER_MPU | OCP_USER_SDMA,
4588};
4589
Paul Walmsley844a3b62012-04-19 04:04:33 -06004590/* l4_per -> uart2 */
4591static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4592 .master = &omap44xx_l4_per_hwmod,
4593 .slave = &omap44xx_uart2_hwmod,
4594 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004595 .user = OCP_USER_MPU | OCP_USER_SDMA,
4596};
4597
Paul Walmsley844a3b62012-04-19 04:04:33 -06004598/* l4_per -> uart3 */
4599static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4600 .master = &omap44xx_l4_per_hwmod,
4601 .slave = &omap44xx_uart3_hwmod,
4602 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004603 .user = OCP_USER_MPU | OCP_USER_SDMA,
4604};
4605
Paul Walmsley844a3b62012-04-19 04:04:33 -06004606/* l4_per -> uart4 */
4607static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4608 .master = &omap44xx_l4_per_hwmod,
4609 .slave = &omap44xx_uart4_hwmod,
4610 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004611 .user = OCP_USER_MPU | OCP_USER_SDMA,
4612};
4613
Benoît Cousson0c668872012-04-19 13:33:55 -06004614/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004615static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06004616 .master = &omap44xx_l4_cfg_hwmod,
4617 .slave = &omap44xx_usb_host_fs_hwmod,
4618 .clk = "l4_div_ck",
Benoît Cousson0c668872012-04-19 13:33:55 -06004619 .user = OCP_USER_MPU | OCP_USER_SDMA,
4620};
4621
Paul Walmsley844a3b62012-04-19 04:04:33 -06004622/* l4_cfg -> usb_host_hs */
4623static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4624 .master = &omap44xx_l4_cfg_hwmod,
4625 .slave = &omap44xx_usb_host_hs_hwmod,
4626 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004627 .user = OCP_USER_MPU | OCP_USER_SDMA,
4628};
4629
Paul Walmsley844a3b62012-04-19 04:04:33 -06004630/* l4_cfg -> usb_otg_hs */
4631static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4632 .master = &omap44xx_l4_cfg_hwmod,
4633 .slave = &omap44xx_usb_otg_hs_hwmod,
4634 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004635 .user = OCP_USER_MPU | OCP_USER_SDMA,
4636};
4637
Paul Walmsley844a3b62012-04-19 04:04:33 -06004638/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004639static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4640 .master = &omap44xx_l4_cfg_hwmod,
4641 .slave = &omap44xx_usb_tll_hs_hwmod,
4642 .clk = "l4_div_ck",
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004643 .user = OCP_USER_MPU | OCP_USER_SDMA,
4644};
4645
Paul Walmsley844a3b62012-04-19 04:04:33 -06004646/* l4_wkup -> wd_timer2 */
4647static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4648 .master = &omap44xx_l4_wkup_hwmod,
4649 .slave = &omap44xx_wd_timer2_hwmod,
4650 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004651 .user = OCP_USER_MPU | OCP_USER_SDMA,
4652};
4653
4654static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4655 {
4656 .pa_start = 0x40130000,
4657 .pa_end = 0x4013007f,
4658 .flags = ADDR_TYPE_RT
4659 },
4660 { }
4661};
4662
4663/* l4_abe -> wd_timer3 */
4664static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4665 .master = &omap44xx_l4_abe_hwmod,
4666 .slave = &omap44xx_wd_timer3_hwmod,
4667 .clk = "ocp_abe_iclk",
4668 .addr = omap44xx_wd_timer3_addrs,
4669 .user = OCP_USER_MPU,
4670};
4671
4672static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4673 {
4674 .pa_start = 0x49030000,
4675 .pa_end = 0x4903007f,
4676 .flags = ADDR_TYPE_RT
4677 },
4678 { }
4679};
4680
4681/* l4_abe -> wd_timer3 (dma) */
4682static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4683 .master = &omap44xx_l4_abe_hwmod,
4684 .slave = &omap44xx_wd_timer3_hwmod,
4685 .clk = "ocp_abe_iclk",
4686 .addr = omap44xx_wd_timer3_dma_addrs,
4687 .user = OCP_USER_SDMA,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004688};
4689
Sricharan R3b9b1012013-06-07 17:26:15 +05304690/* mpu -> emif1 */
4691static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4692 .master = &omap44xx_mpu_hwmod,
4693 .slave = &omap44xx_emif1_hwmod,
4694 .clk = "l3_div_ck",
4695 .user = OCP_USER_MPU | OCP_USER_SDMA,
4696};
4697
4698/* mpu -> emif2 */
4699static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4700 .master = &omap44xx_mpu_hwmod,
4701 .slave = &omap44xx_emif2_hwmod,
4702 .clk = "l3_div_ck",
4703 .user = OCP_USER_MPU | OCP_USER_SDMA,
4704};
4705
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004706static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4707 &omap44xx_l3_main_1__dmm,
4708 &omap44xx_mpu__dmm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004709 &omap44xx_iva__l3_instr,
4710 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004711 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004712 &omap44xx_dsp__l3_main_1,
4713 &omap44xx_dss__l3_main_1,
4714 &omap44xx_l3_main_2__l3_main_1,
4715 &omap44xx_l4_cfg__l3_main_1,
4716 &omap44xx_mmc1__l3_main_1,
4717 &omap44xx_mmc2__l3_main_1,
4718 &omap44xx_mpu__l3_main_1,
Benoît Cousson96566042012-04-19 13:33:59 -06004719 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004720 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06004721 &omap44xx_fdif__l3_main_2,
Paul Walmsley9def3902012-04-19 13:33:53 -06004722 &omap44xx_gpu__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004723 &omap44xx_hsi__l3_main_2,
4724 &omap44xx_ipu__l3_main_2,
4725 &omap44xx_iss__l3_main_2,
4726 &omap44xx_iva__l3_main_2,
4727 &omap44xx_l3_main_1__l3_main_2,
4728 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004729 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004730 &omap44xx_usb_host_hs__l3_main_2,
4731 &omap44xx_usb_otg_hs__l3_main_2,
4732 &omap44xx_l3_main_1__l3_main_3,
4733 &omap44xx_l3_main_2__l3_main_3,
4734 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004735 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004736 &omap44xx_dsp__l4_abe,
4737 &omap44xx_l3_main_1__l4_abe,
4738 &omap44xx_mpu__l4_abe,
4739 &omap44xx_l3_main_1__l4_cfg,
4740 &omap44xx_l3_main_2__l4_per,
4741 &omap44xx_l4_cfg__l4_wkup,
4742 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004743 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004744 &omap44xx_l4_abe__aess,
4745 &omap44xx_l4_abe__aess_dma,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004746 &omap44xx_l3_main_2__c2c,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004747 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06004748 &omap44xx_l4_cfg__ctrl_module_core,
4749 &omap44xx_l4_cfg__ctrl_module_pad_core,
4750 &omap44xx_l4_wkup__ctrl_module_wkup,
4751 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06004752 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004753 &omap44xx_l4_cfg__dma_system,
4754 &omap44xx_l4_abe__dmic,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004755 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06004756 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004757 &omap44xx_l4_cfg__dsp,
4758 &omap44xx_l3_main_2__dss,
4759 &omap44xx_l4_per__dss,
4760 &omap44xx_l3_main_2__dss_dispc,
4761 &omap44xx_l4_per__dss_dispc,
4762 &omap44xx_l3_main_2__dss_dsi1,
4763 &omap44xx_l4_per__dss_dsi1,
4764 &omap44xx_l3_main_2__dss_dsi2,
4765 &omap44xx_l4_per__dss_dsi2,
4766 &omap44xx_l3_main_2__dss_hdmi,
4767 &omap44xx_l4_per__dss_hdmi,
4768 &omap44xx_l3_main_2__dss_rfbi,
4769 &omap44xx_l4_per__dss_rfbi,
4770 &omap44xx_l3_main_2__dss_venc,
4771 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004772 &omap44xx_l4_per__elm,
Ming Leib050f682012-04-19 13:33:50 -06004773 &omap44xx_l4_cfg__fdif,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004774 &omap44xx_l4_wkup__gpio1,
4775 &omap44xx_l4_per__gpio2,
4776 &omap44xx_l4_per__gpio3,
4777 &omap44xx_l4_per__gpio4,
4778 &omap44xx_l4_per__gpio5,
4779 &omap44xx_l4_per__gpio6,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004780 &omap44xx_l3_main_2__gpmc,
Paul Walmsley9def3902012-04-19 13:33:53 -06004781 &omap44xx_l3_main_2__gpu,
Paul Walmsleya091c082012-04-19 13:33:50 -06004782 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004783 &omap44xx_l4_cfg__hsi,
4784 &omap44xx_l4_per__i2c1,
4785 &omap44xx_l4_per__i2c2,
4786 &omap44xx_l4_per__i2c3,
4787 &omap44xx_l4_per__i2c4,
4788 &omap44xx_l3_main_2__ipu,
4789 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06004790 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004791 &omap44xx_l3_main_2__iva,
4792 &omap44xx_l4_wkup__kbd,
4793 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06004794 &omap44xx_l4_abe__mcasp,
4795 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004796 &omap44xx_l4_abe__mcbsp1,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004797 &omap44xx_l4_abe__mcbsp2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004798 &omap44xx_l4_abe__mcbsp3,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004799 &omap44xx_l4_per__mcbsp4,
4800 &omap44xx_l4_abe__mcpdm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004801 &omap44xx_l4_per__mcspi1,
4802 &omap44xx_l4_per__mcspi2,
4803 &omap44xx_l4_per__mcspi3,
4804 &omap44xx_l4_per__mcspi4,
4805 &omap44xx_l4_per__mmc1,
4806 &omap44xx_l4_per__mmc2,
4807 &omap44xx_l4_per__mmc3,
4808 &omap44xx_l4_per__mmc4,
4809 &omap44xx_l4_per__mmc5,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06004810 &omap44xx_l3_main_2__mmu_ipu,
4811 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004812 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06004813 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06004814 &omap44xx_mpu_private__prcm_mpu,
4815 &omap44xx_l4_wkup__cm_core_aon,
4816 &omap44xx_l4_cfg__cm_core,
4817 &omap44xx_l4_wkup__prm,
4818 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06004819 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004820 &omap44xx_l4_abe__slimbus1,
4821 &omap44xx_l4_abe__slimbus1_dma,
4822 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004823 &omap44xx_l4_cfg__smartreflex_core,
4824 &omap44xx_l4_cfg__smartreflex_iva,
4825 &omap44xx_l4_cfg__smartreflex_mpu,
4826 &omap44xx_l4_cfg__spinlock,
4827 &omap44xx_l4_wkup__timer1,
4828 &omap44xx_l4_per__timer2,
4829 &omap44xx_l4_per__timer3,
4830 &omap44xx_l4_per__timer4,
4831 &omap44xx_l4_abe__timer5,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004832 &omap44xx_l4_abe__timer6,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004833 &omap44xx_l4_abe__timer7,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004834 &omap44xx_l4_abe__timer8,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004835 &omap44xx_l4_per__timer9,
4836 &omap44xx_l4_per__timer10,
4837 &omap44xx_l4_per__timer11,
4838 &omap44xx_l4_per__uart1,
4839 &omap44xx_l4_per__uart2,
4840 &omap44xx_l4_per__uart3,
4841 &omap44xx_l4_per__uart4,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004842 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004843 &omap44xx_l4_cfg__usb_host_hs,
4844 &omap44xx_l4_cfg__usb_otg_hs,
4845 &omap44xx_l4_cfg__usb_tll_hs,
4846 &omap44xx_l4_wkup__wd_timer2,
4847 &omap44xx_l4_abe__wd_timer3,
4848 &omap44xx_l4_abe__wd_timer3_dma,
Sricharan R3b9b1012013-06-07 17:26:15 +05304849 &omap44xx_mpu__emif1,
4850 &omap44xx_mpu__emif2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004851 NULL,
4852};
4853
4854int __init omap44xx_hwmod_init(void)
4855{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06004856 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004857 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004858}
4859