blob: dad871a4cd9657ed40f380dcfd7d6e8e72c48cde [file] [log] [blame]
Benoit Cousson55d2cb02010-05-12 17:54:36 +02001/*
2 * Hardware modules present on the OMAP44xx chips
3 *
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004 * Copyright (C) 2009-2012 Texas Instruments, Inc.
Benoit Cousson55d2cb02010-05-12 17:54:36 +02005 * Copyright (C) 2009-2010 Nokia Corporation
6 *
7 * Paul Walmsley
8 * Benoit Cousson
9 *
10 * This file is automatically generated from the OMAP hardware databases.
11 * We respectfully ask that any modifications to this file be coordinated
12 * with the public linux-omap@vger.kernel.org mailing list and the
13 * authors above to ensure that the autogeneration scripts are kept
14 * up-to-date with the file contents.
Sricharan R3b9b1012013-06-07 17:26:15 +053015 * Note that this file is currently not in sync with autogeneration scripts.
16 * The above note to be removed, once it is synced up.
Benoit Cousson55d2cb02010-05-12 17:54:36 +020017 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License version 2 as
20 * published by the Free Software Foundation.
21 */
22
23#include <linux/io.h>
Tony Lindgren4b254082012-08-30 15:37:24 -070024#include <linux/platform_data/gpio-omap.h>
Andreas Fenkart55143432014-11-08 15:33:09 +010025#include <linux/platform_data/hsmmc-omap.h>
Jean Pihetb86aeaf2012-04-25 16:06:20 +053026#include <linux/power/smartreflex.h>
Tony Lindgren3a8761c2012-10-08 09:11:22 -070027#include <linux/i2c-omap.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020028
Tony Lindgren45c3eb72012-11-30 08:41:50 -080029#include <linux/omap-dma.h>
Tony Lindgren2a296c82012-10-02 17:41:35 -070030
Arnd Bergmann22037472012-08-24 15:21:06 +020031#include <linux/platform_data/spi-omap2-mcspi.h>
32#include <linux/platform_data/asoc-ti-mcbsp.h>
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +053033#include <plat/dmtimer.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020034
Tony Lindgren2a296c82012-10-02 17:41:35 -070035#include "omap_hwmod.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020036#include "omap_hwmod_common_data.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070037#include "cm1_44xx.h"
38#include "cm2_44xx.h"
39#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020040#include "prm-regbits-44xx.h"
Tony Lindgren3a8761c2012-10-08 09:11:22 -070041#include "i2c.h"
Paul Walmsleyff2516f2010-12-21 15:39:15 -070042#include "wd_timer.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020043
44/* Base offset for all OMAP4 interrupts external to MPUSS */
45#define OMAP44XX_IRQ_GIC_START 32
46
47/* Base offset for all OMAP4 dma requests */
Paul Walmsley844a3b62012-04-19 04:04:33 -060048#define OMAP44XX_DMA_REQ_START 1
Benoit Cousson55d2cb02010-05-12 17:54:36 +020049
50/*
Paul Walmsley844a3b62012-04-19 04:04:33 -060051 * IP blocks
Benoit Cousson55d2cb02010-05-12 17:54:36 +020052 */
53
54/*
55 * 'dmm' class
56 * instance(s): dmm
57 */
58static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000059 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020060};
61
Benoit Cousson7e69ed92011-07-09 19:14:28 -060062/* dmm */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020063static struct omap_hwmod omap44xx_dmm_hwmod = {
64 .name = "dmm",
65 .class = &omap44xx_dmm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060066 .clkdm_name = "l3_emif_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060067 .prcm = {
68 .omap4 = {
69 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060070 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -060071 },
72 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020073};
74
75/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +020076 * 'l3' class
77 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
78 */
79static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000080 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020081};
82
Benoit Cousson7e69ed92011-07-09 19:14:28 -060083/* l3_instr */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020084static struct omap_hwmod omap44xx_l3_instr_hwmod = {
85 .name = "l3_instr",
86 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060087 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -060088 .prcm = {
89 .omap4 = {
90 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060091 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -060092 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -060093 },
94 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +020095};
96
Benoit Cousson7e69ed92011-07-09 19:14:28 -060097/* l3_main_1 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +020098static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
99 .name = "l3_main_1",
100 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600101 .clkdm_name = "l3_1_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600102 .prcm = {
103 .omap4 = {
104 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600105 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600106 },
107 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200108};
109
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600110/* l3_main_2 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200111static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
112 .name = "l3_main_2",
113 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600114 .clkdm_name = "l3_2_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600115 .prcm = {
116 .omap4 = {
117 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600118 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600119 },
120 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200121};
122
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600123/* l3_main_3 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200124static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
125 .name = "l3_main_3",
126 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600127 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600128 .prcm = {
129 .omap4 = {
130 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600131 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600132 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600133 },
134 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200135};
136
137/*
138 * 'l4' class
139 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
140 */
141static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000142 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200143};
144
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600145/* l4_abe */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200146static struct omap_hwmod omap44xx_l4_abe_hwmod = {
147 .name = "l4_abe",
148 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600149 .clkdm_name = "abe_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600150 .prcm = {
151 .omap4 = {
152 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600153 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
154 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
Tero Kristo46b3af22012-09-23 17:28:20 -0600155 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
Benoit Coussond0f06312011-07-10 05:56:30 -0600156 },
157 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200158};
159
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600160/* l4_cfg */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200161static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
162 .name = "l4_cfg",
163 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600164 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600165 .prcm = {
166 .omap4 = {
167 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600168 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600169 },
170 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200171};
172
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600173/* l4_per */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200174static struct omap_hwmod omap44xx_l4_per_hwmod = {
175 .name = "l4_per",
176 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600177 .clkdm_name = "l4_per_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600178 .prcm = {
179 .omap4 = {
180 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600181 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600182 },
183 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200184};
185
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600186/* l4_wkup */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200187static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
188 .name = "l4_wkup",
189 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600190 .clkdm_name = "l4_wkup_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600191 .prcm = {
192 .omap4 = {
193 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600194 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600195 },
196 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200197};
198
199/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700200 * 'mpu_bus' class
201 * instance(s): mpu_private
202 */
203static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000204 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700205};
206
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600207/* mpu_private */
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700208static struct omap_hwmod omap44xx_mpu_private_hwmod = {
209 .name = "mpu_private",
210 .class = &omap44xx_mpu_bus_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600211 .clkdm_name = "mpuss_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600212 .prcm = {
213 .omap4 = {
214 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
215 },
216 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700217};
218
219/*
Benoît Cousson9a817bc2012-04-19 13:33:56 -0600220 * 'ocp_wp_noc' class
221 * instance(s): ocp_wp_noc
222 */
223static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
224 .name = "ocp_wp_noc",
225};
226
227/* ocp_wp_noc */
228static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
229 .name = "ocp_wp_noc",
230 .class = &omap44xx_ocp_wp_noc_hwmod_class,
231 .clkdm_name = "l3_instr_clkdm",
232 .prcm = {
233 .omap4 = {
234 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
235 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
236 .modulemode = MODULEMODE_HWCTRL,
237 },
238 },
239};
240
241/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700242 * Modules omap_hwmod structures
243 *
244 * The following IPs are excluded for the moment because:
245 * - They do not need an explicit SW control using omap_hwmod API.
246 * - They still need to be validated with the driver
247 * properly adapted to omap_hwmod / omap_device
248 *
Benoît Cousson96566042012-04-19 13:33:59 -0600249 * usim
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700250 */
251
252/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100253 * 'aess' class
254 * audio engine sub system
255 */
256
257static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
258 .rev_offs = 0x0000,
259 .sysc_offs = 0x0010,
260 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
261 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
Benoit Coussonc614ebf2011-07-01 22:54:01 +0200262 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
263 MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +0100264 .sysc_fields = &omap_hwmod_sysc_type2,
265};
266
267static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
268 .name = "aess",
269 .sysc = &omap44xx_aess_sysc,
Paul Walmsleyc02060d2013-02-10 11:22:23 -0700270 .enable_preprogram = omap_hwmod_aess_preprogram,
Benoit Cousson407a6882011-02-15 22:39:48 +0100271};
272
273/* aess */
Benoit Cousson407a6882011-02-15 22:39:48 +0100274static struct omap_hwmod omap44xx_aess_hwmod = {
275 .name = "aess",
276 .class = &omap44xx_aess_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600277 .clkdm_name = "abe_clkdm",
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -0700278 .main_clk = "aess_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600279 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100280 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600281 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600282 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600283 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600284 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +0100285 },
286 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100287};
288
289/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600290 * 'c2c' class
291 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
292 * soc
293 */
294
295static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
296 .name = "c2c",
297};
298
299/* c2c */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600300static struct omap_hwmod omap44xx_c2c_hwmod = {
301 .name = "c2c",
302 .class = &omap44xx_c2c_hwmod_class,
303 .clkdm_name = "d2d_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600304 .prcm = {
305 .omap4 = {
306 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
307 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
308 },
309 },
310};
311
312/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100313 * 'counter' class
314 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
315 */
316
317static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
318 .rev_offs = 0x0000,
319 .sysc_offs = 0x0004,
320 .sysc_flags = SYSC_HAS_SIDLEMODE,
Paul Walmsley252a4c52012-06-17 11:57:51 -0600321 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
Benoit Cousson407a6882011-02-15 22:39:48 +0100322 .sysc_fields = &omap_hwmod_sysc_type1,
323};
324
325static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
326 .name = "counter",
327 .sysc = &omap44xx_counter_sysc,
328};
329
330/* counter_32k */
Benoit Cousson407a6882011-02-15 22:39:48 +0100331static struct omap_hwmod omap44xx_counter_32k_hwmod = {
332 .name = "counter_32k",
333 .class = &omap44xx_counter_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600334 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100335 .flags = HWMOD_SWSUP_SIDLE,
336 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600337 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100338 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600339 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600340 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +0100341 },
342 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100343};
344
345/*
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600346 * 'ctrl_module' class
347 * attila core control module + core pad control module + wkup pad control
348 * module + attila wkup control module
349 */
350
351static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
352 .rev_offs = 0x0000,
353 .sysc_offs = 0x0010,
354 .sysc_flags = SYSC_HAS_SIDLEMODE,
355 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
356 SIDLE_SMART_WKUP),
357 .sysc_fields = &omap_hwmod_sysc_type2,
358};
359
360static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
361 .name = "ctrl_module",
362 .sysc = &omap44xx_ctrl_module_sysc,
363};
364
365/* ctrl_module_core */
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600366static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
367 .name = "ctrl_module_core",
368 .class = &omap44xx_ctrl_module_hwmod_class,
369 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600370 .prcm = {
371 .omap4 = {
372 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
373 },
374 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600375};
376
377/* ctrl_module_pad_core */
378static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
379 .name = "ctrl_module_pad_core",
380 .class = &omap44xx_ctrl_module_hwmod_class,
381 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600382 .prcm = {
383 .omap4 = {
384 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
385 },
386 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600387};
388
389/* ctrl_module_wkup */
390static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
391 .name = "ctrl_module_wkup",
392 .class = &omap44xx_ctrl_module_hwmod_class,
393 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600394 .prcm = {
395 .omap4 = {
396 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
397 },
398 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600399};
400
401/* ctrl_module_pad_wkup */
402static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
403 .name = "ctrl_module_pad_wkup",
404 .class = &omap44xx_ctrl_module_hwmod_class,
405 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600406 .prcm = {
407 .omap4 = {
408 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
409 },
410 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600411};
412
413/*
Benoît Cousson96566042012-04-19 13:33:59 -0600414 * 'debugss' class
415 * debug and emulation sub system
416 */
417
418static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
419 .name = "debugss",
420};
421
422/* debugss */
423static struct omap_hwmod omap44xx_debugss_hwmod = {
424 .name = "debugss",
425 .class = &omap44xx_debugss_hwmod_class,
426 .clkdm_name = "emu_sys_clkdm",
427 .main_clk = "trace_clk_div_ck",
428 .prcm = {
429 .omap4 = {
430 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
431 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
432 },
433 },
434};
435
436/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000437 * 'dma' class
438 * dma controller for data exchange between memory to memory (i.e. internal or
439 * external memory) and gp peripherals to memory or memory to gp peripherals
440 */
441
442static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
443 .rev_offs = 0x0000,
444 .sysc_offs = 0x002c,
445 .syss_offs = 0x0028,
446 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
447 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
448 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
449 SYSS_HAS_RESET_STATUS),
450 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
451 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
452 .sysc_fields = &omap_hwmod_sysc_type1,
453};
454
455static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
456 .name = "dma",
457 .sysc = &omap44xx_dma_sysc,
458};
459
460/* dma dev_attr */
461static struct omap_dma_dev_attr dma_dev_attr = {
462 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
463 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
464 .lch_count = 32,
465};
466
467/* dma_system */
468static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
469 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
470 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
471 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
472 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600473 { .irq = -1 }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000474};
475
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000476static struct omap_hwmod omap44xx_dma_system_hwmod = {
477 .name = "dma_system",
478 .class = &omap44xx_dma_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600479 .clkdm_name = "l3_dma_clkdm",
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000480 .mpu_irqs = omap44xx_dma_system_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000481 .xlate_irq = omap4_xlate_irq,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000482 .main_clk = "l3_div_ck",
483 .prcm = {
484 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600485 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600486 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000487 },
488 },
489 .dev_attr = &dma_dev_attr,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000490};
491
492/*
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000493 * 'dmic' class
494 * digital microphone controller
495 */
496
497static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
498 .rev_offs = 0x0000,
499 .sysc_offs = 0x0010,
500 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
501 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
502 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
503 SIDLE_SMART_WKUP),
504 .sysc_fields = &omap_hwmod_sysc_type2,
505};
506
507static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
508 .name = "dmic",
509 .sysc = &omap44xx_dmic_sysc,
510};
511
512/* dmic */
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000513static struct omap_hwmod omap44xx_dmic_hwmod = {
514 .name = "dmic",
515 .class = &omap44xx_dmic_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600516 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -0700517 .main_clk = "func_dmic_abe_gfclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600518 .prcm = {
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000519 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600520 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600521 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600522 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000523 },
524 },
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000525};
526
527/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700528 * 'dsp' class
529 * dsp sub-system
530 */
531
532static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000533 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700534};
535
536/* dsp */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700537static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700538 { .name = "dsp", .rst_shift = 0 },
539};
540
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700541static struct omap_hwmod omap44xx_dsp_hwmod = {
542 .name = "dsp",
543 .class = &omap44xx_dsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600544 .clkdm_name = "tesla_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700545 .rst_lines = omap44xx_dsp_resets,
546 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -0600547 .main_clk = "dpll_iva_m4x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700548 .prcm = {
549 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600550 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -0600551 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600552 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600553 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700554 },
555 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700556};
557
558/*
Benoit Coussond63bd742011-01-27 11:17:03 +0000559 * 'dss' class
560 * display sub-system
561 */
562
563static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
564 .rev_offs = 0x0000,
565 .syss_offs = 0x0014,
566 .sysc_flags = SYSS_HAS_RESET_STATUS,
567};
568
569static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
570 .name = "dss",
571 .sysc = &omap44xx_dss_sysc,
Tomi Valkeinen13662dc2011-11-08 03:16:13 -0700572 .reset = omap_dss_reset,
Benoit Coussond63bd742011-01-27 11:17:03 +0000573};
574
575/* dss */
Benoit Coussond63bd742011-01-27 11:17:03 +0000576static struct omap_hwmod_opt_clk dss_opt_clks[] = {
577 { .role = "sys_clk", .clk = "dss_sys_clk" },
578 { .role = "tv_clk", .clk = "dss_tv_clk" },
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700579 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Benoit Coussond63bd742011-01-27 11:17:03 +0000580};
581
582static struct omap_hwmod omap44xx_dss_hwmod = {
583 .name = "dss_core",
Tomi Valkeinen37ad0852011-11-08 03:16:11 -0700584 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000585 .class = &omap44xx_dss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600586 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600587 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000588 .prcm = {
589 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600590 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600591 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +0300592 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussond63bd742011-01-27 11:17:03 +0000593 },
594 },
595 .opt_clks = dss_opt_clks,
596 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000597};
598
599/*
600 * 'dispc' class
601 * display controller
602 */
603
604static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
605 .rev_offs = 0x0000,
606 .sysc_offs = 0x0010,
607 .syss_offs = 0x0014,
608 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
609 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
610 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
611 SYSS_HAS_RESET_STATUS),
612 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
613 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
614 .sysc_fields = &omap_hwmod_sysc_type1,
615};
616
617static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
618 .name = "dispc",
619 .sysc = &omap44xx_dispc_sysc,
620};
621
622/* dss_dispc */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300623static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
624 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
625 { .irq = -1 }
626};
627
628static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
629 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
630 { .dma_req = -1 }
631};
632
Archit Tanejab923d402011-10-06 18:04:08 -0600633static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
634 .manager_count = 3,
635 .has_framedonetv_irq = 1
636};
637
Benoit Coussond63bd742011-01-27 11:17:03 +0000638static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
639 .name = "dss_dispc",
640 .class = &omap44xx_dispc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600641 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300642 .mpu_irqs = omap44xx_dss_dispc_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000643 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300644 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600645 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000646 .prcm = {
647 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600648 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600649 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000650 },
651 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300652 .dev_attr = &omap44xx_dss_dispc_dev_attr,
653 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000654};
655
656/*
657 * 'dsi' class
658 * display serial interface controller
659 */
660
661static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
662 .rev_offs = 0x0000,
663 .sysc_offs = 0x0010,
664 .syss_offs = 0x0014,
665 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
666 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
667 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
668 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
669 .sysc_fields = &omap_hwmod_sysc_type1,
670};
671
672static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
673 .name = "dsi",
674 .sysc = &omap44xx_dsi_sysc,
675};
676
677/* dss_dsi1 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300678static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
679 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
680 { .irq = -1 }
681};
682
683static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
684 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
685 { .dma_req = -1 }
686};
687
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600688static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
689 { .role = "sys_clk", .clk = "dss_sys_clk" },
690};
691
Benoit Coussond63bd742011-01-27 11:17:03 +0000692static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
693 .name = "dss_dsi1",
694 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600695 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300696 .mpu_irqs = omap44xx_dss_dsi1_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000697 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300698 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600699 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000700 .prcm = {
701 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600702 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600703 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000704 },
705 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600706 .opt_clks = dss_dsi1_opt_clks,
707 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300708 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000709};
710
711/* dss_dsi2 */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300712static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
713 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
714 { .irq = -1 }
715};
716
717static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
718 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
719 { .dma_req = -1 }
720};
721
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600722static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
723 { .role = "sys_clk", .clk = "dss_sys_clk" },
724};
725
Benoit Coussond63bd742011-01-27 11:17:03 +0000726static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
727 .name = "dss_dsi2",
728 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600729 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300730 .mpu_irqs = omap44xx_dss_dsi2_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000731 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300732 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600733 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000734 .prcm = {
735 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600736 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600737 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000738 },
739 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600740 .opt_clks = dss_dsi2_opt_clks,
741 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300742 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000743};
744
745/*
746 * 'hdmi' class
747 * hdmi controller
748 */
749
750static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
751 .rev_offs = 0x0000,
752 .sysc_offs = 0x0010,
753 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
754 SYSC_HAS_SOFTRESET),
755 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
756 SIDLE_SMART_WKUP),
757 .sysc_fields = &omap_hwmod_sysc_type2,
758};
759
760static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
761 .name = "hdmi",
762 .sysc = &omap44xx_hdmi_sysc,
763};
764
765/* dss_hdmi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300766static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
767 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
768 { .irq = -1 }
769};
770
771static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
772 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
773 { .dma_req = -1 }
774};
775
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600776static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
777 { .role = "sys_clk", .clk = "dss_sys_clk" },
778};
779
Benoit Coussond63bd742011-01-27 11:17:03 +0000780static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
781 .name = "dss_hdmi",
782 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600783 .clkdm_name = "l3_dss_clkdm",
Ricardo Neridc57aef2012-06-21 10:08:53 +0200784 /*
785 * HDMI audio requires to use no-idle mode. Hence,
786 * set idle mode by software.
787 */
788 .flags = HWMOD_SWSUP_SIDLE,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300789 .mpu_irqs = omap44xx_dss_hdmi_irqs,
Marc Zyngier0fb22a82015-01-17 10:21:08 +0000790 .xlate_irq = omap4_xlate_irq,
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300791 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700792 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000793 .prcm = {
794 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600795 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600796 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000797 },
798 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600799 .opt_clks = dss_hdmi_opt_clks,
800 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300801 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000802};
803
804/*
805 * 'rfbi' class
806 * remote frame buffer interface
807 */
808
809static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
810 .rev_offs = 0x0000,
811 .sysc_offs = 0x0010,
812 .syss_offs = 0x0014,
813 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
814 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
815 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
816 .sysc_fields = &omap_hwmod_sysc_type1,
817};
818
819static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
820 .name = "rfbi",
821 .sysc = &omap44xx_rfbi_sysc,
822};
823
824/* dss_rfbi */
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300825static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
826 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
827 { .dma_req = -1 }
828};
829
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600830static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
Tomi Valkeinen2cc84f42014-10-09 17:03:18 +0300831 { .role = "ick", .clk = "l3_div_ck" },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600832};
833
Benoit Coussond63bd742011-01-27 11:17:03 +0000834static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
835 .name = "dss_rfbi",
836 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600837 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenb38911f2013-06-11 10:37:19 +0300838 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600839 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000840 .prcm = {
841 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600842 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600843 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000844 },
845 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600846 .opt_clks = dss_rfbi_opt_clks,
847 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300848 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000849};
850
851/*
852 * 'venc' class
853 * video encoder
854 */
855
856static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
857 .name = "venc",
858};
859
860/* dss_venc */
Benoit Coussond63bd742011-01-27 11:17:03 +0000861static struct omap_hwmod omap44xx_dss_venc_hwmod = {
862 .name = "dss_venc",
863 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600864 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700865 .main_clk = "dss_tv_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000866 .prcm = {
867 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600868 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600869 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000870 },
871 },
Tomi Valkeinen543b2842014-10-09 17:03:16 +0300872 .parent_hwmod = &omap44xx_dss_hwmod,
Benoit Coussond63bd742011-01-27 11:17:03 +0000873};
874
875/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600876 * 'elm' class
877 * bch error location module
878 */
879
880static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
881 .rev_offs = 0x0000,
882 .sysc_offs = 0x0010,
883 .syss_offs = 0x0014,
884 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
885 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
886 SYSS_HAS_RESET_STATUS),
887 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
888 .sysc_fields = &omap_hwmod_sysc_type1,
889};
890
891static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
892 .name = "elm",
893 .sysc = &omap44xx_elm_sysc,
894};
895
896/* elm */
Paul Walmsley42b9e382012-04-19 13:33:54 -0600897static struct omap_hwmod omap44xx_elm_hwmod = {
898 .name = "elm",
899 .class = &omap44xx_elm_hwmod_class,
900 .clkdm_name = "l4_per_clkdm",
Paul Walmsley42b9e382012-04-19 13:33:54 -0600901 .prcm = {
902 .omap4 = {
903 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
904 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
905 },
906 },
907};
908
909/*
Paul Walmsleybf30f952012-04-19 13:33:52 -0600910 * 'emif' class
911 * external memory interface no1
912 */
913
914static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
915 .rev_offs = 0x0000,
916};
917
918static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
919 .name = "emif",
920 .sysc = &omap44xx_emif_sysc,
921};
922
923/* emif1 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600924static struct omap_hwmod omap44xx_emif1_hwmod = {
925 .name = "emif1",
926 .class = &omap44xx_emif_hwmod_class,
927 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530928 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600929 .main_clk = "ddrphy_ck",
930 .prcm = {
931 .omap4 = {
932 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
933 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
934 .modulemode = MODULEMODE_HWCTRL,
935 },
936 },
937};
938
939/* emif2 */
Paul Walmsleybf30f952012-04-19 13:33:52 -0600940static struct omap_hwmod omap44xx_emif2_hwmod = {
941 .name = "emif2",
942 .class = &omap44xx_emif_hwmod_class,
943 .clkdm_name = "l3_emif_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +0530944 .flags = HWMOD_INIT_NO_IDLE,
Paul Walmsleybf30f952012-04-19 13:33:52 -0600945 .main_clk = "ddrphy_ck",
946 .prcm = {
947 .omap4 = {
948 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
949 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
950 .modulemode = MODULEMODE_HWCTRL,
951 },
952 },
953};
954
955/*
Ming Leib050f682012-04-19 13:33:50 -0600956 * 'fdif' class
957 * face detection hw accelerator module
958 */
959
960static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
961 .rev_offs = 0x0000,
962 .sysc_offs = 0x0010,
963 /*
964 * FDIF needs 100 OCP clk cycles delay after a softreset before
965 * accessing sysconfig again.
966 * The lowest frequency at the moment for L3 bus is 100 MHz, so
967 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
968 *
969 * TODO: Indicate errata when available.
970 */
971 .srst_udelay = 2,
972 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
973 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
974 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
975 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
976 .sysc_fields = &omap_hwmod_sysc_type2,
977};
978
979static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
980 .name = "fdif",
981 .sysc = &omap44xx_fdif_sysc,
982};
983
984/* fdif */
Ming Leib050f682012-04-19 13:33:50 -0600985static struct omap_hwmod omap44xx_fdif_hwmod = {
986 .name = "fdif",
987 .class = &omap44xx_fdif_hwmod_class,
988 .clkdm_name = "iss_clkdm",
Ming Leib050f682012-04-19 13:33:50 -0600989 .main_clk = "fdif_fck",
990 .prcm = {
991 .omap4 = {
992 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
993 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
994 .modulemode = MODULEMODE_SWCTRL,
995 },
996 },
997};
998
999/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001000 * 'gpio' class
1001 * general purpose io module
1002 */
1003
1004static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1005 .rev_offs = 0x0000,
1006 .sysc_offs = 0x0010,
1007 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001008 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1009 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1010 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001011 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1012 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001013 .sysc_fields = &omap_hwmod_sysc_type1,
1014};
1015
1016static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001017 .name = "gpio",
1018 .sysc = &omap44xx_gpio_sysc,
1019 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001020};
1021
1022/* gpio dev_attr */
1023static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001024 .bank_width = 32,
1025 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001026};
1027
1028/* gpio1 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001029static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001030 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001031};
1032
1033static struct omap_hwmod omap44xx_gpio1_hwmod = {
1034 .name = "gpio1",
1035 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001036 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001037 .main_clk = "l4_wkup_clk_mux_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001038 .prcm = {
1039 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001040 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001041 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001042 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001043 },
1044 },
1045 .opt_clks = gpio1_opt_clks,
1046 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1047 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001048};
1049
1050/* gpio2 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001051static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001052 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001053};
1054
1055static struct omap_hwmod omap44xx_gpio2_hwmod = {
1056 .name = "gpio2",
1057 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001058 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001059 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001060 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001061 .prcm = {
1062 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001063 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001064 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001065 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001066 },
1067 },
1068 .opt_clks = gpio2_opt_clks,
1069 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1070 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001071};
1072
1073/* gpio3 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001074static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001075 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001076};
1077
1078static struct omap_hwmod omap44xx_gpio3_hwmod = {
1079 .name = "gpio3",
1080 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001081 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001082 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001083 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001084 .prcm = {
1085 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001086 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001087 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001088 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001089 },
1090 },
1091 .opt_clks = gpio3_opt_clks,
1092 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1093 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001094};
1095
1096/* gpio4 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001097static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001098 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001099};
1100
1101static struct omap_hwmod omap44xx_gpio4_hwmod = {
1102 .name = "gpio4",
1103 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001104 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001105 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001106 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001107 .prcm = {
1108 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001109 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001110 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001111 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001112 },
1113 },
1114 .opt_clks = gpio4_opt_clks,
1115 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1116 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001117};
1118
1119/* gpio5 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001120static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001121 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001122};
1123
1124static struct omap_hwmod omap44xx_gpio5_hwmod = {
1125 .name = "gpio5",
1126 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001127 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001128 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001129 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001130 .prcm = {
1131 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001132 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001133 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001134 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001135 },
1136 },
1137 .opt_clks = gpio5_opt_clks,
1138 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1139 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001140};
1141
1142/* gpio6 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001143static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001144 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001145};
1146
1147static struct omap_hwmod omap44xx_gpio6_hwmod = {
1148 .name = "gpio6",
1149 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001150 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001151 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001152 .main_clk = "l4_div_ck",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001153 .prcm = {
1154 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001155 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001156 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001157 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001158 },
1159 },
1160 .opt_clks = gpio6_opt_clks,
1161 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1162 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001163};
1164
1165/*
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001166 * 'gpmc' class
1167 * general purpose memory controller
1168 */
1169
1170static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1171 .rev_offs = 0x0000,
1172 .sysc_offs = 0x0010,
1173 .syss_offs = 0x0014,
1174 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1175 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1176 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1177 .sysc_fields = &omap_hwmod_sysc_type1,
1178};
1179
1180static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1181 .name = "gpmc",
1182 .sysc = &omap44xx_gpmc_sysc,
1183};
1184
1185/* gpmc */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001186static struct omap_hwmod omap44xx_gpmc_hwmod = {
1187 .name = "gpmc",
1188 .class = &omap44xx_gpmc_hwmod_class,
1189 .clkdm_name = "l3_2_clkdm",
Tony Lindgren63aa9452015-06-01 19:22:10 -06001190 /* Skip reset for CONFIG_OMAP_GPMC_DEBUG for bootloader timings */
1191 .flags = DEBUG_OMAP_GPMC_HWMOD_FLAGS,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001192 .prcm = {
1193 .omap4 = {
1194 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1195 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1196 .modulemode = MODULEMODE_HWCTRL,
1197 },
1198 },
1199};
1200
1201/*
Paul Walmsley9def3902012-04-19 13:33:53 -06001202 * 'gpu' class
1203 * 2d/3d graphics accelerator
1204 */
1205
1206static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1207 .rev_offs = 0x1fc00,
1208 .sysc_offs = 0x1fc10,
1209 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1210 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1211 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1212 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1213 .sysc_fields = &omap_hwmod_sysc_type2,
1214};
1215
1216static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1217 .name = "gpu",
1218 .sysc = &omap44xx_gpu_sysc,
1219};
1220
1221/* gpu */
Paul Walmsley9def3902012-04-19 13:33:53 -06001222static struct omap_hwmod omap44xx_gpu_hwmod = {
1223 .name = "gpu",
1224 .class = &omap44xx_gpu_hwmod_class,
1225 .clkdm_name = "l3_gfx_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001226 .main_clk = "sgx_clk_mux",
Paul Walmsley9def3902012-04-19 13:33:53 -06001227 .prcm = {
1228 .omap4 = {
1229 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1230 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1231 .modulemode = MODULEMODE_SWCTRL,
1232 },
1233 },
1234};
1235
1236/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001237 * 'hdq1w' class
1238 * hdq / 1-wire serial interface controller
1239 */
1240
1241static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1242 .rev_offs = 0x0000,
1243 .sysc_offs = 0x0014,
1244 .syss_offs = 0x0018,
1245 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1246 SYSS_HAS_RESET_STATUS),
1247 .sysc_fields = &omap_hwmod_sysc_type1,
1248};
1249
1250static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1251 .name = "hdq1w",
1252 .sysc = &omap44xx_hdq1w_sysc,
1253};
1254
1255/* hdq1w */
Paul Walmsleya091c082012-04-19 13:33:50 -06001256static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1257 .name = "hdq1w",
1258 .class = &omap44xx_hdq1w_hwmod_class,
1259 .clkdm_name = "l4_per_clkdm",
1260 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001261 .main_clk = "func_12m_fclk",
Paul Walmsleya091c082012-04-19 13:33:50 -06001262 .prcm = {
1263 .omap4 = {
1264 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1265 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1266 .modulemode = MODULEMODE_SWCTRL,
1267 },
1268 },
1269};
1270
1271/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001272 * 'hsi' class
1273 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1274 * serial if)
1275 */
1276
1277static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1278 .rev_offs = 0x0000,
1279 .sysc_offs = 0x0010,
1280 .syss_offs = 0x0014,
1281 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1282 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1283 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1284 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1285 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001286 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001287 .sysc_fields = &omap_hwmod_sysc_type1,
1288};
1289
1290static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1291 .name = "hsi",
1292 .sysc = &omap44xx_hsi_sysc,
1293};
1294
1295/* hsi */
Benoit Cousson407a6882011-02-15 22:39:48 +01001296static struct omap_hwmod omap44xx_hsi_hwmod = {
1297 .name = "hsi",
1298 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001299 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001300 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001301 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001302 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001303 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001304 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001305 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001306 },
1307 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001308};
1309
1310/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301311 * 'i2c' class
1312 * multimaster high-speed i2c controller
1313 */
1314
1315static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1316 .sysc_offs = 0x0010,
1317 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001318 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1319 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001320 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001321 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1322 SIDLE_SMART_WKUP),
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301323 .clockact = CLOCKACT_TEST_ICLK,
Benoit Coussonf7764712010-09-21 19:37:14 +05301324 .sysc_fields = &omap_hwmod_sysc_type1,
1325};
1326
1327static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001328 .name = "i2c",
1329 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06001330 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06001331 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05301332};
1333
Andy Green4d4441a2011-07-10 05:27:16 -06001334static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +05301335 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Andy Green4d4441a2011-07-10 05:27:16 -06001336};
1337
Benoit Coussonf7764712010-09-21 19:37:14 +05301338/* i2c1 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301339static struct omap_hwmod omap44xx_i2c1_hwmod = {
1340 .name = "i2c1",
1341 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001342 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301343 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001344 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301345 .prcm = {
1346 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001347 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001348 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001349 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301350 },
1351 },
Andy Green4d4441a2011-07-10 05:27:16 -06001352 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301353};
1354
1355/* i2c2 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301356static struct omap_hwmod omap44xx_i2c2_hwmod = {
1357 .name = "i2c2",
1358 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001359 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301360 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001361 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301362 .prcm = {
1363 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001364 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001365 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001366 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301367 },
1368 },
Andy Green4d4441a2011-07-10 05:27:16 -06001369 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301370};
1371
1372/* i2c3 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301373static struct omap_hwmod omap44xx_i2c3_hwmod = {
1374 .name = "i2c3",
1375 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001376 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301377 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001378 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301379 .prcm = {
1380 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001381 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001382 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001383 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301384 },
1385 },
Andy Green4d4441a2011-07-10 05:27:16 -06001386 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301387};
1388
1389/* i2c4 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301390static struct omap_hwmod omap44xx_i2c4_hwmod = {
1391 .name = "i2c4",
1392 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001393 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301394 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001395 .main_clk = "func_96m_fclk",
Benoit Coussonf7764712010-09-21 19:37:14 +05301396 .prcm = {
1397 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001398 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001399 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001400 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301401 },
1402 },
Andy Green4d4441a2011-07-10 05:27:16 -06001403 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301404};
1405
1406/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001407 * 'ipu' class
1408 * imaging processor unit
1409 */
1410
1411static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1412 .name = "ipu",
1413};
1414
1415/* ipu */
Benoit Cousson407a6882011-02-15 22:39:48 +01001416static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001417 { .name = "cpu0", .rst_shift = 0 },
1418 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001419};
1420
Benoit Cousson407a6882011-02-15 22:39:48 +01001421static struct omap_hwmod omap44xx_ipu_hwmod = {
1422 .name = "ipu",
1423 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001424 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001425 .rst_lines = omap44xx_ipu_resets,
1426 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001427 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001428 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001429 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001430 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001431 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001432 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001433 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001434 },
1435 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001436};
1437
1438/*
1439 * 'iss' class
1440 * external images sensor pixel data processor
1441 */
1442
1443static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1444 .rev_offs = 0x0000,
1445 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001446 /*
1447 * ISS needs 100 OCP clk cycles delay after a softreset before
1448 * accessing sysconfig again.
1449 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1450 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1451 *
1452 * TODO: Indicate errata when available.
1453 */
1454 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001455 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1456 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1457 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1458 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001459 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001460 .sysc_fields = &omap_hwmod_sysc_type2,
1461};
1462
1463static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1464 .name = "iss",
1465 .sysc = &omap44xx_iss_sysc,
1466};
1467
1468/* iss */
Benoit Cousson407a6882011-02-15 22:39:48 +01001469static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1470 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1471};
1472
1473static struct omap_hwmod omap44xx_iss_hwmod = {
1474 .name = "iss",
1475 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001476 .clkdm_name = "iss_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001477 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001478 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001479 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001480 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001481 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001482 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001483 },
1484 },
1485 .opt_clks = iss_opt_clks,
1486 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001487};
1488
1489/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001490 * 'iva' class
1491 * multi-standard video encoder/decoder hardware accelerator
1492 */
1493
1494static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001495 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001496};
1497
1498/* iva */
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001499static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001500 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001501 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001502 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001503};
1504
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001505static struct omap_hwmod omap44xx_iva_hwmod = {
1506 .name = "iva",
1507 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001508 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001509 .rst_lines = omap44xx_iva_resets,
1510 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001511 .main_clk = "dpll_iva_m5x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001512 .prcm = {
1513 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001514 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001515 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001516 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001517 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001518 },
1519 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001520};
1521
1522/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001523 * 'kbd' class
1524 * keyboard controller
1525 */
1526
1527static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1528 .rev_offs = 0x0000,
1529 .sysc_offs = 0x0010,
1530 .syss_offs = 0x0014,
1531 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1532 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1533 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1534 SYSS_HAS_RESET_STATUS),
1535 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1536 .sysc_fields = &omap_hwmod_sysc_type1,
1537};
1538
1539static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1540 .name = "kbd",
1541 .sysc = &omap44xx_kbd_sysc,
1542};
1543
1544/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001545static struct omap_hwmod omap44xx_kbd_hwmod = {
1546 .name = "kbd",
1547 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001548 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001549 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001550 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001551 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001552 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001553 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001554 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001555 },
1556 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001557};
1558
1559/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001560 * 'mailbox' class
1561 * mailbox module allowing communication between the on-chip processors using a
1562 * queued mailbox-interrupt mechanism.
1563 */
1564
1565static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1566 .rev_offs = 0x0000,
1567 .sysc_offs = 0x0010,
1568 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1569 SYSC_HAS_SOFTRESET),
1570 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1571 .sysc_fields = &omap_hwmod_sysc_type2,
1572};
1573
1574static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1575 .name = "mailbox",
1576 .sysc = &omap44xx_mailbox_sysc,
1577};
1578
1579/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001580static struct omap_hwmod omap44xx_mailbox_hwmod = {
1581 .name = "mailbox",
1582 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001583 .clkdm_name = "l4_cfg_clkdm",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001584 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001585 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001586 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001587 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001588 },
1589 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001590};
1591
1592/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001593 * 'mcasp' class
1594 * multi-channel audio serial port controller
1595 */
1596
1597/* The IP is not compliant to type1 / type2 scheme */
1598static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1599 .sidle_shift = 0,
1600};
1601
1602static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1603 .sysc_offs = 0x0004,
1604 .sysc_flags = SYSC_HAS_SIDLEMODE,
1605 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1606 SIDLE_SMART_WKUP),
1607 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1608};
1609
1610static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1611 .name = "mcasp",
1612 .sysc = &omap44xx_mcasp_sysc,
1613};
1614
1615/* mcasp */
Benoît Cousson896d4e92012-04-19 13:33:54 -06001616static struct omap_hwmod omap44xx_mcasp_hwmod = {
1617 .name = "mcasp",
1618 .class = &omap44xx_mcasp_hwmod_class,
1619 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001620 .main_clk = "func_mcasp_abe_gfclk",
Benoît Cousson896d4e92012-04-19 13:33:54 -06001621 .prcm = {
1622 .omap4 = {
1623 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1624 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1625 .modulemode = MODULEMODE_SWCTRL,
1626 },
1627 },
1628};
1629
1630/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001631 * 'mcbsp' class
1632 * multi channel buffered serial port controller
1633 */
1634
1635static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1636 .sysc_offs = 0x008c,
1637 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1638 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1639 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1640 .sysc_fields = &omap_hwmod_sysc_type1,
1641};
1642
1643static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1644 .name = "mcbsp",
1645 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05301646 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001647};
1648
1649/* mcbsp1 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001650static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1651 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001652 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001653};
1654
Benoit Cousson4ddff492011-01-31 14:50:30 +00001655static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1656 .name = "mcbsp1",
1657 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001658 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001659 .main_clk = "func_mcbsp1_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001660 .prcm = {
1661 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001662 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001663 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001664 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001665 },
1666 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001667 .opt_clks = mcbsp1_opt_clks,
1668 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001669};
1670
1671/* mcbsp2 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001672static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
1673 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001674 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001675};
1676
Benoit Cousson4ddff492011-01-31 14:50:30 +00001677static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
1678 .name = "mcbsp2",
1679 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001680 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001681 .main_clk = "func_mcbsp2_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001682 .prcm = {
1683 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001684 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001685 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001686 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001687 },
1688 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001689 .opt_clks = mcbsp2_opt_clks,
1690 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001691};
1692
1693/* mcbsp3 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001694static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
1695 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001696 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001697};
1698
Benoit Cousson4ddff492011-01-31 14:50:30 +00001699static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
1700 .name = "mcbsp3",
1701 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001702 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001703 .main_clk = "func_mcbsp3_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001704 .prcm = {
1705 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001706 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001707 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001708 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001709 },
1710 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001711 .opt_clks = mcbsp3_opt_clks,
1712 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001713};
1714
1715/* mcbsp4 */
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001716static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
1717 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001718 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001719};
1720
Benoit Cousson4ddff492011-01-31 14:50:30 +00001721static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
1722 .name = "mcbsp4",
1723 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001724 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001725 .main_clk = "per_mcbsp4_gfclk",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001726 .prcm = {
1727 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001728 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001729 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001730 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001731 },
1732 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001733 .opt_clks = mcbsp4_opt_clks,
1734 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001735};
1736
1737/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001738 * 'mcpdm' class
1739 * multi channel pdm controller (proprietary interface with phoenix power
1740 * ic)
1741 */
1742
1743static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
1744 .rev_offs = 0x0000,
1745 .sysc_offs = 0x0010,
1746 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1747 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1748 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1749 SIDLE_SMART_WKUP),
1750 .sysc_fields = &omap_hwmod_sysc_type2,
1751};
1752
1753static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
1754 .name = "mcpdm",
1755 .sysc = &omap44xx_mcpdm_sysc,
1756};
1757
1758/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01001759static struct omap_hwmod omap44xx_mcpdm_hwmod = {
1760 .name = "mcpdm",
1761 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001762 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06001763 /*
1764 * It's suspected that the McPDM requires an off-chip main
1765 * functional clock, controlled via I2C. This IP block is
1766 * currently reset very early during boot, before I2C is
1767 * available, so it doesn't seem that we have any choice in
1768 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001769 *
1770 * Also, McPDM needs to be configured to NO_IDLE mode when it
1771 * is in used otherwise vital clocks will be gated which
1772 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06001773 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07001774 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001775 .main_clk = "pad_clks_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001776 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001777 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001778 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001779 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001780 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001781 },
1782 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001783};
1784
1785/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301786 * 'mcspi' class
1787 * multichannel serial port interface (mcspi) / master/slave synchronous serial
1788 * bus
1789 */
1790
1791static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
1792 .rev_offs = 0x0000,
1793 .sysc_offs = 0x0010,
1794 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
1795 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1796 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1797 SIDLE_SMART_WKUP),
1798 .sysc_fields = &omap_hwmod_sysc_type2,
1799};
1800
1801static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
1802 .name = "mcspi",
1803 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01001804 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301805};
1806
1807/* mcspi1 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301808static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
1809 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
1810 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
1811 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
1812 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
1813 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
1814 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
1815 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
1816 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001817 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301818};
1819
Benoit Cousson905a74d2011-02-18 14:01:06 +01001820/* mcspi1 dev_attr */
1821static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
1822 .num_chipselect = 4,
1823};
1824
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301825static struct omap_hwmod omap44xx_mcspi1_hwmod = {
1826 .name = "mcspi1",
1827 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001828 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301829 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001830 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301831 .prcm = {
1832 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001833 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001834 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001835 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301836 },
1837 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001838 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301839};
1840
1841/* mcspi2 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301842static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
1843 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
1844 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
1845 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
1846 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001847 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301848};
1849
Benoit Cousson905a74d2011-02-18 14:01:06 +01001850/* mcspi2 dev_attr */
1851static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
1852 .num_chipselect = 2,
1853};
1854
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301855static struct omap_hwmod omap44xx_mcspi2_hwmod = {
1856 .name = "mcspi2",
1857 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001858 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301859 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001860 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301861 .prcm = {
1862 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001863 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001864 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001865 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301866 },
1867 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001868 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301869};
1870
1871/* mcspi3 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301872static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
1873 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
1874 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
1875 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
1876 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001877 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301878};
1879
Benoit Cousson905a74d2011-02-18 14:01:06 +01001880/* mcspi3 dev_attr */
1881static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
1882 .num_chipselect = 2,
1883};
1884
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301885static struct omap_hwmod omap44xx_mcspi3_hwmod = {
1886 .name = "mcspi3",
1887 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001888 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301889 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001890 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301891 .prcm = {
1892 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001893 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001894 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001895 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301896 },
1897 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001898 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301899};
1900
1901/* mcspi4 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301902static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
1903 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
1904 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001905 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301906};
1907
Benoit Cousson905a74d2011-02-18 14:01:06 +01001908/* mcspi4 dev_attr */
1909static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
1910 .num_chipselect = 1,
1911};
1912
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301913static struct omap_hwmod omap44xx_mcspi4_hwmod = {
1914 .name = "mcspi4",
1915 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001916 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301917 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07001918 .main_clk = "func_48m_fclk",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301919 .prcm = {
1920 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001921 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001922 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001923 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301924 },
1925 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01001926 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05301927};
1928
1929/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001930 * 'mmc' class
1931 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
1932 */
1933
1934static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
1935 .rev_offs = 0x0000,
1936 .sysc_offs = 0x0010,
1937 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
1938 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1939 SYSC_HAS_SOFTRESET),
1940 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1941 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001942 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001943 .sysc_fields = &omap_hwmod_sysc_type2,
1944};
1945
1946static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
1947 .name = "mmc",
1948 .sysc = &omap44xx_mmc_sysc,
1949};
1950
1951/* mmc1 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001952static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
1953 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
1954 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001955 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001956};
1957
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001958/* mmc1 dev_attr */
Andreas Fenkart55143432014-11-08 15:33:09 +01001959static struct omap_hsmmc_dev_attr mmc1_dev_attr = {
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001960 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
1961};
1962
Benoit Cousson407a6882011-02-15 22:39:48 +01001963static struct omap_hwmod omap44xx_mmc1_hwmod = {
1964 .name = "mmc1",
1965 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001966 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001967 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001968 .main_clk = "hsmmc1_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001969 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001970 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001971 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001972 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001973 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001974 },
1975 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08001976 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01001977};
1978
1979/* mmc2 */
Benoit Cousson407a6882011-02-15 22:39:48 +01001980static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
1981 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
1982 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001983 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001984};
1985
Benoit Cousson407a6882011-02-15 22:39:48 +01001986static struct omap_hwmod omap44xx_mmc2_hwmod = {
1987 .name = "mmc2",
1988 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001989 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001990 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07001991 .main_clk = "hsmmc2_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001992 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001993 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001994 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001995 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001996 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001997 },
1998 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001999};
2000
2001/* mmc3 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002002static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2003 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2004 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002005 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002006};
2007
Benoit Cousson407a6882011-02-15 22:39:48 +01002008static struct omap_hwmod omap44xx_mmc3_hwmod = {
2009 .name = "mmc3",
2010 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002011 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002012 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002013 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002014 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002015 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002016 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002017 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002018 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002019 },
2020 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002021};
2022
2023/* mmc4 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002024static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2025 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2026 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002027 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002028};
2029
Benoit Cousson407a6882011-02-15 22:39:48 +01002030static struct omap_hwmod omap44xx_mmc4_hwmod = {
2031 .name = "mmc4",
2032 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002033 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002034 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002035 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002036 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002037 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002038 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002039 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002040 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002041 },
2042 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002043};
2044
2045/* mmc5 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002046static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2047 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2048 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002049 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002050};
2051
Benoit Cousson407a6882011-02-15 22:39:48 +01002052static struct omap_hwmod omap44xx_mmc5_hwmod = {
2053 .name = "mmc5",
2054 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002055 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002056 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002057 .main_clk = "func_48m_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002058 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002059 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002060 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002061 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002062 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002063 },
2064 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002065};
2066
2067/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002068 * 'mmu' class
2069 * The memory management unit performs virtual to physical address translation
2070 * for its requestors.
2071 */
2072
2073static struct omap_hwmod_class_sysconfig mmu_sysc = {
2074 .rev_offs = 0x000,
2075 .sysc_offs = 0x010,
2076 .syss_offs = 0x014,
2077 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2078 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2079 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2080 .sysc_fields = &omap_hwmod_sysc_type1,
2081};
2082
2083static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2084 .name = "mmu",
2085 .sysc = &mmu_sysc,
2086};
2087
2088/* mmu ipu */
2089
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002090static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002091static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2092 { .name = "mmu_cache", .rst_shift = 2 },
2093};
2094
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002095/* l3_main_2 -> mmu_ipu */
2096static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2097 .master = &omap44xx_l3_main_2_hwmod,
2098 .slave = &omap44xx_mmu_ipu_hwmod,
2099 .clk = "l3_div_ck",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002100 .user = OCP_USER_MPU | OCP_USER_SDMA,
2101};
2102
2103static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2104 .name = "mmu_ipu",
2105 .class = &omap44xx_mmu_hwmod_class,
2106 .clkdm_name = "ducati_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002107 .rst_lines = omap44xx_mmu_ipu_resets,
2108 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2109 .main_clk = "ducati_clk_mux_ck",
2110 .prcm = {
2111 .omap4 = {
2112 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2113 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2114 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2115 .modulemode = MODULEMODE_HWCTRL,
2116 },
2117 },
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002118};
2119
2120/* mmu dsp */
2121
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002122static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002123static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2124 { .name = "mmu_cache", .rst_shift = 1 },
2125};
2126
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002127/* l4_cfg -> dsp */
2128static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2129 .master = &omap44xx_l4_cfg_hwmod,
2130 .slave = &omap44xx_mmu_dsp_hwmod,
2131 .clk = "l4_div_ck",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002132 .user = OCP_USER_MPU | OCP_USER_SDMA,
2133};
2134
2135static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2136 .name = "mmu_dsp",
2137 .class = &omap44xx_mmu_hwmod_class,
2138 .clkdm_name = "tesla_clkdm",
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002139 .rst_lines = omap44xx_mmu_dsp_resets,
2140 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2141 .main_clk = "dpll_iva_m4x2_ck",
2142 .prcm = {
2143 .omap4 = {
2144 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2145 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2146 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2147 .modulemode = MODULEMODE_HWCTRL,
2148 },
2149 },
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002150};
2151
2152/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002153 * 'mpu' class
2154 * mpu sub-system
2155 */
2156
2157static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002158 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002159};
2160
2161/* mpu */
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002162static struct omap_hwmod omap44xx_mpu_hwmod = {
2163 .name = "mpu",
2164 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002165 .clkdm_name = "mpuss_clkdm",
Rajendra Nayakb2eb0002013-08-20 13:02:44 +05302166 .flags = HWMOD_INIT_NO_IDLE,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002167 .main_clk = "dpll_mpu_m2_ck",
2168 .prcm = {
2169 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002170 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002171 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002172 },
2173 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002174};
2175
Benoit Cousson92b18d12010-09-23 20:02:41 +05302176/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06002177 * 'ocmc_ram' class
2178 * top-level core on-chip ram
2179 */
2180
2181static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2182 .name = "ocmc_ram",
2183};
2184
2185/* ocmc_ram */
2186static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2187 .name = "ocmc_ram",
2188 .class = &omap44xx_ocmc_ram_hwmod_class,
2189 .clkdm_name = "l3_2_clkdm",
2190 .prcm = {
2191 .omap4 = {
2192 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2193 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2194 },
2195 },
2196};
2197
2198/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002199 * 'ocp2scp' class
2200 * bridge to transform ocp interface protocol to scp (serial control port)
2201 * protocol
2202 */
2203
Benoit Cousson33c976e2012-09-23 17:28:21 -06002204static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2205 .rev_offs = 0x0000,
2206 .sysc_offs = 0x0010,
2207 .syss_offs = 0x0014,
2208 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2209 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2210 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2211 .sysc_fields = &omap_hwmod_sysc_type1,
2212};
2213
Benoît Cousson0c668872012-04-19 13:33:55 -06002214static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2215 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06002216 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06002217};
2218
2219/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06002220static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2221 .name = "ocp2scp_usb_phy",
2222 .class = &omap44xx_ocp2scp_hwmod_class,
2223 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham If4d7a532013-04-10 19:41:38 +00002224 /*
2225 * ocp2scp_usb_phy_phy_48m is provided by the OMAP4 PRCM IP
2226 * block as an "optional clock," and normally should never be
2227 * specified as the main_clk for an OMAP IP block. However it
2228 * turns out that this clock is actually the main clock for
2229 * the ocp2scp_usb_phy IP block:
2230 * http://lists.infradead.org/pipermail/linux-arm-kernel/2012-September/119943.html
2231 * So listing ocp2scp_usb_phy_phy_48m as a main_clk here seems
2232 * to be the best workaround.
2233 */
2234 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06002235 .prcm = {
2236 .omap4 = {
2237 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2238 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2239 .modulemode = MODULEMODE_HWCTRL,
2240 },
2241 },
Benoît Cousson0c668872012-04-19 13:33:55 -06002242};
2243
2244/*
Paul Walmsley794b4802012-04-19 13:33:58 -06002245 * 'prcm' class
2246 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2247 * + clock manager 1 (in always on power domain) + local prm in mpu
2248 */
2249
2250static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2251 .name = "prcm",
2252};
2253
2254/* prcm_mpu */
2255static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2256 .name = "prcm_mpu",
2257 .class = &omap44xx_prcm_hwmod_class,
2258 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06002259 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002260 .prcm = {
2261 .omap4 = {
2262 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2263 },
2264 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002265};
2266
2267/* cm_core_aon */
2268static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2269 .name = "cm_core_aon",
2270 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002271 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002272 .prcm = {
2273 .omap4 = {
2274 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2275 },
2276 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002277};
2278
2279/* cm_core */
2280static struct omap_hwmod omap44xx_cm_core_hwmod = {
2281 .name = "cm_core",
2282 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002283 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002284 .prcm = {
2285 .omap4 = {
2286 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2287 },
2288 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002289};
2290
2291/* prm */
Paul Walmsley794b4802012-04-19 13:33:58 -06002292static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2293 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2294 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2295};
2296
2297static struct omap_hwmod omap44xx_prm_hwmod = {
2298 .name = "prm",
2299 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06002300 .rst_lines = omap44xx_prm_resets,
2301 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2302};
2303
2304/*
2305 * 'scrm' class
2306 * system clock and reset manager
2307 */
2308
2309static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2310 .name = "scrm",
2311};
2312
2313/* scrm */
2314static struct omap_hwmod omap44xx_scrm_hwmod = {
2315 .name = "scrm",
2316 .class = &omap44xx_scrm_hwmod_class,
2317 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06002318 .prcm = {
2319 .omap4 = {
2320 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2321 },
2322 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002323};
2324
2325/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06002326 * 'sl2if' class
2327 * shared level 2 memory interface
2328 */
2329
2330static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2331 .name = "sl2if",
2332};
2333
2334/* sl2if */
2335static struct omap_hwmod omap44xx_sl2if_hwmod = {
2336 .name = "sl2if",
2337 .class = &omap44xx_sl2if_hwmod_class,
2338 .clkdm_name = "ivahd_clkdm",
2339 .prcm = {
2340 .omap4 = {
2341 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2342 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2343 .modulemode = MODULEMODE_HWCTRL,
2344 },
2345 },
2346};
2347
2348/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002349 * 'slimbus' class
2350 * bidirectional, multi-drop, multi-channel two-line serial interface between
2351 * the device and external components
2352 */
2353
2354static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2355 .rev_offs = 0x0000,
2356 .sysc_offs = 0x0010,
2357 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2358 SYSC_HAS_SOFTRESET),
2359 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2360 SIDLE_SMART_WKUP),
2361 .sysc_fields = &omap_hwmod_sysc_type2,
2362};
2363
2364static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2365 .name = "slimbus",
2366 .sysc = &omap44xx_slimbus_sysc,
2367};
2368
2369/* slimbus1 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002370static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2371 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2372 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2373 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2374 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2375};
2376
2377static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2378 .name = "slimbus1",
2379 .class = &omap44xx_slimbus_hwmod_class,
2380 .clkdm_name = "abe_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002381 .prcm = {
2382 .omap4 = {
2383 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2384 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2385 .modulemode = MODULEMODE_SWCTRL,
2386 },
2387 },
2388 .opt_clks = slimbus1_opt_clks,
2389 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2390};
2391
2392/* slimbus2 */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002393static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2394 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2395 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2396 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2397};
2398
2399static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2400 .name = "slimbus2",
2401 .class = &omap44xx_slimbus_hwmod_class,
2402 .clkdm_name = "l4_per_clkdm",
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002403 .prcm = {
2404 .omap4 = {
2405 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2406 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2407 .modulemode = MODULEMODE_SWCTRL,
2408 },
2409 },
2410 .opt_clks = slimbus2_opt_clks,
2411 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2412};
2413
2414/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002415 * 'smartreflex' class
2416 * smartreflex module (monitor silicon performance and outputs a measure of
2417 * performance error)
2418 */
2419
2420/* The IP is not compliant to type1 / type2 scheme */
2421static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2422 .sidle_shift = 24,
2423 .enwkup_shift = 26,
2424};
2425
2426static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2427 .sysc_offs = 0x0038,
2428 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2429 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2430 SIDLE_SMART_WKUP),
2431 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2432};
2433
2434static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002435 .name = "smartreflex",
2436 .sysc = &omap44xx_smartreflex_sysc,
2437 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002438};
2439
2440/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002441static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2442 .sensor_voltdm_name = "core",
2443};
2444
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002445static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2446 .name = "smartreflex_core",
2447 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002448 .clkdm_name = "l4_ao_clkdm",
Paul Walmsley212738a2011-07-09 19:14:06 -06002449
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002450 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002451 .prcm = {
2452 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002453 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002454 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002455 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002456 },
2457 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002458 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002459};
2460
2461/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002462static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
2463 .sensor_voltdm_name = "iva",
2464};
2465
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002466static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
2467 .name = "smartreflex_iva",
2468 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002469 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002470 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002471 .prcm = {
2472 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002473 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002474 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002475 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002476 },
2477 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002478 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002479};
2480
2481/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002482static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
2483 .sensor_voltdm_name = "mpu",
2484};
2485
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002486static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
2487 .name = "smartreflex_mpu",
2488 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002489 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002490 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002491 .prcm = {
2492 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002493 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002494 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002495 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002496 },
2497 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01002498 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002499};
2500
2501/*
Benoit Coussond11c2172011-02-02 12:04:36 +00002502 * 'spinlock' class
2503 * spinlock provides hardware assistance for synchronizing the processes
2504 * running on multiple processors
2505 */
2506
2507static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
2508 .rev_offs = 0x0000,
2509 .sysc_offs = 0x0010,
2510 .syss_offs = 0x0014,
2511 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2512 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
2513 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Suman Anna77319662013-12-23 16:48:48 -06002514 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Benoit Coussond11c2172011-02-02 12:04:36 +00002515 .sysc_fields = &omap_hwmod_sysc_type1,
2516};
2517
2518static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
2519 .name = "spinlock",
2520 .sysc = &omap44xx_spinlock_sysc,
2521};
2522
2523/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00002524static struct omap_hwmod omap44xx_spinlock_hwmod = {
2525 .name = "spinlock",
2526 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002527 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00002528 .prcm = {
2529 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002530 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002531 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00002532 },
2533 },
Benoit Coussond11c2172011-02-02 12:04:36 +00002534};
2535
2536/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00002537 * 'timer' class
2538 * general purpose timer module with accurate 1ms tick
2539 * This class contains several variants: ['timer_1ms', 'timer']
2540 */
2541
2542static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
2543 .rev_offs = 0x0000,
2544 .sysc_offs = 0x0010,
2545 .syss_offs = 0x0014,
2546 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
2547 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
2548 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2549 SYSS_HAS_RESET_STATUS),
2550 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Jon Hunter10759e82012-07-11 13:00:13 -05002551 .clockact = CLOCKACT_TEST_ICLK,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002552 .sysc_fields = &omap_hwmod_sysc_type1,
2553};
2554
2555static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
2556 .name = "timer",
2557 .sysc = &omap44xx_timer_1ms_sysc,
2558};
2559
2560static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
2561 .rev_offs = 0x0000,
2562 .sysc_offs = 0x0010,
2563 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2564 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2565 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2566 SIDLE_SMART_WKUP),
2567 .sysc_fields = &omap_hwmod_sysc_type2,
2568};
2569
2570static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
2571 .name = "timer",
2572 .sysc = &omap44xx_timer_sysc,
2573};
2574
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302575/* always-on timers dev attribute */
2576static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
2577 .timer_capability = OMAP_TIMER_ALWON,
2578};
2579
2580/* pwm timers dev attribute */
2581static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
2582 .timer_capability = OMAP_TIMER_HAS_PWM,
2583};
2584
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002585/* timers with DSP interrupt dev attribute */
2586static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
2587 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
2588};
2589
2590/* pwm timers with DSP interrupt dev attribute */
2591static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
2592 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
2593};
2594
Benoit Cousson35d1a662011-02-11 11:17:14 +00002595/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002596static struct omap_hwmod omap44xx_timer1_hwmod = {
2597 .name = "timer1",
2598 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002599 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002600 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002601 .main_clk = "dmt1_clk_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002602 .prcm = {
2603 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002604 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002605 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002606 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002607 },
2608 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302609 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002610};
2611
2612/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002613static struct omap_hwmod omap44xx_timer2_hwmod = {
2614 .name = "timer2",
2615 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002616 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002617 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002618 .main_clk = "cm2_dm2_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002619 .prcm = {
2620 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002621 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002622 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002623 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002624 },
2625 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002626};
2627
2628/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002629static struct omap_hwmod omap44xx_timer3_hwmod = {
2630 .name = "timer3",
2631 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002632 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002633 .main_clk = "cm2_dm3_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002634 .prcm = {
2635 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002636 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002637 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002638 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002639 },
2640 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002641};
2642
2643/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002644static struct omap_hwmod omap44xx_timer4_hwmod = {
2645 .name = "timer4",
2646 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002647 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002648 .main_clk = "cm2_dm4_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002649 .prcm = {
2650 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002651 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002652 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002653 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002654 },
2655 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00002656};
2657
2658/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002659static struct omap_hwmod omap44xx_timer5_hwmod = {
2660 .name = "timer5",
2661 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002662 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002663 .main_clk = "timer5_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002664 .prcm = {
2665 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002666 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002667 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002668 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002669 },
2670 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002671 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002672};
2673
2674/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002675static struct omap_hwmod omap44xx_timer6_hwmod = {
2676 .name = "timer6",
2677 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002678 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002679 .main_clk = "timer6_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002680 .prcm = {
2681 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002682 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002683 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002684 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002685 },
2686 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002687 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002688};
2689
2690/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002691static struct omap_hwmod omap44xx_timer7_hwmod = {
2692 .name = "timer7",
2693 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002694 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002695 .main_clk = "timer7_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002696 .prcm = {
2697 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002698 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002699 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002700 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002701 },
2702 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002703 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002704};
2705
2706/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002707static struct omap_hwmod omap44xx_timer8_hwmod = {
2708 .name = "timer8",
2709 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002710 .clkdm_name = "abe_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002711 .main_clk = "timer8_sync_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002712 .prcm = {
2713 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002714 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002715 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002716 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002717 },
2718 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06002719 .dev_attr = &capability_dsp_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002720};
2721
2722/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002723static struct omap_hwmod omap44xx_timer9_hwmod = {
2724 .name = "timer9",
2725 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002726 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002727 .main_clk = "cm2_dm9_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002728 .prcm = {
2729 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002730 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002731 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002732 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002733 },
2734 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302735 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002736};
2737
2738/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002739static struct omap_hwmod omap44xx_timer10_hwmod = {
2740 .name = "timer10",
2741 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002742 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05002743 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002744 .main_clk = "cm2_dm10_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002745 .prcm = {
2746 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002747 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002748 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002749 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002750 },
2751 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302752 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002753};
2754
2755/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00002756static struct omap_hwmod omap44xx_timer11_hwmod = {
2757 .name = "timer11",
2758 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002759 .clkdm_name = "l4_per_clkdm",
Paul Walmsleyee877ac2013-01-26 00:48:55 -07002760 .main_clk = "cm2_dm11_mux",
Benoit Cousson35d1a662011-02-11 11:17:14 +00002761 .prcm = {
2762 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002763 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002764 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002765 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002766 },
2767 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05302768 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00002769};
2770
2771/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05302772 * 'uart' class
2773 * universal asynchronous receiver/transmitter (uart)
2774 */
2775
2776static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
2777 .rev_offs = 0x0050,
2778 .sysc_offs = 0x0054,
2779 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07002780 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07002781 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
2782 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07002783 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2784 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05302785 .sysc_fields = &omap_hwmod_sysc_type1,
2786};
2787
2788static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002789 .name = "uart",
2790 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302791};
2792
2793/* uart1 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302794static struct omap_hwmod omap44xx_uart1_hwmod = {
2795 .name = "uart1",
2796 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002797 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302798 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002799 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302800 .prcm = {
2801 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002802 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002803 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002804 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302805 },
2806 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302807};
2808
2809/* uart2 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302810static struct omap_hwmod omap44xx_uart2_hwmod = {
2811 .name = "uart2",
2812 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002813 .clkdm_name = "l4_per_clkdm",
Santosh Shilimkar66dde542013-05-15 20:18:39 +05302814 .flags = HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002815 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302816 .prcm = {
2817 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002818 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002819 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002820 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302821 },
2822 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302823};
2824
2825/* uart3 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302826static struct omap_hwmod omap44xx_uart3_hwmod = {
2827 .name = "uart3",
2828 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002829 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002830 .flags = DEBUG_OMAP4UART3_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002831 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302832 .prcm = {
2833 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002834 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002835 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002836 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302837 },
2838 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302839};
2840
2841/* uart4 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05302842static struct omap_hwmod omap44xx_uart4_hwmod = {
2843 .name = "uart4",
2844 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002845 .clkdm_name = "l4_per_clkdm",
Rajendra Nayak7dedd342013-07-28 23:01:48 -06002846 .flags = DEBUG_OMAP4UART4_FLAGS | HWMOD_SWSUP_SIDLE_ACT,
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07002847 .main_clk = "func_48m_fclk",
Benoit Coussondb12ba52010-09-27 20:19:19 +05302848 .prcm = {
2849 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002850 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002851 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002852 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05302853 },
2854 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05302855};
2856
Benoit Cousson9780a9c2010-12-07 16:26:57 -08002857/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002858 * 'usb_host_fs' class
2859 * full-speed usb host controller
2860 */
2861
2862/* The IP is not compliant to type1 / type2 scheme */
2863static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
2864 .midle_shift = 4,
2865 .sidle_shift = 2,
2866 .srst_shift = 1,
2867};
2868
2869static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
2870 .rev_offs = 0x0000,
2871 .sysc_offs = 0x0210,
2872 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2873 SYSC_HAS_SOFTRESET),
2874 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2875 SIDLE_SMART_WKUP),
2876 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
2877};
2878
2879static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
2880 .name = "usb_host_fs",
2881 .sysc = &omap44xx_usb_host_fs_sysc,
2882};
2883
2884/* usb_host_fs */
Benoît Cousson0c668872012-04-19 13:33:55 -06002885static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
2886 .name = "usb_host_fs",
2887 .class = &omap44xx_usb_host_fs_hwmod_class,
2888 .clkdm_name = "l3_init_clkdm",
Benoît Cousson0c668872012-04-19 13:33:55 -06002889 .main_clk = "usb_host_fs_fck",
2890 .prcm = {
2891 .omap4 = {
2892 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
2893 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
2894 .modulemode = MODULEMODE_SWCTRL,
2895 },
2896 },
2897};
2898
2899/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002900 * 'usb_host_hs' class
2901 * high-speed multi-port usb host controller
2902 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002903
2904static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
2905 .rev_offs = 0x0000,
2906 .sysc_offs = 0x0010,
2907 .syss_offs = 0x0014,
2908 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002909 SYSC_HAS_SOFTRESET | SYSC_HAS_RESET_STATUS),
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002910 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2911 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2912 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
2913 .sysc_fields = &omap_hwmod_sysc_type2,
2914};
2915
2916static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06002917 .name = "usb_host_hs",
2918 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002919};
2920
Paul Walmsley844a3b62012-04-19 04:04:33 -06002921/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002922static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
2923 .name = "usb_host_hs",
2924 .class = &omap44xx_usb_host_hs_hwmod_class,
2925 .clkdm_name = "l3_init_clkdm",
2926 .main_clk = "usb_host_hs_fck",
2927 .prcm = {
2928 .omap4 = {
2929 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
2930 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
2931 .modulemode = MODULEMODE_SWCTRL,
2932 },
2933 },
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002934
2935 /*
2936 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
2937 * id: i660
2938 *
2939 * Description:
2940 * In the following configuration :
2941 * - USBHOST module is set to smart-idle mode
2942 * - PRCM asserts idle_req to the USBHOST module ( This typically
2943 * happens when the system is going to a low power mode : all ports
2944 * have been suspended, the master part of the USBHOST module has
2945 * entered the standby state, and SW has cut the functional clocks)
2946 * - an USBHOST interrupt occurs before the module is able to answer
2947 * idle_ack, typically a remote wakeup IRQ.
2948 * Then the USB HOST module will enter a deadlock situation where it
2949 * is no more accessible nor functional.
2950 *
2951 * Workaround:
2952 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
2953 */
2954
2955 /*
2956 * Errata: USB host EHCI may stall when entering smart-standby mode
2957 * Id: i571
2958 *
2959 * Description:
2960 * When the USBHOST module is set to smart-standby mode, and when it is
2961 * ready to enter the standby state (i.e. all ports are suspended and
2962 * all attached devices are in suspend mode), then it can wrongly assert
2963 * the Mstandby signal too early while there are still some residual OCP
2964 * transactions ongoing. If this condition occurs, the internal state
2965 * machine may go to an undefined state and the USB link may be stuck
2966 * upon the next resume.
2967 *
2968 * Workaround:
2969 * Don't use smart standby; use only force standby,
2970 * hence HWMOD_SWSUP_MSTANDBY
2971 */
2972
Roger Quadrosb483a4a2013-12-03 16:25:46 +02002973 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07002974};
2975
2976/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06002977 * 'usb_otg_hs' class
2978 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
2979 */
2980
2981static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
2982 .rev_offs = 0x0400,
2983 .sysc_offs = 0x0404,
2984 .syss_offs = 0x0408,
2985 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
2986 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
2987 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2988 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2989 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
2990 MSTANDBY_SMART),
2991 .sysc_fields = &omap_hwmod_sysc_type1,
2992};
2993
2994static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
2995 .name = "usb_otg_hs",
2996 .sysc = &omap44xx_usb_otg_hs_sysc,
2997};
2998
2999/* usb_otg_hs */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003000static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3001 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3002};
3003
3004static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3005 .name = "usb_otg_hs",
3006 .class = &omap44xx_usb_otg_hs_hwmod_class,
3007 .clkdm_name = "l3_init_clkdm",
3008 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003009 .main_clk = "usb_otg_hs_ick",
3010 .prcm = {
3011 .omap4 = {
3012 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3013 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3014 .modulemode = MODULEMODE_HWCTRL,
3015 },
3016 },
3017 .opt_clks = usb_otg_hs_opt_clks,
3018 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3019};
3020
3021/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003022 * 'usb_tll_hs' class
3023 * usb_tll_hs module is the adapter on the usb_host_hs ports
3024 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003025
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003026static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3027 .rev_offs = 0x0000,
3028 .sysc_offs = 0x0010,
3029 .syss_offs = 0x0014,
3030 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3031 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3032 SYSC_HAS_AUTOIDLE),
3033 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3034 .sysc_fields = &omap_hwmod_sysc_type1,
3035};
3036
3037static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003038 .name = "usb_tll_hs",
3039 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003040};
3041
Paul Walmsley844a3b62012-04-19 04:04:33 -06003042static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3043 .name = "usb_tll_hs",
3044 .class = &omap44xx_usb_tll_hs_hwmod_class,
3045 .clkdm_name = "l3_init_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003046 .main_clk = "usb_tll_hs_ick",
3047 .prcm = {
3048 .omap4 = {
3049 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3050 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3051 .modulemode = MODULEMODE_HWCTRL,
3052 },
3053 },
3054};
3055
3056/*
3057 * 'wd_timer' class
3058 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3059 * overflow condition
3060 */
3061
3062static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3063 .rev_offs = 0x0000,
3064 .sysc_offs = 0x0010,
3065 .syss_offs = 0x0014,
3066 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3067 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3068 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3069 SIDLE_SMART_WKUP),
3070 .sysc_fields = &omap_hwmod_sysc_type1,
3071};
3072
3073static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3074 .name = "wd_timer",
3075 .sysc = &omap44xx_wd_timer_sysc,
3076 .pre_shutdown = &omap2_wd_timer_disable,
Kevin Hilman414e4122012-05-08 11:34:30 -06003077 .reset = &omap2_wd_timer_reset,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003078};
3079
3080/* wd_timer2 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003081static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3082 .name = "wd_timer2",
3083 .class = &omap44xx_wd_timer_hwmod_class,
3084 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003085 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003086 .prcm = {
3087 .omap4 = {
3088 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3089 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3090 .modulemode = MODULEMODE_SWCTRL,
3091 },
3092 },
3093};
3094
3095/* wd_timer3 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003096static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3097 .name = "wd_timer3",
3098 .class = &omap44xx_wd_timer_hwmod_class,
3099 .clkdm_name = "abe_clkdm",
Paul Walmsley17b7e7d2013-01-26 00:48:54 -07003100 .main_clk = "sys_32k_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003101 .prcm = {
3102 .omap4 = {
3103 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3104 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3105 .modulemode = MODULEMODE_SWCTRL,
3106 },
3107 },
3108};
3109
3110
3111/*
3112 * interfaces
3113 */
3114
3115/* l3_main_1 -> dmm */
3116static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3117 .master = &omap44xx_l3_main_1_hwmod,
3118 .slave = &omap44xx_dmm_hwmod,
3119 .clk = "l3_div_ck",
3120 .user = OCP_USER_SDMA,
3121};
3122
Paul Walmsley844a3b62012-04-19 04:04:33 -06003123/* mpu -> dmm */
3124static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3125 .master = &omap44xx_mpu_hwmod,
3126 .slave = &omap44xx_dmm_hwmod,
3127 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003128 .user = OCP_USER_MPU,
3129};
3130
3131/* iva -> l3_instr */
3132static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3133 .master = &omap44xx_iva_hwmod,
3134 .slave = &omap44xx_l3_instr_hwmod,
3135 .clk = "l3_div_ck",
3136 .user = OCP_USER_MPU | OCP_USER_SDMA,
3137};
3138
3139/* l3_main_3 -> l3_instr */
3140static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3141 .master = &omap44xx_l3_main_3_hwmod,
3142 .slave = &omap44xx_l3_instr_hwmod,
3143 .clk = "l3_div_ck",
3144 .user = OCP_USER_MPU | OCP_USER_SDMA,
3145};
3146
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003147/* ocp_wp_noc -> l3_instr */
3148static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3149 .master = &omap44xx_ocp_wp_noc_hwmod,
3150 .slave = &omap44xx_l3_instr_hwmod,
3151 .clk = "l3_div_ck",
3152 .user = OCP_USER_MPU | OCP_USER_SDMA,
3153};
3154
Paul Walmsley844a3b62012-04-19 04:04:33 -06003155/* dsp -> l3_main_1 */
3156static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3157 .master = &omap44xx_dsp_hwmod,
3158 .slave = &omap44xx_l3_main_1_hwmod,
3159 .clk = "l3_div_ck",
3160 .user = OCP_USER_MPU | OCP_USER_SDMA,
3161};
3162
3163/* dss -> l3_main_1 */
3164static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3165 .master = &omap44xx_dss_hwmod,
3166 .slave = &omap44xx_l3_main_1_hwmod,
3167 .clk = "l3_div_ck",
3168 .user = OCP_USER_MPU | OCP_USER_SDMA,
3169};
3170
3171/* l3_main_2 -> l3_main_1 */
3172static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3173 .master = &omap44xx_l3_main_2_hwmod,
3174 .slave = &omap44xx_l3_main_1_hwmod,
3175 .clk = "l3_div_ck",
3176 .user = OCP_USER_MPU | OCP_USER_SDMA,
3177};
3178
3179/* l4_cfg -> l3_main_1 */
3180static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3181 .master = &omap44xx_l4_cfg_hwmod,
3182 .slave = &omap44xx_l3_main_1_hwmod,
3183 .clk = "l4_div_ck",
3184 .user = OCP_USER_MPU | OCP_USER_SDMA,
3185};
3186
3187/* mmc1 -> l3_main_1 */
3188static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3189 .master = &omap44xx_mmc1_hwmod,
3190 .slave = &omap44xx_l3_main_1_hwmod,
3191 .clk = "l3_div_ck",
3192 .user = OCP_USER_MPU | OCP_USER_SDMA,
3193};
3194
3195/* mmc2 -> l3_main_1 */
3196static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3197 .master = &omap44xx_mmc2_hwmod,
3198 .slave = &omap44xx_l3_main_1_hwmod,
3199 .clk = "l3_div_ck",
3200 .user = OCP_USER_MPU | OCP_USER_SDMA,
3201};
3202
Paul Walmsley844a3b62012-04-19 04:04:33 -06003203/* mpu -> l3_main_1 */
3204static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
3205 .master = &omap44xx_mpu_hwmod,
3206 .slave = &omap44xx_l3_main_1_hwmod,
3207 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003208 .user = OCP_USER_MPU,
3209};
3210
Benoît Cousson96566042012-04-19 13:33:59 -06003211/* debugss -> l3_main_2 */
3212static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
3213 .master = &omap44xx_debugss_hwmod,
3214 .slave = &omap44xx_l3_main_2_hwmod,
3215 .clk = "dbgclk_mux_ck",
3216 .user = OCP_USER_MPU | OCP_USER_SDMA,
3217};
3218
Paul Walmsley844a3b62012-04-19 04:04:33 -06003219/* dma_system -> l3_main_2 */
3220static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
3221 .master = &omap44xx_dma_system_hwmod,
3222 .slave = &omap44xx_l3_main_2_hwmod,
3223 .clk = "l3_div_ck",
3224 .user = OCP_USER_MPU | OCP_USER_SDMA,
3225};
3226
Ming Leib050f682012-04-19 13:33:50 -06003227/* fdif -> l3_main_2 */
3228static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
3229 .master = &omap44xx_fdif_hwmod,
3230 .slave = &omap44xx_l3_main_2_hwmod,
3231 .clk = "l3_div_ck",
3232 .user = OCP_USER_MPU | OCP_USER_SDMA,
3233};
3234
Paul Walmsley9def3902012-04-19 13:33:53 -06003235/* gpu -> l3_main_2 */
3236static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
3237 .master = &omap44xx_gpu_hwmod,
3238 .slave = &omap44xx_l3_main_2_hwmod,
3239 .clk = "l3_div_ck",
3240 .user = OCP_USER_MPU | OCP_USER_SDMA,
3241};
3242
Paul Walmsley844a3b62012-04-19 04:04:33 -06003243/* hsi -> l3_main_2 */
3244static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
3245 .master = &omap44xx_hsi_hwmod,
3246 .slave = &omap44xx_l3_main_2_hwmod,
3247 .clk = "l3_div_ck",
3248 .user = OCP_USER_MPU | OCP_USER_SDMA,
3249};
3250
3251/* ipu -> l3_main_2 */
3252static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
3253 .master = &omap44xx_ipu_hwmod,
3254 .slave = &omap44xx_l3_main_2_hwmod,
3255 .clk = "l3_div_ck",
3256 .user = OCP_USER_MPU | OCP_USER_SDMA,
3257};
3258
3259/* iss -> l3_main_2 */
3260static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
3261 .master = &omap44xx_iss_hwmod,
3262 .slave = &omap44xx_l3_main_2_hwmod,
3263 .clk = "l3_div_ck",
3264 .user = OCP_USER_MPU | OCP_USER_SDMA,
3265};
3266
3267/* iva -> l3_main_2 */
3268static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
3269 .master = &omap44xx_iva_hwmod,
3270 .slave = &omap44xx_l3_main_2_hwmod,
3271 .clk = "l3_div_ck",
3272 .user = OCP_USER_MPU | OCP_USER_SDMA,
3273};
3274
Paul Walmsley844a3b62012-04-19 04:04:33 -06003275/* l3_main_1 -> l3_main_2 */
3276static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
3277 .master = &omap44xx_l3_main_1_hwmod,
3278 .slave = &omap44xx_l3_main_2_hwmod,
3279 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003280 .user = OCP_USER_MPU,
3281};
3282
3283/* l4_cfg -> l3_main_2 */
3284static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
3285 .master = &omap44xx_l4_cfg_hwmod,
3286 .slave = &omap44xx_l3_main_2_hwmod,
3287 .clk = "l4_div_ck",
3288 .user = OCP_USER_MPU | OCP_USER_SDMA,
3289};
3290
Benoît Cousson0c668872012-04-19 13:33:55 -06003291/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003292static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06003293 .master = &omap44xx_usb_host_fs_hwmod,
3294 .slave = &omap44xx_l3_main_2_hwmod,
3295 .clk = "l3_div_ck",
3296 .user = OCP_USER_MPU | OCP_USER_SDMA,
3297};
3298
Paul Walmsley844a3b62012-04-19 04:04:33 -06003299/* usb_host_hs -> l3_main_2 */
3300static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
3301 .master = &omap44xx_usb_host_hs_hwmod,
3302 .slave = &omap44xx_l3_main_2_hwmod,
3303 .clk = "l3_div_ck",
3304 .user = OCP_USER_MPU | OCP_USER_SDMA,
3305};
3306
3307/* usb_otg_hs -> l3_main_2 */
3308static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
3309 .master = &omap44xx_usb_otg_hs_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_3 */
3316static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
3317 .master = &omap44xx_l3_main_1_hwmod,
3318 .slave = &omap44xx_l3_main_3_hwmod,
3319 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003320 .user = OCP_USER_MPU,
3321};
3322
3323/* l3_main_2 -> l3_main_3 */
3324static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
3325 .master = &omap44xx_l3_main_2_hwmod,
3326 .slave = &omap44xx_l3_main_3_hwmod,
3327 .clk = "l3_div_ck",
3328 .user = OCP_USER_MPU | OCP_USER_SDMA,
3329};
3330
3331/* l4_cfg -> l3_main_3 */
3332static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
3333 .master = &omap44xx_l4_cfg_hwmod,
3334 .slave = &omap44xx_l3_main_3_hwmod,
3335 .clk = "l4_div_ck",
3336 .user = OCP_USER_MPU | OCP_USER_SDMA,
3337};
3338
3339/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003340static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003341 .master = &omap44xx_aess_hwmod,
3342 .slave = &omap44xx_l4_abe_hwmod,
3343 .clk = "ocp_abe_iclk",
3344 .user = OCP_USER_MPU | OCP_USER_SDMA,
3345};
3346
3347/* dsp -> l4_abe */
3348static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
3349 .master = &omap44xx_dsp_hwmod,
3350 .slave = &omap44xx_l4_abe_hwmod,
3351 .clk = "ocp_abe_iclk",
3352 .user = OCP_USER_MPU | OCP_USER_SDMA,
3353};
3354
3355/* l3_main_1 -> l4_abe */
3356static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
3357 .master = &omap44xx_l3_main_1_hwmod,
3358 .slave = &omap44xx_l4_abe_hwmod,
3359 .clk = "l3_div_ck",
3360 .user = OCP_USER_MPU | OCP_USER_SDMA,
3361};
3362
3363/* mpu -> l4_abe */
3364static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
3365 .master = &omap44xx_mpu_hwmod,
3366 .slave = &omap44xx_l4_abe_hwmod,
3367 .clk = "ocp_abe_iclk",
3368 .user = OCP_USER_MPU | OCP_USER_SDMA,
3369};
3370
3371/* l3_main_1 -> l4_cfg */
3372static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
3373 .master = &omap44xx_l3_main_1_hwmod,
3374 .slave = &omap44xx_l4_cfg_hwmod,
3375 .clk = "l3_div_ck",
3376 .user = OCP_USER_MPU | OCP_USER_SDMA,
3377};
3378
3379/* l3_main_2 -> l4_per */
3380static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
3381 .master = &omap44xx_l3_main_2_hwmod,
3382 .slave = &omap44xx_l4_per_hwmod,
3383 .clk = "l3_div_ck",
3384 .user = OCP_USER_MPU | OCP_USER_SDMA,
3385};
3386
3387/* l4_cfg -> l4_wkup */
3388static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
3389 .master = &omap44xx_l4_cfg_hwmod,
3390 .slave = &omap44xx_l4_wkup_hwmod,
3391 .clk = "l4_div_ck",
3392 .user = OCP_USER_MPU | OCP_USER_SDMA,
3393};
3394
3395/* mpu -> mpu_private */
3396static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
3397 .master = &omap44xx_mpu_hwmod,
3398 .slave = &omap44xx_mpu_private_hwmod,
3399 .clk = "l3_div_ck",
3400 .user = OCP_USER_MPU | OCP_USER_SDMA,
3401};
3402
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003403/* l4_cfg -> ocp_wp_noc */
3404static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
3405 .master = &omap44xx_l4_cfg_hwmod,
3406 .slave = &omap44xx_ocp_wp_noc_hwmod,
3407 .clk = "l4_div_ck",
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003408 .user = OCP_USER_MPU | OCP_USER_SDMA,
3409};
3410
Paul Walmsley844a3b62012-04-19 04:04:33 -06003411static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
3412 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003413 .name = "dmem",
3414 .pa_start = 0x40180000,
3415 .pa_end = 0x4018ffff
3416 },
3417 {
3418 .name = "cmem",
3419 .pa_start = 0x401a0000,
3420 .pa_end = 0x401a1fff
3421 },
3422 {
3423 .name = "smem",
3424 .pa_start = 0x401c0000,
3425 .pa_end = 0x401c5fff
3426 },
3427 {
3428 .name = "pmem",
3429 .pa_start = 0x401e0000,
3430 .pa_end = 0x401e1fff
3431 },
3432 {
3433 .name = "mpu",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003434 .pa_start = 0x401f1000,
3435 .pa_end = 0x401f13ff,
3436 .flags = ADDR_TYPE_RT
3437 },
3438 { }
3439};
3440
3441/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003442static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003443 .master = &omap44xx_l4_abe_hwmod,
3444 .slave = &omap44xx_aess_hwmod,
3445 .clk = "ocp_abe_iclk",
3446 .addr = omap44xx_aess_addrs,
3447 .user = OCP_USER_MPU,
3448};
3449
3450static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
3451 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07003452 .name = "dmem_dma",
3453 .pa_start = 0x49080000,
3454 .pa_end = 0x4908ffff
3455 },
3456 {
3457 .name = "cmem_dma",
3458 .pa_start = 0x490a0000,
3459 .pa_end = 0x490a1fff
3460 },
3461 {
3462 .name = "smem_dma",
3463 .pa_start = 0x490c0000,
3464 .pa_end = 0x490c5fff
3465 },
3466 {
3467 .name = "pmem_dma",
3468 .pa_start = 0x490e0000,
3469 .pa_end = 0x490e1fff
3470 },
3471 {
3472 .name = "dma",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003473 .pa_start = 0x490f1000,
3474 .pa_end = 0x490f13ff,
3475 .flags = ADDR_TYPE_RT
3476 },
3477 { }
3478};
3479
3480/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06003481static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003482 .master = &omap44xx_l4_abe_hwmod,
3483 .slave = &omap44xx_aess_hwmod,
3484 .clk = "ocp_abe_iclk",
3485 .addr = omap44xx_aess_dma_addrs,
3486 .user = OCP_USER_SDMA,
3487};
3488
Paul Walmsley42b9e382012-04-19 13:33:54 -06003489/* l3_main_2 -> c2c */
3490static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
3491 .master = &omap44xx_l3_main_2_hwmod,
3492 .slave = &omap44xx_c2c_hwmod,
3493 .clk = "l3_div_ck",
3494 .user = OCP_USER_MPU | OCP_USER_SDMA,
3495};
3496
Paul Walmsley844a3b62012-04-19 04:04:33 -06003497/* l4_wkup -> counter_32k */
3498static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
3499 .master = &omap44xx_l4_wkup_hwmod,
3500 .slave = &omap44xx_counter_32k_hwmod,
3501 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003502 .user = OCP_USER_MPU | OCP_USER_SDMA,
3503};
3504
Paul Walmsleya0b5d812012-04-19 13:33:57 -06003505static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
3506 {
3507 .pa_start = 0x4a002000,
3508 .pa_end = 0x4a0027ff,
3509 .flags = ADDR_TYPE_RT
3510 },
3511 { }
3512};
3513
3514/* l4_cfg -> ctrl_module_core */
3515static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
3516 .master = &omap44xx_l4_cfg_hwmod,
3517 .slave = &omap44xx_ctrl_module_core_hwmod,
3518 .clk = "l4_div_ck",
3519 .addr = omap44xx_ctrl_module_core_addrs,
3520 .user = OCP_USER_MPU | OCP_USER_SDMA,
3521};
3522
3523static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
3524 {
3525 .pa_start = 0x4a100000,
3526 .pa_end = 0x4a1007ff,
3527 .flags = ADDR_TYPE_RT
3528 },
3529 { }
3530};
3531
3532/* l4_cfg -> ctrl_module_pad_core */
3533static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
3534 .master = &omap44xx_l4_cfg_hwmod,
3535 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
3536 .clk = "l4_div_ck",
3537 .addr = omap44xx_ctrl_module_pad_core_addrs,
3538 .user = OCP_USER_MPU | OCP_USER_SDMA,
3539};
3540
3541static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
3542 {
3543 .pa_start = 0x4a30c000,
3544 .pa_end = 0x4a30c7ff,
3545 .flags = ADDR_TYPE_RT
3546 },
3547 { }
3548};
3549
3550/* l4_wkup -> ctrl_module_wkup */
3551static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
3552 .master = &omap44xx_l4_wkup_hwmod,
3553 .slave = &omap44xx_ctrl_module_wkup_hwmod,
3554 .clk = "l4_wkup_clk_mux_ck",
3555 .addr = omap44xx_ctrl_module_wkup_addrs,
3556 .user = OCP_USER_MPU | OCP_USER_SDMA,
3557};
3558
3559static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
3560 {
3561 .pa_start = 0x4a31e000,
3562 .pa_end = 0x4a31e7ff,
3563 .flags = ADDR_TYPE_RT
3564 },
3565 { }
3566};
3567
3568/* l4_wkup -> ctrl_module_pad_wkup */
3569static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
3570 .master = &omap44xx_l4_wkup_hwmod,
3571 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
3572 .clk = "l4_wkup_clk_mux_ck",
3573 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
3574 .user = OCP_USER_MPU | OCP_USER_SDMA,
3575};
3576
Benoît Cousson96566042012-04-19 13:33:59 -06003577/* l3_instr -> debugss */
3578static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
3579 .master = &omap44xx_l3_instr_hwmod,
3580 .slave = &omap44xx_debugss_hwmod,
3581 .clk = "l3_div_ck",
Benoît Cousson96566042012-04-19 13:33:59 -06003582 .user = OCP_USER_MPU | OCP_USER_SDMA,
3583};
3584
Paul Walmsley844a3b62012-04-19 04:04:33 -06003585static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
3586 {
3587 .pa_start = 0x4a056000,
3588 .pa_end = 0x4a056fff,
3589 .flags = ADDR_TYPE_RT
3590 },
3591 { }
3592};
3593
3594/* l4_cfg -> dma_system */
3595static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
3596 .master = &omap44xx_l4_cfg_hwmod,
3597 .slave = &omap44xx_dma_system_hwmod,
3598 .clk = "l4_div_ck",
3599 .addr = omap44xx_dma_system_addrs,
3600 .user = OCP_USER_MPU | OCP_USER_SDMA,
3601};
3602
Paul Walmsley844a3b62012-04-19 04:04:33 -06003603/* l4_abe -> dmic */
3604static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
3605 .master = &omap44xx_l4_abe_hwmod,
3606 .slave = &omap44xx_dmic_hwmod,
3607 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06003608 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003609};
3610
3611/* dsp -> iva */
3612static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
3613 .master = &omap44xx_dsp_hwmod,
3614 .slave = &omap44xx_iva_hwmod,
3615 .clk = "dpll_iva_m5x2_ck",
3616 .user = OCP_USER_DSP,
3617};
3618
Paul Walmsley42b9e382012-04-19 13:33:54 -06003619/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06003620static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06003621 .master = &omap44xx_dsp_hwmod,
3622 .slave = &omap44xx_sl2if_hwmod,
3623 .clk = "dpll_iva_m5x2_ck",
3624 .user = OCP_USER_DSP,
3625};
3626
Paul Walmsley844a3b62012-04-19 04:04:33 -06003627/* l4_cfg -> dsp */
3628static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
3629 .master = &omap44xx_l4_cfg_hwmod,
3630 .slave = &omap44xx_dsp_hwmod,
3631 .clk = "l4_div_ck",
3632 .user = OCP_USER_MPU | OCP_USER_SDMA,
3633};
3634
3635static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
3636 {
3637 .pa_start = 0x58000000,
3638 .pa_end = 0x5800007f,
3639 .flags = ADDR_TYPE_RT
3640 },
3641 { }
3642};
3643
3644/* l3_main_2 -> dss */
3645static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
3646 .master = &omap44xx_l3_main_2_hwmod,
3647 .slave = &omap44xx_dss_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003648 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003649 .addr = omap44xx_dss_dma_addrs,
3650 .user = OCP_USER_SDMA,
3651};
3652
3653static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
3654 {
3655 .pa_start = 0x48040000,
3656 .pa_end = 0x4804007f,
3657 .flags = ADDR_TYPE_RT
3658 },
3659 { }
3660};
3661
3662/* l4_per -> dss */
3663static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
3664 .master = &omap44xx_l4_per_hwmod,
3665 .slave = &omap44xx_dss_hwmod,
3666 .clk = "l4_div_ck",
3667 .addr = omap44xx_dss_addrs,
3668 .user = OCP_USER_MPU,
3669};
3670
3671static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
3672 {
3673 .pa_start = 0x58001000,
3674 .pa_end = 0x58001fff,
3675 .flags = ADDR_TYPE_RT
3676 },
3677 { }
3678};
3679
3680/* l3_main_2 -> dss_dispc */
3681static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
3682 .master = &omap44xx_l3_main_2_hwmod,
3683 .slave = &omap44xx_dss_dispc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003684 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003685 .addr = omap44xx_dss_dispc_dma_addrs,
3686 .user = OCP_USER_SDMA,
3687};
3688
3689static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
3690 {
3691 .pa_start = 0x48041000,
3692 .pa_end = 0x48041fff,
3693 .flags = ADDR_TYPE_RT
3694 },
3695 { }
3696};
3697
3698/* l4_per -> dss_dispc */
3699static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
3700 .master = &omap44xx_l4_per_hwmod,
3701 .slave = &omap44xx_dss_dispc_hwmod,
3702 .clk = "l4_div_ck",
3703 .addr = omap44xx_dss_dispc_addrs,
3704 .user = OCP_USER_MPU,
3705};
3706
3707static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
3708 {
3709 .pa_start = 0x58004000,
3710 .pa_end = 0x580041ff,
3711 .flags = ADDR_TYPE_RT
3712 },
3713 { }
3714};
3715
3716/* l3_main_2 -> dss_dsi1 */
3717static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
3718 .master = &omap44xx_l3_main_2_hwmod,
3719 .slave = &omap44xx_dss_dsi1_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003720 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003721 .addr = omap44xx_dss_dsi1_dma_addrs,
3722 .user = OCP_USER_SDMA,
3723};
3724
3725static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
3726 {
3727 .pa_start = 0x48044000,
3728 .pa_end = 0x480441ff,
3729 .flags = ADDR_TYPE_RT
3730 },
3731 { }
3732};
3733
3734/* l4_per -> dss_dsi1 */
3735static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
3736 .master = &omap44xx_l4_per_hwmod,
3737 .slave = &omap44xx_dss_dsi1_hwmod,
3738 .clk = "l4_div_ck",
3739 .addr = omap44xx_dss_dsi1_addrs,
3740 .user = OCP_USER_MPU,
3741};
3742
3743static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
3744 {
3745 .pa_start = 0x58005000,
3746 .pa_end = 0x580051ff,
3747 .flags = ADDR_TYPE_RT
3748 },
3749 { }
3750};
3751
3752/* l3_main_2 -> dss_dsi2 */
3753static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
3754 .master = &omap44xx_l3_main_2_hwmod,
3755 .slave = &omap44xx_dss_dsi2_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003756 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003757 .addr = omap44xx_dss_dsi2_dma_addrs,
3758 .user = OCP_USER_SDMA,
3759};
3760
3761static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
3762 {
3763 .pa_start = 0x48045000,
3764 .pa_end = 0x480451ff,
3765 .flags = ADDR_TYPE_RT
3766 },
3767 { }
3768};
3769
3770/* l4_per -> dss_dsi2 */
3771static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
3772 .master = &omap44xx_l4_per_hwmod,
3773 .slave = &omap44xx_dss_dsi2_hwmod,
3774 .clk = "l4_div_ck",
3775 .addr = omap44xx_dss_dsi2_addrs,
3776 .user = OCP_USER_MPU,
3777};
3778
3779static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
3780 {
3781 .pa_start = 0x58006000,
3782 .pa_end = 0x58006fff,
3783 .flags = ADDR_TYPE_RT
3784 },
3785 { }
3786};
3787
3788/* l3_main_2 -> dss_hdmi */
3789static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
3790 .master = &omap44xx_l3_main_2_hwmod,
3791 .slave = &omap44xx_dss_hdmi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003792 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003793 .addr = omap44xx_dss_hdmi_dma_addrs,
3794 .user = OCP_USER_SDMA,
3795};
3796
3797static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
3798 {
3799 .pa_start = 0x48046000,
3800 .pa_end = 0x48046fff,
3801 .flags = ADDR_TYPE_RT
3802 },
3803 { }
3804};
3805
3806/* l4_per -> dss_hdmi */
3807static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
3808 .master = &omap44xx_l4_per_hwmod,
3809 .slave = &omap44xx_dss_hdmi_hwmod,
3810 .clk = "l4_div_ck",
3811 .addr = omap44xx_dss_hdmi_addrs,
3812 .user = OCP_USER_MPU,
3813};
3814
3815static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
3816 {
3817 .pa_start = 0x58002000,
3818 .pa_end = 0x580020ff,
3819 .flags = ADDR_TYPE_RT
3820 },
3821 { }
3822};
3823
3824/* l3_main_2 -> dss_rfbi */
3825static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
3826 .master = &omap44xx_l3_main_2_hwmod,
3827 .slave = &omap44xx_dss_rfbi_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003828 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003829 .addr = omap44xx_dss_rfbi_dma_addrs,
3830 .user = OCP_USER_SDMA,
3831};
3832
3833static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
3834 {
3835 .pa_start = 0x48042000,
3836 .pa_end = 0x480420ff,
3837 .flags = ADDR_TYPE_RT
3838 },
3839 { }
3840};
3841
3842/* l4_per -> dss_rfbi */
3843static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
3844 .master = &omap44xx_l4_per_hwmod,
3845 .slave = &omap44xx_dss_rfbi_hwmod,
3846 .clk = "l4_div_ck",
3847 .addr = omap44xx_dss_rfbi_addrs,
3848 .user = OCP_USER_MPU,
3849};
3850
3851static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
3852 {
3853 .pa_start = 0x58003000,
3854 .pa_end = 0x580030ff,
3855 .flags = ADDR_TYPE_RT
3856 },
3857 { }
3858};
3859
3860/* l3_main_2 -> dss_venc */
3861static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
3862 .master = &omap44xx_l3_main_2_hwmod,
3863 .slave = &omap44xx_dss_venc_hwmod,
Tomi Valkeinen7ede8562014-10-09 17:03:17 +03003864 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003865 .addr = omap44xx_dss_venc_dma_addrs,
3866 .user = OCP_USER_SDMA,
3867};
3868
3869static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
3870 {
3871 .pa_start = 0x48043000,
3872 .pa_end = 0x480430ff,
3873 .flags = ADDR_TYPE_RT
3874 },
3875 { }
3876};
3877
3878/* l4_per -> dss_venc */
3879static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
3880 .master = &omap44xx_l4_per_hwmod,
3881 .slave = &omap44xx_dss_venc_hwmod,
3882 .clk = "l4_div_ck",
3883 .addr = omap44xx_dss_venc_addrs,
3884 .user = OCP_USER_MPU,
3885};
3886
Paul Walmsley42b9e382012-04-19 13:33:54 -06003887/* l4_per -> elm */
3888static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
3889 .master = &omap44xx_l4_per_hwmod,
3890 .slave = &omap44xx_elm_hwmod,
3891 .clk = "l4_div_ck",
Paul Walmsley42b9e382012-04-19 13:33:54 -06003892 .user = OCP_USER_MPU | OCP_USER_SDMA,
3893};
3894
Ming Leib050f682012-04-19 13:33:50 -06003895static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
3896 {
3897 .pa_start = 0x4a10a000,
3898 .pa_end = 0x4a10a1ff,
3899 .flags = ADDR_TYPE_RT
3900 },
3901 { }
3902};
3903
3904/* l4_cfg -> fdif */
3905static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
3906 .master = &omap44xx_l4_cfg_hwmod,
3907 .slave = &omap44xx_fdif_hwmod,
3908 .clk = "l4_div_ck",
3909 .addr = omap44xx_fdif_addrs,
3910 .user = OCP_USER_MPU | OCP_USER_SDMA,
3911};
3912
Paul Walmsley844a3b62012-04-19 04:04:33 -06003913/* l4_wkup -> gpio1 */
3914static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
3915 .master = &omap44xx_l4_wkup_hwmod,
3916 .slave = &omap44xx_gpio1_hwmod,
3917 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003918 .user = OCP_USER_MPU | OCP_USER_SDMA,
3919};
3920
Paul Walmsley844a3b62012-04-19 04:04:33 -06003921/* l4_per -> gpio2 */
3922static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
3923 .master = &omap44xx_l4_per_hwmod,
3924 .slave = &omap44xx_gpio2_hwmod,
3925 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003926 .user = OCP_USER_MPU | OCP_USER_SDMA,
3927};
3928
Paul Walmsley844a3b62012-04-19 04:04:33 -06003929/* l4_per -> gpio3 */
3930static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
3931 .master = &omap44xx_l4_per_hwmod,
3932 .slave = &omap44xx_gpio3_hwmod,
3933 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003934 .user = OCP_USER_MPU | OCP_USER_SDMA,
3935};
3936
Paul Walmsley844a3b62012-04-19 04:04:33 -06003937/* l4_per -> gpio4 */
3938static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
3939 .master = &omap44xx_l4_per_hwmod,
3940 .slave = &omap44xx_gpio4_hwmod,
3941 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003942 .user = OCP_USER_MPU | OCP_USER_SDMA,
3943};
3944
Paul Walmsley844a3b62012-04-19 04:04:33 -06003945/* l4_per -> gpio5 */
3946static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
3947 .master = &omap44xx_l4_per_hwmod,
3948 .slave = &omap44xx_gpio5_hwmod,
3949 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003950 .user = OCP_USER_MPU | OCP_USER_SDMA,
3951};
3952
Paul Walmsley844a3b62012-04-19 04:04:33 -06003953/* l4_per -> gpio6 */
3954static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
3955 .master = &omap44xx_l4_per_hwmod,
3956 .slave = &omap44xx_gpio6_hwmod,
3957 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06003958 .user = OCP_USER_MPU | OCP_USER_SDMA,
3959};
3960
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06003961/* l3_main_2 -> gpmc */
3962static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
3963 .master = &omap44xx_l3_main_2_hwmod,
3964 .slave = &omap44xx_gpmc_hwmod,
3965 .clk = "l3_div_ck",
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06003966 .user = OCP_USER_MPU | OCP_USER_SDMA,
3967};
3968
Paul Walmsley9def3902012-04-19 13:33:53 -06003969static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
3970 {
3971 .pa_start = 0x56000000,
3972 .pa_end = 0x5600ffff,
3973 .flags = ADDR_TYPE_RT
3974 },
3975 { }
3976};
3977
3978/* l3_main_2 -> gpu */
3979static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
3980 .master = &omap44xx_l3_main_2_hwmod,
3981 .slave = &omap44xx_gpu_hwmod,
3982 .clk = "l3_div_ck",
3983 .addr = omap44xx_gpu_addrs,
3984 .user = OCP_USER_MPU | OCP_USER_SDMA,
3985};
3986
Paul Walmsleya091c082012-04-19 13:33:50 -06003987static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
3988 {
3989 .pa_start = 0x480b2000,
3990 .pa_end = 0x480b201f,
3991 .flags = ADDR_TYPE_RT
3992 },
3993 { }
3994};
3995
3996/* l4_per -> hdq1w */
3997static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
3998 .master = &omap44xx_l4_per_hwmod,
3999 .slave = &omap44xx_hdq1w_hwmod,
4000 .clk = "l4_div_ck",
4001 .addr = omap44xx_hdq1w_addrs,
4002 .user = OCP_USER_MPU | OCP_USER_SDMA,
4003};
4004
Paul Walmsley844a3b62012-04-19 04:04:33 -06004005static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
4006 {
4007 .pa_start = 0x4a058000,
4008 .pa_end = 0x4a05bfff,
4009 .flags = ADDR_TYPE_RT
4010 },
4011 { }
4012};
4013
4014/* l4_cfg -> hsi */
4015static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
4016 .master = &omap44xx_l4_cfg_hwmod,
4017 .slave = &omap44xx_hsi_hwmod,
4018 .clk = "l4_div_ck",
4019 .addr = omap44xx_hsi_addrs,
4020 .user = OCP_USER_MPU | OCP_USER_SDMA,
4021};
4022
Paul Walmsley844a3b62012-04-19 04:04:33 -06004023/* l4_per -> i2c1 */
4024static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
4025 .master = &omap44xx_l4_per_hwmod,
4026 .slave = &omap44xx_i2c1_hwmod,
4027 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004028 .user = OCP_USER_MPU | OCP_USER_SDMA,
4029};
4030
Paul Walmsley844a3b62012-04-19 04:04:33 -06004031/* l4_per -> i2c2 */
4032static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
4033 .master = &omap44xx_l4_per_hwmod,
4034 .slave = &omap44xx_i2c2_hwmod,
4035 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004036 .user = OCP_USER_MPU | OCP_USER_SDMA,
4037};
4038
Paul Walmsley844a3b62012-04-19 04:04:33 -06004039/* l4_per -> i2c3 */
4040static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
4041 .master = &omap44xx_l4_per_hwmod,
4042 .slave = &omap44xx_i2c3_hwmod,
4043 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004044 .user = OCP_USER_MPU | OCP_USER_SDMA,
4045};
4046
Paul Walmsley844a3b62012-04-19 04:04:33 -06004047/* l4_per -> i2c4 */
4048static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
4049 .master = &omap44xx_l4_per_hwmod,
4050 .slave = &omap44xx_i2c4_hwmod,
4051 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004052 .user = OCP_USER_MPU | OCP_USER_SDMA,
4053};
4054
4055/* l3_main_2 -> ipu */
4056static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
4057 .master = &omap44xx_l3_main_2_hwmod,
4058 .slave = &omap44xx_ipu_hwmod,
4059 .clk = "l3_div_ck",
4060 .user = OCP_USER_MPU | OCP_USER_SDMA,
4061};
4062
4063static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
4064 {
4065 .pa_start = 0x52000000,
4066 .pa_end = 0x520000ff,
4067 .flags = ADDR_TYPE_RT
4068 },
4069 { }
4070};
4071
4072/* l3_main_2 -> iss */
4073static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
4074 .master = &omap44xx_l3_main_2_hwmod,
4075 .slave = &omap44xx_iss_hwmod,
4076 .clk = "l3_div_ck",
4077 .addr = omap44xx_iss_addrs,
4078 .user = OCP_USER_MPU | OCP_USER_SDMA,
4079};
4080
Paul Walmsley42b9e382012-04-19 13:33:54 -06004081/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004082static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004083 .master = &omap44xx_iva_hwmod,
4084 .slave = &omap44xx_sl2if_hwmod,
4085 .clk = "dpll_iva_m5x2_ck",
4086 .user = OCP_USER_IVA,
4087};
4088
Paul Walmsley844a3b62012-04-19 04:04:33 -06004089/* l3_main_2 -> iva */
4090static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
4091 .master = &omap44xx_l3_main_2_hwmod,
4092 .slave = &omap44xx_iva_hwmod,
4093 .clk = "l3_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004094 .user = OCP_USER_MPU,
4095};
4096
Paul Walmsley844a3b62012-04-19 04:04:33 -06004097/* l4_wkup -> kbd */
4098static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
4099 .master = &omap44xx_l4_wkup_hwmod,
4100 .slave = &omap44xx_kbd_hwmod,
4101 .clk = "l4_wkup_clk_mux_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_cfg -> mailbox */
4106static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
4107 .master = &omap44xx_l4_cfg_hwmod,
4108 .slave = &omap44xx_mailbox_hwmod,
4109 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004110 .user = OCP_USER_MPU | OCP_USER_SDMA,
4111};
4112
Benoît Cousson896d4e92012-04-19 13:33:54 -06004113static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
4114 {
4115 .pa_start = 0x40128000,
4116 .pa_end = 0x401283ff,
4117 .flags = ADDR_TYPE_RT
4118 },
4119 { }
4120};
4121
4122/* l4_abe -> mcasp */
4123static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
4124 .master = &omap44xx_l4_abe_hwmod,
4125 .slave = &omap44xx_mcasp_hwmod,
4126 .clk = "ocp_abe_iclk",
4127 .addr = omap44xx_mcasp_addrs,
4128 .user = OCP_USER_MPU,
4129};
4130
4131static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
4132 {
4133 .pa_start = 0x49028000,
4134 .pa_end = 0x490283ff,
4135 .flags = ADDR_TYPE_RT
4136 },
4137 { }
4138};
4139
4140/* l4_abe -> mcasp (dma) */
4141static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
4142 .master = &omap44xx_l4_abe_hwmod,
4143 .slave = &omap44xx_mcasp_hwmod,
4144 .clk = "ocp_abe_iclk",
4145 .addr = omap44xx_mcasp_dma_addrs,
4146 .user = OCP_USER_SDMA,
4147};
4148
Paul Walmsley844a3b62012-04-19 04:04:33 -06004149/* l4_abe -> mcbsp1 */
4150static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
4151 .master = &omap44xx_l4_abe_hwmod,
4152 .slave = &omap44xx_mcbsp1_hwmod,
4153 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004154 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004155};
4156
Paul Walmsley844a3b62012-04-19 04:04:33 -06004157/* l4_abe -> mcbsp2 */
4158static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
4159 .master = &omap44xx_l4_abe_hwmod,
4160 .slave = &omap44xx_mcbsp2_hwmod,
4161 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004162 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004163};
4164
Paul Walmsley844a3b62012-04-19 04:04:33 -06004165/* l4_abe -> mcbsp3 */
4166static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
4167 .master = &omap44xx_l4_abe_hwmod,
4168 .slave = &omap44xx_mcbsp3_hwmod,
4169 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004170 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004171};
4172
Paul Walmsley844a3b62012-04-19 04:04:33 -06004173/* l4_per -> mcbsp4 */
4174static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
4175 .master = &omap44xx_l4_per_hwmod,
4176 .slave = &omap44xx_mcbsp4_hwmod,
4177 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004178 .user = OCP_USER_MPU | OCP_USER_SDMA,
4179};
4180
Paul Walmsley844a3b62012-04-19 04:04:33 -06004181/* l4_abe -> mcpdm */
4182static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
4183 .master = &omap44xx_l4_abe_hwmod,
4184 .slave = &omap44xx_mcpdm_hwmod,
4185 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004186 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004187};
4188
Paul Walmsley844a3b62012-04-19 04:04:33 -06004189/* l4_per -> mcspi1 */
4190static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
4191 .master = &omap44xx_l4_per_hwmod,
4192 .slave = &omap44xx_mcspi1_hwmod,
4193 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004194 .user = OCP_USER_MPU | OCP_USER_SDMA,
4195};
4196
Paul Walmsley844a3b62012-04-19 04:04:33 -06004197/* l4_per -> mcspi2 */
4198static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
4199 .master = &omap44xx_l4_per_hwmod,
4200 .slave = &omap44xx_mcspi2_hwmod,
4201 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004202 .user = OCP_USER_MPU | OCP_USER_SDMA,
4203};
4204
Paul Walmsley844a3b62012-04-19 04:04:33 -06004205/* l4_per -> mcspi3 */
4206static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
4207 .master = &omap44xx_l4_per_hwmod,
4208 .slave = &omap44xx_mcspi3_hwmod,
4209 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004210 .user = OCP_USER_MPU | OCP_USER_SDMA,
4211};
4212
Paul Walmsley844a3b62012-04-19 04:04:33 -06004213/* l4_per -> mcspi4 */
4214static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
4215 .master = &omap44xx_l4_per_hwmod,
4216 .slave = &omap44xx_mcspi4_hwmod,
4217 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004218 .user = OCP_USER_MPU | OCP_USER_SDMA,
4219};
4220
Paul Walmsley844a3b62012-04-19 04:04:33 -06004221/* l4_per -> mmc1 */
4222static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
4223 .master = &omap44xx_l4_per_hwmod,
4224 .slave = &omap44xx_mmc1_hwmod,
4225 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004226 .user = OCP_USER_MPU | OCP_USER_SDMA,
4227};
4228
Paul Walmsley844a3b62012-04-19 04:04:33 -06004229/* l4_per -> mmc2 */
4230static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
4231 .master = &omap44xx_l4_per_hwmod,
4232 .slave = &omap44xx_mmc2_hwmod,
4233 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004234 .user = OCP_USER_MPU | OCP_USER_SDMA,
4235};
4236
Paul Walmsley844a3b62012-04-19 04:04:33 -06004237/* l4_per -> mmc3 */
4238static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
4239 .master = &omap44xx_l4_per_hwmod,
4240 .slave = &omap44xx_mmc3_hwmod,
4241 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004242 .user = OCP_USER_MPU | OCP_USER_SDMA,
4243};
4244
Paul Walmsley844a3b62012-04-19 04:04:33 -06004245/* l4_per -> mmc4 */
4246static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
4247 .master = &omap44xx_l4_per_hwmod,
4248 .slave = &omap44xx_mmc4_hwmod,
4249 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004250 .user = OCP_USER_MPU | OCP_USER_SDMA,
4251};
4252
Paul Walmsley844a3b62012-04-19 04:04:33 -06004253/* l4_per -> mmc5 */
4254static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
4255 .master = &omap44xx_l4_per_hwmod,
4256 .slave = &omap44xx_mmc5_hwmod,
4257 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004258 .user = OCP_USER_MPU | OCP_USER_SDMA,
4259};
4260
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004261/* l3_main_2 -> ocmc_ram */
4262static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
4263 .master = &omap44xx_l3_main_2_hwmod,
4264 .slave = &omap44xx_ocmc_ram_hwmod,
4265 .clk = "l3_div_ck",
4266 .user = OCP_USER_MPU | OCP_USER_SDMA,
4267};
4268
Benoît Cousson0c668872012-04-19 13:33:55 -06004269/* l4_cfg -> ocp2scp_usb_phy */
4270static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
4271 .master = &omap44xx_l4_cfg_hwmod,
4272 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
4273 .clk = "l4_div_ck",
4274 .user = OCP_USER_MPU | OCP_USER_SDMA,
4275};
4276
Paul Walmsley794b4802012-04-19 13:33:58 -06004277/* mpu_private -> prcm_mpu */
4278static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
4279 .master = &omap44xx_mpu_private_hwmod,
4280 .slave = &omap44xx_prcm_mpu_hwmod,
4281 .clk = "l3_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004282 .user = OCP_USER_MPU | OCP_USER_SDMA,
4283};
4284
Paul Walmsley794b4802012-04-19 13:33:58 -06004285/* l4_wkup -> cm_core_aon */
4286static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
4287 .master = &omap44xx_l4_wkup_hwmod,
4288 .slave = &omap44xx_cm_core_aon_hwmod,
4289 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004290 .user = OCP_USER_MPU | OCP_USER_SDMA,
4291};
4292
Paul Walmsley794b4802012-04-19 13:33:58 -06004293/* l4_cfg -> cm_core */
4294static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
4295 .master = &omap44xx_l4_cfg_hwmod,
4296 .slave = &omap44xx_cm_core_hwmod,
4297 .clk = "l4_div_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004298 .user = OCP_USER_MPU | OCP_USER_SDMA,
4299};
4300
Paul Walmsley794b4802012-04-19 13:33:58 -06004301/* l4_wkup -> prm */
4302static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
4303 .master = &omap44xx_l4_wkup_hwmod,
4304 .slave = &omap44xx_prm_hwmod,
4305 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004306 .user = OCP_USER_MPU | OCP_USER_SDMA,
4307};
4308
Paul Walmsley794b4802012-04-19 13:33:58 -06004309/* l4_wkup -> scrm */
4310static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
4311 .master = &omap44xx_l4_wkup_hwmod,
4312 .slave = &omap44xx_scrm_hwmod,
4313 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley794b4802012-04-19 13:33:58 -06004314 .user = OCP_USER_MPU | OCP_USER_SDMA,
4315};
4316
Paul Walmsley42b9e382012-04-19 13:33:54 -06004317/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004318static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004319 .master = &omap44xx_l3_main_2_hwmod,
4320 .slave = &omap44xx_sl2if_hwmod,
4321 .clk = "l3_div_ck",
4322 .user = OCP_USER_MPU | OCP_USER_SDMA,
4323};
4324
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004325static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
4326 {
4327 .pa_start = 0x4012c000,
4328 .pa_end = 0x4012c3ff,
4329 .flags = ADDR_TYPE_RT
4330 },
4331 { }
4332};
4333
4334/* l4_abe -> slimbus1 */
4335static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
4336 .master = &omap44xx_l4_abe_hwmod,
4337 .slave = &omap44xx_slimbus1_hwmod,
4338 .clk = "ocp_abe_iclk",
4339 .addr = omap44xx_slimbus1_addrs,
4340 .user = OCP_USER_MPU,
4341};
4342
4343static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
4344 {
4345 .pa_start = 0x4902c000,
4346 .pa_end = 0x4902c3ff,
4347 .flags = ADDR_TYPE_RT
4348 },
4349 { }
4350};
4351
4352/* l4_abe -> slimbus1 (dma) */
4353static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
4354 .master = &omap44xx_l4_abe_hwmod,
4355 .slave = &omap44xx_slimbus1_hwmod,
4356 .clk = "ocp_abe_iclk",
4357 .addr = omap44xx_slimbus1_dma_addrs,
4358 .user = OCP_USER_SDMA,
4359};
4360
4361static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
4362 {
4363 .pa_start = 0x48076000,
4364 .pa_end = 0x480763ff,
4365 .flags = ADDR_TYPE_RT
4366 },
4367 { }
4368};
4369
4370/* l4_per -> slimbus2 */
4371static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
4372 .master = &omap44xx_l4_per_hwmod,
4373 .slave = &omap44xx_slimbus2_hwmod,
4374 .clk = "l4_div_ck",
4375 .addr = omap44xx_slimbus2_addrs,
4376 .user = OCP_USER_MPU | OCP_USER_SDMA,
4377};
4378
Paul Walmsley844a3b62012-04-19 04:04:33 -06004379static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
4380 {
4381 .pa_start = 0x4a0dd000,
4382 .pa_end = 0x4a0dd03f,
4383 .flags = ADDR_TYPE_RT
4384 },
4385 { }
4386};
4387
4388/* l4_cfg -> smartreflex_core */
4389static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
4390 .master = &omap44xx_l4_cfg_hwmod,
4391 .slave = &omap44xx_smartreflex_core_hwmod,
4392 .clk = "l4_div_ck",
4393 .addr = omap44xx_smartreflex_core_addrs,
4394 .user = OCP_USER_MPU | OCP_USER_SDMA,
4395};
4396
4397static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
4398 {
4399 .pa_start = 0x4a0db000,
4400 .pa_end = 0x4a0db03f,
4401 .flags = ADDR_TYPE_RT
4402 },
4403 { }
4404};
4405
4406/* l4_cfg -> smartreflex_iva */
4407static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
4408 .master = &omap44xx_l4_cfg_hwmod,
4409 .slave = &omap44xx_smartreflex_iva_hwmod,
4410 .clk = "l4_div_ck",
4411 .addr = omap44xx_smartreflex_iva_addrs,
4412 .user = OCP_USER_MPU | OCP_USER_SDMA,
4413};
4414
4415static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
4416 {
4417 .pa_start = 0x4a0d9000,
4418 .pa_end = 0x4a0d903f,
4419 .flags = ADDR_TYPE_RT
4420 },
4421 { }
4422};
4423
4424/* l4_cfg -> smartreflex_mpu */
4425static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
4426 .master = &omap44xx_l4_cfg_hwmod,
4427 .slave = &omap44xx_smartreflex_mpu_hwmod,
4428 .clk = "l4_div_ck",
4429 .addr = omap44xx_smartreflex_mpu_addrs,
4430 .user = OCP_USER_MPU | OCP_USER_SDMA,
4431};
4432
Paul Walmsley844a3b62012-04-19 04:04:33 -06004433/* l4_cfg -> spinlock */
4434static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
4435 .master = &omap44xx_l4_cfg_hwmod,
4436 .slave = &omap44xx_spinlock_hwmod,
4437 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004438 .user = OCP_USER_MPU | OCP_USER_SDMA,
4439};
4440
Paul Walmsley844a3b62012-04-19 04:04:33 -06004441/* l4_wkup -> timer1 */
4442static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
4443 .master = &omap44xx_l4_wkup_hwmod,
4444 .slave = &omap44xx_timer1_hwmod,
4445 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004446 .user = OCP_USER_MPU | OCP_USER_SDMA,
4447};
4448
Paul Walmsley844a3b62012-04-19 04:04:33 -06004449/* l4_per -> timer2 */
4450static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
4451 .master = &omap44xx_l4_per_hwmod,
4452 .slave = &omap44xx_timer2_hwmod,
4453 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004454 .user = OCP_USER_MPU | OCP_USER_SDMA,
4455};
4456
Paul Walmsley844a3b62012-04-19 04:04:33 -06004457/* l4_per -> timer3 */
4458static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
4459 .master = &omap44xx_l4_per_hwmod,
4460 .slave = &omap44xx_timer3_hwmod,
4461 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004462 .user = OCP_USER_MPU | OCP_USER_SDMA,
4463};
4464
Paul Walmsley844a3b62012-04-19 04:04:33 -06004465/* l4_per -> timer4 */
4466static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
4467 .master = &omap44xx_l4_per_hwmod,
4468 .slave = &omap44xx_timer4_hwmod,
4469 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004470 .user = OCP_USER_MPU | OCP_USER_SDMA,
4471};
4472
Paul Walmsley844a3b62012-04-19 04:04:33 -06004473/* l4_abe -> timer5 */
4474static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
4475 .master = &omap44xx_l4_abe_hwmod,
4476 .slave = &omap44xx_timer5_hwmod,
4477 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004478 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004479};
4480
Paul Walmsley844a3b62012-04-19 04:04:33 -06004481/* l4_abe -> timer6 */
4482static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
4483 .master = &omap44xx_l4_abe_hwmod,
4484 .slave = &omap44xx_timer6_hwmod,
4485 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004486 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004487};
4488
Paul Walmsley844a3b62012-04-19 04:04:33 -06004489/* l4_abe -> timer7 */
4490static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
4491 .master = &omap44xx_l4_abe_hwmod,
4492 .slave = &omap44xx_timer7_hwmod,
4493 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004494 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004495};
4496
Paul Walmsley844a3b62012-04-19 04:04:33 -06004497/* l4_abe -> timer8 */
4498static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
4499 .master = &omap44xx_l4_abe_hwmod,
4500 .slave = &omap44xx_timer8_hwmod,
4501 .clk = "ocp_abe_iclk",
Peter Ujfalusie3491792014-05-14 12:26:10 -06004502 .user = OCP_USER_MPU | OCP_USER_SDMA,
Paul Walmsley844a3b62012-04-19 04:04:33 -06004503};
4504
Paul Walmsley844a3b62012-04-19 04:04:33 -06004505/* l4_per -> timer9 */
4506static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
4507 .master = &omap44xx_l4_per_hwmod,
4508 .slave = &omap44xx_timer9_hwmod,
4509 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004510 .user = OCP_USER_MPU | OCP_USER_SDMA,
4511};
4512
Paul Walmsley844a3b62012-04-19 04:04:33 -06004513/* l4_per -> timer10 */
4514static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
4515 .master = &omap44xx_l4_per_hwmod,
4516 .slave = &omap44xx_timer10_hwmod,
4517 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004518 .user = OCP_USER_MPU | OCP_USER_SDMA,
4519};
4520
Paul Walmsley844a3b62012-04-19 04:04:33 -06004521/* l4_per -> timer11 */
4522static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
4523 .master = &omap44xx_l4_per_hwmod,
4524 .slave = &omap44xx_timer11_hwmod,
4525 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004526 .user = OCP_USER_MPU | OCP_USER_SDMA,
4527};
4528
Paul Walmsley844a3b62012-04-19 04:04:33 -06004529/* l4_per -> uart1 */
4530static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
4531 .master = &omap44xx_l4_per_hwmod,
4532 .slave = &omap44xx_uart1_hwmod,
4533 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004534 .user = OCP_USER_MPU | OCP_USER_SDMA,
4535};
4536
Paul Walmsley844a3b62012-04-19 04:04:33 -06004537/* l4_per -> uart2 */
4538static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
4539 .master = &omap44xx_l4_per_hwmod,
4540 .slave = &omap44xx_uart2_hwmod,
4541 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004542 .user = OCP_USER_MPU | OCP_USER_SDMA,
4543};
4544
Paul Walmsley844a3b62012-04-19 04:04:33 -06004545/* l4_per -> uart3 */
4546static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
4547 .master = &omap44xx_l4_per_hwmod,
4548 .slave = &omap44xx_uart3_hwmod,
4549 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004550 .user = OCP_USER_MPU | OCP_USER_SDMA,
4551};
4552
Paul Walmsley844a3b62012-04-19 04:04:33 -06004553/* l4_per -> uart4 */
4554static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
4555 .master = &omap44xx_l4_per_hwmod,
4556 .slave = &omap44xx_uart4_hwmod,
4557 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004558 .user = OCP_USER_MPU | OCP_USER_SDMA,
4559};
4560
Benoît Cousson0c668872012-04-19 13:33:55 -06004561/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004562static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06004563 .master = &omap44xx_l4_cfg_hwmod,
4564 .slave = &omap44xx_usb_host_fs_hwmod,
4565 .clk = "l4_div_ck",
Benoît Cousson0c668872012-04-19 13:33:55 -06004566 .user = OCP_USER_MPU | OCP_USER_SDMA,
4567};
4568
Paul Walmsley844a3b62012-04-19 04:04:33 -06004569/* l4_cfg -> usb_host_hs */
4570static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
4571 .master = &omap44xx_l4_cfg_hwmod,
4572 .slave = &omap44xx_usb_host_hs_hwmod,
4573 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004574 .user = OCP_USER_MPU | OCP_USER_SDMA,
4575};
4576
Paul Walmsley844a3b62012-04-19 04:04:33 -06004577/* l4_cfg -> usb_otg_hs */
4578static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
4579 .master = &omap44xx_l4_cfg_hwmod,
4580 .slave = &omap44xx_usb_otg_hs_hwmod,
4581 .clk = "l4_div_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004582 .user = OCP_USER_MPU | OCP_USER_SDMA,
4583};
4584
Paul Walmsley844a3b62012-04-19 04:04:33 -06004585/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004586static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
4587 .master = &omap44xx_l4_cfg_hwmod,
4588 .slave = &omap44xx_usb_tll_hs_hwmod,
4589 .clk = "l4_div_ck",
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004590 .user = OCP_USER_MPU | OCP_USER_SDMA,
4591};
4592
Paul Walmsley844a3b62012-04-19 04:04:33 -06004593/* l4_wkup -> wd_timer2 */
4594static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
4595 .master = &omap44xx_l4_wkup_hwmod,
4596 .slave = &omap44xx_wd_timer2_hwmod,
4597 .clk = "l4_wkup_clk_mux_ck",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004598 .user = OCP_USER_MPU | OCP_USER_SDMA,
4599};
4600
4601static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
4602 {
4603 .pa_start = 0x40130000,
4604 .pa_end = 0x4013007f,
4605 .flags = ADDR_TYPE_RT
4606 },
4607 { }
4608};
4609
4610/* l4_abe -> wd_timer3 */
4611static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
4612 .master = &omap44xx_l4_abe_hwmod,
4613 .slave = &omap44xx_wd_timer3_hwmod,
4614 .clk = "ocp_abe_iclk",
4615 .addr = omap44xx_wd_timer3_addrs,
4616 .user = OCP_USER_MPU,
4617};
4618
4619static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
4620 {
4621 .pa_start = 0x49030000,
4622 .pa_end = 0x4903007f,
4623 .flags = ADDR_TYPE_RT
4624 },
4625 { }
4626};
4627
4628/* l4_abe -> wd_timer3 (dma) */
4629static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
4630 .master = &omap44xx_l4_abe_hwmod,
4631 .slave = &omap44xx_wd_timer3_hwmod,
4632 .clk = "ocp_abe_iclk",
4633 .addr = omap44xx_wd_timer3_dma_addrs,
4634 .user = OCP_USER_SDMA,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07004635};
4636
Sricharan R3b9b1012013-06-07 17:26:15 +05304637/* mpu -> emif1 */
4638static struct omap_hwmod_ocp_if omap44xx_mpu__emif1 = {
4639 .master = &omap44xx_mpu_hwmod,
4640 .slave = &omap44xx_emif1_hwmod,
4641 .clk = "l3_div_ck",
4642 .user = OCP_USER_MPU | OCP_USER_SDMA,
4643};
4644
4645/* mpu -> emif2 */
4646static struct omap_hwmod_ocp_if omap44xx_mpu__emif2 = {
4647 .master = &omap44xx_mpu_hwmod,
4648 .slave = &omap44xx_emif2_hwmod,
4649 .clk = "l3_div_ck",
4650 .user = OCP_USER_MPU | OCP_USER_SDMA,
4651};
4652
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004653static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
4654 &omap44xx_l3_main_1__dmm,
4655 &omap44xx_mpu__dmm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004656 &omap44xx_iva__l3_instr,
4657 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004658 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004659 &omap44xx_dsp__l3_main_1,
4660 &omap44xx_dss__l3_main_1,
4661 &omap44xx_l3_main_2__l3_main_1,
4662 &omap44xx_l4_cfg__l3_main_1,
4663 &omap44xx_mmc1__l3_main_1,
4664 &omap44xx_mmc2__l3_main_1,
4665 &omap44xx_mpu__l3_main_1,
Benoît Cousson96566042012-04-19 13:33:59 -06004666 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004667 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06004668 &omap44xx_fdif__l3_main_2,
Paul Walmsley9def3902012-04-19 13:33:53 -06004669 &omap44xx_gpu__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004670 &omap44xx_hsi__l3_main_2,
4671 &omap44xx_ipu__l3_main_2,
4672 &omap44xx_iss__l3_main_2,
4673 &omap44xx_iva__l3_main_2,
4674 &omap44xx_l3_main_1__l3_main_2,
4675 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004676 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004677 &omap44xx_usb_host_hs__l3_main_2,
4678 &omap44xx_usb_otg_hs__l3_main_2,
4679 &omap44xx_l3_main_1__l3_main_3,
4680 &omap44xx_l3_main_2__l3_main_3,
4681 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004682 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004683 &omap44xx_dsp__l4_abe,
4684 &omap44xx_l3_main_1__l4_abe,
4685 &omap44xx_mpu__l4_abe,
4686 &omap44xx_l3_main_1__l4_cfg,
4687 &omap44xx_l3_main_2__l4_per,
4688 &omap44xx_l4_cfg__l4_wkup,
4689 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004690 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07004691 &omap44xx_l4_abe__aess,
4692 &omap44xx_l4_abe__aess_dma,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004693 &omap44xx_l3_main_2__c2c,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004694 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06004695 &omap44xx_l4_cfg__ctrl_module_core,
4696 &omap44xx_l4_cfg__ctrl_module_pad_core,
4697 &omap44xx_l4_wkup__ctrl_module_wkup,
4698 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06004699 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004700 &omap44xx_l4_cfg__dma_system,
4701 &omap44xx_l4_abe__dmic,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004702 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06004703 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004704 &omap44xx_l4_cfg__dsp,
4705 &omap44xx_l3_main_2__dss,
4706 &omap44xx_l4_per__dss,
4707 &omap44xx_l3_main_2__dss_dispc,
4708 &omap44xx_l4_per__dss_dispc,
4709 &omap44xx_l3_main_2__dss_dsi1,
4710 &omap44xx_l4_per__dss_dsi1,
4711 &omap44xx_l3_main_2__dss_dsi2,
4712 &omap44xx_l4_per__dss_dsi2,
4713 &omap44xx_l3_main_2__dss_hdmi,
4714 &omap44xx_l4_per__dss_hdmi,
4715 &omap44xx_l3_main_2__dss_rfbi,
4716 &omap44xx_l4_per__dss_rfbi,
4717 &omap44xx_l3_main_2__dss_venc,
4718 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06004719 &omap44xx_l4_per__elm,
Ming Leib050f682012-04-19 13:33:50 -06004720 &omap44xx_l4_cfg__fdif,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004721 &omap44xx_l4_wkup__gpio1,
4722 &omap44xx_l4_per__gpio2,
4723 &omap44xx_l4_per__gpio3,
4724 &omap44xx_l4_per__gpio4,
4725 &omap44xx_l4_per__gpio5,
4726 &omap44xx_l4_per__gpio6,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004727 &omap44xx_l3_main_2__gpmc,
Paul Walmsley9def3902012-04-19 13:33:53 -06004728 &omap44xx_l3_main_2__gpu,
Paul Walmsleya091c082012-04-19 13:33:50 -06004729 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004730 &omap44xx_l4_cfg__hsi,
4731 &omap44xx_l4_per__i2c1,
4732 &omap44xx_l4_per__i2c2,
4733 &omap44xx_l4_per__i2c3,
4734 &omap44xx_l4_per__i2c4,
4735 &omap44xx_l3_main_2__ipu,
4736 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06004737 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004738 &omap44xx_l3_main_2__iva,
4739 &omap44xx_l4_wkup__kbd,
4740 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06004741 &omap44xx_l4_abe__mcasp,
4742 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004743 &omap44xx_l4_abe__mcbsp1,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004744 &omap44xx_l4_abe__mcbsp2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004745 &omap44xx_l4_abe__mcbsp3,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004746 &omap44xx_l4_per__mcbsp4,
4747 &omap44xx_l4_abe__mcpdm,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004748 &omap44xx_l4_per__mcspi1,
4749 &omap44xx_l4_per__mcspi2,
4750 &omap44xx_l4_per__mcspi3,
4751 &omap44xx_l4_per__mcspi4,
4752 &omap44xx_l4_per__mmc1,
4753 &omap44xx_l4_per__mmc2,
4754 &omap44xx_l4_per__mmc3,
4755 &omap44xx_l4_per__mmc4,
4756 &omap44xx_l4_per__mmc5,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06004757 &omap44xx_l3_main_2__mmu_ipu,
4758 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06004759 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06004760 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06004761 &omap44xx_mpu_private__prcm_mpu,
4762 &omap44xx_l4_wkup__cm_core_aon,
4763 &omap44xx_l4_cfg__cm_core,
4764 &omap44xx_l4_wkup__prm,
4765 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06004766 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06004767 &omap44xx_l4_abe__slimbus1,
4768 &omap44xx_l4_abe__slimbus1_dma,
4769 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004770 &omap44xx_l4_cfg__smartreflex_core,
4771 &omap44xx_l4_cfg__smartreflex_iva,
4772 &omap44xx_l4_cfg__smartreflex_mpu,
4773 &omap44xx_l4_cfg__spinlock,
4774 &omap44xx_l4_wkup__timer1,
4775 &omap44xx_l4_per__timer2,
4776 &omap44xx_l4_per__timer3,
4777 &omap44xx_l4_per__timer4,
4778 &omap44xx_l4_abe__timer5,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004779 &omap44xx_l4_abe__timer6,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004780 &omap44xx_l4_abe__timer7,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004781 &omap44xx_l4_abe__timer8,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004782 &omap44xx_l4_per__timer9,
4783 &omap44xx_l4_per__timer10,
4784 &omap44xx_l4_per__timer11,
4785 &omap44xx_l4_per__uart1,
4786 &omap44xx_l4_per__uart2,
4787 &omap44xx_l4_per__uart3,
4788 &omap44xx_l4_per__uart4,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004789 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004790 &omap44xx_l4_cfg__usb_host_hs,
4791 &omap44xx_l4_cfg__usb_otg_hs,
4792 &omap44xx_l4_cfg__usb_tll_hs,
4793 &omap44xx_l4_wkup__wd_timer2,
4794 &omap44xx_l4_abe__wd_timer3,
4795 &omap44xx_l4_abe__wd_timer3_dma,
Sricharan R3b9b1012013-06-07 17:26:15 +05304796 &omap44xx_mpu__emif1,
4797 &omap44xx_mpu__emif2,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004798 NULL,
4799};
4800
4801int __init omap44xx_hwmod_init(void)
4802{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06004803 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06004804 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02004805}
4806