blob: d04b5e60fdbec74c6accf27c349a79f07a8c01fb [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>
Jean Pihetb86aeaf2012-04-25 16:06:20 +053025#include <linux/power/smartreflex.h>
Tony Lindgren3a8761c2012-10-08 09:11:22 -070026#include <linux/i2c-omap.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020027
Tony Lindgren45c3eb72012-11-30 08:41:50 -080028#include <linux/omap-dma.h>
Tony Lindgren2a296c82012-10-02 17:41:35 -070029
Arnd Bergmann22037472012-08-24 15:21:06 +020030#include <linux/platform_data/spi-omap2-mcspi.h>
31#include <linux/platform_data/asoc-ti-mcbsp.h>
Tony Lindgren2ab7c842012-11-02 12:24:14 -070032#include <linux/platform_data/iommu-omap.h>
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +053033#include <plat/dmtimer.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020034
Tony Lindgren2a296c82012-10-02 17:41:35 -070035#include "omap_hwmod.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020036#include "omap_hwmod_common_data.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070037#include "cm1_44xx.h"
38#include "cm2_44xx.h"
39#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020040#include "prm-regbits-44xx.h"
Tony Lindgren3a8761c2012-10-08 09:11:22 -070041#include "i2c.h"
Tony Lindgren68f39e72012-10-15 12:09:43 -070042#include "mmc.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,
Benoit Coussond63bd742011-01-27 11:17:03 +0000592 },
593 },
594 .opt_clks = dss_opt_clks,
595 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000596};
597
598/*
599 * 'dispc' class
600 * display controller
601 */
602
603static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
604 .rev_offs = 0x0000,
605 .sysc_offs = 0x0010,
606 .syss_offs = 0x0014,
607 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
608 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
609 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
610 SYSS_HAS_RESET_STATUS),
611 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
612 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
613 .sysc_fields = &omap_hwmod_sysc_type1,
614};
615
616static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
617 .name = "dispc",
618 .sysc = &omap44xx_dispc_sysc,
619};
620
621/* dss_dispc */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300622static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
623 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
624 { .irq = -1 }
625};
626
627static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
628 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
629 { .dma_req = -1 }
630};
631
Archit Tanejab923d402011-10-06 18:04:08 -0600632static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
633 .manager_count = 3,
634 .has_framedonetv_irq = 1
635};
636
Benoit Coussond63bd742011-01-27 11:17:03 +0000637static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
638 .name = "dss_dispc",
639 .class = &omap44xx_dispc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600640 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300641 .mpu_irqs = omap44xx_dss_dispc_irqs,
642 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600643 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000644 .prcm = {
645 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600646 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600647 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000648 },
649 },
Archit Tanejab923d402011-10-06 18:04:08 -0600650 .dev_attr = &omap44xx_dss_dispc_dev_attr
Benoit Coussond63bd742011-01-27 11:17:03 +0000651};
652
653/*
654 * 'dsi' class
655 * display serial interface controller
656 */
657
658static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
659 .rev_offs = 0x0000,
660 .sysc_offs = 0x0010,
661 .syss_offs = 0x0014,
662 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
663 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
664 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
665 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
666 .sysc_fields = &omap_hwmod_sysc_type1,
667};
668
669static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
670 .name = "dsi",
671 .sysc = &omap44xx_dsi_sysc,
672};
673
674/* dss_dsi1 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300675static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
676 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
677 { .irq = -1 }
678};
679
680static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
681 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
682 { .dma_req = -1 }
683};
684
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600685static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
686 { .role = "sys_clk", .clk = "dss_sys_clk" },
687};
688
Benoit Coussond63bd742011-01-27 11:17:03 +0000689static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
690 .name = "dss_dsi1",
691 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600692 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300693 .mpu_irqs = omap44xx_dss_dsi1_irqs,
694 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600695 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000696 .prcm = {
697 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600698 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600699 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000700 },
701 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600702 .opt_clks = dss_dsi1_opt_clks,
703 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000704};
705
706/* dss_dsi2 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300707static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
708 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
709 { .irq = -1 }
710};
711
712static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
713 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
714 { .dma_req = -1 }
715};
716
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600717static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
718 { .role = "sys_clk", .clk = "dss_sys_clk" },
719};
720
Benoit Coussond63bd742011-01-27 11:17:03 +0000721static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
722 .name = "dss_dsi2",
723 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600724 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300725 .mpu_irqs = omap44xx_dss_dsi2_irqs,
726 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600727 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000728 .prcm = {
729 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600730 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600731 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000732 },
733 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600734 .opt_clks = dss_dsi2_opt_clks,
735 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000736};
737
738/*
739 * 'hdmi' class
740 * hdmi controller
741 */
742
743static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
744 .rev_offs = 0x0000,
745 .sysc_offs = 0x0010,
746 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
747 SYSC_HAS_SOFTRESET),
748 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
749 SIDLE_SMART_WKUP),
750 .sysc_fields = &omap_hwmod_sysc_type2,
751};
752
753static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
754 .name = "hdmi",
755 .sysc = &omap44xx_hdmi_sysc,
756};
757
758/* dss_hdmi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300759static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
760 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
761 { .irq = -1 }
762};
763
764static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
765 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
766 { .dma_req = -1 }
767};
768
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600769static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
770 { .role = "sys_clk", .clk = "dss_sys_clk" },
771};
772
Benoit Coussond63bd742011-01-27 11:17:03 +0000773static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
774 .name = "dss_hdmi",
775 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600776 .clkdm_name = "l3_dss_clkdm",
Ricardo Neridc57aef2012-06-21 10:08:53 +0200777 /*
778 * HDMI audio requires to use no-idle mode. Hence,
779 * set idle mode by software.
780 */
781 .flags = HWMOD_SWSUP_SIDLE,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300782 .mpu_irqs = omap44xx_dss_hdmi_irqs,
783 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700784 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000785 .prcm = {
786 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600787 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600788 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000789 },
790 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600791 .opt_clks = dss_hdmi_opt_clks,
792 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000793};
794
795/*
796 * 'rfbi' class
797 * remote frame buffer interface
798 */
799
800static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
801 .rev_offs = 0x0000,
802 .sysc_offs = 0x0010,
803 .syss_offs = 0x0014,
804 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
805 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
806 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
807 .sysc_fields = &omap_hwmod_sysc_type1,
808};
809
810static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
811 .name = "rfbi",
812 .sysc = &omap44xx_rfbi_sysc,
813};
814
815/* dss_rfbi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300816static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
817 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
818 { .dma_req = -1 }
819};
820
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600821static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
822 { .role = "ick", .clk = "dss_fck" },
823};
824
Benoit Coussond63bd742011-01-27 11:17:03 +0000825static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
826 .name = "dss_rfbi",
827 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600828 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300829 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600830 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000831 .prcm = {
832 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600833 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600834 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000835 },
836 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600837 .opt_clks = dss_rfbi_opt_clks,
838 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000839};
840
841/*
842 * 'venc' class
843 * video encoder
844 */
845
846static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
847 .name = "venc",
848};
849
850/* dss_venc */
Benoit Coussond63bd742011-01-27 11:17:03 +0000851static struct omap_hwmod omap44xx_dss_venc_hwmod = {
852 .name = "dss_venc",
853 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600854 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700855 .main_clk = "dss_tv_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000856 .prcm = {
857 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600858 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600859 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000860 },
861 },
Benoit Coussond63bd742011-01-27 11:17:03 +0000862};
863
864/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600865 * 'elm' class
866 * bch error location module
867 */
868
869static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
870 .rev_offs = 0x0000,
871 .sysc_offs = 0x0010,
872 .syss_offs = 0x0014,
873 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
874 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
875 SYSS_HAS_RESET_STATUS),
876 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
877 .sysc_fields = &omap_hwmod_sysc_type1,
878};
879
880static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
881 .name = "elm",
882 .sysc = &omap44xx_elm_sysc,
883};
884
885/* elm */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600886static struct omap_hwmod omap44xx_elm_hwmod = {
887 .name = "elm",
888 .class = &omap44xx_elm_hwmod_class,
889 .clkdm_name = "l4_per_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600890 .prcm = {
891 .omap4 = {
892 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
893 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
894 },
895 },
896};
897
898/*
Paul Walmsleybf30f952012-04-19 13:33:52 -0600899 * 'emif' class
900 * external memory interface no1
901 */
902
903static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
904 .rev_offs = 0x0000,
905};
906
907static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
908 .name = "emif",
909 .sysc = &omap44xx_emif_sysc,
910};
911
912/* emif1 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600913static struct omap_hwmod omap44xx_emif1_hwmod = {
914 .name = "emif1",
915 .class = &omap44xx_emif_hwmod_class,
916 .clkdm_name = "l3_emif_clkdm",
917 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600918 .main_clk = "ddrphy_ck",
919 .prcm = {
920 .omap4 = {
921 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
922 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
923 .modulemode = MODULEMODE_HWCTRL,
924 },
925 },
926};
927
928/* emif2 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600929static struct omap_hwmod omap44xx_emif2_hwmod = {
930 .name = "emif2",
931 .class = &omap44xx_emif_hwmod_class,
932 .clkdm_name = "l3_emif_clkdm",
933 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600934 .main_clk = "ddrphy_ck",
935 .prcm = {
936 .omap4 = {
937 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
938 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
939 .modulemode = MODULEMODE_HWCTRL,
940 },
941 },
942};
943
944/*
Ming Leib050f682012-04-19 13:33:50 -0600945 * 'fdif' class
946 * face detection hw accelerator module
947 */
948
949static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
950 .rev_offs = 0x0000,
951 .sysc_offs = 0x0010,
952 /*
953 * FDIF needs 100 OCP clk cycles delay after a softreset before
954 * accessing sysconfig again.
955 * The lowest frequency at the moment for L3 bus is 100 MHz, so
956 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
957 *
958 * TODO: Indicate errata when available.
959 */
960 .srst_udelay = 2,
961 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
962 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
963 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
964 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
965 .sysc_fields = &omap_hwmod_sysc_type2,
966};
967
968static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
969 .name = "fdif",
970 .sysc = &omap44xx_fdif_sysc,
971};
972
973/* fdif */
Ming Leib050f682012-04-19 13:33:50 -0600974static struct omap_hwmod omap44xx_fdif_hwmod = {
975 .name = "fdif",
976 .class = &omap44xx_fdif_hwmod_class,
977 .clkdm_name = "iss_clkdm",
Ming Leib050f682012-04-19 13:33:50 -0600978 .main_clk = "fdif_fck",
979 .prcm = {
980 .omap4 = {
981 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
982 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
983 .modulemode = MODULEMODE_SWCTRL,
984 },
985 },
986};
987
988/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700989 * 'gpio' class
990 * general purpose io module
991 */
992
993static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
994 .rev_offs = 0x0000,
995 .sysc_offs = 0x0010,
996 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -0700997 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
998 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
999 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001000 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1001 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001002 .sysc_fields = &omap_hwmod_sysc_type1,
1003};
1004
1005static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001006 .name = "gpio",
1007 .sysc = &omap44xx_gpio_sysc,
1008 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001009};
1010
1011/* gpio dev_attr */
1012static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001013 .bank_width = 32,
1014 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001015};
1016
1017/* gpio1 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001018static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001019 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001020};
1021
1022static struct omap_hwmod omap44xx_gpio1_hwmod = {
1023 .name = "gpio1",
1024 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001025 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001026 .main_clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001027 .prcm = {
1028 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001029 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001030 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001031 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001032 },
1033 },
1034 .opt_clks = gpio1_opt_clks,
1035 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1036 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001037};
1038
1039/* gpio2 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001040static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001041 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001042};
1043
1044static struct omap_hwmod omap44xx_gpio2_hwmod = {
1045 .name = "gpio2",
1046 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001047 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001048 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001049 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001050 .prcm = {
1051 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001052 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001053 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001054 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001055 },
1056 },
1057 .opt_clks = gpio2_opt_clks,
1058 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1059 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001060};
1061
1062/* gpio3 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001063static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001064 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001065};
1066
1067static struct omap_hwmod omap44xx_gpio3_hwmod = {
1068 .name = "gpio3",
1069 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001070 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001071 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001072 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001073 .prcm = {
1074 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001075 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001076 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001077 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001078 },
1079 },
1080 .opt_clks = gpio3_opt_clks,
1081 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1082 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001083};
1084
1085/* gpio4 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001086static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001087 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001088};
1089
1090static struct omap_hwmod omap44xx_gpio4_hwmod = {
1091 .name = "gpio4",
1092 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001093 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001094 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001095 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001096 .prcm = {
1097 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001098 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001099 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001100 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001101 },
1102 },
1103 .opt_clks = gpio4_opt_clks,
1104 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1105 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001106};
1107
1108/* gpio5 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001109static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001110 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001111};
1112
1113static struct omap_hwmod omap44xx_gpio5_hwmod = {
1114 .name = "gpio5",
1115 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001116 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001117 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001118 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001119 .prcm = {
1120 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001121 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001122 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001123 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001124 },
1125 },
1126 .opt_clks = gpio5_opt_clks,
1127 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1128 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001129};
1130
1131/* gpio6 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001132static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001133 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001134};
1135
1136static struct omap_hwmod omap44xx_gpio6_hwmod = {
1137 .name = "gpio6",
1138 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001139 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001140 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001141 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001142 .prcm = {
1143 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001144 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001145 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001146 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001147 },
1148 },
1149 .opt_clks = gpio6_opt_clks,
1150 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1151 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001152};
1153
1154/*
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001155 * 'gpmc' class
1156 * general purpose memory controller
1157 */
1158
1159static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1160 .rev_offs = 0x0000,
1161 .sysc_offs = 0x0010,
1162 .syss_offs = 0x0014,
1163 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1164 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1165 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1166 .sysc_fields = &omap_hwmod_sysc_type1,
1167};
1168
1169static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1170 .name = "gpmc",
1171 .sysc = &omap44xx_gpmc_sysc,
1172};
1173
1174/* gpmc */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001175static struct omap_hwmod omap44xx_gpmc_hwmod = {
1176 .name = "gpmc",
1177 .class = &omap44xx_gpmc_hwmod_class,
1178 .clkdm_name = "l3_2_clkdm",
Afzal Mohammed49484a62012-09-23 17:28:24 -06001179 /*
1180 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
1181 * block. It is not being added due to any known bugs with
1182 * resetting the GPMC IP block, but rather because any timings
1183 * set by the bootloader are not being correctly programmed by
1184 * the kernel from the board file or DT data.
1185 * HWMOD_INIT_NO_RESET should be removed ASAP.
1186 */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001187 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001188 .prcm = {
1189 .omap4 = {
1190 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1191 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1192 .modulemode = MODULEMODE_HWCTRL,
1193 },
1194 },
1195};
1196
1197/*
Paul Walmsley9def3902012-04-19 13:33:53 -06001198 * 'gpu' class
1199 * 2d/3d graphics accelerator
1200 */
1201
1202static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1203 .rev_offs = 0x1fc00,
1204 .sysc_offs = 0x1fc10,
1205 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1206 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1207 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1208 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1209 .sysc_fields = &omap_hwmod_sysc_type2,
1210};
1211
1212static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1213 .name = "gpu",
1214 .sysc = &omap44xx_gpu_sysc,
1215};
1216
1217/* gpu */
Paul Walmsley9def3902012-04-19 13:33:53 -06001218static struct omap_hwmod omap44xx_gpu_hwmod = {
1219 .name = "gpu",
1220 .class = &omap44xx_gpu_hwmod_class,
1221 .clkdm_name = "l3_gfx_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001222 .main_clk = "sgx_clk_mux",
Paul Walmsley9def3902012-04-19 13:33:53 -06001223 .prcm = {
1224 .omap4 = {
1225 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1226 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1227 .modulemode = MODULEMODE_SWCTRL,
1228 },
1229 },
1230};
1231
1232/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001233 * 'hdq1w' class
1234 * hdq / 1-wire serial interface controller
1235 */
1236
1237static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1238 .rev_offs = 0x0000,
1239 .sysc_offs = 0x0014,
1240 .syss_offs = 0x0018,
1241 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1242 SYSS_HAS_RESET_STATUS),
1243 .sysc_fields = &omap_hwmod_sysc_type1,
1244};
1245
1246static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1247 .name = "hdq1w",
1248 .sysc = &omap44xx_hdq1w_sysc,
1249};
1250
1251/* hdq1w */
Paul Walmsleya091c082012-04-19 13:33:50 -06001252static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1253 .name = "hdq1w",
1254 .class = &omap44xx_hdq1w_hwmod_class,
1255 .clkdm_name = "l4_per_clkdm",
1256 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001257 .main_clk = "func_12m_fclk",
Paul Walmsleya091c082012-04-19 13:33:50 -06001258 .prcm = {
1259 .omap4 = {
1260 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1261 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1262 .modulemode = MODULEMODE_SWCTRL,
1263 },
1264 },
1265};
1266
1267/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001268 * 'hsi' class
1269 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1270 * serial if)
1271 */
1272
1273static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1274 .rev_offs = 0x0000,
1275 .sysc_offs = 0x0010,
1276 .syss_offs = 0x0014,
1277 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1278 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1279 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1280 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1281 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001282 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001283 .sysc_fields = &omap_hwmod_sysc_type1,
1284};
1285
1286static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1287 .name = "hsi",
1288 .sysc = &omap44xx_hsi_sysc,
1289};
1290
1291/* hsi */
Benoit Cousson407a6882011-02-15 22:39:48 +01001292static struct omap_hwmod omap44xx_hsi_hwmod = {
1293 .name = "hsi",
1294 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001295 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001296 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001297 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001298 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001299 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001300 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001301 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001302 },
1303 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001304};
1305
1306/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301307 * 'i2c' class
1308 * multimaster high-speed i2c controller
1309 */
1310
1311static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1312 .sysc_offs = 0x0010,
1313 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001314 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1315 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001316 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001317 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1318 SIDLE_SMART_WKUP),
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301319 .clockact = CLOCKACT_TEST_ICLK,
Benoit Coussonf7764712010-09-21 19:37:14 +05301320 .sysc_fields = &omap_hwmod_sysc_type1,
1321};
1322
1323static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001324 .name = "i2c",
1325 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06001326 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06001327 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05301328};
1329
Andy Green4d4441a2011-07-10 05:27:16 -06001330static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +05301331 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Andy Green4d4441a2011-07-10 05:27:16 -06001332};
1333
Benoit Coussonf7764712010-09-21 19:37:14 +05301334/* i2c1 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301335static struct omap_hwmod omap44xx_i2c1_hwmod = {
1336 .name = "i2c1",
1337 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001338 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301339 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001340 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301341 .prcm = {
1342 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001343 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001344 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001345 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301346 },
1347 },
Andy Green4d4441a2011-07-10 05:27:16 -06001348 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301349};
1350
1351/* i2c2 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301352static struct omap_hwmod omap44xx_i2c2_hwmod = {
1353 .name = "i2c2",
1354 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001355 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301356 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001357 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301358 .prcm = {
1359 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001360 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001361 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001362 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301363 },
1364 },
Andy Green4d4441a2011-07-10 05:27:16 -06001365 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301366};
1367
1368/* i2c3 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301369static struct omap_hwmod omap44xx_i2c3_hwmod = {
1370 .name = "i2c3",
1371 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001372 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301373 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001374 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301375 .prcm = {
1376 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001377 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001378 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001379 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301380 },
1381 },
Andy Green4d4441a2011-07-10 05:27:16 -06001382 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301383};
1384
1385/* i2c4 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301386static struct omap_hwmod omap44xx_i2c4_hwmod = {
1387 .name = "i2c4",
1388 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001389 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301390 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001391 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301392 .prcm = {
1393 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001394 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001395 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001396 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301397 },
1398 },
Andy Green4d4441a2011-07-10 05:27:16 -06001399 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301400};
1401
1402/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001403 * 'ipu' class
1404 * imaging processor unit
1405 */
1406
1407static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1408 .name = "ipu",
1409};
1410
1411/* ipu */
Benoit Cousson407a6882011-02-15 22:39:48 +01001412static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001413 { .name = "cpu0", .rst_shift = 0 },
1414 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001415};
1416
Benoit Cousson407a6882011-02-15 22:39:48 +01001417static struct omap_hwmod omap44xx_ipu_hwmod = {
1418 .name = "ipu",
1419 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001420 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001421 .rst_lines = omap44xx_ipu_resets,
1422 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001423 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001424 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001425 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001426 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001427 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001428 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001429 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001430 },
1431 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001432};
1433
1434/*
1435 * 'iss' class
1436 * external images sensor pixel data processor
1437 */
1438
1439static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1440 .rev_offs = 0x0000,
1441 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001442 /*
1443 * ISS needs 100 OCP clk cycles delay after a softreset before
1444 * accessing sysconfig again.
1445 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1446 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1447 *
1448 * TODO: Indicate errata when available.
1449 */
1450 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001451 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1452 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1453 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1454 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001455 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001456 .sysc_fields = &omap_hwmod_sysc_type2,
1457};
1458
1459static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1460 .name = "iss",
1461 .sysc = &omap44xx_iss_sysc,
1462};
1463
1464/* iss */
Benoit Cousson407a6882011-02-15 22:39:48 +01001465static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1466 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1467};
1468
1469static struct omap_hwmod omap44xx_iss_hwmod = {
1470 .name = "iss",
1471 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001472 .clkdm_name = "iss_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001473 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001474 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001475 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001476 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001477 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001478 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001479 },
1480 },
1481 .opt_clks = iss_opt_clks,
1482 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001483};
1484
1485/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001486 * 'iva' class
1487 * multi-standard video encoder/decoder hardware accelerator
1488 */
1489
1490static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001491 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001492};
1493
1494/* iva */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001495static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001496 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001497 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001498 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001499};
1500
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001501static struct omap_hwmod omap44xx_iva_hwmod = {
1502 .name = "iva",
1503 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001504 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001505 .rst_lines = omap44xx_iva_resets,
1506 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001507 .main_clk = "dpll_iva_m5x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001508 .prcm = {
1509 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001510 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001511 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001512 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001513 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001514 },
1515 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001516};
1517
1518/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001519 * 'kbd' class
1520 * keyboard controller
1521 */
1522
1523static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1524 .rev_offs = 0x0000,
1525 .sysc_offs = 0x0010,
1526 .syss_offs = 0x0014,
1527 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1528 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1529 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1530 SYSS_HAS_RESET_STATUS),
1531 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1532 .sysc_fields = &omap_hwmod_sysc_type1,
1533};
1534
1535static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1536 .name = "kbd",
1537 .sysc = &omap44xx_kbd_sysc,
1538};
1539
1540/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001541static struct omap_hwmod omap44xx_kbd_hwmod = {
1542 .name = "kbd",
1543 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001544 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001545 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001546 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001547 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001548 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001549 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001550 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001551 },
1552 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001553};
1554
1555/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001556 * 'mailbox' class
1557 * mailbox module allowing communication between the on-chip processors using a
1558 * queued mailbox-interrupt mechanism.
1559 */
1560
1561static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1562 .rev_offs = 0x0000,
1563 .sysc_offs = 0x0010,
1564 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1565 SYSC_HAS_SOFTRESET),
1566 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1567 .sysc_fields = &omap_hwmod_sysc_type2,
1568};
1569
1570static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1571 .name = "mailbox",
1572 .sysc = &omap44xx_mailbox_sysc,
1573};
1574
1575/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001576static struct omap_hwmod omap44xx_mailbox_hwmod = {
1577 .name = "mailbox",
1578 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001579 .clkdm_name = "l4_cfg_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001580 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001581 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001582 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001583 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001584 },
1585 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001586};
1587
1588/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001589 * 'mcasp' class
1590 * multi-channel audio serial port controller
1591 */
1592
1593/* The IP is not compliant to type1 / type2 scheme */
1594static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1595 .sidle_shift = 0,
1596};
1597
1598static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1599 .sysc_offs = 0x0004,
1600 .sysc_flags = SYSC_HAS_SIDLEMODE,
1601 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1602 SIDLE_SMART_WKUP),
1603 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1604};
1605
1606static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1607 .name = "mcasp",
1608 .sysc = &omap44xx_mcasp_sysc,
1609};
1610
1611/* mcasp */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001612static struct omap_hwmod omap44xx_mcasp_hwmod = {
1613 .name = "mcasp",
1614 .class = &omap44xx_mcasp_hwmod_class,
1615 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001616 .main_clk = "func_mcasp_abe_gfclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06001617 .prcm = {
1618 .omap4 = {
1619 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1620 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1621 .modulemode = MODULEMODE_SWCTRL,
1622 },
1623 },
1624};
1625
1626/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001627 * 'mcbsp' class
1628 * multi channel buffered serial port controller
1629 */
1630
1631static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1632 .sysc_offs = 0x008c,
1633 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1634 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1635 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1636 .sysc_fields = &omap_hwmod_sysc_type1,
1637};
1638
1639static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1640 .name = "mcbsp",
1641 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05301642 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001643};
1644
1645/* mcbsp1 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001646static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1647 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001648 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001649};
1650
Benoit Cousson4ddff492011-01-31 14:50:30 +00001651static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1652 .name = "mcbsp1",
1653 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001654 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001655 .main_clk = "func_mcbsp1_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001656 .prcm = {
1657 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001658 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001659 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001660 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001661 },
1662 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001663 .opt_clks = mcbsp1_opt_clks,
1664 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001665};
1666
1667/* mcbsp2 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001668static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1669 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001670 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001671};
1672
Benoit Cousson4ddff492011-01-31 14:50:30 +00001673static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1674 .name = "mcbsp2",
1675 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001676 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001677 .main_clk = "func_mcbsp2_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001678 .prcm = {
1679 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001680 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001681 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001682 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001683 },
1684 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001685 .opt_clks = mcbsp2_opt_clks,
1686 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001687};
1688
1689/* mcbsp3 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001690static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1691 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001692 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001693};
1694
Benoit Cousson4ddff492011-01-31 14:50:30 +00001695static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1696 .name = "mcbsp3",
1697 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001698 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001699 .main_clk = "func_mcbsp3_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001700 .prcm = {
1701 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001702 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001703 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001704 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001705 },
1706 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001707 .opt_clks = mcbsp3_opt_clks,
1708 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001709};
1710
1711/* mcbsp4 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001712static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1713 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001714 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001715};
1716
Benoit Cousson4ddff492011-01-31 14:50:30 +00001717static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1718 .name = "mcbsp4",
1719 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001720 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001721 .main_clk = "per_mcbsp4_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001722 .prcm = {
1723 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001724 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001725 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001726 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001727 },
1728 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001729 .opt_clks = mcbsp4_opt_clks,
1730 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001731};
1732
1733/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001734 * 'mcpdm' class
1735 * multi channel pdm controller (proprietary interface with phoenix power
1736 * ic)
1737 */
1738
1739static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1740 .rev_offs = 0x0000,
1741 .sysc_offs = 0x0010,
1742 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1743 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1744 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1745 SIDLE_SMART_WKUP),
1746 .sysc_fields = &omap_hwmod_sysc_type2,
1747};
1748
1749static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1750 .name = "mcpdm",
1751 .sysc = &omap44xx_mcpdm_sysc,
1752};
1753
1754/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01001755static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1756 .name = "mcpdm",
1757 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001758 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06001759 /*
1760 * It's suspected that the McPDM requires an off-chip main
1761 * functional clock, controlled via I2C. This IP block is
1762 * currently reset very early during boot, before I2C is
1763 * available, so it doesn't seem that we have any choice in
1764 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001765 *
1766 * Also, McPDM needs to be configured to NO_IDLE mode when it
1767 * is in used otherwise vital clocks will be gated which
1768 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06001769 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001770 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001771 .main_clk = "pad_clks_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001772 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001773 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001774 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001775 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001776 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001777 },
1778 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001779};
1780
1781/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301782 * 'mcspi' class
1783 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1784 * bus
1785 */
1786
1787static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1788 .rev_offs = 0x0000,
1789 .sysc_offs = 0x0010,
1790 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1791 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1792 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1793 SIDLE_SMART_WKUP),
1794 .sysc_fields = &omap_hwmod_sysc_type2,
1795};
1796
1797static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1798 .name = "mcspi",
1799 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01001800 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301801};
1802
1803/* mcspi1 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301804static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
1805 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
1806 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
1807 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
1808 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
1809 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
1810 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
1811 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
1812 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001813 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301814};
1815
Benoit Cousson905a74d2011-02-18 14:01:06 +01001816/* mcspi1 dev_attr */
1817static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1818 .num_chipselect = 4,
1819};
1820
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301821static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1822 .name = "mcspi1",
1823 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001824 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301825 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001826 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301827 .prcm = {
1828 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001829 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001830 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001831 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301832 },
1833 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001834 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301835};
1836
1837/* mcspi2 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301838static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
1839 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
1840 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
1841 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
1842 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001843 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301844};
1845
Benoit Cousson905a74d2011-02-18 14:01:06 +01001846/* mcspi2 dev_attr */
1847static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1848 .num_chipselect = 2,
1849};
1850
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301851static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1852 .name = "mcspi2",
1853 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001854 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301855 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001856 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301857 .prcm = {
1858 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001859 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001860 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001861 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301862 },
1863 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001864 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301865};
1866
1867/* mcspi3 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301868static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
1869 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
1870 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
1871 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
1872 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001873 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301874};
1875
Benoit Cousson905a74d2011-02-18 14:01:06 +01001876/* mcspi3 dev_attr */
1877static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1878 .num_chipselect = 2,
1879};
1880
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301881static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1882 .name = "mcspi3",
1883 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001884 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301885 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001886 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301887 .prcm = {
1888 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001889 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001890 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001891 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301892 },
1893 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001894 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301895};
1896
1897/* mcspi4 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301898static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
1899 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
1900 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001901 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301902};
1903
Benoit Cousson905a74d2011-02-18 14:01:06 +01001904/* mcspi4 dev_attr */
1905static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1906 .num_chipselect = 1,
1907};
1908
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301909static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1910 .name = "mcspi4",
1911 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001912 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301913 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001914 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301915 .prcm = {
1916 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001917 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001918 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001919 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301920 },
1921 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001922 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301923};
1924
1925/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001926 * 'mmc' class
1927 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1928 */
1929
1930static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
1931 .rev_offs = 0x0000,
1932 .sysc_offs = 0x0010,
1933 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1934 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1935 SYSC_HAS_SOFTRESET),
1936 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1937 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001938 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001939 .sysc_fields = &omap_hwmod_sysc_type2,
1940};
1941
1942static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
1943 .name = "mmc",
1944 .sysc = &omap44xx_mmc_sysc,
1945};
1946
1947/* mmc1 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001948static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
1949 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
1950 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001951 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001952};
1953
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001954/* mmc1 dev_attr */
1955static struct omap_mmc_dev_attr mmc1_dev_attr = {
1956 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1957};
1958
Benoit Cousson407a6882011-02-15 22:39:48 +01001959static struct omap_hwmod omap44xx_mmc1_hwmod = {
1960 .name = "mmc1",
1961 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001962 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001963 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001964 .main_clk = "hsmmc1_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001965 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001966 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001967 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001968 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001969 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001970 },
1971 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001972 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01001973};
1974
1975/* mmc2 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001976static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
1977 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
1978 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001979 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001980};
1981
Benoit Cousson407a6882011-02-15 22:39:48 +01001982static struct omap_hwmod omap44xx_mmc2_hwmod = {
1983 .name = "mmc2",
1984 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001985 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001986 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001987 .main_clk = "hsmmc2_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001988 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001989 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001990 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001991 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001992 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001993 },
1994 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001995};
1996
1997/* mmc3 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001998static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
1999 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2000 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002001 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002002};
2003
Benoit Cousson407a6882011-02-15 22:39:48 +01002004static struct omap_hwmod omap44xx_mmc3_hwmod = {
2005 .name = "mmc3",
2006 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002007 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002008 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002009 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002010 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002011 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002012 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002013 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002014 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002015 },
2016 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002017};
2018
2019/* mmc4 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002020static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2021 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2022 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002023 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002024};
2025
Benoit Cousson407a6882011-02-15 22:39:48 +01002026static struct omap_hwmod omap44xx_mmc4_hwmod = {
2027 .name = "mmc4",
2028 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002029 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002030 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002031 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002032 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002033 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002034 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002035 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002036 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002037 },
2038 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002039};
2040
2041/* mmc5 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002042static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2043 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2044 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002045 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002046};
2047
Benoit Cousson407a6882011-02-15 22:39:48 +01002048static struct omap_hwmod omap44xx_mmc5_hwmod = {
2049 .name = "mmc5",
2050 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002051 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002052 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002053 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002054 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002055 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002056 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002057 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002058 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002059 },
2060 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002061};
2062
2063/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002064 * 'mmu' class
2065 * The memory management unit performs virtual to physical address translation
2066 * for its requestors.
2067 */
2068
2069static struct omap_hwmod_class_sysconfig mmu_sysc = {
2070 .rev_offs = 0x000,
2071 .sysc_offs = 0x010,
2072 .syss_offs = 0x014,
2073 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2074 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2075 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2076 .sysc_fields = &omap_hwmod_sysc_type1,
2077};
2078
2079static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2080 .name = "mmu",
2081 .sysc = &mmu_sysc,
2082};
2083
2084/* mmu ipu */
2085
2086static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
2087 .da_start = 0x0,
2088 .da_end = 0xfffff000,
2089 .nr_tlb_entries = 32,
2090};
2091
2092static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002093static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2094 { .name = "mmu_cache", .rst_shift = 2 },
2095};
2096
2097static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
2098 {
2099 .pa_start = 0x55082000,
2100 .pa_end = 0x550820ff,
2101 .flags = ADDR_TYPE_RT,
2102 },
2103 { }
2104};
2105
2106/* l3_main_2 -> mmu_ipu */
2107static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2108 .master = &omap44xx_l3_main_2_hwmod,
2109 .slave = &omap44xx_mmu_ipu_hwmod,
2110 .clk = "l3_div_ck",
2111 .addr = omap44xx_mmu_ipu_addrs,
2112 .user = OCP_USER_MPU | OCP_USER_SDMA,
2113};
2114
2115static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2116 .name = "mmu_ipu",
2117 .class = &omap44xx_mmu_hwmod_class,
2118 .clkdm_name = "ducati_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002119 .rst_lines = omap44xx_mmu_ipu_resets,
2120 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2121 .main_clk = "ducati_clk_mux_ck",
2122 .prcm = {
2123 .omap4 = {
2124 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2125 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2126 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2127 .modulemode = MODULEMODE_HWCTRL,
2128 },
2129 },
2130 .dev_attr = &mmu_ipu_dev_attr,
2131};
2132
2133/* mmu dsp */
2134
2135static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
2136 .da_start = 0x0,
2137 .da_end = 0xfffff000,
2138 .nr_tlb_entries = 32,
2139};
2140
2141static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002142static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2143 { .name = "mmu_cache", .rst_shift = 1 },
2144};
2145
2146static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
2147 {
2148 .pa_start = 0x4a066000,
2149 .pa_end = 0x4a0660ff,
2150 .flags = ADDR_TYPE_RT,
2151 },
2152 { }
2153};
2154
2155/* l4_cfg -> dsp */
2156static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2157 .master = &omap44xx_l4_cfg_hwmod,
2158 .slave = &omap44xx_mmu_dsp_hwmod,
2159 .clk = "l4_div_ck",
2160 .addr = omap44xx_mmu_dsp_addrs,
2161 .user = OCP_USER_MPU | OCP_USER_SDMA,
2162};
2163
2164static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2165 .name = "mmu_dsp",
2166 .class = &omap44xx_mmu_hwmod_class,
2167 .clkdm_name = "tesla_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002168 .rst_lines = omap44xx_mmu_dsp_resets,
2169 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2170 .main_clk = "dpll_iva_m4x2_ck",
2171 .prcm = {
2172 .omap4 = {
2173 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2174 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2175 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2176 .modulemode = MODULEMODE_HWCTRL,
2177 },
2178 },
2179 .dev_attr = &mmu_dsp_dev_attr,
2180};
2181
2182/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002183 * 'mpu' class
2184 * mpu sub-system
2185 */
2186
2187static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002188 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002189};
2190
2191/* mpu */
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002192static struct omap_hwmod omap44xx_mpu_hwmod = {
2193 .name = "mpu",
2194 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002195 .clkdm_name = "mpuss_clkdm",
Benoit Cousson7ecc53732011-07-09 19:14:28 -06002196 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002197 .main_clk = "dpll_mpu_m2_ck",
2198 .prcm = {
2199 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002200 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002201 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002202 },
2203 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002204};
2205
Benoit Cousson92b18d12010-09-23 20:02:41 +05302206/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06002207 * 'ocmc_ram' class
2208 * top-level core on-chip ram
2209 */
2210
2211static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2212 .name = "ocmc_ram",
2213};
2214
2215/* ocmc_ram */
2216static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2217 .name = "ocmc_ram",
2218 .class = &omap44xx_ocmc_ram_hwmod_class,
2219 .clkdm_name = "l3_2_clkdm",
2220 .prcm = {
2221 .omap4 = {
2222 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2223 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2224 },
2225 },
2226};
2227
2228/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002229 * 'ocp2scp' class
2230 * bridge to transform ocp interface protocol to scp (serial control port)
2231 * protocol
2232 */
2233
Benoit Cousson33c976e2012-09-23 17:28:21 -06002234static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2235 .rev_offs = 0x0000,
2236 .sysc_offs = 0x0010,
2237 .syss_offs = 0x0014,
2238 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2239 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2240 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2241 .sysc_fields = &omap_hwmod_sysc_type1,
2242};
2243
Benoît Cousson0c668872012-04-19 13:33:55 -06002244static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2245 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06002246 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06002247};
2248
2249/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06002250static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2251 .name = "ocp2scp_usb_phy",
2252 .class = &omap44xx_ocp2scp_hwmod_class,
2253 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham If4d7a532013-04-10 19:41:38 +00002254 /*
2255 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2256 * block as an "optional clock," and normally should never be
2257 * specified as the main_clk for an OMAP IP block. However it
2258 * turns out that this clock is actually the main clock for
2259 * the ocp2scp_usb_phy IP block:
2260 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2261 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2262 * to be the best workaround.
2263 */
2264 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06002265 .prcm = {
2266 .omap4 = {
2267 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2268 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2269 .modulemode = MODULEMODE_HWCTRL,
2270 },
2271 },
Benoît Cousson0c668872012-04-19 13:33:55 -06002272};
2273
2274/*
Paul Walmsley794b4802012-04-19 13:33:58 -06002275 * 'prcm' class
2276 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2277 * + clock manager 1 (in always on power domain) + local prm in mpu
2278 */
2279
2280static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2281 .name = "prcm",
2282};
2283
2284/* prcm_mpu */
2285static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2286 .name = "prcm_mpu",
2287 .class = &omap44xx_prcm_hwmod_class,
2288 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06002289 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002290 .prcm = {
2291 .omap4 = {
2292 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2293 },
2294 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002295};
2296
2297/* cm_core_aon */
2298static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2299 .name = "cm_core_aon",
2300 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002301 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002302 .prcm = {
2303 .omap4 = {
2304 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2305 },
2306 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002307};
2308
2309/* cm_core */
2310static struct omap_hwmod omap44xx_cm_core_hwmod = {
2311 .name = "cm_core",
2312 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002313 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002314 .prcm = {
2315 .omap4 = {
2316 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2317 },
2318 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002319};
2320
2321/* prm */
Paul Walmsley794b4802012-04-19 13:33:58 -06002322static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2323 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2324 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2325};
2326
2327static struct omap_hwmod omap44xx_prm_hwmod = {
2328 .name = "prm",
2329 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06002330 .rst_lines = omap44xx_prm_resets,
2331 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2332};
2333
2334/*
2335 * 'scrm' class
2336 * system clock and reset manager
2337 */
2338
2339static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2340 .name = "scrm",
2341};
2342
2343/* scrm */
2344static struct omap_hwmod omap44xx_scrm_hwmod = {
2345 .name = "scrm",
2346 .class = &omap44xx_scrm_hwmod_class,
2347 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06002348 .prcm = {
2349 .omap4 = {
2350 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2351 },
2352 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002353};
2354
2355/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06002356 * 'sl2if' class
2357 * shared level 2 memory interface
2358 */
2359
2360static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2361 .name = "sl2if",
2362};
2363
2364/* sl2if */
2365static struct omap_hwmod omap44xx_sl2if_hwmod = {
2366 .name = "sl2if",
2367 .class = &omap44xx_sl2if_hwmod_class,
2368 .clkdm_name = "ivahd_clkdm",
2369 .prcm = {
2370 .omap4 = {
2371 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2372 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2373 .modulemode = MODULEMODE_HWCTRL,
2374 },
2375 },
2376};
2377
2378/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002379 * 'slimbus' class
2380 * bidirectional, multi-drop, multi-channel two-line serial interface between
2381 * the device and external components
2382 */
2383
2384static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2385 .rev_offs = 0x0000,
2386 .sysc_offs = 0x0010,
2387 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2388 SYSC_HAS_SOFTRESET),
2389 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2390 SIDLE_SMART_WKUP),
2391 .sysc_fields = &omap_hwmod_sysc_type2,
2392};
2393
2394static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2395 .name = "slimbus",
2396 .sysc = &omap44xx_slimbus_sysc,
2397};
2398
2399/* slimbus1 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002400static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2401 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2402 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2403 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2404 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2405};
2406
2407static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2408 .name = "slimbus1",
2409 .class = &omap44xx_slimbus_hwmod_class,
2410 .clkdm_name = "abe_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002411 .prcm = {
2412 .omap4 = {
2413 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2414 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2415 .modulemode = MODULEMODE_SWCTRL,
2416 },
2417 },
2418 .opt_clks = slimbus1_opt_clks,
2419 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2420};
2421
2422/* slimbus2 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002423static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2424 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2425 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2426 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2427};
2428
2429static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2430 .name = "slimbus2",
2431 .class = &omap44xx_slimbus_hwmod_class,
2432 .clkdm_name = "l4_per_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002433 .prcm = {
2434 .omap4 = {
2435 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2436 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2437 .modulemode = MODULEMODE_SWCTRL,
2438 },
2439 },
2440 .opt_clks = slimbus2_opt_clks,
2441 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2442};
2443
2444/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002445 * 'smartreflex' class
2446 * smartreflex module (monitor silicon performance and outputs a measure of
2447 * performance error)
2448 */
2449
2450/* The IP is not compliant to type1 / type2 scheme */
2451static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2452 .sidle_shift = 24,
2453 .enwkup_shift = 26,
2454};
2455
2456static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2457 .sysc_offs = 0x0038,
2458 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2459 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2460 SIDLE_SMART_WKUP),
2461 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2462};
2463
2464static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002465 .name = "smartreflex",
2466 .sysc = &omap44xx_smartreflex_sysc,
2467 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002468};
2469
2470/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002471static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2472 .sensor_voltdm_name = "core",
2473};
2474
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002475static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2476 .name = "smartreflex_core",
2477 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002478 .clkdm_name = "l4_ao_clkdm",
Paul Walmsley212738a2011-07-09 19:14:06 -06002479
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002480 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002481 .prcm = {
2482 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002483 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002484 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002485 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002486 },
2487 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002488 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002489};
2490
2491/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002492static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2493 .sensor_voltdm_name = "iva",
2494};
2495
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002496static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2497 .name = "smartreflex_iva",
2498 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002499 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002500 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002501 .prcm = {
2502 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002503 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002504 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002505 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002506 },
2507 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002508 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002509};
2510
2511/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002512static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2513 .sensor_voltdm_name = "mpu",
2514};
2515
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002516static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2517 .name = "smartreflex_mpu",
2518 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002519 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002520 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002521 .prcm = {
2522 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002523 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002524 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002525 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002526 },
2527 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002528 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002529};
2530
2531/*
Benoit Coussond11c2172011-02-02 12:04:36 +00002532 * 'spinlock' class
2533 * spinlock provides hardware assistance for synchronizing the processes
2534 * running on multiple processors
2535 */
2536
2537static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2538 .rev_offs = 0x0000,
2539 .sysc_offs = 0x0010,
2540 .syss_offs = 0x0014,
2541 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2542 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2543 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2544 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2545 SIDLE_SMART_WKUP),
2546 .sysc_fields = &omap_hwmod_sysc_type1,
2547};
2548
2549static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2550 .name = "spinlock",
2551 .sysc = &omap44xx_spinlock_sysc,
2552};
2553
2554/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00002555static struct omap_hwmod omap44xx_spinlock_hwmod = {
2556 .name = "spinlock",
2557 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002558 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00002559 .prcm = {
2560 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002561 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002562 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00002563 },
2564 },
Benoit Coussond11c2172011-02-02 12:04:36 +00002565};
2566
2567/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00002568 * 'timer' class
2569 * general purpose timer module with accurate 1ms tick
2570 * This class contains several variants: ['timer_1ms', 'timer']
2571 */
2572
2573static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2574 .rev_offs = 0x0000,
2575 .sysc_offs = 0x0010,
2576 .syss_offs = 0x0014,
2577 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2578 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2579 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2580 SYSS_HAS_RESET_STATUS),
2581 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Jon Hunter10759e82012-07-11 13:00:13 -05002582 .clockact = CLOCKACT_TEST_ICLK,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002583 .sysc_fields = &omap_hwmod_sysc_type1,
2584};
2585
2586static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2587 .name = "timer",
2588 .sysc = &omap44xx_timer_1ms_sysc,
2589};
2590
2591static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2592 .rev_offs = 0x0000,
2593 .sysc_offs = 0x0010,
2594 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2595 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2596 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2597 SIDLE_SMART_WKUP),
2598 .sysc_fields = &omap_hwmod_sysc_type2,
2599};
2600
2601static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2602 .name = "timer",
2603 .sysc = &omap44xx_timer_sysc,
2604};
2605
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302606/* always-on timers dev attribute */
2607static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
2608 .timer_capability = OMAP_TIMER_ALWON,
2609};
2610
2611/* pwm timers dev attribute */
2612static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
2613 .timer_capability = OMAP_TIMER_HAS_PWM,
2614};
2615
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002616/* timers with DSP interrupt dev attribute */
2617static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
2618 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
2619};
2620
2621/* pwm timers with DSP interrupt dev attribute */
2622static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
2623 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
2624};
2625
Benoit Cousson35d1a662011-02-11 11:17:14 +00002626/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002627static struct omap_hwmod omap44xx_timer1_hwmod = {
2628 .name = "timer1",
2629 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002630 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002631 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002632 .main_clk = "dmt1_clk_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002633 .prcm = {
2634 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002635 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002636 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002637 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002638 },
2639 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302640 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002641};
2642
2643/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002644static struct omap_hwmod omap44xx_timer2_hwmod = {
2645 .name = "timer2",
2646 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002647 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002648 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002649 .main_clk = "cm2_dm2_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002650 .prcm = {
2651 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002652 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002653 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002654 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002655 },
2656 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002657};
2658
2659/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002660static struct omap_hwmod omap44xx_timer3_hwmod = {
2661 .name = "timer3",
2662 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002663 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002664 .main_clk = "cm2_dm3_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002665 .prcm = {
2666 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002667 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002668 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002669 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002670 },
2671 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002672};
2673
2674/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002675static struct omap_hwmod omap44xx_timer4_hwmod = {
2676 .name = "timer4",
2677 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002678 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002679 .main_clk = "cm2_dm4_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002680 .prcm = {
2681 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002682 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002683 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002684 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002685 },
2686 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002687};
2688
2689/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002690static struct omap_hwmod omap44xx_timer5_hwmod = {
2691 .name = "timer5",
2692 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002693 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002694 .main_clk = "timer5_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002695 .prcm = {
2696 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002697 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002698 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002699 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002700 },
2701 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002702 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002703};
2704
2705/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002706static struct omap_hwmod omap44xx_timer6_hwmod = {
2707 .name = "timer6",
2708 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002709 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002710 .main_clk = "timer6_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002711 .prcm = {
2712 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002713 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002714 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002715 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002716 },
2717 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002718 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002719};
2720
2721/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002722static struct omap_hwmod omap44xx_timer7_hwmod = {
2723 .name = "timer7",
2724 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002725 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002726 .main_clk = "timer7_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002727 .prcm = {
2728 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002729 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002730 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002731 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002732 },
2733 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002734 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002735};
2736
2737/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002738static struct omap_hwmod omap44xx_timer8_hwmod = {
2739 .name = "timer8",
2740 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002741 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002742 .main_clk = "timer8_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002743 .prcm = {
2744 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002745 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002746 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002747 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002748 },
2749 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002750 .dev_attr = &capability_dsp_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002751};
2752
2753/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002754static struct omap_hwmod omap44xx_timer9_hwmod = {
2755 .name = "timer9",
2756 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002757 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002758 .main_clk = "cm2_dm9_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002759 .prcm = {
2760 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002761 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002762 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002763 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002764 },
2765 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302766 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002767};
2768
2769/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002770static struct omap_hwmod omap44xx_timer10_hwmod = {
2771 .name = "timer10",
2772 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002773 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002774 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002775 .main_clk = "cm2_dm10_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002776 .prcm = {
2777 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002778 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002779 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002780 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002781 },
2782 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302783 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002784};
2785
2786/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002787static struct omap_hwmod omap44xx_timer11_hwmod = {
2788 .name = "timer11",
2789 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002790 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002791 .main_clk = "cm2_dm11_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002792 .prcm = {
2793 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002794 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002795 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002796 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002797 },
2798 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302799 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002800};
2801
2802/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05302803 * 'uart' class
2804 * universal asynchronous receiver/transmitter (uart)
2805 */
2806
2807static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2808 .rev_offs = 0x0050,
2809 .sysc_offs = 0x0054,
2810 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002811 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002812 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2813 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002814 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2815 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05302816 .sysc_fields = &omap_hwmod_sysc_type1,
2817};
2818
2819static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002820 .name = "uart",
2821 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302822};
2823
2824/* uart1 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302825static struct omap_hwmod omap44xx_uart1_hwmod = {
2826 .name = "uart1",
2827 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002828 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302829 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002830 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302831 .prcm = {
2832 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002833 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002834 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002835 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302836 },
2837 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302838};
2839
2840/* uart2 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302841static struct omap_hwmod omap44xx_uart2_hwmod = {
2842 .name = "uart2",
2843 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002844 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302845 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002846 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302847 .prcm = {
2848 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002849 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002850 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002851 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302852 },
2853 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302854};
2855
2856/* uart3 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302857static struct omap_hwmod omap44xx_uart3_hwmod = {
2858 .name = "uart3",
2859 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002860 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302861 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET |
2862 HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002863 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302864 .prcm = {
2865 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002866 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002867 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002868 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302869 },
2870 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302871};
2872
2873/* uart4 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302874static struct omap_hwmod omap44xx_uart4_hwmod = {
2875 .name = "uart4",
2876 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002877 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302878 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002879 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302880 .prcm = {
2881 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002882 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002883 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002884 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302885 },
2886 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302887};
2888
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002889/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002890 * 'usb_host_fs' class
2891 * full-speed usb host controller
2892 */
2893
2894/* The IP is not compliant to type1 / type2 scheme */
2895static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
2896 .midle_shift = 4,
2897 .sidle_shift = 2,
2898 .srst_shift = 1,
2899};
2900
2901static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2902 .rev_offs = 0x0000,
2903 .sysc_offs = 0x0210,
2904 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2905 SYSC_HAS_SOFTRESET),
2906 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2907 SIDLE_SMART_WKUP),
2908 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2909};
2910
2911static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2912 .name = "usb_host_fs",
2913 .sysc = &omap44xx_usb_host_fs_sysc,
2914};
2915
2916/* usb_host_fs */
Benoît Cousson0c668872012-04-19 13:33:55 -06002917static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2918 .name = "usb_host_fs",
2919 .class = &omap44xx_usb_host_fs_hwmod_class,
2920 .clkdm_name = "l3_init_clkdm",
Benoît Cousson0c668872012-04-19 13:33:55 -06002921 .main_clk = "usb_host_fs_fck",
2922 .prcm = {
2923 .omap4 = {
2924 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2925 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2926 .modulemode = MODULEMODE_SWCTRL,
2927 },
2928 },
2929};
2930
2931/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002932 * 'usb_host_hs' class
2933 * high-speed multi-port usb host controller
2934 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002935
2936static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2937 .rev_offs = 0x0000,
2938 .sysc_offs = 0x0010,
2939 .syss_offs = 0x0014,
2940 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2941 SYSC_HAS_SOFTRESET),
2942 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2943 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2944 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2945 .sysc_fields = &omap_hwmod_sysc_type2,
2946};
2947
2948static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002949 .name = "usb_host_hs",
2950 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002951};
2952
Paul Walmsley844a3b62012-04-19 04:04:33 -06002953/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002954static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2955 .name = "usb_host_hs",
2956 .class = &omap44xx_usb_host_hs_hwmod_class,
2957 .clkdm_name = "l3_init_clkdm",
2958 .main_clk = "usb_host_hs_fck",
2959 .prcm = {
2960 .omap4 = {
2961 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2962 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2963 .modulemode = MODULEMODE_SWCTRL,
2964 },
2965 },
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002966
2967 /*
2968 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2969 * id: i660
2970 *
2971 * Description:
2972 * In the following configuration :
2973 * - USBHOST module is set to smart-idle mode
2974 * - PRCM asserts idle_req to the USBHOST module ( This typically
2975 * happens when the system is going to a low power mode : all ports
2976 * have been suspended, the master part of the USBHOST module has
2977 * entered the standby state, and SW has cut the functional clocks)
2978 * - an USBHOST interrupt occurs before the module is able to answer
2979 * idle_ack, typically a remote wakeup IRQ.
2980 * Then the USB HOST module will enter a deadlock situation where it
2981 * is no more accessible nor functional.
2982 *
2983 * Workaround:
2984 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2985 */
2986
2987 /*
2988 * Errata: USB host EHCI may stall when entering smart-standby mode
2989 * Id: i571
2990 *
2991 * Description:
2992 * When the USBHOST module is set to smart-standby mode, and when it is
2993 * ready to enter the standby state (i.e. all ports are suspended and
2994 * all attached devices are in suspend mode), then it can wrongly assert
2995 * the Mstandby signal too early while there are still some residual OCP
2996 * transactions ongoing. If this condition occurs, the internal state
2997 * machine may go to an undefined state and the USB link may be stuck
2998 * upon the next resume.
2999 *
3000 * Workaround:
3001 * Don't use smart standby; use only force standby,
3002 * hence HWMOD_SWSUP_MSTANDBY
3003 */
3004
3005 /*
3006 * During system boot; If the hwmod framework resets the module
3007 * the module will have smart idle settings; which can lead to deadlock
3008 * (above Errata Id:i660); so, dont reset the module during boot;
3009 * Use HWMOD_INIT_NO_RESET.
3010 */
3011
3012 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
3013 HWMOD_INIT_NO_RESET,
3014};
3015
3016/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06003017 * 'usb_otg_hs' class
3018 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3019 */
3020
3021static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3022 .rev_offs = 0x0400,
3023 .sysc_offs = 0x0404,
3024 .syss_offs = 0x0408,
3025 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3026 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3027 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3028 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3029 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3030 MSTANDBY_SMART),
3031 .sysc_fields = &omap_hwmod_sysc_type1,
3032};
3033
3034static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3035 .name = "usb_otg_hs",
3036 .sysc = &omap44xx_usb_otg_hs_sysc,
3037};
3038
3039/* usb_otg_hs */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003040static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3041 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3042};
3043
3044static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3045 .name = "usb_otg_hs",
3046 .class = &omap44xx_usb_otg_hs_hwmod_class,
3047 .clkdm_name = "l3_init_clkdm",
3048 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003049 .main_clk = "usb_otg_hs_ick",
3050 .prcm = {
3051 .omap4 = {
3052 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3053 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3054 .modulemode = MODULEMODE_HWCTRL,
3055 },
3056 },
3057 .opt_clks = usb_otg_hs_opt_clks,
3058 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3059};
3060
3061/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003062 * 'usb_tll_hs' class
3063 * usb_tll_hs module is the adapter on the usb_host_hs ports
3064 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003065
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003066static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3067 .rev_offs = 0x0000,
3068 .sysc_offs = 0x0010,
3069 .syss_offs = 0x0014,
3070 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3071 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3072 SYSC_HAS_AUTOIDLE),
3073 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3074 .sysc_fields = &omap_hwmod_sysc_type1,
3075};
3076
3077static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003078 .name = "usb_tll_hs",
3079 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003080};
3081
Paul Walmsley844a3b62012-04-19 04:04:33 -06003082static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3083 .name = "usb_tll_hs",
3084 .class = &omap44xx_usb_tll_hs_hwmod_class,
3085 .clkdm_name = "l3_init_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003086 .main_clk = "usb_tll_hs_ick",
3087 .prcm = {
3088 .omap4 = {
3089 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3090 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3091 .modulemode = MODULEMODE_HWCTRL,
3092 },
3093 },
3094};
3095
3096/*
3097 * 'wd_timer' class
3098 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3099 * overflow condition
3100 */
3101
3102static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3103 .rev_offs = 0x0000,
3104 .sysc_offs = 0x0010,
3105 .syss_offs = 0x0014,
3106 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3107 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3108 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3109 SIDLE_SMART_WKUP),
3110 .sysc_fields = &omap_hwmod_sysc_type1,
3111};
3112
3113static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3114 .name = "wd_timer",
3115 .sysc = &omap44xx_wd_timer_sysc,
3116 .pre_shutdown = &omap2_wd_timer_disable,
Kevin Hilman414e4122012-05-08 11:34:30 -06003117 .reset = &omap2_wd_timer_reset,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003118};
3119
3120/* wd_timer2 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003121static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3122 .name = "wd_timer2",
3123 .class = &omap44xx_wd_timer_hwmod_class,
3124 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003125 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003126 .prcm = {
3127 .omap4 = {
3128 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3129 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3130 .modulemode = MODULEMODE_SWCTRL,
3131 },
3132 },
3133};
3134
3135/* wd_timer3 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003136static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3137 .name = "wd_timer3",
3138 .class = &omap44xx_wd_timer_hwmod_class,
3139 .clkdm_name = "abe_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003140 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003141 .prcm = {
3142 .omap4 = {
3143 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3144 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3145 .modulemode = MODULEMODE_SWCTRL,
3146 },
3147 },
3148};
3149
3150
3151/*
3152 * interfaces
3153 */
3154
3155/* l3_main_1 -> dmm */
3156static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3157 .master = &omap44xx_l3_main_1_hwmod,
3158 .slave = &omap44xx_dmm_hwmod,
3159 .clk = "l3_div_ck",
3160 .user = OCP_USER_SDMA,
3161};
3162
Paul Walmsley844a3b62012-04-19 04:04:33 -06003163/* mpu -> dmm */
3164static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3165 .master = &omap44xx_mpu_hwmod,
3166 .slave = &omap44xx_dmm_hwmod,
3167 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003168 .user = OCP_USER_MPU,
3169};
3170
3171/* iva -> l3_instr */
3172static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3173 .master = &omap44xx_iva_hwmod,
3174 .slave = &omap44xx_l3_instr_hwmod,
3175 .clk = "l3_div_ck",
3176 .user = OCP_USER_MPU | OCP_USER_SDMA,
3177};
3178
3179/* l3_main_3 -> l3_instr */
3180static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3181 .master = &omap44xx_l3_main_3_hwmod,
3182 .slave = &omap44xx_l3_instr_hwmod,
3183 .clk = "l3_div_ck",
3184 .user = OCP_USER_MPU | OCP_USER_SDMA,
3185};
3186
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003187/* ocp_wp_noc -> l3_instr */
3188static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3189 .master = &omap44xx_ocp_wp_noc_hwmod,
3190 .slave = &omap44xx_l3_instr_hwmod,
3191 .clk = "l3_div_ck",
3192 .user = OCP_USER_MPU | OCP_USER_SDMA,
3193};
3194
Paul Walmsley844a3b62012-04-19 04:04:33 -06003195/* dsp -> l3_main_1 */
3196static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3197 .master = &omap44xx_dsp_hwmod,
3198 .slave = &omap44xx_l3_main_1_hwmod,
3199 .clk = "l3_div_ck",
3200 .user = OCP_USER_MPU | OCP_USER_SDMA,
3201};
3202
3203/* dss -> l3_main_1 */
3204static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3205 .master = &omap44xx_dss_hwmod,
3206 .slave = &omap44xx_l3_main_1_hwmod,
3207 .clk = "l3_div_ck",
3208 .user = OCP_USER_MPU | OCP_USER_SDMA,
3209};
3210
3211/* l3_main_2 -> l3_main_1 */
3212static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3213 .master = &omap44xx_l3_main_2_hwmod,
3214 .slave = &omap44xx_l3_main_1_hwmod,
3215 .clk = "l3_div_ck",
3216 .user = OCP_USER_MPU | OCP_USER_SDMA,
3217};
3218
3219/* l4_cfg -> l3_main_1 */
3220static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3221 .master = &omap44xx_l4_cfg_hwmod,
3222 .slave = &omap44xx_l3_main_1_hwmod,
3223 .clk = "l4_div_ck",
3224 .user = OCP_USER_MPU | OCP_USER_SDMA,
3225};
3226
3227/* mmc1 -> l3_main_1 */
3228static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3229 .master = &omap44xx_mmc1_hwmod,
3230 .slave = &omap44xx_l3_main_1_hwmod,
3231 .clk = "l3_div_ck",
3232 .user = OCP_USER_MPU | OCP_USER_SDMA,
3233};
3234
3235/* mmc2 -> l3_main_1 */
3236static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3237 .master = &omap44xx_mmc2_hwmod,
3238 .slave = &omap44xx_l3_main_1_hwmod,
3239 .clk = "l3_div_ck",
3240 .user = OCP_USER_MPU | OCP_USER_SDMA,
3241};
3242
Paul Walmsley844a3b62012-04-19 04:04:33 -06003243/* mpu -> l3_main_1 */
3244static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3245 .master = &omap44xx_mpu_hwmod,
3246 .slave = &omap44xx_l3_main_1_hwmod,
3247 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003248 .user = OCP_USER_MPU,
3249};
3250
Benoît Cousson96566042012-04-19 13:33:59 -06003251/* debugss -> l3_main_2 */
3252static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3253 .master = &omap44xx_debugss_hwmod,
3254 .slave = &omap44xx_l3_main_2_hwmod,
3255 .clk = "dbgclk_mux_ck",
3256 .user = OCP_USER_MPU | OCP_USER_SDMA,
3257};
3258
Paul Walmsley844a3b62012-04-19 04:04:33 -06003259/* dma_system -> l3_main_2 */
3260static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3261 .master = &omap44xx_dma_system_hwmod,
3262 .slave = &omap44xx_l3_main_2_hwmod,
3263 .clk = "l3_div_ck",
3264 .user = OCP_USER_MPU | OCP_USER_SDMA,
3265};
3266
Ming Leib050f682012-04-19 13:33:50 -06003267/* fdif -> l3_main_2 */
3268static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3269 .master = &omap44xx_fdif_hwmod,
3270 .slave = &omap44xx_l3_main_2_hwmod,
3271 .clk = "l3_div_ck",
3272 .user = OCP_USER_MPU | OCP_USER_SDMA,
3273};
3274
Paul Walmsley9def3902012-04-19 13:33:53 -06003275/* gpu -> l3_main_2 */
3276static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3277 .master = &omap44xx_gpu_hwmod,
3278 .slave = &omap44xx_l3_main_2_hwmod,
3279 .clk = "l3_div_ck",
3280 .user = OCP_USER_MPU | OCP_USER_SDMA,
3281};
3282
Paul Walmsley844a3b62012-04-19 04:04:33 -06003283/* hsi -> l3_main_2 */
3284static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3285 .master = &omap44xx_hsi_hwmod,
3286 .slave = &omap44xx_l3_main_2_hwmod,
3287 .clk = "l3_div_ck",
3288 .user = OCP_USER_MPU | OCP_USER_SDMA,
3289};
3290
3291/* ipu -> l3_main_2 */
3292static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3293 .master = &omap44xx_ipu_hwmod,
3294 .slave = &omap44xx_l3_main_2_hwmod,
3295 .clk = "l3_div_ck",
3296 .user = OCP_USER_MPU | OCP_USER_SDMA,
3297};
3298
3299/* iss -> l3_main_2 */
3300static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3301 .master = &omap44xx_iss_hwmod,
3302 .slave = &omap44xx_l3_main_2_hwmod,
3303 .clk = "l3_div_ck",
3304 .user = OCP_USER_MPU | OCP_USER_SDMA,
3305};
3306
3307/* iva -> l3_main_2 */
3308static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3309 .master = &omap44xx_iva_hwmod,
3310 .slave = &omap44xx_l3_main_2_hwmod,
3311 .clk = "l3_div_ck",
3312 .user = OCP_USER_MPU | OCP_USER_SDMA,
3313};
3314
Paul Walmsley844a3b62012-04-19 04:04:33 -06003315/* l3_main_1 -> l3_main_2 */
3316static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3317 .master = &omap44xx_l3_main_1_hwmod,
3318 .slave = &omap44xx_l3_main_2_hwmod,
3319 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003320 .user = OCP_USER_MPU,
3321};
3322
3323/* l4_cfg -> l3_main_2 */
3324static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3325 .master = &omap44xx_l4_cfg_hwmod,
3326 .slave = &omap44xx_l3_main_2_hwmod,
3327 .clk = "l4_div_ck",
3328 .user = OCP_USER_MPU | OCP_USER_SDMA,
3329};
3330
Benoît Cousson0c668872012-04-19 13:33:55 -06003331/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003332static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06003333 .master = &omap44xx_usb_host_fs_hwmod,
3334 .slave = &omap44xx_l3_main_2_hwmod,
3335 .clk = "l3_div_ck",
3336 .user = OCP_USER_MPU | OCP_USER_SDMA,
3337};
3338
Paul Walmsley844a3b62012-04-19 04:04:33 -06003339/* usb_host_hs -> l3_main_2 */
3340static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3341 .master = &omap44xx_usb_host_hs_hwmod,
3342 .slave = &omap44xx_l3_main_2_hwmod,
3343 .clk = "l3_div_ck",
3344 .user = OCP_USER_MPU | OCP_USER_SDMA,
3345};
3346
3347/* usb_otg_hs -> l3_main_2 */
3348static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3349 .master = &omap44xx_usb_otg_hs_hwmod,
3350 .slave = &omap44xx_l3_main_2_hwmod,
3351 .clk = "l3_div_ck",
3352 .user = OCP_USER_MPU | OCP_USER_SDMA,
3353};
3354
Paul Walmsley844a3b62012-04-19 04:04:33 -06003355/* l3_main_1 -> l3_main_3 */
3356static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3357 .master = &omap44xx_l3_main_1_hwmod,
3358 .slave = &omap44xx_l3_main_3_hwmod,
3359 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003360 .user = OCP_USER_MPU,
3361};
3362
3363/* l3_main_2 -> l3_main_3 */
3364static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3365 .master = &omap44xx_l3_main_2_hwmod,
3366 .slave = &omap44xx_l3_main_3_hwmod,
3367 .clk = "l3_div_ck",
3368 .user = OCP_USER_MPU | OCP_USER_SDMA,
3369};
3370
3371/* l4_cfg -> l3_main_3 */
3372static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3373 .master = &omap44xx_l4_cfg_hwmod,
3374 .slave = &omap44xx_l3_main_3_hwmod,
3375 .clk = "l4_div_ck",
3376 .user = OCP_USER_MPU | OCP_USER_SDMA,
3377};
3378
3379/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003380static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003381 .master = &omap44xx_aess_hwmod,
3382 .slave = &omap44xx_l4_abe_hwmod,
3383 .clk = "ocp_abe_iclk",
3384 .user = OCP_USER_MPU | OCP_USER_SDMA,
3385};
3386
3387/* dsp -> l4_abe */
3388static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3389 .master = &omap44xx_dsp_hwmod,
3390 .slave = &omap44xx_l4_abe_hwmod,
3391 .clk = "ocp_abe_iclk",
3392 .user = OCP_USER_MPU | OCP_USER_SDMA,
3393};
3394
3395/* l3_main_1 -> l4_abe */
3396static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3397 .master = &omap44xx_l3_main_1_hwmod,
3398 .slave = &omap44xx_l4_abe_hwmod,
3399 .clk = "l3_div_ck",
3400 .user = OCP_USER_MPU | OCP_USER_SDMA,
3401};
3402
3403/* mpu -> l4_abe */
3404static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3405 .master = &omap44xx_mpu_hwmod,
3406 .slave = &omap44xx_l4_abe_hwmod,
3407 .clk = "ocp_abe_iclk",
3408 .user = OCP_USER_MPU | OCP_USER_SDMA,
3409};
3410
3411/* l3_main_1 -> l4_cfg */
3412static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3413 .master = &omap44xx_l3_main_1_hwmod,
3414 .slave = &omap44xx_l4_cfg_hwmod,
3415 .clk = "l3_div_ck",
3416 .user = OCP_USER_MPU | OCP_USER_SDMA,
3417};
3418
3419/* l3_main_2 -> l4_per */
3420static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3421 .master = &omap44xx_l3_main_2_hwmod,
3422 .slave = &omap44xx_l4_per_hwmod,
3423 .clk = "l3_div_ck",
3424 .user = OCP_USER_MPU | OCP_USER_SDMA,
3425};
3426
3427/* l4_cfg -> l4_wkup */
3428static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3429 .master = &omap44xx_l4_cfg_hwmod,
3430 .slave = &omap44xx_l4_wkup_hwmod,
3431 .clk = "l4_div_ck",
3432 .user = OCP_USER_MPU | OCP_USER_SDMA,
3433};
3434
3435/* mpu -> mpu_private */
3436static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3437 .master = &omap44xx_mpu_hwmod,
3438 .slave = &omap44xx_mpu_private_hwmod,
3439 .clk = "l3_div_ck",
3440 .user = OCP_USER_MPU | OCP_USER_SDMA,
3441};
3442
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003443/* l4_cfg -> ocp_wp_noc */
3444static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3445 .master = &omap44xx_l4_cfg_hwmod,
3446 .slave = &omap44xx_ocp_wp_noc_hwmod,
3447 .clk = "l4_div_ck",
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003448 .user = OCP_USER_MPU | OCP_USER_SDMA,
3449};
3450
Paul Walmsley844a3b62012-04-19 04:04:33 -06003451static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
3452 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003453 .name = "dmem",
3454 .pa_start = 0x40180000,
3455 .pa_end = 0x4018ffff
3456 },
3457 {
3458 .name = "cmem",
3459 .pa_start = 0x401a0000,
3460 .pa_end = 0x401a1fff
3461 },
3462 {
3463 .name = "smem",
3464 .pa_start = 0x401c0000,
3465 .pa_end = 0x401c5fff
3466 },
3467 {
3468 .name = "pmem",
3469 .pa_start = 0x401e0000,
3470 .pa_end = 0x401e1fff
3471 },
3472 {
3473 .name = "mpu",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003474 .pa_start = 0x401f1000,
3475 .pa_end = 0x401f13ff,
3476 .flags = ADDR_TYPE_RT
3477 },
3478 { }
3479};
3480
3481/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003482static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003483 .master = &omap44xx_l4_abe_hwmod,
3484 .slave = &omap44xx_aess_hwmod,
3485 .clk = "ocp_abe_iclk",
3486 .addr = omap44xx_aess_addrs,
3487 .user = OCP_USER_MPU,
3488};
3489
3490static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
3491 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003492 .name = "dmem_dma",
3493 .pa_start = 0x49080000,
3494 .pa_end = 0x4908ffff
3495 },
3496 {
3497 .name = "cmem_dma",
3498 .pa_start = 0x490a0000,
3499 .pa_end = 0x490a1fff
3500 },
3501 {
3502 .name = "smem_dma",
3503 .pa_start = 0x490c0000,
3504 .pa_end = 0x490c5fff
3505 },
3506 {
3507 .name = "pmem_dma",
3508 .pa_start = 0x490e0000,
3509 .pa_end = 0x490e1fff
3510 },
3511 {
3512 .name = "dma",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003513 .pa_start = 0x490f1000,
3514 .pa_end = 0x490f13ff,
3515 .flags = ADDR_TYPE_RT
3516 },
3517 { }
3518};
3519
3520/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003521static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003522 .master = &omap44xx_l4_abe_hwmod,
3523 .slave = &omap44xx_aess_hwmod,
3524 .clk = "ocp_abe_iclk",
3525 .addr = omap44xx_aess_dma_addrs,
3526 .user = OCP_USER_SDMA,
3527};
3528
Paul Walmsley42b9e382012-04-19 13:33:54 -06003529/* l3_main_2 -> c2c */
3530static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3531 .master = &omap44xx_l3_main_2_hwmod,
3532 .slave = &omap44xx_c2c_hwmod,
3533 .clk = "l3_div_ck",
3534 .user = OCP_USER_MPU | OCP_USER_SDMA,
3535};
3536
Paul Walmsley844a3b62012-04-19 04:04:33 -06003537/* l4_wkup -> counter_32k */
3538static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3539 .master = &omap44xx_l4_wkup_hwmod,
3540 .slave = &omap44xx_counter_32k_hwmod,
3541 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003542 .user = OCP_USER_MPU | OCP_USER_SDMA,
3543};
3544
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003545static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
3546 {
3547 .pa_start = 0x4a002000,
3548 .pa_end = 0x4a0027ff,
3549 .flags = ADDR_TYPE_RT
3550 },
3551 { }
3552};
3553
3554/* l4_cfg -> ctrl_module_core */
3555static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3556 .master = &omap44xx_l4_cfg_hwmod,
3557 .slave = &omap44xx_ctrl_module_core_hwmod,
3558 .clk = "l4_div_ck",
3559 .addr = omap44xx_ctrl_module_core_addrs,
3560 .user = OCP_USER_MPU | OCP_USER_SDMA,
3561};
3562
3563static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
3564 {
3565 .pa_start = 0x4a100000,
3566 .pa_end = 0x4a1007ff,
3567 .flags = ADDR_TYPE_RT
3568 },
3569 { }
3570};
3571
3572/* l4_cfg -> ctrl_module_pad_core */
3573static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3574 .master = &omap44xx_l4_cfg_hwmod,
3575 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3576 .clk = "l4_div_ck",
3577 .addr = omap44xx_ctrl_module_pad_core_addrs,
3578 .user = OCP_USER_MPU | OCP_USER_SDMA,
3579};
3580
3581static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
3582 {
3583 .pa_start = 0x4a30c000,
3584 .pa_end = 0x4a30c7ff,
3585 .flags = ADDR_TYPE_RT
3586 },
3587 { }
3588};
3589
3590/* l4_wkup -> ctrl_module_wkup */
3591static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3592 .master = &omap44xx_l4_wkup_hwmod,
3593 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3594 .clk = "l4_wkup_clk_mux_ck",
3595 .addr = omap44xx_ctrl_module_wkup_addrs,
3596 .user = OCP_USER_MPU | OCP_USER_SDMA,
3597};
3598
3599static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
3600 {
3601 .pa_start = 0x4a31e000,
3602 .pa_end = 0x4a31e7ff,
3603 .flags = ADDR_TYPE_RT
3604 },
3605 { }
3606};
3607
3608/* l4_wkup -> ctrl_module_pad_wkup */
3609static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3610 .master = &omap44xx_l4_wkup_hwmod,
3611 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3612 .clk = "l4_wkup_clk_mux_ck",
3613 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
3614 .user = OCP_USER_MPU | OCP_USER_SDMA,
3615};
3616
Benoît Cousson96566042012-04-19 13:33:59 -06003617/* l3_instr -> debugss */
3618static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3619 .master = &omap44xx_l3_instr_hwmod,
3620 .slave = &omap44xx_debugss_hwmod,
3621 .clk = "l3_div_ck",
Benoît Cousson96566042012-04-19 13:33:59 -06003622 .user = OCP_USER_MPU | OCP_USER_SDMA,
3623};
3624
Paul Walmsley844a3b62012-04-19 04:04:33 -06003625static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
3626 {
3627 .pa_start = 0x4a056000,
3628 .pa_end = 0x4a056fff,
3629 .flags = ADDR_TYPE_RT
3630 },
3631 { }
3632};
3633
3634/* l4_cfg -> dma_system */
3635static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3636 .master = &omap44xx_l4_cfg_hwmod,
3637 .slave = &omap44xx_dma_system_hwmod,
3638 .clk = "l4_div_ck",
3639 .addr = omap44xx_dma_system_addrs,
3640 .user = OCP_USER_MPU | OCP_USER_SDMA,
3641};
3642
Paul Walmsley844a3b62012-04-19 04:04:33 -06003643/* l4_abe -> dmic */
3644static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3645 .master = &omap44xx_l4_abe_hwmod,
3646 .slave = &omap44xx_dmic_hwmod,
3647 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003648 .user = OCP_USER_MPU,
3649};
3650
Paul Walmsley844a3b62012-04-19 04:04:33 -06003651/* l4_abe -> dmic (dma) */
3652static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
3653 .master = &omap44xx_l4_abe_hwmod,
3654 .slave = &omap44xx_dmic_hwmod,
3655 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003656 .user = OCP_USER_SDMA,
3657};
3658
3659/* dsp -> iva */
3660static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3661 .master = &omap44xx_dsp_hwmod,
3662 .slave = &omap44xx_iva_hwmod,
3663 .clk = "dpll_iva_m5x2_ck",
3664 .user = OCP_USER_DSP,
3665};
3666
Paul Walmsley42b9e382012-04-19 13:33:54 -06003667/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003668static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003669 .master = &omap44xx_dsp_hwmod,
3670 .slave = &omap44xx_sl2if_hwmod,
3671 .clk = "dpll_iva_m5x2_ck",
3672 .user = OCP_USER_DSP,
3673};
3674
Paul Walmsley844a3b62012-04-19 04:04:33 -06003675/* l4_cfg -> dsp */
3676static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3677 .master = &omap44xx_l4_cfg_hwmod,
3678 .slave = &omap44xx_dsp_hwmod,
3679 .clk = "l4_div_ck",
3680 .user = OCP_USER_MPU | OCP_USER_SDMA,
3681};
3682
3683static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
3684 {
3685 .pa_start = 0x58000000,
3686 .pa_end = 0x5800007f,
3687 .flags = ADDR_TYPE_RT
3688 },
3689 { }
3690};
3691
3692/* l3_main_2 -> dss */
3693static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3694 .master = &omap44xx_l3_main_2_hwmod,
3695 .slave = &omap44xx_dss_hwmod,
3696 .clk = "dss_fck",
3697 .addr = omap44xx_dss_dma_addrs,
3698 .user = OCP_USER_SDMA,
3699};
3700
3701static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
3702 {
3703 .pa_start = 0x48040000,
3704 .pa_end = 0x4804007f,
3705 .flags = ADDR_TYPE_RT
3706 },
3707 { }
3708};
3709
3710/* l4_per -> dss */
3711static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3712 .master = &omap44xx_l4_per_hwmod,
3713 .slave = &omap44xx_dss_hwmod,
3714 .clk = "l4_div_ck",
3715 .addr = omap44xx_dss_addrs,
3716 .user = OCP_USER_MPU,
3717};
3718
3719static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
3720 {
3721 .pa_start = 0x58001000,
3722 .pa_end = 0x58001fff,
3723 .flags = ADDR_TYPE_RT
3724 },
3725 { }
3726};
3727
3728/* l3_main_2 -> dss_dispc */
3729static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3730 .master = &omap44xx_l3_main_2_hwmod,
3731 .slave = &omap44xx_dss_dispc_hwmod,
3732 .clk = "dss_fck",
3733 .addr = omap44xx_dss_dispc_dma_addrs,
3734 .user = OCP_USER_SDMA,
3735};
3736
3737static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
3738 {
3739 .pa_start = 0x48041000,
3740 .pa_end = 0x48041fff,
3741 .flags = ADDR_TYPE_RT
3742 },
3743 { }
3744};
3745
3746/* l4_per -> dss_dispc */
3747static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3748 .master = &omap44xx_l4_per_hwmod,
3749 .slave = &omap44xx_dss_dispc_hwmod,
3750 .clk = "l4_div_ck",
3751 .addr = omap44xx_dss_dispc_addrs,
3752 .user = OCP_USER_MPU,
3753};
3754
3755static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
3756 {
3757 .pa_start = 0x58004000,
3758 .pa_end = 0x580041ff,
3759 .flags = ADDR_TYPE_RT
3760 },
3761 { }
3762};
3763
3764/* l3_main_2 -> dss_dsi1 */
3765static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3766 .master = &omap44xx_l3_main_2_hwmod,
3767 .slave = &omap44xx_dss_dsi1_hwmod,
3768 .clk = "dss_fck",
3769 .addr = omap44xx_dss_dsi1_dma_addrs,
3770 .user = OCP_USER_SDMA,
3771};
3772
3773static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
3774 {
3775 .pa_start = 0x48044000,
3776 .pa_end = 0x480441ff,
3777 .flags = ADDR_TYPE_RT
3778 },
3779 { }
3780};
3781
3782/* l4_per -> dss_dsi1 */
3783static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3784 .master = &omap44xx_l4_per_hwmod,
3785 .slave = &omap44xx_dss_dsi1_hwmod,
3786 .clk = "l4_div_ck",
3787 .addr = omap44xx_dss_dsi1_addrs,
3788 .user = OCP_USER_MPU,
3789};
3790
3791static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
3792 {
3793 .pa_start = 0x58005000,
3794 .pa_end = 0x580051ff,
3795 .flags = ADDR_TYPE_RT
3796 },
3797 { }
3798};
3799
3800/* l3_main_2 -> dss_dsi2 */
3801static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3802 .master = &omap44xx_l3_main_2_hwmod,
3803 .slave = &omap44xx_dss_dsi2_hwmod,
3804 .clk = "dss_fck",
3805 .addr = omap44xx_dss_dsi2_dma_addrs,
3806 .user = OCP_USER_SDMA,
3807};
3808
3809static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
3810 {
3811 .pa_start = 0x48045000,
3812 .pa_end = 0x480451ff,
3813 .flags = ADDR_TYPE_RT
3814 },
3815 { }
3816};
3817
3818/* l4_per -> dss_dsi2 */
3819static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3820 .master = &omap44xx_l4_per_hwmod,
3821 .slave = &omap44xx_dss_dsi2_hwmod,
3822 .clk = "l4_div_ck",
3823 .addr = omap44xx_dss_dsi2_addrs,
3824 .user = OCP_USER_MPU,
3825};
3826
3827static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
3828 {
3829 .pa_start = 0x58006000,
3830 .pa_end = 0x58006fff,
3831 .flags = ADDR_TYPE_RT
3832 },
3833 { }
3834};
3835
3836/* l3_main_2 -> dss_hdmi */
3837static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3838 .master = &omap44xx_l3_main_2_hwmod,
3839 .slave = &omap44xx_dss_hdmi_hwmod,
3840 .clk = "dss_fck",
3841 .addr = omap44xx_dss_hdmi_dma_addrs,
3842 .user = OCP_USER_SDMA,
3843};
3844
3845static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
3846 {
3847 .pa_start = 0x48046000,
3848 .pa_end = 0x48046fff,
3849 .flags = ADDR_TYPE_RT
3850 },
3851 { }
3852};
3853
3854/* l4_per -> dss_hdmi */
3855static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3856 .master = &omap44xx_l4_per_hwmod,
3857 .slave = &omap44xx_dss_hdmi_hwmod,
3858 .clk = "l4_div_ck",
3859 .addr = omap44xx_dss_hdmi_addrs,
3860 .user = OCP_USER_MPU,
3861};
3862
3863static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
3864 {
3865 .pa_start = 0x58002000,
3866 .pa_end = 0x580020ff,
3867 .flags = ADDR_TYPE_RT
3868 },
3869 { }
3870};
3871
3872/* l3_main_2 -> dss_rfbi */
3873static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3874 .master = &omap44xx_l3_main_2_hwmod,
3875 .slave = &omap44xx_dss_rfbi_hwmod,
3876 .clk = "dss_fck",
3877 .addr = omap44xx_dss_rfbi_dma_addrs,
3878 .user = OCP_USER_SDMA,
3879};
3880
3881static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
3882 {
3883 .pa_start = 0x48042000,
3884 .pa_end = 0x480420ff,
3885 .flags = ADDR_TYPE_RT
3886 },
3887 { }
3888};
3889
3890/* l4_per -> dss_rfbi */
3891static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3892 .master = &omap44xx_l4_per_hwmod,
3893 .slave = &omap44xx_dss_rfbi_hwmod,
3894 .clk = "l4_div_ck",
3895 .addr = omap44xx_dss_rfbi_addrs,
3896 .user = OCP_USER_MPU,
3897};
3898
3899static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
3900 {
3901 .pa_start = 0x58003000,
3902 .pa_end = 0x580030ff,
3903 .flags = ADDR_TYPE_RT
3904 },
3905 { }
3906};
3907
3908/* l3_main_2 -> dss_venc */
3909static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3910 .master = &omap44xx_l3_main_2_hwmod,
3911 .slave = &omap44xx_dss_venc_hwmod,
3912 .clk = "dss_fck",
3913 .addr = omap44xx_dss_venc_dma_addrs,
3914 .user = OCP_USER_SDMA,
3915};
3916
3917static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
3918 {
3919 .pa_start = 0x48043000,
3920 .pa_end = 0x480430ff,
3921 .flags = ADDR_TYPE_RT
3922 },
3923 { }
3924};
3925
3926/* l4_per -> dss_venc */
3927static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3928 .master = &omap44xx_l4_per_hwmod,
3929 .slave = &omap44xx_dss_venc_hwmod,
3930 .clk = "l4_div_ck",
3931 .addr = omap44xx_dss_venc_addrs,
3932 .user = OCP_USER_MPU,
3933};
3934
Paul Walmsley42b9e382012-04-19 13:33:54 -06003935static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
3936 {
3937 .pa_start = 0x48078000,
3938 .pa_end = 0x48078fff,
3939 .flags = ADDR_TYPE_RT
3940 },
3941 { }
3942};
3943
3944/* l4_per -> elm */
3945static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3946 .master = &omap44xx_l4_per_hwmod,
3947 .slave = &omap44xx_elm_hwmod,
3948 .clk = "l4_div_ck",
3949 .addr = omap44xx_elm_addrs,
3950 .user = OCP_USER_MPU | OCP_USER_SDMA,
3951};
3952
Ming Leib050f682012-04-19 13:33:50 -06003953static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
3954 {
3955 .pa_start = 0x4a10a000,
3956 .pa_end = 0x4a10a1ff,
3957 .flags = ADDR_TYPE_RT
3958 },
3959 { }
3960};
3961
3962/* l4_cfg -> fdif */
3963static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3964 .master = &omap44xx_l4_cfg_hwmod,
3965 .slave = &omap44xx_fdif_hwmod,
3966 .clk = "l4_div_ck",
3967 .addr = omap44xx_fdif_addrs,
3968 .user = OCP_USER_MPU | OCP_USER_SDMA,
3969};
3970
Paul Walmsley844a3b62012-04-19 04:04:33 -06003971/* l4_wkup -> gpio1 */
3972static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3973 .master = &omap44xx_l4_wkup_hwmod,
3974 .slave = &omap44xx_gpio1_hwmod,
3975 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003976 .user = OCP_USER_MPU | OCP_USER_SDMA,
3977};
3978
Paul Walmsley844a3b62012-04-19 04:04:33 -06003979/* l4_per -> gpio2 */
3980static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3981 .master = &omap44xx_l4_per_hwmod,
3982 .slave = &omap44xx_gpio2_hwmod,
3983 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003984 .user = OCP_USER_MPU | OCP_USER_SDMA,
3985};
3986
Paul Walmsley844a3b62012-04-19 04:04:33 -06003987/* l4_per -> gpio3 */
3988static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3989 .master = &omap44xx_l4_per_hwmod,
3990 .slave = &omap44xx_gpio3_hwmod,
3991 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003992 .user = OCP_USER_MPU | OCP_USER_SDMA,
3993};
3994
Paul Walmsley844a3b62012-04-19 04:04:33 -06003995/* l4_per -> gpio4 */
3996static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
3997 .master = &omap44xx_l4_per_hwmod,
3998 .slave = &omap44xx_gpio4_hwmod,
3999 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004000 .user = OCP_USER_MPU | OCP_USER_SDMA,
4001};
4002
Paul Walmsley844a3b62012-04-19 04:04:33 -06004003/* l4_per -> gpio5 */
4004static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
4005 .master = &omap44xx_l4_per_hwmod,
4006 .slave = &omap44xx_gpio5_hwmod,
4007 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004008 .user = OCP_USER_MPU | OCP_USER_SDMA,
4009};
4010
Paul Walmsley844a3b62012-04-19 04:04:33 -06004011/* l4_per -> gpio6 */
4012static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
4013 .master = &omap44xx_l4_per_hwmod,
4014 .slave = &omap44xx_gpio6_hwmod,
4015 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004016 .user = OCP_USER_MPU | OCP_USER_SDMA,
4017};
4018
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004019/* l3_main_2 -> gpmc */
4020static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4021 .master = &omap44xx_l3_main_2_hwmod,
4022 .slave = &omap44xx_gpmc_hwmod,
4023 .clk = "l3_div_ck",
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004024 .user = OCP_USER_MPU | OCP_USER_SDMA,
4025};
4026
Paul Walmsley9def3902012-04-19 13:33:53 -06004027static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4028 {
4029 .pa_start = 0x56000000,
4030 .pa_end = 0x5600ffff,
4031 .flags = ADDR_TYPE_RT
4032 },
4033 { }
4034};
4035
4036/* l3_main_2 -> gpu */
4037static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4038 .master = &omap44xx_l3_main_2_hwmod,
4039 .slave = &omap44xx_gpu_hwmod,
4040 .clk = "l3_div_ck",
4041 .addr = omap44xx_gpu_addrs,
4042 .user = OCP_USER_MPU | OCP_USER_SDMA,
4043};
4044
Paul Walmsleya091c082012-04-19 13:33:50 -06004045static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4046 {
4047 .pa_start = 0x480b2000,
4048 .pa_end = 0x480b201f,
4049 .flags = ADDR_TYPE_RT
4050 },
4051 { }
4052};
4053
4054/* l4_per -> hdq1w */
4055static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
4056 .master = &omap44xx_l4_per_hwmod,
4057 .slave = &omap44xx_hdq1w_hwmod,
4058 .clk = "l4_div_ck",
4059 .addr = omap44xx_hdq1w_addrs,
4060 .user = OCP_USER_MPU | OCP_USER_SDMA,
4061};
4062
Paul Walmsley844a3b62012-04-19 04:04:33 -06004063static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
4064 {
4065 .pa_start = 0x4a058000,
4066 .pa_end = 0x4a05bfff,
4067 .flags = ADDR_TYPE_RT
4068 },
4069 { }
4070};
4071
4072/* l4_cfg -> hsi */
4073static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
4074 .master = &omap44xx_l4_cfg_hwmod,
4075 .slave = &omap44xx_hsi_hwmod,
4076 .clk = "l4_div_ck",
4077 .addr = omap44xx_hsi_addrs,
4078 .user = OCP_USER_MPU | OCP_USER_SDMA,
4079};
4080
Paul Walmsley844a3b62012-04-19 04:04:33 -06004081/* l4_per -> i2c1 */
4082static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
4083 .master = &omap44xx_l4_per_hwmod,
4084 .slave = &omap44xx_i2c1_hwmod,
4085 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004086 .user = OCP_USER_MPU | OCP_USER_SDMA,
4087};
4088
Paul Walmsley844a3b62012-04-19 04:04:33 -06004089/* l4_per -> i2c2 */
4090static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
4091 .master = &omap44xx_l4_per_hwmod,
4092 .slave = &omap44xx_i2c2_hwmod,
4093 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004094 .user = OCP_USER_MPU | OCP_USER_SDMA,
4095};
4096
Paul Walmsley844a3b62012-04-19 04:04:33 -06004097/* l4_per -> i2c3 */
4098static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
4099 .master = &omap44xx_l4_per_hwmod,
4100 .slave = &omap44xx_i2c3_hwmod,
4101 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004102 .user = OCP_USER_MPU | OCP_USER_SDMA,
4103};
4104
Paul Walmsley844a3b62012-04-19 04:04:33 -06004105/* l4_per -> i2c4 */
4106static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
4107 .master = &omap44xx_l4_per_hwmod,
4108 .slave = &omap44xx_i2c4_hwmod,
4109 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004110 .user = OCP_USER_MPU | OCP_USER_SDMA,
4111};
4112
4113/* l3_main_2 -> ipu */
4114static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
4115 .master = &omap44xx_l3_main_2_hwmod,
4116 .slave = &omap44xx_ipu_hwmod,
4117 .clk = "l3_div_ck",
4118 .user = OCP_USER_MPU | OCP_USER_SDMA,
4119};
4120
4121static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
4122 {
4123 .pa_start = 0x52000000,
4124 .pa_end = 0x520000ff,
4125 .flags = ADDR_TYPE_RT
4126 },
4127 { }
4128};
4129
4130/* l3_main_2 -> iss */
4131static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
4132 .master = &omap44xx_l3_main_2_hwmod,
4133 .slave = &omap44xx_iss_hwmod,
4134 .clk = "l3_div_ck",
4135 .addr = omap44xx_iss_addrs,
4136 .user = OCP_USER_MPU | OCP_USER_SDMA,
4137};
4138
Paul Walmsley42b9e382012-04-19 13:33:54 -06004139/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004140static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004141 .master = &omap44xx_iva_hwmod,
4142 .slave = &omap44xx_sl2if_hwmod,
4143 .clk = "dpll_iva_m5x2_ck",
4144 .user = OCP_USER_IVA,
4145};
4146
Paul Walmsley844a3b62012-04-19 04:04:33 -06004147/* l3_main_2 -> iva */
4148static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
4149 .master = &omap44xx_l3_main_2_hwmod,
4150 .slave = &omap44xx_iva_hwmod,
4151 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004152 .user = OCP_USER_MPU,
4153};
4154
Paul Walmsley844a3b62012-04-19 04:04:33 -06004155/* l4_wkup -> kbd */
4156static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
4157 .master = &omap44xx_l4_wkup_hwmod,
4158 .slave = &omap44xx_kbd_hwmod,
4159 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004160 .user = OCP_USER_MPU | OCP_USER_SDMA,
4161};
4162
4163static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
4164 {
4165 .pa_start = 0x4a0f4000,
4166 .pa_end = 0x4a0f41ff,
4167 .flags = ADDR_TYPE_RT
4168 },
4169 { }
4170};
4171
4172/* l4_cfg -> mailbox */
4173static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
4174 .master = &omap44xx_l4_cfg_hwmod,
4175 .slave = &omap44xx_mailbox_hwmod,
4176 .clk = "l4_div_ck",
4177 .addr = omap44xx_mailbox_addrs,
4178 .user = OCP_USER_MPU | OCP_USER_SDMA,
4179};
4180
Benoît Cousson896d4e92012-04-19 13:33:54 -06004181static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
4182 {
4183 .pa_start = 0x40128000,
4184 .pa_end = 0x401283ff,
4185 .flags = ADDR_TYPE_RT
4186 },
4187 { }
4188};
4189
4190/* l4_abe -> mcasp */
4191static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
4192 .master = &omap44xx_l4_abe_hwmod,
4193 .slave = &omap44xx_mcasp_hwmod,
4194 .clk = "ocp_abe_iclk",
4195 .addr = omap44xx_mcasp_addrs,
4196 .user = OCP_USER_MPU,
4197};
4198
4199static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
4200 {
4201 .pa_start = 0x49028000,
4202 .pa_end = 0x490283ff,
4203 .flags = ADDR_TYPE_RT
4204 },
4205 { }
4206};
4207
4208/* l4_abe -> mcasp (dma) */
4209static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
4210 .master = &omap44xx_l4_abe_hwmod,
4211 .slave = &omap44xx_mcasp_hwmod,
4212 .clk = "ocp_abe_iclk",
4213 .addr = omap44xx_mcasp_dma_addrs,
4214 .user = OCP_USER_SDMA,
4215};
4216
Paul Walmsley844a3b62012-04-19 04:04:33 -06004217/* l4_abe -> mcbsp1 */
4218static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
4219 .master = &omap44xx_l4_abe_hwmod,
4220 .slave = &omap44xx_mcbsp1_hwmod,
4221 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004222 .user = OCP_USER_MPU,
4223};
4224
Paul Walmsley844a3b62012-04-19 04:04:33 -06004225/* l4_abe -> mcbsp1 (dma) */
4226static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
4227 .master = &omap44xx_l4_abe_hwmod,
4228 .slave = &omap44xx_mcbsp1_hwmod,
4229 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004230 .user = OCP_USER_SDMA,
4231};
4232
Paul Walmsley844a3b62012-04-19 04:04:33 -06004233/* l4_abe -> mcbsp2 */
4234static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
4235 .master = &omap44xx_l4_abe_hwmod,
4236 .slave = &omap44xx_mcbsp2_hwmod,
4237 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004238 .user = OCP_USER_MPU,
4239};
4240
Paul Walmsley844a3b62012-04-19 04:04:33 -06004241/* l4_abe -> mcbsp2 (dma) */
4242static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
4243 .master = &omap44xx_l4_abe_hwmod,
4244 .slave = &omap44xx_mcbsp2_hwmod,
4245 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004246 .user = OCP_USER_SDMA,
4247};
4248
Paul Walmsley844a3b62012-04-19 04:04:33 -06004249/* l4_abe -> mcbsp3 */
4250static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
4251 .master = &omap44xx_l4_abe_hwmod,
4252 .slave = &omap44xx_mcbsp3_hwmod,
4253 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004254 .user = OCP_USER_MPU,
4255};
4256
Paul Walmsley844a3b62012-04-19 04:04:33 -06004257/* l4_abe -> mcbsp3 (dma) */
4258static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
4259 .master = &omap44xx_l4_abe_hwmod,
4260 .slave = &omap44xx_mcbsp3_hwmod,
4261 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004262 .user = OCP_USER_SDMA,
4263};
4264
Paul Walmsley844a3b62012-04-19 04:04:33 -06004265/* l4_per -> mcbsp4 */
4266static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
4267 .master = &omap44xx_l4_per_hwmod,
4268 .slave = &omap44xx_mcbsp4_hwmod,
4269 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004270 .user = OCP_USER_MPU | OCP_USER_SDMA,
4271};
4272
Paul Walmsley844a3b62012-04-19 04:04:33 -06004273/* l4_abe -> mcpdm */
4274static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
4275 .master = &omap44xx_l4_abe_hwmod,
4276 .slave = &omap44xx_mcpdm_hwmod,
4277 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004278 .user = OCP_USER_MPU,
4279};
4280
Paul Walmsley844a3b62012-04-19 04:04:33 -06004281/* l4_abe -> mcpdm (dma) */
4282static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
4283 .master = &omap44xx_l4_abe_hwmod,
4284 .slave = &omap44xx_mcpdm_hwmod,
4285 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004286 .user = OCP_USER_SDMA,
4287};
4288
Paul Walmsley844a3b62012-04-19 04:04:33 -06004289/* l4_per -> mcspi1 */
4290static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
4291 .master = &omap44xx_l4_per_hwmod,
4292 .slave = &omap44xx_mcspi1_hwmod,
4293 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004294 .user = OCP_USER_MPU | OCP_USER_SDMA,
4295};
4296
Paul Walmsley844a3b62012-04-19 04:04:33 -06004297/* l4_per -> mcspi2 */
4298static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
4299 .master = &omap44xx_l4_per_hwmod,
4300 .slave = &omap44xx_mcspi2_hwmod,
4301 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004302 .user = OCP_USER_MPU | OCP_USER_SDMA,
4303};
4304
Paul Walmsley844a3b62012-04-19 04:04:33 -06004305/* l4_per -> mcspi3 */
4306static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
4307 .master = &omap44xx_l4_per_hwmod,
4308 .slave = &omap44xx_mcspi3_hwmod,
4309 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004310 .user = OCP_USER_MPU | OCP_USER_SDMA,
4311};
4312
Paul Walmsley844a3b62012-04-19 04:04:33 -06004313/* l4_per -> mcspi4 */
4314static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
4315 .master = &omap44xx_l4_per_hwmod,
4316 .slave = &omap44xx_mcspi4_hwmod,
4317 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004318 .user = OCP_USER_MPU | OCP_USER_SDMA,
4319};
4320
Paul Walmsley844a3b62012-04-19 04:04:33 -06004321/* l4_per -> mmc1 */
4322static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
4323 .master = &omap44xx_l4_per_hwmod,
4324 .slave = &omap44xx_mmc1_hwmod,
4325 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004326 .user = OCP_USER_MPU | OCP_USER_SDMA,
4327};
4328
Paul Walmsley844a3b62012-04-19 04:04:33 -06004329/* l4_per -> mmc2 */
4330static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
4331 .master = &omap44xx_l4_per_hwmod,
4332 .slave = &omap44xx_mmc2_hwmod,
4333 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004334 .user = OCP_USER_MPU | OCP_USER_SDMA,
4335};
4336
Paul Walmsley844a3b62012-04-19 04:04:33 -06004337/* l4_per -> mmc3 */
4338static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
4339 .master = &omap44xx_l4_per_hwmod,
4340 .slave = &omap44xx_mmc3_hwmod,
4341 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004342 .user = OCP_USER_MPU | OCP_USER_SDMA,
4343};
4344
Paul Walmsley844a3b62012-04-19 04:04:33 -06004345/* l4_per -> mmc4 */
4346static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
4347 .master = &omap44xx_l4_per_hwmod,
4348 .slave = &omap44xx_mmc4_hwmod,
4349 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004350 .user = OCP_USER_MPU | OCP_USER_SDMA,
4351};
4352
Paul Walmsley844a3b62012-04-19 04:04:33 -06004353/* l4_per -> mmc5 */
4354static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
4355 .master = &omap44xx_l4_per_hwmod,
4356 .slave = &omap44xx_mmc5_hwmod,
4357 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004358 .user = OCP_USER_MPU | OCP_USER_SDMA,
4359};
4360
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004361/* l3_main_2 -> ocmc_ram */
4362static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
4363 .master = &omap44xx_l3_main_2_hwmod,
4364 .slave = &omap44xx_ocmc_ram_hwmod,
4365 .clk = "l3_div_ck",
4366 .user = OCP_USER_MPU | OCP_USER_SDMA,
4367};
4368
Benoît Cousson0c668872012-04-19 13:33:55 -06004369/* l4_cfg -> ocp2scp_usb_phy */
4370static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
4371 .master = &omap44xx_l4_cfg_hwmod,
4372 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
4373 .clk = "l4_div_ck",
4374 .user = OCP_USER_MPU | OCP_USER_SDMA,
4375};
4376
Paul Walmsley794b4802012-04-19 13:33:58 -06004377/* mpu_private -> prcm_mpu */
4378static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
4379 .master = &omap44xx_mpu_private_hwmod,
4380 .slave = &omap44xx_prcm_mpu_hwmod,
4381 .clk = "l3_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004382 .user = OCP_USER_MPU | OCP_USER_SDMA,
4383};
4384
Paul Walmsley794b4802012-04-19 13:33:58 -06004385/* l4_wkup -> cm_core_aon */
4386static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
4387 .master = &omap44xx_l4_wkup_hwmod,
4388 .slave = &omap44xx_cm_core_aon_hwmod,
4389 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004390 .user = OCP_USER_MPU | OCP_USER_SDMA,
4391};
4392
Paul Walmsley794b4802012-04-19 13:33:58 -06004393/* l4_cfg -> cm_core */
4394static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
4395 .master = &omap44xx_l4_cfg_hwmod,
4396 .slave = &omap44xx_cm_core_hwmod,
4397 .clk = "l4_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004398 .user = OCP_USER_MPU | OCP_USER_SDMA,
4399};
4400
Paul Walmsley794b4802012-04-19 13:33:58 -06004401/* l4_wkup -> prm */
4402static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
4403 .master = &omap44xx_l4_wkup_hwmod,
4404 .slave = &omap44xx_prm_hwmod,
4405 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004406 .user = OCP_USER_MPU | OCP_USER_SDMA,
4407};
4408
Paul Walmsley794b4802012-04-19 13:33:58 -06004409/* l4_wkup -> scrm */
4410static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
4411 .master = &omap44xx_l4_wkup_hwmod,
4412 .slave = &omap44xx_scrm_hwmod,
4413 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004414 .user = OCP_USER_MPU | OCP_USER_SDMA,
4415};
4416
Paul Walmsley42b9e382012-04-19 13:33:54 -06004417/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004418static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004419 .master = &omap44xx_l3_main_2_hwmod,
4420 .slave = &omap44xx_sl2if_hwmod,
4421 .clk = "l3_div_ck",
4422 .user = OCP_USER_MPU | OCP_USER_SDMA,
4423};
4424
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004425static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
4426 {
4427 .pa_start = 0x4012c000,
4428 .pa_end = 0x4012c3ff,
4429 .flags = ADDR_TYPE_RT
4430 },
4431 { }
4432};
4433
4434/* l4_abe -> slimbus1 */
4435static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
4436 .master = &omap44xx_l4_abe_hwmod,
4437 .slave = &omap44xx_slimbus1_hwmod,
4438 .clk = "ocp_abe_iclk",
4439 .addr = omap44xx_slimbus1_addrs,
4440 .user = OCP_USER_MPU,
4441};
4442
4443static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
4444 {
4445 .pa_start = 0x4902c000,
4446 .pa_end = 0x4902c3ff,
4447 .flags = ADDR_TYPE_RT
4448 },
4449 { }
4450};
4451
4452/* l4_abe -> slimbus1 (dma) */
4453static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
4454 .master = &omap44xx_l4_abe_hwmod,
4455 .slave = &omap44xx_slimbus1_hwmod,
4456 .clk = "ocp_abe_iclk",
4457 .addr = omap44xx_slimbus1_dma_addrs,
4458 .user = OCP_USER_SDMA,
4459};
4460
4461static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
4462 {
4463 .pa_start = 0x48076000,
4464 .pa_end = 0x480763ff,
4465 .flags = ADDR_TYPE_RT
4466 },
4467 { }
4468};
4469
4470/* l4_per -> slimbus2 */
4471static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
4472 .master = &omap44xx_l4_per_hwmod,
4473 .slave = &omap44xx_slimbus2_hwmod,
4474 .clk = "l4_div_ck",
4475 .addr = omap44xx_slimbus2_addrs,
4476 .user = OCP_USER_MPU | OCP_USER_SDMA,
4477};
4478
Paul Walmsley844a3b62012-04-19 04:04:33 -06004479static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
4480 {
4481 .pa_start = 0x4a0dd000,
4482 .pa_end = 0x4a0dd03f,
4483 .flags = ADDR_TYPE_RT
4484 },
4485 { }
4486};
4487
4488/* l4_cfg -> smartreflex_core */
4489static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
4490 .master = &omap44xx_l4_cfg_hwmod,
4491 .slave = &omap44xx_smartreflex_core_hwmod,
4492 .clk = "l4_div_ck",
4493 .addr = omap44xx_smartreflex_core_addrs,
4494 .user = OCP_USER_MPU | OCP_USER_SDMA,
4495};
4496
4497static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
4498 {
4499 .pa_start = 0x4a0db000,
4500 .pa_end = 0x4a0db03f,
4501 .flags = ADDR_TYPE_RT
4502 },
4503 { }
4504};
4505
4506/* l4_cfg -> smartreflex_iva */
4507static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4508 .master = &omap44xx_l4_cfg_hwmod,
4509 .slave = &omap44xx_smartreflex_iva_hwmod,
4510 .clk = "l4_div_ck",
4511 .addr = omap44xx_smartreflex_iva_addrs,
4512 .user = OCP_USER_MPU | OCP_USER_SDMA,
4513};
4514
4515static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4516 {
4517 .pa_start = 0x4a0d9000,
4518 .pa_end = 0x4a0d903f,
4519 .flags = ADDR_TYPE_RT
4520 },
4521 { }
4522};
4523
4524/* l4_cfg -> smartreflex_mpu */
4525static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4526 .master = &omap44xx_l4_cfg_hwmod,
4527 .slave = &omap44xx_smartreflex_mpu_hwmod,
4528 .clk = "l4_div_ck",
4529 .addr = omap44xx_smartreflex_mpu_addrs,
4530 .user = OCP_USER_MPU | OCP_USER_SDMA,
4531};
4532
4533static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
4534 {
4535 .pa_start = 0x4a0f6000,
4536 .pa_end = 0x4a0f6fff,
4537 .flags = ADDR_TYPE_RT
4538 },
4539 { }
4540};
4541
4542/* l4_cfg -> spinlock */
4543static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4544 .master = &omap44xx_l4_cfg_hwmod,
4545 .slave = &omap44xx_spinlock_hwmod,
4546 .clk = "l4_div_ck",
4547 .addr = omap44xx_spinlock_addrs,
4548 .user = OCP_USER_MPU | OCP_USER_SDMA,
4549};
4550
Paul Walmsley844a3b62012-04-19 04:04:33 -06004551/* l4_wkup -> timer1 */
4552static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4553 .master = &omap44xx_l4_wkup_hwmod,
4554 .slave = &omap44xx_timer1_hwmod,
4555 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004556 .user = OCP_USER_MPU | OCP_USER_SDMA,
4557};
4558
Paul Walmsley844a3b62012-04-19 04:04:33 -06004559/* l4_per -> timer2 */
4560static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4561 .master = &omap44xx_l4_per_hwmod,
4562 .slave = &omap44xx_timer2_hwmod,
4563 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004564 .user = OCP_USER_MPU | OCP_USER_SDMA,
4565};
4566
Paul Walmsley844a3b62012-04-19 04:04:33 -06004567/* l4_per -> timer3 */
4568static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4569 .master = &omap44xx_l4_per_hwmod,
4570 .slave = &omap44xx_timer3_hwmod,
4571 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004572 .user = OCP_USER_MPU | OCP_USER_SDMA,
4573};
4574
Paul Walmsley844a3b62012-04-19 04:04:33 -06004575/* l4_per -> timer4 */
4576static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4577 .master = &omap44xx_l4_per_hwmod,
4578 .slave = &omap44xx_timer4_hwmod,
4579 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004580 .user = OCP_USER_MPU | OCP_USER_SDMA,
4581};
4582
Paul Walmsley844a3b62012-04-19 04:04:33 -06004583/* l4_abe -> timer5 */
4584static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4585 .master = &omap44xx_l4_abe_hwmod,
4586 .slave = &omap44xx_timer5_hwmod,
4587 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004588 .user = OCP_USER_MPU,
4589};
4590
Paul Walmsley844a3b62012-04-19 04:04:33 -06004591/* l4_abe -> timer5 (dma) */
4592static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
4593 .master = &omap44xx_l4_abe_hwmod,
4594 .slave = &omap44xx_timer5_hwmod,
4595 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004596 .user = OCP_USER_SDMA,
4597};
4598
Paul Walmsley844a3b62012-04-19 04:04:33 -06004599/* l4_abe -> timer6 */
4600static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4601 .master = &omap44xx_l4_abe_hwmod,
4602 .slave = &omap44xx_timer6_hwmod,
4603 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004604 .user = OCP_USER_MPU,
4605};
4606
Paul Walmsley844a3b62012-04-19 04:04:33 -06004607/* l4_abe -> timer6 (dma) */
4608static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
4609 .master = &omap44xx_l4_abe_hwmod,
4610 .slave = &omap44xx_timer6_hwmod,
4611 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004612 .user = OCP_USER_SDMA,
4613};
4614
Paul Walmsley844a3b62012-04-19 04:04:33 -06004615/* l4_abe -> timer7 */
4616static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4617 .master = &omap44xx_l4_abe_hwmod,
4618 .slave = &omap44xx_timer7_hwmod,
4619 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004620 .user = OCP_USER_MPU,
4621};
4622
Paul Walmsley844a3b62012-04-19 04:04:33 -06004623/* l4_abe -> timer7 (dma) */
4624static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
4625 .master = &omap44xx_l4_abe_hwmod,
4626 .slave = &omap44xx_timer7_hwmod,
4627 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004628 .user = OCP_USER_SDMA,
4629};
4630
Paul Walmsley844a3b62012-04-19 04:04:33 -06004631/* l4_abe -> timer8 */
4632static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4633 .master = &omap44xx_l4_abe_hwmod,
4634 .slave = &omap44xx_timer8_hwmod,
4635 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004636 .user = OCP_USER_MPU,
4637};
4638
Paul Walmsley844a3b62012-04-19 04:04:33 -06004639/* l4_abe -> timer8 (dma) */
4640static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
4641 .master = &omap44xx_l4_abe_hwmod,
4642 .slave = &omap44xx_timer8_hwmod,
4643 .clk = "ocp_abe_iclk",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004644 .user = OCP_USER_SDMA,
4645};
4646
Paul Walmsley844a3b62012-04-19 04:04:33 -06004647/* l4_per -> timer9 */
4648static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4649 .master = &omap44xx_l4_per_hwmod,
4650 .slave = &omap44xx_timer9_hwmod,
4651 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004652 .user = OCP_USER_MPU | OCP_USER_SDMA,
4653};
4654
Paul Walmsley844a3b62012-04-19 04:04:33 -06004655/* l4_per -> timer10 */
4656static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4657 .master = &omap44xx_l4_per_hwmod,
4658 .slave = &omap44xx_timer10_hwmod,
4659 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004660 .user = OCP_USER_MPU | OCP_USER_SDMA,
4661};
4662
Paul Walmsley844a3b62012-04-19 04:04:33 -06004663/* l4_per -> timer11 */
4664static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4665 .master = &omap44xx_l4_per_hwmod,
4666 .slave = &omap44xx_timer11_hwmod,
4667 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004668 .user = OCP_USER_MPU | OCP_USER_SDMA,
4669};
4670
Paul Walmsley844a3b62012-04-19 04:04:33 -06004671/* l4_per -> uart1 */
4672static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4673 .master = &omap44xx_l4_per_hwmod,
4674 .slave = &omap44xx_uart1_hwmod,
4675 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004676 .user = OCP_USER_MPU | OCP_USER_SDMA,
4677};
4678
Paul Walmsley844a3b62012-04-19 04:04:33 -06004679/* l4_per -> uart2 */
4680static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4681 .master = &omap44xx_l4_per_hwmod,
4682 .slave = &omap44xx_uart2_hwmod,
4683 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004684 .user = OCP_USER_MPU | OCP_USER_SDMA,
4685};
4686
Paul Walmsley844a3b62012-04-19 04:04:33 -06004687/* l4_per -> uart3 */
4688static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4689 .master = &omap44xx_l4_per_hwmod,
4690 .slave = &omap44xx_uart3_hwmod,
4691 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004692 .user = OCP_USER_MPU | OCP_USER_SDMA,
4693};
4694
Paul Walmsley844a3b62012-04-19 04:04:33 -06004695/* l4_per -> uart4 */
4696static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4697 .master = &omap44xx_l4_per_hwmod,
4698 .slave = &omap44xx_uart4_hwmod,
4699 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004700 .user = OCP_USER_MPU | OCP_USER_SDMA,
4701};
4702
Benoît Cousson0c668872012-04-19 13:33:55 -06004703/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004704static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06004705 .master = &omap44xx_l4_cfg_hwmod,
4706 .slave = &omap44xx_usb_host_fs_hwmod,
4707 .clk = "l4_div_ck",
Benoît Cousson0c668872012-04-19 13:33:55 -06004708 .user = OCP_USER_MPU | OCP_USER_SDMA,
4709};
4710
Paul Walmsley844a3b62012-04-19 04:04:33 -06004711/* l4_cfg -> usb_host_hs */
4712static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4713 .master = &omap44xx_l4_cfg_hwmod,
4714 .slave = &omap44xx_usb_host_hs_hwmod,
4715 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004716 .user = OCP_USER_MPU | OCP_USER_SDMA,
4717};
4718
Paul Walmsley844a3b62012-04-19 04:04:33 -06004719/* l4_cfg -> usb_otg_hs */
4720static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4721 .master = &omap44xx_l4_cfg_hwmod,
4722 .slave = &omap44xx_usb_otg_hs_hwmod,
4723 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004724 .user = OCP_USER_MPU | OCP_USER_SDMA,
4725};
4726
Paul Walmsley844a3b62012-04-19 04:04:33 -06004727/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004728static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4729 .master = &omap44xx_l4_cfg_hwmod,
4730 .slave = &omap44xx_usb_tll_hs_hwmod,
4731 .clk = "l4_div_ck",
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004732 .user = OCP_USER_MPU | OCP_USER_SDMA,
4733};
4734
Paul Walmsley844a3b62012-04-19 04:04:33 -06004735/* l4_wkup -> wd_timer2 */
4736static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4737 .master = &omap44xx_l4_wkup_hwmod,
4738 .slave = &omap44xx_wd_timer2_hwmod,
4739 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004740 .user = OCP_USER_MPU | OCP_USER_SDMA,
4741};
4742
4743static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4744 {
4745 .pa_start = 0x40130000,
4746 .pa_end = 0x4013007f,
4747 .flags = ADDR_TYPE_RT
4748 },
4749 { }
4750};
4751
4752/* l4_abe -> wd_timer3 */
4753static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4754 .master = &omap44xx_l4_abe_hwmod,
4755 .slave = &omap44xx_wd_timer3_hwmod,
4756 .clk = "ocp_abe_iclk",
4757 .addr = omap44xx_wd_timer3_addrs,
4758 .user = OCP_USER_MPU,
4759};
4760
4761static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4762 {
4763 .pa_start = 0x49030000,
4764 .pa_end = 0x4903007f,
4765 .flags = ADDR_TYPE_RT
4766 },
4767 { }
4768};
4769
4770/* l4_abe -> wd_timer3 (dma) */
4771static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4772 .master = &omap44xx_l4_abe_hwmod,
4773 .slave = &omap44xx_wd_timer3_hwmod,
4774 .clk = "ocp_abe_iclk",
4775 .addr = omap44xx_wd_timer3_dma_addrs,
4776 .user = OCP_USER_SDMA,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004777};
4778
Sricharan R3b9b1012013-06-07 17:26:15 +05304779/* mpu -> emif1 */
4780static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4781 .master = &omap44xx_mpu_hwmod,
4782 .slave = &omap44xx_emif1_hwmod,
4783 .clk = "l3_div_ck",
4784 .user = OCP_USER_MPU | OCP_USER_SDMA,
4785};
4786
4787/* mpu -> emif2 */
4788static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4789 .master = &omap44xx_mpu_hwmod,
4790 .slave = &omap44xx_emif2_hwmod,
4791 .clk = "l3_div_ck",
4792 .user = OCP_USER_MPU | OCP_USER_SDMA,
4793};
4794
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004795static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4796 &omap44xx_l3_main_1__dmm,
4797 &omap44xx_mpu__dmm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004798 &omap44xx_iva__l3_instr,
4799 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004800 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004801 &omap44xx_dsp__l3_main_1,
4802 &omap44xx_dss__l3_main_1,
4803 &omap44xx_l3_main_2__l3_main_1,
4804 &omap44xx_l4_cfg__l3_main_1,
4805 &omap44xx_mmc1__l3_main_1,
4806 &omap44xx_mmc2__l3_main_1,
4807 &omap44xx_mpu__l3_main_1,
Benoît Cousson96566042012-04-19 13:33:59 -06004808 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004809 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06004810 &omap44xx_fdif__l3_main_2,
Paul Walmsley9def3902012-04-19 13:33:53 -06004811 &omap44xx_gpu__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004812 &omap44xx_hsi__l3_main_2,
4813 &omap44xx_ipu__l3_main_2,
4814 &omap44xx_iss__l3_main_2,
4815 &omap44xx_iva__l3_main_2,
4816 &omap44xx_l3_main_1__l3_main_2,
4817 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004818 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004819 &omap44xx_usb_host_hs__l3_main_2,
4820 &omap44xx_usb_otg_hs__l3_main_2,
4821 &omap44xx_l3_main_1__l3_main_3,
4822 &omap44xx_l3_main_2__l3_main_3,
4823 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004824 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004825 &omap44xx_dsp__l4_abe,
4826 &omap44xx_l3_main_1__l4_abe,
4827 &omap44xx_mpu__l4_abe,
4828 &omap44xx_l3_main_1__l4_cfg,
4829 &omap44xx_l3_main_2__l4_per,
4830 &omap44xx_l4_cfg__l4_wkup,
4831 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004832 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004833 &omap44xx_l4_abe__aess,
4834 &omap44xx_l4_abe__aess_dma,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004835 &omap44xx_l3_main_2__c2c,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004836 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06004837 &omap44xx_l4_cfg__ctrl_module_core,
4838 &omap44xx_l4_cfg__ctrl_module_pad_core,
4839 &omap44xx_l4_wkup__ctrl_module_wkup,
4840 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06004841 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004842 &omap44xx_l4_cfg__dma_system,
4843 &omap44xx_l4_abe__dmic,
4844 &omap44xx_l4_abe__dmic_dma,
4845 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06004846 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004847 &omap44xx_l4_cfg__dsp,
4848 &omap44xx_l3_main_2__dss,
4849 &omap44xx_l4_per__dss,
4850 &omap44xx_l3_main_2__dss_dispc,
4851 &omap44xx_l4_per__dss_dispc,
4852 &omap44xx_l3_main_2__dss_dsi1,
4853 &omap44xx_l4_per__dss_dsi1,
4854 &omap44xx_l3_main_2__dss_dsi2,
4855 &omap44xx_l4_per__dss_dsi2,
4856 &omap44xx_l3_main_2__dss_hdmi,
4857 &omap44xx_l4_per__dss_hdmi,
4858 &omap44xx_l3_main_2__dss_rfbi,
4859 &omap44xx_l4_per__dss_rfbi,
4860 &omap44xx_l3_main_2__dss_venc,
4861 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004862 &omap44xx_l4_per__elm,
Ming Leib050f682012-04-19 13:33:50 -06004863 &omap44xx_l4_cfg__fdif,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004864 &omap44xx_l4_wkup__gpio1,
4865 &omap44xx_l4_per__gpio2,
4866 &omap44xx_l4_per__gpio3,
4867 &omap44xx_l4_per__gpio4,
4868 &omap44xx_l4_per__gpio5,
4869 &omap44xx_l4_per__gpio6,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004870 &omap44xx_l3_main_2__gpmc,
Paul Walmsley9def3902012-04-19 13:33:53 -06004871 &omap44xx_l3_main_2__gpu,
Paul Walmsleya091c082012-04-19 13:33:50 -06004872 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004873 &omap44xx_l4_cfg__hsi,
4874 &omap44xx_l4_per__i2c1,
4875 &omap44xx_l4_per__i2c2,
4876 &omap44xx_l4_per__i2c3,
4877 &omap44xx_l4_per__i2c4,
4878 &omap44xx_l3_main_2__ipu,
4879 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06004880 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004881 &omap44xx_l3_main_2__iva,
4882 &omap44xx_l4_wkup__kbd,
4883 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06004884 &omap44xx_l4_abe__mcasp,
4885 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004886 &omap44xx_l4_abe__mcbsp1,
4887 &omap44xx_l4_abe__mcbsp1_dma,
4888 &omap44xx_l4_abe__mcbsp2,
4889 &omap44xx_l4_abe__mcbsp2_dma,
4890 &omap44xx_l4_abe__mcbsp3,
4891 &omap44xx_l4_abe__mcbsp3_dma,
4892 &omap44xx_l4_per__mcbsp4,
4893 &omap44xx_l4_abe__mcpdm,
4894 &omap44xx_l4_abe__mcpdm_dma,
4895 &omap44xx_l4_per__mcspi1,
4896 &omap44xx_l4_per__mcspi2,
4897 &omap44xx_l4_per__mcspi3,
4898 &omap44xx_l4_per__mcspi4,
4899 &omap44xx_l4_per__mmc1,
4900 &omap44xx_l4_per__mmc2,
4901 &omap44xx_l4_per__mmc3,
4902 &omap44xx_l4_per__mmc4,
4903 &omap44xx_l4_per__mmc5,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06004904 &omap44xx_l3_main_2__mmu_ipu,
4905 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004906 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06004907 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06004908 &omap44xx_mpu_private__prcm_mpu,
4909 &omap44xx_l4_wkup__cm_core_aon,
4910 &omap44xx_l4_cfg__cm_core,
4911 &omap44xx_l4_wkup__prm,
4912 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06004913 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004914 &omap44xx_l4_abe__slimbus1,
4915 &omap44xx_l4_abe__slimbus1_dma,
4916 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004917 &omap44xx_l4_cfg__smartreflex_core,
4918 &omap44xx_l4_cfg__smartreflex_iva,
4919 &omap44xx_l4_cfg__smartreflex_mpu,
4920 &omap44xx_l4_cfg__spinlock,
4921 &omap44xx_l4_wkup__timer1,
4922 &omap44xx_l4_per__timer2,
4923 &omap44xx_l4_per__timer3,
4924 &omap44xx_l4_per__timer4,
4925 &omap44xx_l4_abe__timer5,
4926 &omap44xx_l4_abe__timer5_dma,
4927 &omap44xx_l4_abe__timer6,
4928 &omap44xx_l4_abe__timer6_dma,
4929 &omap44xx_l4_abe__timer7,
4930 &omap44xx_l4_abe__timer7_dma,
4931 &omap44xx_l4_abe__timer8,
4932 &omap44xx_l4_abe__timer8_dma,
4933 &omap44xx_l4_per__timer9,
4934 &omap44xx_l4_per__timer10,
4935 &omap44xx_l4_per__timer11,
4936 &omap44xx_l4_per__uart1,
4937 &omap44xx_l4_per__uart2,
4938 &omap44xx_l4_per__uart3,
4939 &omap44xx_l4_per__uart4,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004940 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004941 &omap44xx_l4_cfg__usb_host_hs,
4942 &omap44xx_l4_cfg__usb_otg_hs,
4943 &omap44xx_l4_cfg__usb_tll_hs,
4944 &omap44xx_l4_wkup__wd_timer2,
4945 &omap44xx_l4_abe__wd_timer3,
4946 &omap44xx_l4_abe__wd_timer3_dma,
Sricharan R3b9b1012013-06-07 17:26:15 +05304947 &omap44xx_mpu__emif1,
4948 &omap44xx_mpu__emif2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004949 NULL,
4950};
4951
4952int __init omap44xx_hwmod_init(void)
4953{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06004954 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004955 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004956}
4957