blob: f9084949b1ee53ed573ea5a25bb0eca0c9a45557 [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.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License version 2 as
18 * published by the Free Software Foundation.
19 */
20
21#include <linux/io.h>
Tony Lindgren4b254082012-08-30 15:37:24 -070022#include <linux/platform_data/gpio-omap.h>
Jean Pihetb86aeaf2012-04-25 16:06:20 +053023#include <linux/power/smartreflex.h>
Kishon Vijay Abraham I637874d2012-10-27 19:05:55 +053024#include <linux/platform_data/omap_ocp2scp.h>
Tony Lindgren3a8761c2012-10-08 09:11:22 -070025#include <linux/i2c-omap.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020026
Tony Lindgren45c3eb72012-11-30 08:41:50 -080027#include <linux/omap-dma.h>
Tony Lindgren2a296c82012-10-02 17:41:35 -070028
Arnd Bergmann22037472012-08-24 15:21:06 +020029#include <linux/platform_data/spi-omap2-mcspi.h>
30#include <linux/platform_data/asoc-ti-mcbsp.h>
Tony Lindgren2ab7c842012-11-02 12:24:14 -070031#include <linux/platform_data/iommu-omap.h>
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +053032#include <plat/dmtimer.h>
Benoit Cousson55d2cb02010-05-12 17:54:36 +020033
Tony Lindgren2a296c82012-10-02 17:41:35 -070034#include "omap_hwmod.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020035#include "omap_hwmod_common_data.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070036#include "cm1_44xx.h"
37#include "cm2_44xx.h"
38#include "prm44xx.h"
Benoit Cousson55d2cb02010-05-12 17:54:36 +020039#include "prm-regbits-44xx.h"
Tony Lindgren3a8761c2012-10-08 09:11:22 -070040#include "i2c.h"
Tony Lindgren68f39e72012-10-15 12:09:43 -070041#include "mmc.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/*
Paul Walmsley42b9e382012-04-19 13:33:54 -060055 * 'c2c_target_fw' class
56 * instance(s): c2c_target_fw
57 */
58static struct omap_hwmod_class omap44xx_c2c_target_fw_hwmod_class = {
59 .name = "c2c_target_fw",
60};
61
62/* c2c_target_fw */
63static struct omap_hwmod omap44xx_c2c_target_fw_hwmod = {
64 .name = "c2c_target_fw",
65 .class = &omap44xx_c2c_target_fw_hwmod_class,
66 .clkdm_name = "d2d_clkdm",
67 .prcm = {
68 .omap4 = {
69 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_FW_CLKCTRL_OFFSET,
70 .context_offs = OMAP4_RM_D2D_SAD2D_FW_CONTEXT_OFFSET,
71 },
72 },
73};
74
75/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +020076 * 'dmm' class
77 * instance(s): dmm
78 */
79static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +000080 .name = "dmm",
Benoit Cousson55d2cb02010-05-12 17:54:36 +020081};
82
Benoit Cousson7e69ed92011-07-09 19:14:28 -060083/* dmm */
84static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = {
85 { .irq = 113 + OMAP44XX_IRQ_GIC_START },
86 { .irq = -1 }
87};
88
Benoit Cousson55d2cb02010-05-12 17:54:36 +020089static struct omap_hwmod omap44xx_dmm_hwmod = {
90 .name = "dmm",
91 .class = &omap44xx_dmm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -060092 .clkdm_name = "l3_emif_clkdm",
Paul Walmsley844a3b62012-04-19 04:04:33 -060093 .mpu_irqs = omap44xx_dmm_irqs,
Benoit Coussond0f06312011-07-10 05:56:30 -060094 .prcm = {
95 .omap4 = {
96 .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -060097 .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -060098 },
99 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200100};
101
102/*
103 * 'emif_fw' class
104 * instance(s): emif_fw
105 */
106static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000107 .name = "emif_fw",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200108};
109
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600110/* emif_fw */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200111static struct omap_hwmod omap44xx_emif_fw_hwmod = {
112 .name = "emif_fw",
113 .class = &omap44xx_emif_fw_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600114 .clkdm_name = "l3_emif_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600115 .prcm = {
116 .omap4 = {
117 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_FW_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600118 .context_offs = OMAP4_RM_MEMIF_EMIF_FW_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600119 },
120 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200121};
122
123/*
124 * 'l3' class
125 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
126 */
127static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000128 .name = "l3",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200129};
130
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600131/* l3_instr */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200132static struct omap_hwmod omap44xx_l3_instr_hwmod = {
133 .name = "l3_instr",
134 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600135 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600136 .prcm = {
137 .omap4 = {
138 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600139 .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600140 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600141 },
142 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200143};
144
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600145/* l3_main_1 */
Benoit Cousson9b4021b2011-07-09 19:14:27 -0600146static struct omap_hwmod_irq_info omap44xx_l3_main_1_irqs[] = {
147 { .name = "dbg_err", .irq = 9 + OMAP44XX_IRQ_GIC_START },
148 { .name = "app_err", .irq = 10 + OMAP44XX_IRQ_GIC_START },
149 { .irq = -1 }
150};
151
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200152static struct omap_hwmod omap44xx_l3_main_1_hwmod = {
153 .name = "l3_main_1",
154 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600155 .clkdm_name = "l3_1_clkdm",
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600156 .mpu_irqs = omap44xx_l3_main_1_irqs,
Benoit Coussond0f06312011-07-10 05:56:30 -0600157 .prcm = {
158 .omap4 = {
159 .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600160 .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600161 },
162 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200163};
164
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600165/* l3_main_2 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200166static struct omap_hwmod omap44xx_l3_main_2_hwmod = {
167 .name = "l3_main_2",
168 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600169 .clkdm_name = "l3_2_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600170 .prcm = {
171 .omap4 = {
172 .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600173 .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600174 },
175 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200176};
177
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600178/* l3_main_3 */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200179static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
180 .name = "l3_main_3",
181 .class = &omap44xx_l3_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600182 .clkdm_name = "l3_instr_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600183 .prcm = {
184 .omap4 = {
185 .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600186 .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600187 .modulemode = MODULEMODE_HWCTRL,
Benoit Coussond0f06312011-07-10 05:56:30 -0600188 },
189 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200190};
191
192/*
193 * 'l4' class
194 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
195 */
196static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000197 .name = "l4",
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200198};
199
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600200/* l4_abe */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200201static struct omap_hwmod omap44xx_l4_abe_hwmod = {
202 .name = "l4_abe",
203 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600204 .clkdm_name = "abe_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600205 .prcm = {
206 .omap4 = {
207 .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600208 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
209 .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK,
Tero Kristo46b3af22012-09-23 17:28:20 -0600210 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
Benoit Coussond0f06312011-07-10 05:56:30 -0600211 },
212 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200213};
214
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600215/* l4_cfg */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200216static struct omap_hwmod omap44xx_l4_cfg_hwmod = {
217 .name = "l4_cfg",
218 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600219 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600220 .prcm = {
221 .omap4 = {
222 .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600223 .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600224 },
225 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200226};
227
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600228/* l4_per */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200229static struct omap_hwmod omap44xx_l4_per_hwmod = {
230 .name = "l4_per",
231 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600232 .clkdm_name = "l4_per_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600233 .prcm = {
234 .omap4 = {
235 .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600236 .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600237 },
238 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200239};
240
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600241/* l4_wkup */
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200242static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
243 .name = "l4_wkup",
244 .class = &omap44xx_l4_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600245 .clkdm_name = "l4_wkup_clkdm",
Benoit Coussond0f06312011-07-10 05:56:30 -0600246 .prcm = {
247 .omap4 = {
248 .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600249 .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET,
Benoit Coussond0f06312011-07-10 05:56:30 -0600250 },
251 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +0200252};
253
254/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700255 * 'mpu_bus' class
256 * instance(s): mpu_private
257 */
258static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000259 .name = "mpu_bus",
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700260};
261
Benoit Cousson7e69ed92011-07-09 19:14:28 -0600262/* mpu_private */
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700263static struct omap_hwmod omap44xx_mpu_private_hwmod = {
264 .name = "mpu_private",
265 .class = &omap44xx_mpu_bus_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600266 .clkdm_name = "mpuss_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600267 .prcm = {
268 .omap4 = {
269 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
270 },
271 },
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700272};
273
274/*
Benoît Cousson9a817bc2012-04-19 13:33:56 -0600275 * 'ocp_wp_noc' class
276 * instance(s): ocp_wp_noc
277 */
278static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = {
279 .name = "ocp_wp_noc",
280};
281
282/* ocp_wp_noc */
283static struct omap_hwmod omap44xx_ocp_wp_noc_hwmod = {
284 .name = "ocp_wp_noc",
285 .class = &omap44xx_ocp_wp_noc_hwmod_class,
286 .clkdm_name = "l3_instr_clkdm",
287 .prcm = {
288 .omap4 = {
289 .clkctrl_offs = OMAP4_CM_L3INSTR_OCP_WP1_CLKCTRL_OFFSET,
290 .context_offs = OMAP4_RM_L3INSTR_OCP_WP1_CONTEXT_OFFSET,
291 .modulemode = MODULEMODE_HWCTRL,
292 },
293 },
294};
295
296/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700297 * Modules omap_hwmod structures
298 *
299 * The following IPs are excluded for the moment because:
300 * - They do not need an explicit SW control using omap_hwmod API.
301 * - They still need to be validated with the driver
302 * properly adapted to omap_hwmod / omap_device
303 *
Benoît Cousson96566042012-04-19 13:33:59 -0600304 * usim
Benoit Cousson3b54baa2010-12-21 21:08:33 -0700305 */
306
307/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100308 * 'aess' class
309 * audio engine sub system
310 */
311
312static struct omap_hwmod_class_sysconfig omap44xx_aess_sysc = {
313 .rev_offs = 0x0000,
314 .sysc_offs = 0x0010,
315 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
316 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
Benoit Coussonc614ebf2011-07-01 22:54:01 +0200317 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART |
318 MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +0100319 .sysc_fields = &omap_hwmod_sysc_type2,
320};
321
322static struct omap_hwmod_class omap44xx_aess_hwmod_class = {
323 .name = "aess",
324 .sysc = &omap44xx_aess_sysc,
Paul Walmsleyc02060d2013-02-10 11:22:23 -0700325 .enable_preprogram = omap_hwmod_aess_preprogram,
Benoit Cousson407a6882011-02-15 22:39:48 +0100326};
327
328/* aess */
329static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = {
330 { .irq = 99 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600331 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +0100332};
333
334static struct omap_hwmod_dma_info omap44xx_aess_sdma_reqs[] = {
335 { .name = "fifo0", .dma_req = 100 + OMAP44XX_DMA_REQ_START },
336 { .name = "fifo1", .dma_req = 101 + OMAP44XX_DMA_REQ_START },
337 { .name = "fifo2", .dma_req = 102 + OMAP44XX_DMA_REQ_START },
338 { .name = "fifo3", .dma_req = 103 + OMAP44XX_DMA_REQ_START },
339 { .name = "fifo4", .dma_req = 104 + OMAP44XX_DMA_REQ_START },
340 { .name = "fifo5", .dma_req = 105 + OMAP44XX_DMA_REQ_START },
341 { .name = "fifo6", .dma_req = 106 + OMAP44XX_DMA_REQ_START },
342 { .name = "fifo7", .dma_req = 107 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600343 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +0100344};
345
Benoit Cousson407a6882011-02-15 22:39:48 +0100346static struct omap_hwmod omap44xx_aess_hwmod = {
347 .name = "aess",
348 .class = &omap44xx_aess_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600349 .clkdm_name = "abe_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100350 .mpu_irqs = omap44xx_aess_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +0100351 .sdma_reqs = omap44xx_aess_sdma_reqs,
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -0700352 .main_clk = "aess_fclk",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600353 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100354 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600355 .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600356 .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET,
Tero Kristoce809792012-09-23 17:28:19 -0600357 .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600358 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +0100359 },
360 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100361};
362
363/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600364 * 'c2c' class
365 * chip 2 chip interface used to plug the ape soc (omap) with an external modem
366 * soc
367 */
368
369static struct omap_hwmod_class omap44xx_c2c_hwmod_class = {
370 .name = "c2c",
371};
372
373/* c2c */
374static struct omap_hwmod_irq_info omap44xx_c2c_irqs[] = {
375 { .irq = 88 + OMAP44XX_IRQ_GIC_START },
376 { .irq = -1 }
377};
378
379static struct omap_hwmod_dma_info omap44xx_c2c_sdma_reqs[] = {
380 { .dma_req = 68 + OMAP44XX_DMA_REQ_START },
381 { .dma_req = -1 }
382};
383
384static struct omap_hwmod omap44xx_c2c_hwmod = {
385 .name = "c2c",
386 .class = &omap44xx_c2c_hwmod_class,
387 .clkdm_name = "d2d_clkdm",
388 .mpu_irqs = omap44xx_c2c_irqs,
389 .sdma_reqs = omap44xx_c2c_sdma_reqs,
390 .prcm = {
391 .omap4 = {
392 .clkctrl_offs = OMAP4_CM_D2D_SAD2D_CLKCTRL_OFFSET,
393 .context_offs = OMAP4_RM_D2D_SAD2D_CONTEXT_OFFSET,
394 },
395 },
396};
397
398/*
Benoit Cousson407a6882011-02-15 22:39:48 +0100399 * 'counter' class
400 * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock
401 */
402
403static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = {
404 .rev_offs = 0x0000,
405 .sysc_offs = 0x0004,
406 .sysc_flags = SYSC_HAS_SIDLEMODE,
Paul Walmsley252a4c52012-06-17 11:57:51 -0600407 .idlemodes = (SIDLE_FORCE | SIDLE_NO),
Benoit Cousson407a6882011-02-15 22:39:48 +0100408 .sysc_fields = &omap_hwmod_sysc_type1,
409};
410
411static struct omap_hwmod_class omap44xx_counter_hwmod_class = {
412 .name = "counter",
413 .sysc = &omap44xx_counter_sysc,
414};
415
416/* counter_32k */
Benoit Cousson407a6882011-02-15 22:39:48 +0100417static struct omap_hwmod omap44xx_counter_32k_hwmod = {
418 .name = "counter_32k",
419 .class = &omap44xx_counter_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600420 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +0100421 .flags = HWMOD_SWSUP_SIDLE,
422 .main_clk = "sys_32k_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600423 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +0100424 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600425 .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600426 .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET,
Benoit Cousson407a6882011-02-15 22:39:48 +0100427 },
428 },
Benoit Cousson407a6882011-02-15 22:39:48 +0100429};
430
431/*
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600432 * 'ctrl_module' class
433 * attila core control module + core pad control module + wkup pad control
434 * module + attila wkup control module
435 */
436
437static struct omap_hwmod_class_sysconfig omap44xx_ctrl_module_sysc = {
438 .rev_offs = 0x0000,
439 .sysc_offs = 0x0010,
440 .sysc_flags = SYSC_HAS_SIDLEMODE,
441 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
442 SIDLE_SMART_WKUP),
443 .sysc_fields = &omap_hwmod_sysc_type2,
444};
445
446static struct omap_hwmod_class omap44xx_ctrl_module_hwmod_class = {
447 .name = "ctrl_module",
448 .sysc = &omap44xx_ctrl_module_sysc,
449};
450
451/* ctrl_module_core */
452static struct omap_hwmod_irq_info omap44xx_ctrl_module_core_irqs[] = {
453 { .irq = 8 + OMAP44XX_IRQ_GIC_START },
454 { .irq = -1 }
455};
456
457static struct omap_hwmod omap44xx_ctrl_module_core_hwmod = {
458 .name = "ctrl_module_core",
459 .class = &omap44xx_ctrl_module_hwmod_class,
460 .clkdm_name = "l4_cfg_clkdm",
461 .mpu_irqs = omap44xx_ctrl_module_core_irqs,
Tero Kristo46b3af22012-09-23 17:28:20 -0600462 .prcm = {
463 .omap4 = {
464 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
465 },
466 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600467};
468
469/* ctrl_module_pad_core */
470static struct omap_hwmod omap44xx_ctrl_module_pad_core_hwmod = {
471 .name = "ctrl_module_pad_core",
472 .class = &omap44xx_ctrl_module_hwmod_class,
473 .clkdm_name = "l4_cfg_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600474 .prcm = {
475 .omap4 = {
476 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
477 },
478 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600479};
480
481/* ctrl_module_wkup */
482static struct omap_hwmod omap44xx_ctrl_module_wkup_hwmod = {
483 .name = "ctrl_module_wkup",
484 .class = &omap44xx_ctrl_module_hwmod_class,
485 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600486 .prcm = {
487 .omap4 = {
488 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
489 },
490 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600491};
492
493/* ctrl_module_pad_wkup */
494static struct omap_hwmod omap44xx_ctrl_module_pad_wkup_hwmod = {
495 .name = "ctrl_module_pad_wkup",
496 .class = &omap44xx_ctrl_module_hwmod_class,
497 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -0600498 .prcm = {
499 .omap4 = {
500 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
501 },
502 },
Paul Walmsleya0b5d812012-04-19 13:33:57 -0600503};
504
505/*
Benoît Cousson96566042012-04-19 13:33:59 -0600506 * 'debugss' class
507 * debug and emulation sub system
508 */
509
510static struct omap_hwmod_class omap44xx_debugss_hwmod_class = {
511 .name = "debugss",
512};
513
514/* debugss */
515static struct omap_hwmod omap44xx_debugss_hwmod = {
516 .name = "debugss",
517 .class = &omap44xx_debugss_hwmod_class,
518 .clkdm_name = "emu_sys_clkdm",
519 .main_clk = "trace_clk_div_ck",
520 .prcm = {
521 .omap4 = {
522 .clkctrl_offs = OMAP4_CM_EMU_DEBUGSS_CLKCTRL_OFFSET,
523 .context_offs = OMAP4_RM_EMU_DEBUGSS_CONTEXT_OFFSET,
524 },
525 },
526};
527
528/*
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000529 * 'dma' class
530 * dma controller for data exchange between memory to memory (i.e. internal or
531 * external memory) and gp peripherals to memory or memory to gp peripherals
532 */
533
534static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = {
535 .rev_offs = 0x0000,
536 .sysc_offs = 0x002c,
537 .syss_offs = 0x0028,
538 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
539 SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
540 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
541 SYSS_HAS_RESET_STATUS),
542 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
543 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
544 .sysc_fields = &omap_hwmod_sysc_type1,
545};
546
547static struct omap_hwmod_class omap44xx_dma_hwmod_class = {
548 .name = "dma",
549 .sysc = &omap44xx_dma_sysc,
550};
551
552/* dma dev_attr */
553static struct omap_dma_dev_attr dma_dev_attr = {
554 .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY |
555 IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY,
556 .lch_count = 32,
557};
558
559/* dma_system */
560static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = {
561 { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START },
562 { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START },
563 { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START },
564 { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600565 { .irq = -1 }
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000566};
567
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000568static struct omap_hwmod omap44xx_dma_system_hwmod = {
569 .name = "dma_system",
570 .class = &omap44xx_dma_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600571 .clkdm_name = "l3_dma_clkdm",
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000572 .mpu_irqs = omap44xx_dma_system_irqs,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000573 .main_clk = "l3_div_ck",
574 .prcm = {
575 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600576 .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600577 .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000578 },
579 },
580 .dev_attr = &dma_dev_attr,
Benoit Coussond7cf5f32010-12-23 22:30:31 +0000581};
582
583/*
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000584 * 'dmic' class
585 * digital microphone controller
586 */
587
588static struct omap_hwmod_class_sysconfig omap44xx_dmic_sysc = {
589 .rev_offs = 0x0000,
590 .sysc_offs = 0x0010,
591 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
592 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
593 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
594 SIDLE_SMART_WKUP),
595 .sysc_fields = &omap_hwmod_sysc_type2,
596};
597
598static struct omap_hwmod_class omap44xx_dmic_hwmod_class = {
599 .name = "dmic",
600 .sysc = &omap44xx_dmic_sysc,
601};
602
603/* dmic */
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000604static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = {
605 { .irq = 114 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600606 { .irq = -1 }
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000607};
608
609static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = {
610 { .dma_req = 66 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600611 { .dma_req = -1 }
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000612};
613
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000614static struct omap_hwmod omap44xx_dmic_hwmod = {
615 .name = "dmic",
616 .class = &omap44xx_dmic_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600617 .clkdm_name = "abe_clkdm",
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000618 .mpu_irqs = omap44xx_dmic_irqs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000619 .sdma_reqs = omap44xx_dmic_sdma_reqs,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000620 .main_clk = "dmic_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -0600621 .prcm = {
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000622 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600623 .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600624 .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600625 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000626 },
627 },
Benoit Cousson8ca476d2011-01-25 22:01:00 +0000628};
629
630/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700631 * 'dsp' class
632 * dsp sub-system
633 */
634
635static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +0000636 .name = "dsp",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700637};
638
639/* dsp */
640static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = {
641 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600642 { .irq = -1 }
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700643};
644
645static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700646 { .name = "dsp", .rst_shift = 0 },
647};
648
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700649static struct omap_hwmod omap44xx_dsp_hwmod = {
650 .name = "dsp",
651 .class = &omap44xx_dsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600652 .clkdm_name = "tesla_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700653 .mpu_irqs = omap44xx_dsp_irqs,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700654 .rst_lines = omap44xx_dsp_resets,
655 .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -0600656 .main_clk = "dpll_iva_m4x2_ck",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700657 .prcm = {
658 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600659 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -0600660 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600661 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -0600662 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700663 },
664 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -0700665};
666
667/*
Benoit Coussond63bd742011-01-27 11:17:03 +0000668 * 'dss' class
669 * display sub-system
670 */
671
672static struct omap_hwmod_class_sysconfig omap44xx_dss_sysc = {
673 .rev_offs = 0x0000,
674 .syss_offs = 0x0014,
675 .sysc_flags = SYSS_HAS_RESET_STATUS,
676};
677
678static struct omap_hwmod_class omap44xx_dss_hwmod_class = {
679 .name = "dss",
680 .sysc = &omap44xx_dss_sysc,
Tomi Valkeinen13662dc2011-11-08 03:16:13 -0700681 .reset = omap_dss_reset,
Benoit Coussond63bd742011-01-27 11:17:03 +0000682};
683
684/* dss */
Benoit Coussond63bd742011-01-27 11:17:03 +0000685static struct omap_hwmod_opt_clk dss_opt_clks[] = {
686 { .role = "sys_clk", .clk = "dss_sys_clk" },
687 { .role = "tv_clk", .clk = "dss_tv_clk" },
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700688 { .role = "hdmi_clk", .clk = "dss_48mhz_clk" },
Benoit Coussond63bd742011-01-27 11:17:03 +0000689};
690
691static struct omap_hwmod omap44xx_dss_hwmod = {
692 .name = "dss_core",
Tomi Valkeinen37ad0852011-11-08 03:16:11 -0700693 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000694 .class = &omap44xx_dss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600695 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600696 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000697 .prcm = {
698 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600699 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600700 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000701 },
702 },
703 .opt_clks = dss_opt_clks,
704 .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000705};
706
707/*
708 * 'dispc' class
709 * display controller
710 */
711
712static struct omap_hwmod_class_sysconfig omap44xx_dispc_sysc = {
713 .rev_offs = 0x0000,
714 .sysc_offs = 0x0010,
715 .syss_offs = 0x0014,
716 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
717 SYSC_HAS_ENAWAKEUP | SYSC_HAS_MIDLEMODE |
718 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
719 SYSS_HAS_RESET_STATUS),
720 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
721 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
722 .sysc_fields = &omap_hwmod_sysc_type1,
723};
724
725static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
726 .name = "dispc",
727 .sysc = &omap44xx_dispc_sysc,
728};
729
730/* dss_dispc */
Benoit Coussond63bd742011-01-27 11:17:03 +0000731static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
732 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600733 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000734};
735
736static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
737 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600738 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000739};
740
Archit Tanejab923d402011-10-06 18:04:08 -0600741static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
742 .manager_count = 3,
743 .has_framedonetv_irq = 1
744};
745
Benoit Coussond63bd742011-01-27 11:17:03 +0000746static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
747 .name = "dss_dispc",
748 .class = &omap44xx_dispc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600749 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +0000750 .mpu_irqs = omap44xx_dss_dispc_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +0000751 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600752 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000753 .prcm = {
754 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600755 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600756 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000757 },
758 },
Archit Tanejab923d402011-10-06 18:04:08 -0600759 .dev_attr = &omap44xx_dss_dispc_dev_attr
Benoit Coussond63bd742011-01-27 11:17:03 +0000760};
761
762/*
763 * 'dsi' class
764 * display serial interface controller
765 */
766
767static struct omap_hwmod_class_sysconfig omap44xx_dsi_sysc = {
768 .rev_offs = 0x0000,
769 .sysc_offs = 0x0010,
770 .syss_offs = 0x0014,
771 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
772 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
773 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
774 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
775 .sysc_fields = &omap_hwmod_sysc_type1,
776};
777
778static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
779 .name = "dsi",
780 .sysc = &omap44xx_dsi_sysc,
781};
782
783/* dss_dsi1 */
Benoit Coussond63bd742011-01-27 11:17:03 +0000784static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
785 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600786 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000787};
788
789static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
790 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600791 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000792};
793
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600794static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
795 { .role = "sys_clk", .clk = "dss_sys_clk" },
796};
797
Benoit Coussond63bd742011-01-27 11:17:03 +0000798static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
799 .name = "dss_dsi1",
800 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600801 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +0000802 .mpu_irqs = omap44xx_dss_dsi1_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +0000803 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600804 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000805 .prcm = {
806 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600807 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600808 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000809 },
810 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600811 .opt_clks = dss_dsi1_opt_clks,
812 .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000813};
814
815/* dss_dsi2 */
Benoit Coussond63bd742011-01-27 11:17:03 +0000816static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
817 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600818 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000819};
820
821static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
822 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600823 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000824};
825
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600826static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
827 { .role = "sys_clk", .clk = "dss_sys_clk" },
828};
829
Benoit Coussond63bd742011-01-27 11:17:03 +0000830static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
831 .name = "dss_dsi2",
832 .class = &omap44xx_dsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600833 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +0000834 .mpu_irqs = omap44xx_dss_dsi2_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +0000835 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600836 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000837 .prcm = {
838 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600839 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600840 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000841 },
842 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600843 .opt_clks = dss_dsi2_opt_clks,
844 .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000845};
846
847/*
848 * 'hdmi' class
849 * hdmi controller
850 */
851
852static struct omap_hwmod_class_sysconfig omap44xx_hdmi_sysc = {
853 .rev_offs = 0x0000,
854 .sysc_offs = 0x0010,
855 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
856 SYSC_HAS_SOFTRESET),
857 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
858 SIDLE_SMART_WKUP),
859 .sysc_fields = &omap_hwmod_sysc_type2,
860};
861
862static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
863 .name = "hdmi",
864 .sysc = &omap44xx_hdmi_sysc,
865};
866
867/* dss_hdmi */
Benoit Coussond63bd742011-01-27 11:17:03 +0000868static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
869 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -0600870 { .irq = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000871};
872
873static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
874 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600875 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000876};
877
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600878static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
879 { .role = "sys_clk", .clk = "dss_sys_clk" },
880};
881
Benoit Coussond63bd742011-01-27 11:17:03 +0000882static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
883 .name = "dss_hdmi",
884 .class = &omap44xx_hdmi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600885 .clkdm_name = "l3_dss_clkdm",
Ricardo Neridc57aef2012-06-21 10:08:53 +0200886 /*
887 * HDMI audio requires to use no-idle mode. Hence,
888 * set idle mode by software.
889 */
890 .flags = HWMOD_SWSUP_SIDLE,
Benoit Coussond63bd742011-01-27 11:17:03 +0000891 .mpu_irqs = omap44xx_dss_hdmi_irqs,
Benoit Coussond63bd742011-01-27 11:17:03 +0000892 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700893 .main_clk = "dss_48mhz_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000894 .prcm = {
895 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600896 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600897 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000898 },
899 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600900 .opt_clks = dss_hdmi_opt_clks,
901 .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000902};
903
904/*
905 * 'rfbi' class
906 * remote frame buffer interface
907 */
908
909static struct omap_hwmod_class_sysconfig omap44xx_rfbi_sysc = {
910 .rev_offs = 0x0000,
911 .sysc_offs = 0x0010,
912 .syss_offs = 0x0014,
913 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
914 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
915 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
916 .sysc_fields = &omap_hwmod_sysc_type1,
917};
918
919static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
920 .name = "rfbi",
921 .sysc = &omap44xx_rfbi_sysc,
922};
923
924/* dss_rfbi */
Benoit Coussond63bd742011-01-27 11:17:03 +0000925static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
926 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -0600927 { .dma_req = -1 }
Benoit Coussond63bd742011-01-27 11:17:03 +0000928};
929
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600930static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
931 { .role = "ick", .clk = "dss_fck" },
932};
933
Benoit Coussond63bd742011-01-27 11:17:03 +0000934static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
935 .name = "dss_rfbi",
936 .class = &omap44xx_rfbi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600937 .clkdm_name = "l3_dss_clkdm",
Benoit Coussond63bd742011-01-27 11:17:03 +0000938 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
Tomi Valkeinenda7cdfa2011-07-09 20:39:45 -0600939 .main_clk = "dss_dss_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000940 .prcm = {
941 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600942 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600943 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000944 },
945 },
Tomi Valkeinen3a23aaf2011-07-09 20:39:44 -0600946 .opt_clks = dss_rfbi_opt_clks,
947 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
Benoit Coussond63bd742011-01-27 11:17:03 +0000948};
949
950/*
951 * 'venc' class
952 * video encoder
953 */
954
955static struct omap_hwmod_class omap44xx_venc_hwmod_class = {
956 .name = "venc",
957};
958
959/* dss_venc */
Benoit Coussond63bd742011-01-27 11:17:03 +0000960static struct omap_hwmod omap44xx_dss_venc_hwmod = {
961 .name = "dss_venc",
962 .class = &omap44xx_venc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -0600963 .clkdm_name = "l3_dss_clkdm",
Tomi Valkeinen4d0698d2011-11-08 03:16:12 -0700964 .main_clk = "dss_tv_clk",
Benoit Coussond63bd742011-01-27 11:17:03 +0000965 .prcm = {
966 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -0600967 .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -0600968 .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET,
Benoit Coussond63bd742011-01-27 11:17:03 +0000969 },
970 },
Benoit Coussond63bd742011-01-27 11:17:03 +0000971};
972
973/*
Paul Walmsley42b9e382012-04-19 13:33:54 -0600974 * 'elm' class
975 * bch error location module
976 */
977
978static struct omap_hwmod_class_sysconfig omap44xx_elm_sysc = {
979 .rev_offs = 0x0000,
980 .sysc_offs = 0x0010,
981 .syss_offs = 0x0014,
982 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
983 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
984 SYSS_HAS_RESET_STATUS),
985 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
986 .sysc_fields = &omap_hwmod_sysc_type1,
987};
988
989static struct omap_hwmod_class omap44xx_elm_hwmod_class = {
990 .name = "elm",
991 .sysc = &omap44xx_elm_sysc,
992};
993
994/* elm */
995static struct omap_hwmod_irq_info omap44xx_elm_irqs[] = {
996 { .irq = 4 + OMAP44XX_IRQ_GIC_START },
997 { .irq = -1 }
998};
999
1000static struct omap_hwmod omap44xx_elm_hwmod = {
1001 .name = "elm",
1002 .class = &omap44xx_elm_hwmod_class,
1003 .clkdm_name = "l4_per_clkdm",
1004 .mpu_irqs = omap44xx_elm_irqs,
1005 .prcm = {
1006 .omap4 = {
1007 .clkctrl_offs = OMAP4_CM_L4PER_ELM_CLKCTRL_OFFSET,
1008 .context_offs = OMAP4_RM_L4PER_ELM_CONTEXT_OFFSET,
1009 },
1010 },
1011};
1012
1013/*
Paul Walmsleybf30f952012-04-19 13:33:52 -06001014 * 'emif' class
1015 * external memory interface no1
1016 */
1017
1018static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = {
1019 .rev_offs = 0x0000,
1020};
1021
1022static struct omap_hwmod_class omap44xx_emif_hwmod_class = {
1023 .name = "emif",
1024 .sysc = &omap44xx_emif_sysc,
1025};
1026
1027/* emif1 */
1028static struct omap_hwmod_irq_info omap44xx_emif1_irqs[] = {
1029 { .irq = 110 + OMAP44XX_IRQ_GIC_START },
1030 { .irq = -1 }
1031};
1032
1033static struct omap_hwmod omap44xx_emif1_hwmod = {
1034 .name = "emif1",
1035 .class = &omap44xx_emif_hwmod_class,
1036 .clkdm_name = "l3_emif_clkdm",
1037 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1038 .mpu_irqs = omap44xx_emif1_irqs,
1039 .main_clk = "ddrphy_ck",
1040 .prcm = {
1041 .omap4 = {
1042 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_1_CLKCTRL_OFFSET,
1043 .context_offs = OMAP4_RM_MEMIF_EMIF_1_CONTEXT_OFFSET,
1044 .modulemode = MODULEMODE_HWCTRL,
1045 },
1046 },
1047};
1048
1049/* emif2 */
1050static struct omap_hwmod_irq_info omap44xx_emif2_irqs[] = {
1051 { .irq = 111 + OMAP44XX_IRQ_GIC_START },
1052 { .irq = -1 }
1053};
1054
1055static struct omap_hwmod omap44xx_emif2_hwmod = {
1056 .name = "emif2",
1057 .class = &omap44xx_emif_hwmod_class,
1058 .clkdm_name = "l3_emif_clkdm",
1059 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1060 .mpu_irqs = omap44xx_emif2_irqs,
1061 .main_clk = "ddrphy_ck",
1062 .prcm = {
1063 .omap4 = {
1064 .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_2_CLKCTRL_OFFSET,
1065 .context_offs = OMAP4_RM_MEMIF_EMIF_2_CONTEXT_OFFSET,
1066 .modulemode = MODULEMODE_HWCTRL,
1067 },
1068 },
1069};
1070
1071/*
Ming Leib050f682012-04-19 13:33:50 -06001072 * 'fdif' class
1073 * face detection hw accelerator module
1074 */
1075
1076static struct omap_hwmod_class_sysconfig omap44xx_fdif_sysc = {
1077 .rev_offs = 0x0000,
1078 .sysc_offs = 0x0010,
1079 /*
1080 * FDIF needs 100 OCP clk cycles delay after a softreset before
1081 * accessing sysconfig again.
1082 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1083 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1084 *
1085 * TODO: Indicate errata when available.
1086 */
1087 .srst_udelay = 2,
1088 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1089 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1090 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1091 MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART),
1092 .sysc_fields = &omap_hwmod_sysc_type2,
1093};
1094
1095static struct omap_hwmod_class omap44xx_fdif_hwmod_class = {
1096 .name = "fdif",
1097 .sysc = &omap44xx_fdif_sysc,
1098};
1099
1100/* fdif */
1101static struct omap_hwmod_irq_info omap44xx_fdif_irqs[] = {
1102 { .irq = 69 + OMAP44XX_IRQ_GIC_START },
1103 { .irq = -1 }
1104};
1105
1106static struct omap_hwmod omap44xx_fdif_hwmod = {
1107 .name = "fdif",
1108 .class = &omap44xx_fdif_hwmod_class,
1109 .clkdm_name = "iss_clkdm",
1110 .mpu_irqs = omap44xx_fdif_irqs,
1111 .main_clk = "fdif_fck",
1112 .prcm = {
1113 .omap4 = {
1114 .clkctrl_offs = OMAP4_CM_CAM_FDIF_CLKCTRL_OFFSET,
1115 .context_offs = OMAP4_RM_CAM_FDIF_CONTEXT_OFFSET,
1116 .modulemode = MODULEMODE_SWCTRL,
1117 },
1118 },
1119};
1120
1121/*
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001122 * 'gpio' class
1123 * general purpose io module
1124 */
1125
1126static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
1127 .rev_offs = 0x0000,
1128 .sysc_offs = 0x0010,
1129 .syss_offs = 0x0114,
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001130 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
1131 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1132 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001133 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1134 SIDLE_SMART_WKUP),
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001135 .sysc_fields = &omap_hwmod_sysc_type1,
1136};
1137
1138static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001139 .name = "gpio",
1140 .sysc = &omap44xx_gpio_sysc,
1141 .rev = 2,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001142};
1143
1144/* gpio dev_attr */
1145static struct omap_gpio_dev_attr gpio_dev_attr = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001146 .bank_width = 32,
1147 .dbck_flag = true,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001148};
1149
1150/* gpio1 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001151static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = {
1152 { .irq = 29 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001153 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001154};
1155
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001156static struct omap_hwmod_opt_clk gpio1_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001157 { .role = "dbclk", .clk = "gpio1_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001158};
1159
1160static struct omap_hwmod omap44xx_gpio1_hwmod = {
1161 .name = "gpio1",
1162 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001163 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001164 .mpu_irqs = omap44xx_gpio1_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001165 .main_clk = "gpio1_ick",
1166 .prcm = {
1167 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001168 .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001169 .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001170 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001171 },
1172 },
1173 .opt_clks = gpio1_opt_clks,
1174 .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks),
1175 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001176};
1177
1178/* gpio2 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001179static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = {
1180 { .irq = 30 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001181 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001182};
1183
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001184static struct omap_hwmod_opt_clk gpio2_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001185 { .role = "dbclk", .clk = "gpio2_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001186};
1187
1188static struct omap_hwmod omap44xx_gpio2_hwmod = {
1189 .name = "gpio2",
1190 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001191 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001192 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001193 .mpu_irqs = omap44xx_gpio2_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001194 .main_clk = "gpio2_ick",
1195 .prcm = {
1196 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001197 .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001198 .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001199 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001200 },
1201 },
1202 .opt_clks = gpio2_opt_clks,
1203 .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks),
1204 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001205};
1206
1207/* gpio3 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001208static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = {
1209 { .irq = 31 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001210 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001211};
1212
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001213static struct omap_hwmod_opt_clk gpio3_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001214 { .role = "dbclk", .clk = "gpio3_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001215};
1216
1217static struct omap_hwmod omap44xx_gpio3_hwmod = {
1218 .name = "gpio3",
1219 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001220 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001221 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001222 .mpu_irqs = omap44xx_gpio3_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001223 .main_clk = "gpio3_ick",
1224 .prcm = {
1225 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001226 .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001227 .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001228 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001229 },
1230 },
1231 .opt_clks = gpio3_opt_clks,
1232 .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks),
1233 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001234};
1235
1236/* gpio4 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001237static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = {
1238 { .irq = 32 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001239 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001240};
1241
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001242static struct omap_hwmod_opt_clk gpio4_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001243 { .role = "dbclk", .clk = "gpio4_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001244};
1245
1246static struct omap_hwmod omap44xx_gpio4_hwmod = {
1247 .name = "gpio4",
1248 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001249 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001250 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001251 .mpu_irqs = omap44xx_gpio4_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001252 .main_clk = "gpio4_ick",
1253 .prcm = {
1254 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001255 .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001256 .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001257 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001258 },
1259 },
1260 .opt_clks = gpio4_opt_clks,
1261 .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks),
1262 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001263};
1264
1265/* gpio5 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001266static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = {
1267 { .irq = 33 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001268 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001269};
1270
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001271static struct omap_hwmod_opt_clk gpio5_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001272 { .role = "dbclk", .clk = "gpio5_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001273};
1274
1275static struct omap_hwmod omap44xx_gpio5_hwmod = {
1276 .name = "gpio5",
1277 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001278 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001279 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001280 .mpu_irqs = omap44xx_gpio5_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001281 .main_clk = "gpio5_ick",
1282 .prcm = {
1283 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001284 .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001285 .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001286 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001287 },
1288 },
1289 .opt_clks = gpio5_opt_clks,
1290 .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks),
1291 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001292};
1293
1294/* gpio6 */
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001295static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = {
1296 { .irq = 34 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001297 { .irq = -1 }
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001298};
1299
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001300static struct omap_hwmod_opt_clk gpio6_opt_clks[] = {
Benoit Coussonb399bca2010-12-21 21:08:34 -07001301 { .role = "dbclk", .clk = "gpio6_dbclk" },
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001302};
1303
1304static struct omap_hwmod omap44xx_gpio6_hwmod = {
1305 .name = "gpio6",
1306 .class = &omap44xx_gpio_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001307 .clkdm_name = "l4_per_clkdm",
Benoit Coussonb399bca2010-12-21 21:08:34 -07001308 .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001309 .mpu_irqs = omap44xx_gpio6_irqs,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001310 .main_clk = "gpio6_ick",
1311 .prcm = {
1312 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001313 .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001314 .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001315 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001316 },
1317 },
1318 .opt_clks = gpio6_opt_clks,
1319 .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks),
1320 .dev_attr = &gpio_dev_attr,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001321};
1322
1323/*
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001324 * 'gpmc' class
1325 * general purpose memory controller
1326 */
1327
1328static struct omap_hwmod_class_sysconfig omap44xx_gpmc_sysc = {
1329 .rev_offs = 0x0000,
1330 .sysc_offs = 0x0010,
1331 .syss_offs = 0x0014,
1332 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
1333 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1334 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1335 .sysc_fields = &omap_hwmod_sysc_type1,
1336};
1337
1338static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = {
1339 .name = "gpmc",
1340 .sysc = &omap44xx_gpmc_sysc,
1341};
1342
1343/* gpmc */
1344static struct omap_hwmod_irq_info omap44xx_gpmc_irqs[] = {
1345 { .irq = 20 + OMAP44XX_IRQ_GIC_START },
1346 { .irq = -1 }
1347};
1348
1349static struct omap_hwmod_dma_info omap44xx_gpmc_sdma_reqs[] = {
1350 { .dma_req = 3 + OMAP44XX_DMA_REQ_START },
1351 { .dma_req = -1 }
1352};
1353
1354static struct omap_hwmod omap44xx_gpmc_hwmod = {
1355 .name = "gpmc",
1356 .class = &omap44xx_gpmc_hwmod_class,
1357 .clkdm_name = "l3_2_clkdm",
Afzal Mohammed49484a62012-09-23 17:28:24 -06001358 /*
1359 * XXX HWMOD_INIT_NO_RESET should not be needed for this IP
1360 * block. It is not being added due to any known bugs with
1361 * resetting the GPMC IP block, but rather because any timings
1362 * set by the bootloader are not being correctly programmed by
1363 * the kernel from the board file or DT data.
1364 * HWMOD_INIT_NO_RESET should be removed ASAP.
1365 */
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06001366 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
1367 .mpu_irqs = omap44xx_gpmc_irqs,
1368 .sdma_reqs = omap44xx_gpmc_sdma_reqs,
1369 .prcm = {
1370 .omap4 = {
1371 .clkctrl_offs = OMAP4_CM_L3_2_GPMC_CLKCTRL_OFFSET,
1372 .context_offs = OMAP4_RM_L3_2_GPMC_CONTEXT_OFFSET,
1373 .modulemode = MODULEMODE_HWCTRL,
1374 },
1375 },
1376};
1377
1378/*
Paul Walmsley9def3902012-04-19 13:33:53 -06001379 * 'gpu' class
1380 * 2d/3d graphics accelerator
1381 */
1382
1383static struct omap_hwmod_class_sysconfig omap44xx_gpu_sysc = {
1384 .rev_offs = 0x1fc00,
1385 .sysc_offs = 0x1fc10,
1386 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE),
1387 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1388 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
1389 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
1390 .sysc_fields = &omap_hwmod_sysc_type2,
1391};
1392
1393static struct omap_hwmod_class omap44xx_gpu_hwmod_class = {
1394 .name = "gpu",
1395 .sysc = &omap44xx_gpu_sysc,
1396};
1397
1398/* gpu */
1399static struct omap_hwmod_irq_info omap44xx_gpu_irqs[] = {
1400 { .irq = 21 + OMAP44XX_IRQ_GIC_START },
1401 { .irq = -1 }
1402};
1403
1404static struct omap_hwmod omap44xx_gpu_hwmod = {
1405 .name = "gpu",
1406 .class = &omap44xx_gpu_hwmod_class,
1407 .clkdm_name = "l3_gfx_clkdm",
1408 .mpu_irqs = omap44xx_gpu_irqs,
1409 .main_clk = "gpu_fck",
1410 .prcm = {
1411 .omap4 = {
1412 .clkctrl_offs = OMAP4_CM_GFX_GFX_CLKCTRL_OFFSET,
1413 .context_offs = OMAP4_RM_GFX_GFX_CONTEXT_OFFSET,
1414 .modulemode = MODULEMODE_SWCTRL,
1415 },
1416 },
1417};
1418
1419/*
Paul Walmsleya091c082012-04-19 13:33:50 -06001420 * 'hdq1w' class
1421 * hdq / 1-wire serial interface controller
1422 */
1423
1424static struct omap_hwmod_class_sysconfig omap44xx_hdq1w_sysc = {
1425 .rev_offs = 0x0000,
1426 .sysc_offs = 0x0014,
1427 .syss_offs = 0x0018,
1428 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SOFTRESET |
1429 SYSS_HAS_RESET_STATUS),
1430 .sysc_fields = &omap_hwmod_sysc_type1,
1431};
1432
1433static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = {
1434 .name = "hdq1w",
1435 .sysc = &omap44xx_hdq1w_sysc,
1436};
1437
1438/* hdq1w */
1439static struct omap_hwmod_irq_info omap44xx_hdq1w_irqs[] = {
1440 { .irq = 58 + OMAP44XX_IRQ_GIC_START },
1441 { .irq = -1 }
1442};
1443
1444static struct omap_hwmod omap44xx_hdq1w_hwmod = {
1445 .name = "hdq1w",
1446 .class = &omap44xx_hdq1w_hwmod_class,
1447 .clkdm_name = "l4_per_clkdm",
1448 .flags = HWMOD_INIT_NO_RESET, /* XXX temporary */
1449 .mpu_irqs = omap44xx_hdq1w_irqs,
1450 .main_clk = "hdq1w_fck",
1451 .prcm = {
1452 .omap4 = {
1453 .clkctrl_offs = OMAP4_CM_L4PER_HDQ1W_CLKCTRL_OFFSET,
1454 .context_offs = OMAP4_RM_L4PER_HDQ1W_CONTEXT_OFFSET,
1455 .modulemode = MODULEMODE_SWCTRL,
1456 },
1457 },
1458};
1459
1460/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001461 * 'hsi' class
1462 * mipi high-speed synchronous serial interface (multichannel and full-duplex
1463 * serial if)
1464 */
1465
1466static struct omap_hwmod_class_sysconfig omap44xx_hsi_sysc = {
1467 .rev_offs = 0x0000,
1468 .sysc_offs = 0x0010,
1469 .syss_offs = 0x0014,
1470 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_EMUFREE |
1471 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
1472 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
1473 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1474 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001475 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001476 .sysc_fields = &omap_hwmod_sysc_type1,
1477};
1478
1479static struct omap_hwmod_class omap44xx_hsi_hwmod_class = {
1480 .name = "hsi",
1481 .sysc = &omap44xx_hsi_sysc,
1482};
1483
1484/* hsi */
1485static struct omap_hwmod_irq_info omap44xx_hsi_irqs[] = {
1486 { .name = "mpu_p1", .irq = 67 + OMAP44XX_IRQ_GIC_START },
1487 { .name = "mpu_p2", .irq = 68 + OMAP44XX_IRQ_GIC_START },
1488 { .name = "mpu_dma", .irq = 71 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001489 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001490};
1491
Benoit Cousson407a6882011-02-15 22:39:48 +01001492static struct omap_hwmod omap44xx_hsi_hwmod = {
1493 .name = "hsi",
1494 .class = &omap44xx_hsi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001495 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001496 .mpu_irqs = omap44xx_hsi_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01001497 .main_clk = "hsi_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001498 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001499 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001500 .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001501 .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001502 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001503 },
1504 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001505};
1506
1507/*
Benoit Coussonf7764712010-09-21 19:37:14 +05301508 * 'i2c' class
1509 * multimaster high-speed i2c controller
1510 */
1511
1512static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1513 .sysc_offs = 0x0010,
1514 .syss_offs = 0x0090,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07001515 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1516 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07001517 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07001518 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1519 SIDLE_SMART_WKUP),
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301520 .clockact = CLOCKACT_TEST_ICLK,
Benoit Coussonf7764712010-09-21 19:37:14 +05301521 .sysc_fields = &omap_hwmod_sysc_type1,
1522};
1523
1524static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001525 .name = "i2c",
1526 .sysc = &omap44xx_i2c_sysc,
Andy Greendb791a72011-07-10 05:27:15 -06001527 .rev = OMAP_I2C_IP_VERSION_2,
Avinash.H.M6d3c55f2011-07-10 05:27:16 -06001528 .reset = &omap_i2c_reset,
Benoit Coussonf7764712010-09-21 19:37:14 +05301529};
1530
Andy Green4d4441a2011-07-10 05:27:16 -06001531static struct omap_i2c_dev_attr i2c_dev_attr = {
Shubhrajyoti D972deb42012-11-26 15:25:11 +05301532 .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE,
Andy Green4d4441a2011-07-10 05:27:16 -06001533};
1534
Benoit Coussonf7764712010-09-21 19:37:14 +05301535/* i2c1 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301536static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = {
1537 { .irq = 56 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001538 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05301539};
1540
1541static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = {
1542 { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START },
1543 { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001544 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05301545};
1546
Benoit Coussonf7764712010-09-21 19:37:14 +05301547static struct omap_hwmod omap44xx_i2c1_hwmod = {
1548 .name = "i2c1",
1549 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001550 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301551 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Coussonf7764712010-09-21 19:37:14 +05301552 .mpu_irqs = omap44xx_i2c1_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05301553 .sdma_reqs = omap44xx_i2c1_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05301554 .main_clk = "i2c1_fck",
1555 .prcm = {
1556 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001557 .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001558 .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001559 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301560 },
1561 },
Andy Green4d4441a2011-07-10 05:27:16 -06001562 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301563};
1564
1565/* i2c2 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301566static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = {
1567 { .irq = 57 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001568 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05301569};
1570
1571static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = {
1572 { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START },
1573 { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001574 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05301575};
1576
Benoit Coussonf7764712010-09-21 19:37:14 +05301577static struct omap_hwmod omap44xx_i2c2_hwmod = {
1578 .name = "i2c2",
1579 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001580 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301581 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Coussonf7764712010-09-21 19:37:14 +05301582 .mpu_irqs = omap44xx_i2c2_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05301583 .sdma_reqs = omap44xx_i2c2_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05301584 .main_clk = "i2c2_fck",
1585 .prcm = {
1586 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001587 .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001588 .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001589 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301590 },
1591 },
Andy Green4d4441a2011-07-10 05:27:16 -06001592 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301593};
1594
1595/* i2c3 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301596static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = {
1597 { .irq = 61 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001598 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05301599};
1600
1601static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = {
1602 { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START },
1603 { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001604 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05301605};
1606
Benoit Coussonf7764712010-09-21 19:37:14 +05301607static struct omap_hwmod omap44xx_i2c3_hwmod = {
1608 .name = "i2c3",
1609 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001610 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301611 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Coussonf7764712010-09-21 19:37:14 +05301612 .mpu_irqs = omap44xx_i2c3_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05301613 .sdma_reqs = omap44xx_i2c3_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05301614 .main_clk = "i2c3_fck",
1615 .prcm = {
1616 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001617 .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001618 .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001619 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301620 },
1621 },
Andy Green4d4441a2011-07-10 05:27:16 -06001622 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301623};
1624
1625/* i2c4 */
Benoit Coussonf7764712010-09-21 19:37:14 +05301626static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = {
1627 { .irq = 62 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001628 { .irq = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05301629};
1630
1631static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = {
1632 { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START },
1633 { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001634 { .dma_req = -1 }
Benoit Coussonf7764712010-09-21 19:37:14 +05301635};
1636
Benoit Coussonf7764712010-09-21 19:37:14 +05301637static struct omap_hwmod omap44xx_i2c4_hwmod = {
1638 .name = "i2c4",
1639 .class = &omap44xx_i2c_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001640 .clkdm_name = "l4_per_clkdm",
Shubhrajyoti D3e47dc62011-12-13 16:25:54 +05301641 .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Coussonf7764712010-09-21 19:37:14 +05301642 .mpu_irqs = omap44xx_i2c4_irqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05301643 .sdma_reqs = omap44xx_i2c4_sdma_reqs,
Benoit Coussonf7764712010-09-21 19:37:14 +05301644 .main_clk = "i2c4_fck",
1645 .prcm = {
1646 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001647 .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001648 .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001649 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussonf7764712010-09-21 19:37:14 +05301650 },
1651 },
Andy Green4d4441a2011-07-10 05:27:16 -06001652 .dev_attr = &i2c_dev_attr,
Benoit Coussonf7764712010-09-21 19:37:14 +05301653};
1654
1655/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001656 * 'ipu' class
1657 * imaging processor unit
1658 */
1659
1660static struct omap_hwmod_class omap44xx_ipu_hwmod_class = {
1661 .name = "ipu",
1662};
1663
1664/* ipu */
1665static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = {
1666 { .irq = 100 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001667 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001668};
1669
Benoit Cousson407a6882011-02-15 22:39:48 +01001670static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = {
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001671 { .name = "cpu0", .rst_shift = 0 },
1672 { .name = "cpu1", .rst_shift = 1 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001673};
1674
Benoit Cousson407a6882011-02-15 22:39:48 +01001675static struct omap_hwmod omap44xx_ipu_hwmod = {
1676 .name = "ipu",
1677 .class = &omap44xx_ipu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001678 .clkdm_name = "ducati_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001679 .mpu_irqs = omap44xx_ipu_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01001680 .rst_lines = omap44xx_ipu_resets,
1681 .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets),
Omar Ramirez Luna298ea442012-11-19 19:05:52 -06001682 .main_clk = "ducati_clk_mux_ck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001683 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001684 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001685 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001686 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001687 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001688 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001689 },
1690 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001691};
1692
1693/*
1694 * 'iss' class
1695 * external images sensor pixel data processor
1696 */
1697
1698static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = {
1699 .rev_offs = 0x0000,
1700 .sysc_offs = 0x0010,
Fernando Guzman Lugod99de7f2012-04-13 05:08:03 -06001701 /*
1702 * ISS needs 100 OCP clk cycles delay after a softreset before
1703 * accessing sysconfig again.
1704 * The lowest frequency at the moment for L3 bus is 100 MHz, so
1705 * 1usec delay is needed. Add an x2 margin to be safe (2 usecs).
1706 *
1707 * TODO: Indicate errata when available.
1708 */
1709 .srst_udelay = 2,
Benoit Cousson407a6882011-02-15 22:39:48 +01001710 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_RESET_STATUS |
1711 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1712 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1713 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02001714 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01001715 .sysc_fields = &omap_hwmod_sysc_type2,
1716};
1717
1718static struct omap_hwmod_class omap44xx_iss_hwmod_class = {
1719 .name = "iss",
1720 .sysc = &omap44xx_iss_sysc,
1721};
1722
1723/* iss */
1724static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = {
1725 { .irq = 24 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001726 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001727};
1728
1729static struct omap_hwmod_dma_info omap44xx_iss_sdma_reqs[] = {
1730 { .name = "1", .dma_req = 8 + OMAP44XX_DMA_REQ_START },
1731 { .name = "2", .dma_req = 9 + OMAP44XX_DMA_REQ_START },
1732 { .name = "3", .dma_req = 11 + OMAP44XX_DMA_REQ_START },
1733 { .name = "4", .dma_req = 12 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001734 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001735};
1736
Benoit Cousson407a6882011-02-15 22:39:48 +01001737static struct omap_hwmod_opt_clk iss_opt_clks[] = {
1738 { .role = "ctrlclk", .clk = "iss_ctrlclk" },
1739};
1740
1741static struct omap_hwmod omap44xx_iss_hwmod = {
1742 .name = "iss",
1743 .class = &omap44xx_iss_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001744 .clkdm_name = "iss_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001745 .mpu_irqs = omap44xx_iss_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01001746 .sdma_reqs = omap44xx_iss_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01001747 .main_clk = "iss_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001748 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001749 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001750 .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001751 .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001752 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001753 },
1754 },
1755 .opt_clks = iss_opt_clks,
1756 .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks),
Benoit Cousson407a6882011-02-15 22:39:48 +01001757};
1758
1759/*
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001760 * 'iva' class
1761 * multi-standard video encoder/decoder hardware accelerator
1762 */
1763
1764static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00001765 .name = "iva",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001766};
1767
1768/* iva */
1769static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = {
1770 { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START },
1771 { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START },
1772 { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001773 { .irq = -1 }
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001774};
1775
1776static struct omap_hwmod_rst_info omap44xx_iva_resets[] = {
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001777 { .name = "seq0", .rst_shift = 0 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001778 { .name = "seq1", .rst_shift = 1 },
Paul Walmsleyf2f57362012-04-18 19:10:02 -06001779 { .name = "logic", .rst_shift = 2 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001780};
1781
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001782static struct omap_hwmod omap44xx_iva_hwmod = {
1783 .name = "iva",
1784 .class = &omap44xx_iva_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001785 .clkdm_name = "ivahd_clkdm",
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001786 .mpu_irqs = omap44xx_iva_irqs,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001787 .rst_lines = omap44xx_iva_resets,
1788 .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets),
1789 .main_clk = "iva_fck",
1790 .prcm = {
1791 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001792 .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET,
Benoit Coussoneaac3292011-07-10 05:56:31 -06001793 .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001794 .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001795 .modulemode = MODULEMODE_HWCTRL,
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001796 },
1797 },
Benoit Cousson8f25bdc2010-12-21 21:08:34 -07001798};
1799
1800/*
Benoit Cousson407a6882011-02-15 22:39:48 +01001801 * 'kbd' class
1802 * keyboard controller
1803 */
1804
1805static struct omap_hwmod_class_sysconfig omap44xx_kbd_sysc = {
1806 .rev_offs = 0x0000,
1807 .sysc_offs = 0x0010,
1808 .syss_offs = 0x0014,
1809 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
1810 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
1811 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
1812 SYSS_HAS_RESET_STATUS),
1813 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1814 .sysc_fields = &omap_hwmod_sysc_type1,
1815};
1816
1817static struct omap_hwmod_class omap44xx_kbd_hwmod_class = {
1818 .name = "kbd",
1819 .sysc = &omap44xx_kbd_sysc,
1820};
1821
1822/* kbd */
Benoit Cousson407a6882011-02-15 22:39:48 +01001823static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = {
1824 { .irq = 120 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001825 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01001826};
1827
Benoit Cousson407a6882011-02-15 22:39:48 +01001828static struct omap_hwmod omap44xx_kbd_hwmod = {
1829 .name = "kbd",
1830 .class = &omap44xx_kbd_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001831 .clkdm_name = "l4_wkup_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01001832 .mpu_irqs = omap44xx_kbd_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01001833 .main_clk = "kbd_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06001834 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01001835 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001836 .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001837 .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001838 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01001839 },
1840 },
Benoit Cousson407a6882011-02-15 22:39:48 +01001841};
1842
1843/*
Benoit Coussonec5df922011-02-02 19:27:21 +00001844 * 'mailbox' class
1845 * mailbox module allowing communication between the on-chip processors using a
1846 * queued mailbox-interrupt mechanism.
1847 */
1848
1849static struct omap_hwmod_class_sysconfig omap44xx_mailbox_sysc = {
1850 .rev_offs = 0x0000,
1851 .sysc_offs = 0x0010,
1852 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
1853 SYSC_HAS_SOFTRESET),
1854 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1855 .sysc_fields = &omap_hwmod_sysc_type2,
1856};
1857
1858static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = {
1859 .name = "mailbox",
1860 .sysc = &omap44xx_mailbox_sysc,
1861};
1862
1863/* mailbox */
Benoit Coussonec5df922011-02-02 19:27:21 +00001864static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = {
1865 { .irq = 26 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001866 { .irq = -1 }
Benoit Coussonec5df922011-02-02 19:27:21 +00001867};
1868
Benoit Coussonec5df922011-02-02 19:27:21 +00001869static struct omap_hwmod omap44xx_mailbox_hwmod = {
1870 .name = "mailbox",
1871 .class = &omap44xx_mailbox_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001872 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussonec5df922011-02-02 19:27:21 +00001873 .mpu_irqs = omap44xx_mailbox_irqs,
Benoit Cousson00fe6102011-07-09 19:14:28 -06001874 .prcm = {
Benoit Coussonec5df922011-02-02 19:27:21 +00001875 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001876 .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001877 .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET,
Benoit Coussonec5df922011-02-02 19:27:21 +00001878 },
1879 },
Benoit Coussonec5df922011-02-02 19:27:21 +00001880};
1881
1882/*
Benoît Cousson896d4e92012-04-19 13:33:54 -06001883 * 'mcasp' class
1884 * multi-channel audio serial port controller
1885 */
1886
1887/* The IP is not compliant to type1 / type2 scheme */
1888static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = {
1889 .sidle_shift = 0,
1890};
1891
1892static struct omap_hwmod_class_sysconfig omap44xx_mcasp_sysc = {
1893 .sysc_offs = 0x0004,
1894 .sysc_flags = SYSC_HAS_SIDLEMODE,
1895 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
1896 SIDLE_SMART_WKUP),
1897 .sysc_fields = &omap_hwmod_sysc_type_mcasp,
1898};
1899
1900static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = {
1901 .name = "mcasp",
1902 .sysc = &omap44xx_mcasp_sysc,
1903};
1904
1905/* mcasp */
1906static struct omap_hwmod_irq_info omap44xx_mcasp_irqs[] = {
1907 { .name = "arevt", .irq = 108 + OMAP44XX_IRQ_GIC_START },
1908 { .name = "axevt", .irq = 109 + OMAP44XX_IRQ_GIC_START },
1909 { .irq = -1 }
1910};
1911
1912static struct omap_hwmod_dma_info omap44xx_mcasp_sdma_reqs[] = {
1913 { .name = "axevt", .dma_req = 7 + OMAP44XX_DMA_REQ_START },
1914 { .name = "arevt", .dma_req = 10 + OMAP44XX_DMA_REQ_START },
1915 { .dma_req = -1 }
1916};
1917
1918static struct omap_hwmod omap44xx_mcasp_hwmod = {
1919 .name = "mcasp",
1920 .class = &omap44xx_mcasp_hwmod_class,
1921 .clkdm_name = "abe_clkdm",
1922 .mpu_irqs = omap44xx_mcasp_irqs,
1923 .sdma_reqs = omap44xx_mcasp_sdma_reqs,
1924 .main_clk = "mcasp_fck",
1925 .prcm = {
1926 .omap4 = {
1927 .clkctrl_offs = OMAP4_CM1_ABE_MCASP_CLKCTRL_OFFSET,
1928 .context_offs = OMAP4_RM_ABE_MCASP_CONTEXT_OFFSET,
1929 .modulemode = MODULEMODE_SWCTRL,
1930 },
1931 },
1932};
1933
1934/*
Benoit Cousson4ddff492011-01-31 14:50:30 +00001935 * 'mcbsp' class
1936 * multi channel buffered serial port controller
1937 */
1938
1939static struct omap_hwmod_class_sysconfig omap44xx_mcbsp_sysc = {
1940 .sysc_offs = 0x008c,
1941 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP |
1942 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
1943 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
1944 .sysc_fields = &omap_hwmod_sysc_type1,
1945};
1946
1947static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = {
1948 .name = "mcbsp",
1949 .sysc = &omap44xx_mcbsp_sysc,
Kishon Vijay Abraham Icb7e9de2011-02-24 15:16:50 +05301950 .rev = MCBSP_CONFIG_TYPE4,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001951};
1952
1953/* mcbsp1 */
Benoit Cousson4ddff492011-01-31 14:50:30 +00001954static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = {
Peter Ujfalusi437e8972012-05-08 11:34:29 -06001955 { .name = "common", .irq = 17 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001956 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00001957};
1958
1959static struct omap_hwmod_dma_info omap44xx_mcbsp1_sdma_reqs[] = {
1960 { .name = "tx", .dma_req = 32 + OMAP44XX_DMA_REQ_START },
1961 { .name = "rx", .dma_req = 33 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001962 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00001963};
1964
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001965static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
1966 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06001967 { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001968};
1969
Benoit Cousson4ddff492011-01-31 14:50:30 +00001970static struct omap_hwmod omap44xx_mcbsp1_hwmod = {
1971 .name = "mcbsp1",
1972 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06001973 .clkdm_name = "abe_clkdm",
Benoit Cousson4ddff492011-01-31 14:50:30 +00001974 .mpu_irqs = omap44xx_mcbsp1_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001975 .sdma_reqs = omap44xx_mcbsp1_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001976 .main_clk = "mcbsp1_fck",
1977 .prcm = {
1978 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06001979 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06001980 .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06001981 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00001982 },
1983 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06001984 .opt_clks = mcbsp1_opt_clks,
1985 .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00001986};
1987
1988/* mcbsp2 */
Benoit Cousson4ddff492011-01-31 14:50:30 +00001989static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = {
Peter Ujfalusi437e8972012-05-08 11:34:29 -06001990 { .name = "common", .irq = 22 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06001991 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00001992};
1993
1994static struct omap_hwmod_dma_info omap44xx_mcbsp2_sdma_reqs[] = {
1995 { .name = "tx", .dma_req = 16 + OMAP44XX_DMA_REQ_START },
1996 { .name = "rx", .dma_req = 17 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06001997 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00001998};
1999
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002000static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
2001 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06002002 { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002003};
2004
Benoit Cousson4ddff492011-01-31 14:50:30 +00002005static struct omap_hwmod omap44xx_mcbsp2_hwmod = {
2006 .name = "mcbsp2",
2007 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002008 .clkdm_name = "abe_clkdm",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002009 .mpu_irqs = omap44xx_mcbsp2_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002010 .sdma_reqs = omap44xx_mcbsp2_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002011 .main_clk = "mcbsp2_fck",
2012 .prcm = {
2013 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002014 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002015 .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002016 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002017 },
2018 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002019 .opt_clks = mcbsp2_opt_clks,
2020 .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00002021};
2022
2023/* mcbsp3 */
Benoit Cousson4ddff492011-01-31 14:50:30 +00002024static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = {
Peter Ujfalusi437e8972012-05-08 11:34:29 -06002025 { .name = "common", .irq = 23 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002026 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002027};
2028
2029static struct omap_hwmod_dma_info omap44xx_mcbsp3_sdma_reqs[] = {
2030 { .name = "tx", .dma_req = 18 + OMAP44XX_DMA_REQ_START },
2031 { .name = "rx", .dma_req = 19 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002032 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002033};
2034
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002035static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
2036 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06002037 { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002038};
2039
Benoit Cousson4ddff492011-01-31 14:50:30 +00002040static struct omap_hwmod omap44xx_mcbsp3_hwmod = {
2041 .name = "mcbsp3",
2042 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002043 .clkdm_name = "abe_clkdm",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002044 .mpu_irqs = omap44xx_mcbsp3_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002045 .sdma_reqs = omap44xx_mcbsp3_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002046 .main_clk = "mcbsp3_fck",
2047 .prcm = {
2048 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002049 .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002050 .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002051 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002052 },
2053 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002054 .opt_clks = mcbsp3_opt_clks,
2055 .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00002056};
2057
2058/* mcbsp4 */
Benoit Cousson4ddff492011-01-31 14:50:30 +00002059static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = {
Peter Ujfalusi437e8972012-05-08 11:34:29 -06002060 { .name = "common", .irq = 16 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002061 { .irq = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002062};
2063
2064static struct omap_hwmod_dma_info omap44xx_mcbsp4_sdma_reqs[] = {
2065 { .name = "tx", .dma_req = 30 + OMAP44XX_DMA_REQ_START },
2066 { .name = "rx", .dma_req = 31 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002067 { .dma_req = -1 }
Benoit Cousson4ddff492011-01-31 14:50:30 +00002068};
2069
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002070static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = {
2071 { .role = "pad_fck", .clk = "pad_clks_ck" },
Benoit Coussond7a0b512012-07-04 06:55:29 -06002072 { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002073};
2074
Benoit Cousson4ddff492011-01-31 14:50:30 +00002075static struct omap_hwmod omap44xx_mcbsp4_hwmod = {
2076 .name = "mcbsp4",
2077 .class = &omap44xx_mcbsp_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002078 .clkdm_name = "l4_per_clkdm",
Benoit Cousson4ddff492011-01-31 14:50:30 +00002079 .mpu_irqs = omap44xx_mcbsp4_irqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002080 .sdma_reqs = omap44xx_mcbsp4_sdma_reqs,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002081 .main_clk = "mcbsp4_fck",
2082 .prcm = {
2083 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002084 .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002085 .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002086 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson4ddff492011-01-31 14:50:30 +00002087 },
2088 },
Paul Walmsley503d0ea2012-04-04 09:11:48 -06002089 .opt_clks = mcbsp4_opt_clks,
2090 .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks),
Benoit Cousson4ddff492011-01-31 14:50:30 +00002091};
2092
2093/*
Benoit Cousson407a6882011-02-15 22:39:48 +01002094 * 'mcpdm' class
2095 * multi channel pdm controller (proprietary interface with phoenix power
2096 * ic)
2097 */
2098
2099static struct omap_hwmod_class_sysconfig omap44xx_mcpdm_sysc = {
2100 .rev_offs = 0x0000,
2101 .sysc_offs = 0x0010,
2102 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2103 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2104 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2105 SIDLE_SMART_WKUP),
2106 .sysc_fields = &omap_hwmod_sysc_type2,
2107};
2108
2109static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = {
2110 .name = "mcpdm",
2111 .sysc = &omap44xx_mcpdm_sysc,
2112};
2113
2114/* mcpdm */
Benoit Cousson407a6882011-02-15 22:39:48 +01002115static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = {
2116 { .irq = 112 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002117 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002118};
2119
2120static struct omap_hwmod_dma_info omap44xx_mcpdm_sdma_reqs[] = {
2121 { .name = "up_link", .dma_req = 64 + OMAP44XX_DMA_REQ_START },
2122 { .name = "dn_link", .dma_req = 65 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002123 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002124};
2125
Benoit Cousson407a6882011-02-15 22:39:48 +01002126static struct omap_hwmod omap44xx_mcpdm_hwmod = {
2127 .name = "mcpdm",
2128 .class = &omap44xx_mcpdm_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002129 .clkdm_name = "abe_clkdm",
Paul Walmsleybc052442012-10-29 22:02:14 -06002130 /*
2131 * It's suspected that the McPDM requires an off-chip main
2132 * functional clock, controlled via I2C. This IP block is
2133 * currently reset very early during boot, before I2C is
2134 * available, so it doesn't seem that we have any choice in
2135 * the kernel other than to avoid resetting it.
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07002136 *
2137 * Also, McPDM needs to be configured to NO_IDLE mode when it
2138 * is in used otherwise vital clocks will be gated which
2139 * results 'slow motion' audio playback.
Paul Walmsleybc052442012-10-29 22:02:14 -06002140 */
Peter Ujfalusi12d82e42013-01-18 16:48:16 -07002141 .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE,
Benoit Cousson407a6882011-02-15 22:39:48 +01002142 .mpu_irqs = omap44xx_mcpdm_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002143 .sdma_reqs = omap44xx_mcpdm_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002144 .main_clk = "mcpdm_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002145 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002146 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002147 .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002148 .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002149 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002150 },
2151 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002152};
2153
2154/*
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302155 * 'mcspi' class
2156 * multichannel serial port interface (mcspi) / master/slave synchronous serial
2157 * bus
2158 */
2159
2160static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = {
2161 .rev_offs = 0x0000,
2162 .sysc_offs = 0x0010,
2163 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
2164 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
2165 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2166 SIDLE_SMART_WKUP),
2167 .sysc_fields = &omap_hwmod_sysc_type2,
2168};
2169
2170static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = {
2171 .name = "mcspi",
2172 .sysc = &omap44xx_mcspi_sysc,
Benoit Cousson905a74d2011-02-18 14:01:06 +01002173 .rev = OMAP4_MCSPI_REV,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302174};
2175
2176/* mcspi1 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302177static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = {
2178 { .irq = 65 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002179 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302180};
2181
2182static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = {
2183 { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START },
2184 { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START },
2185 { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START },
2186 { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START },
2187 { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START },
2188 { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START },
2189 { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START },
2190 { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002191 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302192};
2193
Benoit Cousson905a74d2011-02-18 14:01:06 +01002194/* mcspi1 dev_attr */
2195static struct omap2_mcspi_dev_attr mcspi1_dev_attr = {
2196 .num_chipselect = 4,
2197};
2198
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302199static struct omap_hwmod omap44xx_mcspi1_hwmod = {
2200 .name = "mcspi1",
2201 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002202 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302203 .mpu_irqs = omap44xx_mcspi1_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302204 .sdma_reqs = omap44xx_mcspi1_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302205 .main_clk = "mcspi1_fck",
2206 .prcm = {
2207 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002208 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002209 .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002210 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302211 },
2212 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01002213 .dev_attr = &mcspi1_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302214};
2215
2216/* mcspi2 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302217static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = {
2218 { .irq = 66 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002219 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302220};
2221
2222static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = {
2223 { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START },
2224 { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START },
2225 { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START },
2226 { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002227 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302228};
2229
Benoit Cousson905a74d2011-02-18 14:01:06 +01002230/* mcspi2 dev_attr */
2231static struct omap2_mcspi_dev_attr mcspi2_dev_attr = {
2232 .num_chipselect = 2,
2233};
2234
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302235static struct omap_hwmod omap44xx_mcspi2_hwmod = {
2236 .name = "mcspi2",
2237 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002238 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302239 .mpu_irqs = omap44xx_mcspi2_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302240 .sdma_reqs = omap44xx_mcspi2_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302241 .main_clk = "mcspi2_fck",
2242 .prcm = {
2243 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002244 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002245 .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002246 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302247 },
2248 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01002249 .dev_attr = &mcspi2_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302250};
2251
2252/* mcspi3 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302253static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = {
2254 { .irq = 91 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002255 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302256};
2257
2258static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = {
2259 { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START },
2260 { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START },
2261 { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START },
2262 { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002263 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302264};
2265
Benoit Cousson905a74d2011-02-18 14:01:06 +01002266/* mcspi3 dev_attr */
2267static struct omap2_mcspi_dev_attr mcspi3_dev_attr = {
2268 .num_chipselect = 2,
2269};
2270
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302271static struct omap_hwmod omap44xx_mcspi3_hwmod = {
2272 .name = "mcspi3",
2273 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002274 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302275 .mpu_irqs = omap44xx_mcspi3_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302276 .sdma_reqs = omap44xx_mcspi3_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302277 .main_clk = "mcspi3_fck",
2278 .prcm = {
2279 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002280 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002281 .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002282 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302283 },
2284 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01002285 .dev_attr = &mcspi3_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302286};
2287
2288/* mcspi4 */
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302289static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = {
2290 { .irq = 48 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002291 { .irq = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302292};
2293
2294static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = {
2295 { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START },
2296 { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002297 { .dma_req = -1 }
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302298};
2299
Benoit Cousson905a74d2011-02-18 14:01:06 +01002300/* mcspi4 dev_attr */
2301static struct omap2_mcspi_dev_attr mcspi4_dev_attr = {
2302 .num_chipselect = 1,
2303};
2304
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302305static struct omap_hwmod omap44xx_mcspi4_hwmod = {
2306 .name = "mcspi4",
2307 .class = &omap44xx_mcspi_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002308 .clkdm_name = "l4_per_clkdm",
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302309 .mpu_irqs = omap44xx_mcspi4_irqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302310 .sdma_reqs = omap44xx_mcspi4_sdma_reqs,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302311 .main_clk = "mcspi4_fck",
2312 .prcm = {
2313 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002314 .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002315 .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002316 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302317 },
2318 },
Benoit Cousson905a74d2011-02-18 14:01:06 +01002319 .dev_attr = &mcspi4_dev_attr,
Benoit Cousson9bcbd7f2011-02-02 17:52:13 +05302320};
2321
2322/*
Benoit Cousson407a6882011-02-15 22:39:48 +01002323 * 'mmc' class
2324 * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller
2325 */
2326
2327static struct omap_hwmod_class_sysconfig omap44xx_mmc_sysc = {
2328 .rev_offs = 0x0000,
2329 .sysc_offs = 0x0010,
2330 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE |
2331 SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2332 SYSC_HAS_SOFTRESET),
2333 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2334 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
Benoit Coussonc614ebf2011-07-01 22:54:01 +02002335 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
Benoit Cousson407a6882011-02-15 22:39:48 +01002336 .sysc_fields = &omap_hwmod_sysc_type2,
2337};
2338
2339static struct omap_hwmod_class omap44xx_mmc_hwmod_class = {
2340 .name = "mmc",
2341 .sysc = &omap44xx_mmc_sysc,
2342};
2343
2344/* mmc1 */
2345static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = {
2346 { .irq = 83 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002347 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002348};
2349
2350static struct omap_hwmod_dma_info omap44xx_mmc1_sdma_reqs[] = {
2351 { .name = "tx", .dma_req = 60 + OMAP44XX_DMA_REQ_START },
2352 { .name = "rx", .dma_req = 61 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002353 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002354};
2355
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08002356/* mmc1 dev_attr */
2357static struct omap_mmc_dev_attr mmc1_dev_attr = {
2358 .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT,
2359};
2360
Benoit Cousson407a6882011-02-15 22:39:48 +01002361static struct omap_hwmod omap44xx_mmc1_hwmod = {
2362 .name = "mmc1",
2363 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002364 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002365 .mpu_irqs = omap44xx_mmc1_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002366 .sdma_reqs = omap44xx_mmc1_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002367 .main_clk = "mmc1_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002368 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002369 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002370 .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002371 .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002372 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002373 },
2374 },
Kishore Kadiyala6ab89462011-03-01 13:12:56 -08002375 .dev_attr = &mmc1_dev_attr,
Benoit Cousson407a6882011-02-15 22:39:48 +01002376};
2377
2378/* mmc2 */
2379static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = {
2380 { .irq = 86 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002381 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002382};
2383
2384static struct omap_hwmod_dma_info omap44xx_mmc2_sdma_reqs[] = {
2385 { .name = "tx", .dma_req = 46 + OMAP44XX_DMA_REQ_START },
2386 { .name = "rx", .dma_req = 47 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002387 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002388};
2389
Benoit Cousson407a6882011-02-15 22:39:48 +01002390static struct omap_hwmod omap44xx_mmc2_hwmod = {
2391 .name = "mmc2",
2392 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002393 .clkdm_name = "l3_init_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002394 .mpu_irqs = omap44xx_mmc2_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002395 .sdma_reqs = omap44xx_mmc2_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002396 .main_clk = "mmc2_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002397 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002398 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002399 .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002400 .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002401 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002402 },
2403 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002404};
2405
2406/* mmc3 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002407static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = {
2408 { .irq = 94 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002409 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002410};
2411
2412static struct omap_hwmod_dma_info omap44xx_mmc3_sdma_reqs[] = {
2413 { .name = "tx", .dma_req = 76 + OMAP44XX_DMA_REQ_START },
2414 { .name = "rx", .dma_req = 77 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002415 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002416};
2417
Benoit Cousson407a6882011-02-15 22:39:48 +01002418static struct omap_hwmod omap44xx_mmc3_hwmod = {
2419 .name = "mmc3",
2420 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002421 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002422 .mpu_irqs = omap44xx_mmc3_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002423 .sdma_reqs = omap44xx_mmc3_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002424 .main_clk = "mmc3_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002425 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002426 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002427 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002428 .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002429 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002430 },
2431 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002432};
2433
2434/* mmc4 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002435static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = {
2436 { .irq = 96 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002437 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002438};
2439
2440static struct omap_hwmod_dma_info omap44xx_mmc4_sdma_reqs[] = {
2441 { .name = "tx", .dma_req = 56 + OMAP44XX_DMA_REQ_START },
2442 { .name = "rx", .dma_req = 57 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002443 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002444};
2445
Benoit Cousson407a6882011-02-15 22:39:48 +01002446static struct omap_hwmod omap44xx_mmc4_hwmod = {
2447 .name = "mmc4",
2448 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002449 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002450 .mpu_irqs = omap44xx_mmc4_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002451 .sdma_reqs = omap44xx_mmc4_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002452 .main_clk = "mmc4_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002453 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002454 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002455 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002456 .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002457 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002458 },
2459 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002460};
2461
2462/* mmc5 */
Benoit Cousson407a6882011-02-15 22:39:48 +01002463static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = {
2464 { .irq = 59 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002465 { .irq = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002466};
2467
2468static struct omap_hwmod_dma_info omap44xx_mmc5_sdma_reqs[] = {
2469 { .name = "tx", .dma_req = 58 + OMAP44XX_DMA_REQ_START },
2470 { .name = "rx", .dma_req = 59 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06002471 { .dma_req = -1 }
Benoit Cousson407a6882011-02-15 22:39:48 +01002472};
2473
Benoit Cousson407a6882011-02-15 22:39:48 +01002474static struct omap_hwmod omap44xx_mmc5_hwmod = {
2475 .name = "mmc5",
2476 .class = &omap44xx_mmc_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002477 .clkdm_name = "l4_per_clkdm",
Benoit Cousson407a6882011-02-15 22:39:48 +01002478 .mpu_irqs = omap44xx_mmc5_irqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002479 .sdma_reqs = omap44xx_mmc5_sdma_reqs,
Benoit Cousson407a6882011-02-15 22:39:48 +01002480 .main_clk = "mmc5_fck",
Benoit Cousson00fe6102011-07-09 19:14:28 -06002481 .prcm = {
Benoit Cousson407a6882011-02-15 22:39:48 +01002482 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002483 .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002484 .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06002485 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson407a6882011-02-15 22:39:48 +01002486 },
2487 },
Benoit Cousson407a6882011-02-15 22:39:48 +01002488};
2489
2490/*
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06002491 * 'mmu' class
2492 * The memory management unit performs virtual to physical address translation
2493 * for its requestors.
2494 */
2495
2496static struct omap_hwmod_class_sysconfig mmu_sysc = {
2497 .rev_offs = 0x000,
2498 .sysc_offs = 0x010,
2499 .syss_offs = 0x014,
2500 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
2501 SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE),
2502 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2503 .sysc_fields = &omap_hwmod_sysc_type1,
2504};
2505
2506static struct omap_hwmod_class omap44xx_mmu_hwmod_class = {
2507 .name = "mmu",
2508 .sysc = &mmu_sysc,
2509};
2510
2511/* mmu ipu */
2512
2513static struct omap_mmu_dev_attr mmu_ipu_dev_attr = {
2514 .da_start = 0x0,
2515 .da_end = 0xfffff000,
2516 .nr_tlb_entries = 32,
2517};
2518
2519static struct omap_hwmod omap44xx_mmu_ipu_hwmod;
2520static struct omap_hwmod_irq_info omap44xx_mmu_ipu_irqs[] = {
2521 { .irq = 100 + OMAP44XX_IRQ_GIC_START, },
2522 { .irq = -1 }
2523};
2524
2525static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = {
2526 { .name = "mmu_cache", .rst_shift = 2 },
2527};
2528
2529static struct omap_hwmod_addr_space omap44xx_mmu_ipu_addrs[] = {
2530 {
2531 .pa_start = 0x55082000,
2532 .pa_end = 0x550820ff,
2533 .flags = ADDR_TYPE_RT,
2534 },
2535 { }
2536};
2537
2538/* l3_main_2 -> mmu_ipu */
2539static struct omap_hwmod_ocp_if omap44xx_l3_main_2__mmu_ipu = {
2540 .master = &omap44xx_l3_main_2_hwmod,
2541 .slave = &omap44xx_mmu_ipu_hwmod,
2542 .clk = "l3_div_ck",
2543 .addr = omap44xx_mmu_ipu_addrs,
2544 .user = OCP_USER_MPU | OCP_USER_SDMA,
2545};
2546
2547static struct omap_hwmod omap44xx_mmu_ipu_hwmod = {
2548 .name = "mmu_ipu",
2549 .class = &omap44xx_mmu_hwmod_class,
2550 .clkdm_name = "ducati_clkdm",
2551 .mpu_irqs = omap44xx_mmu_ipu_irqs,
2552 .rst_lines = omap44xx_mmu_ipu_resets,
2553 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_ipu_resets),
2554 .main_clk = "ducati_clk_mux_ck",
2555 .prcm = {
2556 .omap4 = {
2557 .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET,
2558 .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET,
2559 .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET,
2560 .modulemode = MODULEMODE_HWCTRL,
2561 },
2562 },
2563 .dev_attr = &mmu_ipu_dev_attr,
2564};
2565
2566/* mmu dsp */
2567
2568static struct omap_mmu_dev_attr mmu_dsp_dev_attr = {
2569 .da_start = 0x0,
2570 .da_end = 0xfffff000,
2571 .nr_tlb_entries = 32,
2572};
2573
2574static struct omap_hwmod omap44xx_mmu_dsp_hwmod;
2575static struct omap_hwmod_irq_info omap44xx_mmu_dsp_irqs[] = {
2576 { .irq = 28 + OMAP44XX_IRQ_GIC_START },
2577 { .irq = -1 }
2578};
2579
2580static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = {
2581 { .name = "mmu_cache", .rst_shift = 1 },
2582};
2583
2584static struct omap_hwmod_addr_space omap44xx_mmu_dsp_addrs[] = {
2585 {
2586 .pa_start = 0x4a066000,
2587 .pa_end = 0x4a0660ff,
2588 .flags = ADDR_TYPE_RT,
2589 },
2590 { }
2591};
2592
2593/* l4_cfg -> dsp */
2594static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mmu_dsp = {
2595 .master = &omap44xx_l4_cfg_hwmod,
2596 .slave = &omap44xx_mmu_dsp_hwmod,
2597 .clk = "l4_div_ck",
2598 .addr = omap44xx_mmu_dsp_addrs,
2599 .user = OCP_USER_MPU | OCP_USER_SDMA,
2600};
2601
2602static struct omap_hwmod omap44xx_mmu_dsp_hwmod = {
2603 .name = "mmu_dsp",
2604 .class = &omap44xx_mmu_hwmod_class,
2605 .clkdm_name = "tesla_clkdm",
2606 .mpu_irqs = omap44xx_mmu_dsp_irqs,
2607 .rst_lines = omap44xx_mmu_dsp_resets,
2608 .rst_lines_cnt = ARRAY_SIZE(omap44xx_mmu_dsp_resets),
2609 .main_clk = "dpll_iva_m4x2_ck",
2610 .prcm = {
2611 .omap4 = {
2612 .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET,
2613 .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET,
2614 .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET,
2615 .modulemode = MODULEMODE_HWCTRL,
2616 },
2617 },
2618 .dev_attr = &mmu_dsp_dev_attr,
2619};
2620
2621/*
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002622 * 'mpu' class
2623 * mpu sub-system
2624 */
2625
2626static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002627 .name = "mpu",
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002628};
2629
2630/* mpu */
2631static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = {
Jon Hunter76a5d9b2012-09-23 17:28:30 -06002632 { .name = "pmu0", .irq = 54 + OMAP44XX_IRQ_GIC_START },
2633 { .name = "pmu1", .irq = 55 + OMAP44XX_IRQ_GIC_START },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002634 { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START },
2635 { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START },
2636 { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002637 { .irq = -1 }
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002638};
2639
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002640static struct omap_hwmod omap44xx_mpu_hwmod = {
2641 .name = "mpu",
2642 .class = &omap44xx_mpu_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002643 .clkdm_name = "mpuss_clkdm",
Benoit Cousson7ecc53732011-07-09 19:14:28 -06002644 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002645 .mpu_irqs = omap44xx_mpu_irqs,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002646 .main_clk = "dpll_mpu_m2_ck",
2647 .prcm = {
2648 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002649 .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06002650 .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002651 },
2652 },
Benoit Cousson55d2cb02010-05-12 17:54:36 +02002653};
2654
Benoit Cousson92b18d12010-09-23 20:02:41 +05302655/*
Paul Walmsleye17f18c2012-04-19 13:33:56 -06002656 * 'ocmc_ram' class
2657 * top-level core on-chip ram
2658 */
2659
2660static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = {
2661 .name = "ocmc_ram",
2662};
2663
2664/* ocmc_ram */
2665static struct omap_hwmod omap44xx_ocmc_ram_hwmod = {
2666 .name = "ocmc_ram",
2667 .class = &omap44xx_ocmc_ram_hwmod_class,
2668 .clkdm_name = "l3_2_clkdm",
2669 .prcm = {
2670 .omap4 = {
2671 .clkctrl_offs = OMAP4_CM_L3_2_OCMC_RAM_CLKCTRL_OFFSET,
2672 .context_offs = OMAP4_RM_L3_2_OCMC_RAM_CONTEXT_OFFSET,
2673 },
2674 },
2675};
2676
2677/*
Benoît Cousson0c668872012-04-19 13:33:55 -06002678 * 'ocp2scp' class
2679 * bridge to transform ocp interface protocol to scp (serial control port)
2680 * protocol
2681 */
2682
Benoit Cousson33c976e2012-09-23 17:28:21 -06002683static struct omap_hwmod_class_sysconfig omap44xx_ocp2scp_sysc = {
2684 .rev_offs = 0x0000,
2685 .sysc_offs = 0x0010,
2686 .syss_offs = 0x0014,
2687 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE |
2688 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
2689 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
2690 .sysc_fields = &omap_hwmod_sysc_type1,
2691};
2692
Benoît Cousson0c668872012-04-19 13:33:55 -06002693static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = {
2694 .name = "ocp2scp",
Benoit Cousson33c976e2012-09-23 17:28:21 -06002695 .sysc = &omap44xx_ocp2scp_sysc,
Benoît Cousson0c668872012-04-19 13:33:55 -06002696};
2697
Kishon Vijay Abraham I637874d2012-10-27 19:05:55 +05302698/* ocp2scp dev_attr */
2699static struct resource omap44xx_usb_phy_and_pll_addrs[] = {
2700 {
2701 .name = "usb_phy",
2702 .start = 0x4a0ad080,
2703 .end = 0x4a0ae000,
2704 .flags = IORESOURCE_MEM,
2705 },
2706 {
2707 /* XXX: Remove this once control module driver is in place */
2708 .name = "ctrl_dev",
2709 .start = 0x4a002300,
2710 .end = 0x4a002303,
2711 .flags = IORESOURCE_MEM,
2712 },
2713 { }
2714};
2715
2716static struct omap_ocp2scp_dev ocp2scp_dev_attr[] = {
2717 {
2718 .drv_name = "omap-usb2",
2719 .res = omap44xx_usb_phy_and_pll_addrs,
2720 },
2721 { }
2722};
2723
Benoît Cousson0c668872012-04-19 13:33:55 -06002724/* ocp2scp_usb_phy */
Benoît Cousson0c668872012-04-19 13:33:55 -06002725static struct omap_hwmod omap44xx_ocp2scp_usb_phy_hwmod = {
2726 .name = "ocp2scp_usb_phy",
2727 .class = &omap44xx_ocp2scp_hwmod_class,
2728 .clkdm_name = "l3_init_clkdm",
Kishon Vijay Abraham I1b024d22012-09-23 17:28:22 -06002729 .main_clk = "ocp2scp_usb_phy_phy_48m",
Benoît Cousson0c668872012-04-19 13:33:55 -06002730 .prcm = {
2731 .omap4 = {
2732 .clkctrl_offs = OMAP4_CM_L3INIT_USBPHYOCP2SCP_CLKCTRL_OFFSET,
2733 .context_offs = OMAP4_RM_L3INIT_USBPHYOCP2SCP_CONTEXT_OFFSET,
2734 .modulemode = MODULEMODE_HWCTRL,
2735 },
2736 },
Kishon Vijay Abraham I637874d2012-10-27 19:05:55 +05302737 .dev_attr = ocp2scp_dev_attr,
Benoît Cousson0c668872012-04-19 13:33:55 -06002738};
2739
2740/*
Paul Walmsley794b4802012-04-19 13:33:58 -06002741 * 'prcm' class
2742 * power and reset manager (part of the prcm infrastructure) + clock manager 2
2743 * + clock manager 1 (in always on power domain) + local prm in mpu
2744 */
2745
2746static struct omap_hwmod_class omap44xx_prcm_hwmod_class = {
2747 .name = "prcm",
2748};
2749
2750/* prcm_mpu */
2751static struct omap_hwmod omap44xx_prcm_mpu_hwmod = {
2752 .name = "prcm_mpu",
2753 .class = &omap44xx_prcm_hwmod_class,
2754 .clkdm_name = "l4_wkup_clkdm",
Paul Walmsley53cce972012-09-23 17:28:22 -06002755 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002756 .prcm = {
2757 .omap4 = {
2758 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2759 },
2760 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002761};
2762
2763/* cm_core_aon */
2764static struct omap_hwmod omap44xx_cm_core_aon_hwmod = {
2765 .name = "cm_core_aon",
2766 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002767 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002768 .prcm = {
2769 .omap4 = {
2770 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2771 },
2772 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002773};
2774
2775/* cm_core */
2776static struct omap_hwmod omap44xx_cm_core_hwmod = {
2777 .name = "cm_core",
2778 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley53cce972012-09-23 17:28:22 -06002779 .flags = HWMOD_NO_IDLEST,
Tero Kristo46b3af22012-09-23 17:28:20 -06002780 .prcm = {
2781 .omap4 = {
2782 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2783 },
2784 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002785};
2786
2787/* prm */
2788static struct omap_hwmod_irq_info omap44xx_prm_irqs[] = {
2789 { .irq = 11 + OMAP44XX_IRQ_GIC_START },
2790 { .irq = -1 }
2791};
2792
2793static struct omap_hwmod_rst_info omap44xx_prm_resets[] = {
2794 { .name = "rst_global_warm_sw", .rst_shift = 0 },
2795 { .name = "rst_global_cold_sw", .rst_shift = 1 },
2796};
2797
2798static struct omap_hwmod omap44xx_prm_hwmod = {
2799 .name = "prm",
2800 .class = &omap44xx_prcm_hwmod_class,
Paul Walmsley794b4802012-04-19 13:33:58 -06002801 .mpu_irqs = omap44xx_prm_irqs,
2802 .rst_lines = omap44xx_prm_resets,
2803 .rst_lines_cnt = ARRAY_SIZE(omap44xx_prm_resets),
2804};
2805
2806/*
2807 * 'scrm' class
2808 * system clock and reset manager
2809 */
2810
2811static struct omap_hwmod_class omap44xx_scrm_hwmod_class = {
2812 .name = "scrm",
2813};
2814
2815/* scrm */
2816static struct omap_hwmod omap44xx_scrm_hwmod = {
2817 .name = "scrm",
2818 .class = &omap44xx_scrm_hwmod_class,
2819 .clkdm_name = "l4_wkup_clkdm",
Tero Kristo46b3af22012-09-23 17:28:20 -06002820 .prcm = {
2821 .omap4 = {
2822 .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT,
2823 },
2824 },
Paul Walmsley794b4802012-04-19 13:33:58 -06002825};
2826
2827/*
Paul Walmsley42b9e382012-04-19 13:33:54 -06002828 * 'sl2if' class
2829 * shared level 2 memory interface
2830 */
2831
2832static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = {
2833 .name = "sl2if",
2834};
2835
2836/* sl2if */
2837static struct omap_hwmod omap44xx_sl2if_hwmod = {
2838 .name = "sl2if",
2839 .class = &omap44xx_sl2if_hwmod_class,
2840 .clkdm_name = "ivahd_clkdm",
2841 .prcm = {
2842 .omap4 = {
2843 .clkctrl_offs = OMAP4_CM_IVAHD_SL2_CLKCTRL_OFFSET,
2844 .context_offs = OMAP4_RM_IVAHD_SL2_CONTEXT_OFFSET,
2845 .modulemode = MODULEMODE_HWCTRL,
2846 },
2847 },
2848};
2849
2850/*
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06002851 * 'slimbus' class
2852 * bidirectional, multi-drop, multi-channel two-line serial interface between
2853 * the device and external components
2854 */
2855
2856static struct omap_hwmod_class_sysconfig omap44xx_slimbus_sysc = {
2857 .rev_offs = 0x0000,
2858 .sysc_offs = 0x0010,
2859 .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE |
2860 SYSC_HAS_SOFTRESET),
2861 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2862 SIDLE_SMART_WKUP),
2863 .sysc_fields = &omap_hwmod_sysc_type2,
2864};
2865
2866static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = {
2867 .name = "slimbus",
2868 .sysc = &omap44xx_slimbus_sysc,
2869};
2870
2871/* slimbus1 */
2872static struct omap_hwmod_irq_info omap44xx_slimbus1_irqs[] = {
2873 { .irq = 97 + OMAP44XX_IRQ_GIC_START },
2874 { .irq = -1 }
2875};
2876
2877static struct omap_hwmod_dma_info omap44xx_slimbus1_sdma_reqs[] = {
2878 { .name = "tx0", .dma_req = 84 + OMAP44XX_DMA_REQ_START },
2879 { .name = "tx1", .dma_req = 85 + OMAP44XX_DMA_REQ_START },
2880 { .name = "tx2", .dma_req = 86 + OMAP44XX_DMA_REQ_START },
2881 { .name = "tx3", .dma_req = 87 + OMAP44XX_DMA_REQ_START },
2882 { .name = "rx0", .dma_req = 88 + OMAP44XX_DMA_REQ_START },
2883 { .name = "rx1", .dma_req = 89 + OMAP44XX_DMA_REQ_START },
2884 { .name = "rx2", .dma_req = 90 + OMAP44XX_DMA_REQ_START },
2885 { .name = "rx3", .dma_req = 91 + OMAP44XX_DMA_REQ_START },
2886 { .dma_req = -1 }
2887};
2888
2889static struct omap_hwmod_opt_clk slimbus1_opt_clks[] = {
2890 { .role = "fclk_1", .clk = "slimbus1_fclk_1" },
2891 { .role = "fclk_0", .clk = "slimbus1_fclk_0" },
2892 { .role = "fclk_2", .clk = "slimbus1_fclk_2" },
2893 { .role = "slimbus_clk", .clk = "slimbus1_slimbus_clk" },
2894};
2895
2896static struct omap_hwmod omap44xx_slimbus1_hwmod = {
2897 .name = "slimbus1",
2898 .class = &omap44xx_slimbus_hwmod_class,
2899 .clkdm_name = "abe_clkdm",
2900 .mpu_irqs = omap44xx_slimbus1_irqs,
2901 .sdma_reqs = omap44xx_slimbus1_sdma_reqs,
2902 .prcm = {
2903 .omap4 = {
2904 .clkctrl_offs = OMAP4_CM1_ABE_SLIMBUS_CLKCTRL_OFFSET,
2905 .context_offs = OMAP4_RM_ABE_SLIMBUS_CONTEXT_OFFSET,
2906 .modulemode = MODULEMODE_SWCTRL,
2907 },
2908 },
2909 .opt_clks = slimbus1_opt_clks,
2910 .opt_clks_cnt = ARRAY_SIZE(slimbus1_opt_clks),
2911};
2912
2913/* slimbus2 */
2914static struct omap_hwmod_irq_info omap44xx_slimbus2_irqs[] = {
2915 { .irq = 98 + OMAP44XX_IRQ_GIC_START },
2916 { .irq = -1 }
2917};
2918
2919static struct omap_hwmod_dma_info omap44xx_slimbus2_sdma_reqs[] = {
2920 { .name = "tx0", .dma_req = 92 + OMAP44XX_DMA_REQ_START },
2921 { .name = "tx1", .dma_req = 93 + OMAP44XX_DMA_REQ_START },
2922 { .name = "tx2", .dma_req = 94 + OMAP44XX_DMA_REQ_START },
2923 { .name = "tx3", .dma_req = 95 + OMAP44XX_DMA_REQ_START },
2924 { .name = "rx0", .dma_req = 96 + OMAP44XX_DMA_REQ_START },
2925 { .name = "rx1", .dma_req = 97 + OMAP44XX_DMA_REQ_START },
2926 { .name = "rx2", .dma_req = 98 + OMAP44XX_DMA_REQ_START },
2927 { .name = "rx3", .dma_req = 99 + OMAP44XX_DMA_REQ_START },
2928 { .dma_req = -1 }
2929};
2930
2931static struct omap_hwmod_opt_clk slimbus2_opt_clks[] = {
2932 { .role = "fclk_1", .clk = "slimbus2_fclk_1" },
2933 { .role = "fclk_0", .clk = "slimbus2_fclk_0" },
2934 { .role = "slimbus_clk", .clk = "slimbus2_slimbus_clk" },
2935};
2936
2937static struct omap_hwmod omap44xx_slimbus2_hwmod = {
2938 .name = "slimbus2",
2939 .class = &omap44xx_slimbus_hwmod_class,
2940 .clkdm_name = "l4_per_clkdm",
2941 .mpu_irqs = omap44xx_slimbus2_irqs,
2942 .sdma_reqs = omap44xx_slimbus2_sdma_reqs,
2943 .prcm = {
2944 .omap4 = {
2945 .clkctrl_offs = OMAP4_CM_L4PER_SLIMBUS2_CLKCTRL_OFFSET,
2946 .context_offs = OMAP4_RM_L4PER_SLIMBUS2_CONTEXT_OFFSET,
2947 .modulemode = MODULEMODE_SWCTRL,
2948 },
2949 },
2950 .opt_clks = slimbus2_opt_clks,
2951 .opt_clks_cnt = ARRAY_SIZE(slimbus2_opt_clks),
2952};
2953
2954/*
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002955 * 'smartreflex' class
2956 * smartreflex module (monitor silicon performance and outputs a measure of
2957 * performance error)
2958 */
2959
2960/* The IP is not compliant to type1 / type2 scheme */
2961static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = {
2962 .sidle_shift = 24,
2963 .enwkup_shift = 26,
2964};
2965
2966static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
2967 .sysc_offs = 0x0038,
2968 .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE),
2969 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
2970 SIDLE_SMART_WKUP),
2971 .sysc_fields = &omap_hwmod_sysc_type_smartreflex,
2972};
2973
2974static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00002975 .name = "smartreflex",
2976 .sysc = &omap44xx_smartreflex_sysc,
2977 .rev = 2,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002978};
2979
2980/* smartreflex_core */
Shweta Gulaticea6b942012-02-29 23:33:37 +01002981static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = {
2982 .sensor_voltdm_name = "core",
2983};
2984
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002985static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = {
2986 { .irq = 19 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06002987 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002988};
2989
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002990static struct omap_hwmod omap44xx_smartreflex_core_hwmod = {
2991 .name = "smartreflex_core",
2992 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06002993 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002994 .mpu_irqs = omap44xx_smartreflex_core_irqs,
Paul Walmsley212738a2011-07-09 19:14:06 -06002995
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002996 .main_clk = "smartreflex_core_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00002997 .prcm = {
2998 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06002999 .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003000 .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003001 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003002 },
3003 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01003004 .dev_attr = &smartreflex_core_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003005};
3006
3007/* smartreflex_iva */
Shweta Gulaticea6b942012-02-29 23:33:37 +01003008static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = {
3009 .sensor_voltdm_name = "iva",
3010};
3011
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003012static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = {
3013 { .irq = 102 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003014 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003015};
3016
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003017static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = {
3018 .name = "smartreflex_iva",
3019 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003020 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003021 .mpu_irqs = omap44xx_smartreflex_iva_irqs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003022 .main_clk = "smartreflex_iva_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003023 .prcm = {
3024 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003025 .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003026 .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003027 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003028 },
3029 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01003030 .dev_attr = &smartreflex_iva_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003031};
3032
3033/* smartreflex_mpu */
Shweta Gulaticea6b942012-02-29 23:33:37 +01003034static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = {
3035 .sensor_voltdm_name = "mpu",
3036};
3037
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003038static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = {
3039 { .irq = 18 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003040 { .irq = -1 }
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003041};
3042
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003043static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = {
3044 .name = "smartreflex_mpu",
3045 .class = &omap44xx_smartreflex_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003046 .clkdm_name = "l4_ao_clkdm",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003047 .mpu_irqs = omap44xx_smartreflex_mpu_irqs,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003048 .main_clk = "smartreflex_mpu_fck",
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003049 .prcm = {
3050 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003051 .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003052 .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003053 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003054 },
3055 },
Shweta Gulaticea6b942012-02-29 23:33:37 +01003056 .dev_attr = &smartreflex_mpu_dev_attr,
Benoit Cousson1f6a7172010-12-23 22:30:30 +00003057};
3058
3059/*
Benoit Coussond11c2172011-02-02 12:04:36 +00003060 * 'spinlock' class
3061 * spinlock provides hardware assistance for synchronizing the processes
3062 * running on multiple processors
3063 */
3064
3065static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = {
3066 .rev_offs = 0x0000,
3067 .sysc_offs = 0x0010,
3068 .syss_offs = 0x0014,
3069 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3070 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE |
3071 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3072 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3073 SIDLE_SMART_WKUP),
3074 .sysc_fields = &omap_hwmod_sysc_type1,
3075};
3076
3077static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = {
3078 .name = "spinlock",
3079 .sysc = &omap44xx_spinlock_sysc,
3080};
3081
3082/* spinlock */
Benoit Coussond11c2172011-02-02 12:04:36 +00003083static struct omap_hwmod omap44xx_spinlock_hwmod = {
3084 .name = "spinlock",
3085 .class = &omap44xx_spinlock_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003086 .clkdm_name = "l4_cfg_clkdm",
Benoit Coussond11c2172011-02-02 12:04:36 +00003087 .prcm = {
3088 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003089 .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003090 .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET,
Benoit Coussond11c2172011-02-02 12:04:36 +00003091 },
3092 },
Benoit Coussond11c2172011-02-02 12:04:36 +00003093};
3094
3095/*
Benoit Cousson35d1a662011-02-11 11:17:14 +00003096 * 'timer' class
3097 * general purpose timer module with accurate 1ms tick
3098 * This class contains several variants: ['timer_1ms', 'timer']
3099 */
3100
3101static struct omap_hwmod_class_sysconfig omap44xx_timer_1ms_sysc = {
3102 .rev_offs = 0x0000,
3103 .sysc_offs = 0x0010,
3104 .syss_offs = 0x0014,
3105 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY |
3106 SYSC_HAS_EMUFREE | SYSC_HAS_ENAWAKEUP |
3107 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3108 SYSS_HAS_RESET_STATUS),
3109 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
Jon Hunter10759e82012-07-11 13:00:13 -05003110 .clockact = CLOCKACT_TEST_ICLK,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003111 .sysc_fields = &omap_hwmod_sysc_type1,
3112};
3113
3114static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = {
3115 .name = "timer",
3116 .sysc = &omap44xx_timer_1ms_sysc,
3117};
3118
3119static struct omap_hwmod_class_sysconfig omap44xx_timer_sysc = {
3120 .rev_offs = 0x0000,
3121 .sysc_offs = 0x0010,
3122 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS |
3123 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET),
3124 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3125 SIDLE_SMART_WKUP),
3126 .sysc_fields = &omap_hwmod_sysc_type2,
3127};
3128
3129static struct omap_hwmod_class omap44xx_timer_hwmod_class = {
3130 .name = "timer",
3131 .sysc = &omap44xx_timer_sysc,
3132};
3133
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05303134/* always-on timers dev attribute */
3135static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = {
3136 .timer_capability = OMAP_TIMER_ALWON,
3137};
3138
3139/* pwm timers dev attribute */
3140static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = {
3141 .timer_capability = OMAP_TIMER_HAS_PWM,
3142};
3143
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06003144/* timers with DSP interrupt dev attribute */
3145static struct omap_timer_capability_dev_attr capability_dsp_dev_attr = {
3146 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ,
3147};
3148
3149/* pwm timers with DSP interrupt dev attribute */
3150static struct omap_timer_capability_dev_attr capability_dsp_pwm_dev_attr = {
3151 .timer_capability = OMAP_TIMER_HAS_DSP_IRQ | OMAP_TIMER_HAS_PWM,
3152};
3153
Benoit Cousson35d1a662011-02-11 11:17:14 +00003154/* timer1 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003155static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = {
3156 { .irq = 37 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003157 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003158};
3159
Benoit Cousson35d1a662011-02-11 11:17:14 +00003160static struct omap_hwmod omap44xx_timer1_hwmod = {
3161 .name = "timer1",
3162 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003163 .clkdm_name = "l4_wkup_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05003164 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003165 .mpu_irqs = omap44xx_timer1_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003166 .main_clk = "timer1_fck",
3167 .prcm = {
3168 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003169 .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003170 .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003171 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003172 },
3173 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05303174 .dev_attr = &capability_alwon_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003175};
3176
3177/* timer2 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003178static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = {
3179 { .irq = 38 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003180 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003181};
3182
Benoit Cousson35d1a662011-02-11 11:17:14 +00003183static struct omap_hwmod omap44xx_timer2_hwmod = {
3184 .name = "timer2",
3185 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003186 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05003187 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003188 .mpu_irqs = omap44xx_timer2_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003189 .main_clk = "timer2_fck",
3190 .prcm = {
3191 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003192 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003193 .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003194 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003195 },
3196 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00003197};
3198
3199/* timer3 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003200static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = {
3201 { .irq = 39 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003202 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003203};
3204
Benoit Cousson35d1a662011-02-11 11:17:14 +00003205static struct omap_hwmod omap44xx_timer3_hwmod = {
3206 .name = "timer3",
3207 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003208 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00003209 .mpu_irqs = omap44xx_timer3_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003210 .main_clk = "timer3_fck",
3211 .prcm = {
3212 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003213 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003214 .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003215 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003216 },
3217 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00003218};
3219
3220/* timer4 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003221static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = {
3222 { .irq = 40 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003223 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003224};
3225
Benoit Cousson35d1a662011-02-11 11:17:14 +00003226static struct omap_hwmod omap44xx_timer4_hwmod = {
3227 .name = "timer4",
3228 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003229 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00003230 .mpu_irqs = omap44xx_timer4_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003231 .main_clk = "timer4_fck",
3232 .prcm = {
3233 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003234 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003235 .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003236 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003237 },
3238 },
Benoit Cousson35d1a662011-02-11 11:17:14 +00003239};
3240
3241/* timer5 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003242static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = {
3243 { .irq = 41 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003244 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003245};
3246
Benoit Cousson35d1a662011-02-11 11:17:14 +00003247static struct omap_hwmod omap44xx_timer5_hwmod = {
3248 .name = "timer5",
3249 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003250 .clkdm_name = "abe_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00003251 .mpu_irqs = omap44xx_timer5_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003252 .main_clk = "timer5_fck",
3253 .prcm = {
3254 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003255 .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003256 .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003257 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003258 },
3259 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06003260 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003261};
3262
3263/* timer6 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003264static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = {
3265 { .irq = 42 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003266 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003267};
3268
Benoit Cousson35d1a662011-02-11 11:17:14 +00003269static struct omap_hwmod omap44xx_timer6_hwmod = {
3270 .name = "timer6",
3271 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003272 .clkdm_name = "abe_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00003273 .mpu_irqs = omap44xx_timer6_irqs,
Paul Walmsley212738a2011-07-09 19:14:06 -06003274
Benoit Cousson35d1a662011-02-11 11:17:14 +00003275 .main_clk = "timer6_fck",
3276 .prcm = {
3277 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003278 .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003279 .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003280 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003281 },
3282 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06003283 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003284};
3285
3286/* timer7 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003287static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = {
3288 { .irq = 43 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003289 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003290};
3291
Benoit Cousson35d1a662011-02-11 11:17:14 +00003292static struct omap_hwmod omap44xx_timer7_hwmod = {
3293 .name = "timer7",
3294 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003295 .clkdm_name = "abe_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00003296 .mpu_irqs = omap44xx_timer7_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003297 .main_clk = "timer7_fck",
3298 .prcm = {
3299 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003300 .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003301 .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003302 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003303 },
3304 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06003305 .dev_attr = &capability_dsp_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003306};
3307
3308/* timer8 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003309static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = {
3310 { .irq = 44 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003311 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003312};
3313
Benoit Cousson35d1a662011-02-11 11:17:14 +00003314static struct omap_hwmod omap44xx_timer8_hwmod = {
3315 .name = "timer8",
3316 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003317 .clkdm_name = "abe_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00003318 .mpu_irqs = omap44xx_timer8_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003319 .main_clk = "timer8_fck",
3320 .prcm = {
3321 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003322 .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003323 .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003324 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003325 },
3326 },
Jon Hunter5c3e4ec2012-09-23 17:28:27 -06003327 .dev_attr = &capability_dsp_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003328};
3329
3330/* timer9 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003331static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = {
3332 { .irq = 45 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003333 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003334};
3335
Benoit Cousson35d1a662011-02-11 11:17:14 +00003336static struct omap_hwmod omap44xx_timer9_hwmod = {
3337 .name = "timer9",
3338 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003339 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00003340 .mpu_irqs = omap44xx_timer9_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003341 .main_clk = "timer9_fck",
3342 .prcm = {
3343 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003344 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003345 .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003346 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003347 },
3348 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05303349 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003350};
3351
3352/* timer10 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003353static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = {
3354 { .irq = 46 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003355 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003356};
3357
Benoit Cousson35d1a662011-02-11 11:17:14 +00003358static struct omap_hwmod omap44xx_timer10_hwmod = {
3359 .name = "timer10",
3360 .class = &omap44xx_timer_1ms_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003361 .clkdm_name = "l4_per_clkdm",
Jon Hunter10759e82012-07-11 13:00:13 -05003362 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003363 .mpu_irqs = omap44xx_timer10_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003364 .main_clk = "timer10_fck",
3365 .prcm = {
3366 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003367 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003368 .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003369 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003370 },
3371 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05303372 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003373};
3374
3375/* timer11 */
Benoit Cousson35d1a662011-02-11 11:17:14 +00003376static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = {
3377 { .irq = 47 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003378 { .irq = -1 }
Benoit Cousson35d1a662011-02-11 11:17:14 +00003379};
3380
Benoit Cousson35d1a662011-02-11 11:17:14 +00003381static struct omap_hwmod omap44xx_timer11_hwmod = {
3382 .name = "timer11",
3383 .class = &omap44xx_timer_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003384 .clkdm_name = "l4_per_clkdm",
Benoit Cousson35d1a662011-02-11 11:17:14 +00003385 .mpu_irqs = omap44xx_timer11_irqs,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003386 .main_clk = "timer11_fck",
3387 .prcm = {
3388 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003389 .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003390 .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003391 .modulemode = MODULEMODE_SWCTRL,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003392 },
3393 },
Tarun Kanti DebBarmac345c8b2011-09-20 17:00:18 +05303394 .dev_attr = &capability_pwm_dev_attr,
Benoit Cousson35d1a662011-02-11 11:17:14 +00003395};
3396
3397/*
Benoit Coussondb12ba52010-09-27 20:19:19 +05303398 * 'uart' class
3399 * universal asynchronous receiver/transmitter (uart)
3400 */
3401
3402static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
3403 .rev_offs = 0x0050,
3404 .sysc_offs = 0x0054,
3405 .syss_offs = 0x0058,
Benoit Cousson3b54baa2010-12-21 21:08:33 -07003406 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
Benoit Cousson0cfe8752010-12-21 21:08:33 -07003407 SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET |
3408 SYSS_HAS_RESET_STATUS),
Benoit Cousson7cffa6b2010-12-21 21:31:28 -07003409 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3410 SIDLE_SMART_WKUP),
Benoit Coussondb12ba52010-09-27 20:19:19 +05303411 .sysc_fields = &omap_hwmod_sysc_type1,
3412};
3413
3414static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
Benoit Coussonfe134712010-12-23 22:30:32 +00003415 .name = "uart",
3416 .sysc = &omap44xx_uart_sysc,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303417};
3418
3419/* uart1 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05303420static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = {
3421 { .irq = 72 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003422 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05303423};
3424
3425static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = {
3426 { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START },
3427 { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003428 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05303429};
3430
Benoit Coussondb12ba52010-09-27 20:19:19 +05303431static struct omap_hwmod omap44xx_uart1_hwmod = {
3432 .name = "uart1",
3433 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003434 .clkdm_name = "l4_per_clkdm",
Benoit Coussondb12ba52010-09-27 20:19:19 +05303435 .mpu_irqs = omap44xx_uart1_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303436 .sdma_reqs = omap44xx_uart1_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303437 .main_clk = "uart1_fck",
3438 .prcm = {
3439 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003440 .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003441 .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003442 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303443 },
3444 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05303445};
3446
3447/* uart2 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05303448static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = {
3449 { .irq = 73 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003450 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05303451};
3452
3453static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = {
3454 { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START },
3455 { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003456 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05303457};
3458
Benoit Coussondb12ba52010-09-27 20:19:19 +05303459static struct omap_hwmod omap44xx_uart2_hwmod = {
3460 .name = "uart2",
3461 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003462 .clkdm_name = "l4_per_clkdm",
Benoit Coussondb12ba52010-09-27 20:19:19 +05303463 .mpu_irqs = omap44xx_uart2_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303464 .sdma_reqs = omap44xx_uart2_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303465 .main_clk = "uart2_fck",
3466 .prcm = {
3467 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003468 .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003469 .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003470 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303471 },
3472 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05303473};
3474
3475/* uart3 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05303476static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = {
3477 { .irq = 74 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003478 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05303479};
3480
3481static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = {
3482 { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START },
3483 { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003484 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05303485};
3486
Benoit Coussondb12ba52010-09-27 20:19:19 +05303487static struct omap_hwmod omap44xx_uart3_hwmod = {
3488 .name = "uart3",
3489 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003490 .clkdm_name = "l4_per_clkdm",
Benoit Cousson7ecc53732011-07-09 19:14:28 -06003491 .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303492 .mpu_irqs = omap44xx_uart3_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303493 .sdma_reqs = omap44xx_uart3_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303494 .main_clk = "uart3_fck",
3495 .prcm = {
3496 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003497 .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003498 .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003499 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303500 },
3501 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05303502};
3503
3504/* uart4 */
Benoit Coussondb12ba52010-09-27 20:19:19 +05303505static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = {
3506 { .irq = 70 + OMAP44XX_IRQ_GIC_START },
Paul Walmsley212738a2011-07-09 19:14:06 -06003507 { .irq = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05303508};
3509
3510static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = {
3511 { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START },
3512 { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START },
Paul Walmsleybc614952011-07-09 19:14:07 -06003513 { .dma_req = -1 }
Benoit Coussondb12ba52010-09-27 20:19:19 +05303514};
3515
Benoit Coussondb12ba52010-09-27 20:19:19 +05303516static struct omap_hwmod omap44xx_uart4_hwmod = {
3517 .name = "uart4",
3518 .class = &omap44xx_uart_hwmod_class,
Benoit Coussona5322c62011-07-10 05:56:29 -06003519 .clkdm_name = "l4_per_clkdm",
Benoit Coussondb12ba52010-09-27 20:19:19 +05303520 .mpu_irqs = omap44xx_uart4_irqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303521 .sdma_reqs = omap44xx_uart4_sdma_reqs,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303522 .main_clk = "uart4_fck",
3523 .prcm = {
3524 .omap4 = {
Benoit Coussond0f06312011-07-10 05:56:30 -06003525 .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET,
Benoit Cousson27bb00b2011-07-10 05:56:32 -06003526 .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET,
Benoit Cousson03fdefe52011-07-10 05:56:32 -06003527 .modulemode = MODULEMODE_SWCTRL,
Benoit Coussondb12ba52010-09-27 20:19:19 +05303528 },
3529 },
Benoit Coussondb12ba52010-09-27 20:19:19 +05303530};
3531
Benoit Cousson9780a9c2010-12-07 16:26:57 -08003532/*
Benoît Cousson0c668872012-04-19 13:33:55 -06003533 * 'usb_host_fs' class
3534 * full-speed usb host controller
3535 */
3536
3537/* The IP is not compliant to type1 / type2 scheme */
3538static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_usb_host_fs = {
3539 .midle_shift = 4,
3540 .sidle_shift = 2,
3541 .srst_shift = 1,
3542};
3543
3544static struct omap_hwmod_class_sysconfig omap44xx_usb_host_fs_sysc = {
3545 .rev_offs = 0x0000,
3546 .sysc_offs = 0x0210,
3547 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3548 SYSC_HAS_SOFTRESET),
3549 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3550 SIDLE_SMART_WKUP),
3551 .sysc_fields = &omap_hwmod_sysc_type_usb_host_fs,
3552};
3553
3554static struct omap_hwmod_class omap44xx_usb_host_fs_hwmod_class = {
3555 .name = "usb_host_fs",
3556 .sysc = &omap44xx_usb_host_fs_sysc,
3557};
3558
3559/* usb_host_fs */
3560static struct omap_hwmod_irq_info omap44xx_usb_host_fs_irqs[] = {
3561 { .name = "std", .irq = 89 + OMAP44XX_IRQ_GIC_START },
3562 { .name = "smi", .irq = 90 + OMAP44XX_IRQ_GIC_START },
3563 { .irq = -1 }
3564};
3565
3566static struct omap_hwmod omap44xx_usb_host_fs_hwmod = {
3567 .name = "usb_host_fs",
3568 .class = &omap44xx_usb_host_fs_hwmod_class,
3569 .clkdm_name = "l3_init_clkdm",
3570 .mpu_irqs = omap44xx_usb_host_fs_irqs,
3571 .main_clk = "usb_host_fs_fck",
3572 .prcm = {
3573 .omap4 = {
3574 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_FS_CLKCTRL_OFFSET,
3575 .context_offs = OMAP4_RM_L3INIT_USB_HOST_FS_CONTEXT_OFFSET,
3576 .modulemode = MODULEMODE_SWCTRL,
3577 },
3578 },
3579};
3580
3581/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003582 * 'usb_host_hs' class
3583 * high-speed multi-port usb host controller
3584 */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003585
3586static struct omap_hwmod_class_sysconfig omap44xx_usb_host_hs_sysc = {
3587 .rev_offs = 0x0000,
3588 .sysc_offs = 0x0010,
3589 .syss_offs = 0x0014,
3590 .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3591 SYSC_HAS_SOFTRESET),
3592 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3593 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3594 MSTANDBY_SMART | MSTANDBY_SMART_WKUP),
3595 .sysc_fields = &omap_hwmod_sysc_type2,
3596};
3597
3598static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003599 .name = "usb_host_hs",
3600 .sysc = &omap44xx_usb_host_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003601};
3602
Paul Walmsley844a3b62012-04-19 04:04:33 -06003603/* usb_host_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003604static struct omap_hwmod_irq_info omap44xx_usb_host_hs_irqs[] = {
3605 { .name = "ohci-irq", .irq = 76 + OMAP44XX_IRQ_GIC_START },
3606 { .name = "ehci-irq", .irq = 77 + OMAP44XX_IRQ_GIC_START },
3607 { .irq = -1 }
3608};
3609
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003610static struct omap_hwmod omap44xx_usb_host_hs_hwmod = {
3611 .name = "usb_host_hs",
3612 .class = &omap44xx_usb_host_hs_hwmod_class,
3613 .clkdm_name = "l3_init_clkdm",
3614 .main_clk = "usb_host_hs_fck",
3615 .prcm = {
3616 .omap4 = {
3617 .clkctrl_offs = OMAP4_CM_L3INIT_USB_HOST_CLKCTRL_OFFSET,
3618 .context_offs = OMAP4_RM_L3INIT_USB_HOST_CONTEXT_OFFSET,
3619 .modulemode = MODULEMODE_SWCTRL,
3620 },
3621 },
3622 .mpu_irqs = omap44xx_usb_host_hs_irqs,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003623
3624 /*
3625 * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock
3626 * id: i660
3627 *
3628 * Description:
3629 * In the following configuration :
3630 * - USBHOST module is set to smart-idle mode
3631 * - PRCM asserts idle_req to the USBHOST module ( This typically
3632 * happens when the system is going to a low power mode : all ports
3633 * have been suspended, the master part of the USBHOST module has
3634 * entered the standby state, and SW has cut the functional clocks)
3635 * - an USBHOST interrupt occurs before the module is able to answer
3636 * idle_ack, typically a remote wakeup IRQ.
3637 * Then the USB HOST module will enter a deadlock situation where it
3638 * is no more accessible nor functional.
3639 *
3640 * Workaround:
3641 * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE
3642 */
3643
3644 /*
3645 * Errata: USB host EHCI may stall when entering smart-standby mode
3646 * Id: i571
3647 *
3648 * Description:
3649 * When the USBHOST module is set to smart-standby mode, and when it is
3650 * ready to enter the standby state (i.e. all ports are suspended and
3651 * all attached devices are in suspend mode), then it can wrongly assert
3652 * the Mstandby signal too early while there are still some residual OCP
3653 * transactions ongoing. If this condition occurs, the internal state
3654 * machine may go to an undefined state and the USB link may be stuck
3655 * upon the next resume.
3656 *
3657 * Workaround:
3658 * Don't use smart standby; use only force standby,
3659 * hence HWMOD_SWSUP_MSTANDBY
3660 */
3661
3662 /*
3663 * During system boot; If the hwmod framework resets the module
3664 * the module will have smart idle settings; which can lead to deadlock
3665 * (above Errata Id:i660); so, dont reset the module during boot;
3666 * Use HWMOD_INIT_NO_RESET.
3667 */
3668
3669 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY |
3670 HWMOD_INIT_NO_RESET,
3671};
3672
3673/*
Paul Walmsley844a3b62012-04-19 04:04:33 -06003674 * 'usb_otg_hs' class
3675 * high-speed on-the-go universal serial bus (usb_otg_hs) controller
3676 */
3677
3678static struct omap_hwmod_class_sysconfig omap44xx_usb_otg_hs_sysc = {
3679 .rev_offs = 0x0400,
3680 .sysc_offs = 0x0404,
3681 .syss_offs = 0x0408,
3682 .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP |
3683 SYSC_HAS_MIDLEMODE | SYSC_HAS_SIDLEMODE |
3684 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3685 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3686 SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO |
3687 MSTANDBY_SMART),
3688 .sysc_fields = &omap_hwmod_sysc_type1,
3689};
3690
3691static struct omap_hwmod_class omap44xx_usb_otg_hs_hwmod_class = {
3692 .name = "usb_otg_hs",
3693 .sysc = &omap44xx_usb_otg_hs_sysc,
3694};
3695
3696/* usb_otg_hs */
3697static struct omap_hwmod_irq_info omap44xx_usb_otg_hs_irqs[] = {
3698 { .name = "mc", .irq = 92 + OMAP44XX_IRQ_GIC_START },
3699 { .name = "dma", .irq = 93 + OMAP44XX_IRQ_GIC_START },
3700 { .irq = -1 }
3701};
3702
3703static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = {
3704 { .role = "xclk", .clk = "usb_otg_hs_xclk" },
3705};
3706
3707static struct omap_hwmod omap44xx_usb_otg_hs_hwmod = {
3708 .name = "usb_otg_hs",
3709 .class = &omap44xx_usb_otg_hs_hwmod_class,
3710 .clkdm_name = "l3_init_clkdm",
3711 .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY,
3712 .mpu_irqs = omap44xx_usb_otg_hs_irqs,
3713 .main_clk = "usb_otg_hs_ick",
3714 .prcm = {
3715 .omap4 = {
3716 .clkctrl_offs = OMAP4_CM_L3INIT_USB_OTG_CLKCTRL_OFFSET,
3717 .context_offs = OMAP4_RM_L3INIT_USB_OTG_CONTEXT_OFFSET,
3718 .modulemode = MODULEMODE_HWCTRL,
3719 },
3720 },
3721 .opt_clks = usb_otg_hs_opt_clks,
3722 .opt_clks_cnt = ARRAY_SIZE(usb_otg_hs_opt_clks),
3723};
3724
3725/*
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003726 * 'usb_tll_hs' class
3727 * usb_tll_hs module is the adapter on the usb_host_hs ports
3728 */
Paul Walmsley844a3b62012-04-19 04:04:33 -06003729
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003730static struct omap_hwmod_class_sysconfig omap44xx_usb_tll_hs_sysc = {
3731 .rev_offs = 0x0000,
3732 .sysc_offs = 0x0010,
3733 .syss_offs = 0x0014,
3734 .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE |
3735 SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET |
3736 SYSC_HAS_AUTOIDLE),
3737 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART),
3738 .sysc_fields = &omap_hwmod_sysc_type1,
3739};
3740
3741static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06003742 .name = "usb_tll_hs",
3743 .sysc = &omap44xx_usb_tll_hs_sysc,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07003744};
3745
3746static struct omap_hwmod_irq_info omap44xx_usb_tll_hs_irqs[] = {
3747 { .name = "tll-irq", .irq = 78 + OMAP44XX_IRQ_GIC_START },
3748 { .irq = -1 }
3749};
3750
Paul Walmsley844a3b62012-04-19 04:04:33 -06003751static struct omap_hwmod omap44xx_usb_tll_hs_hwmod = {
3752 .name = "usb_tll_hs",
3753 .class = &omap44xx_usb_tll_hs_hwmod_class,
3754 .clkdm_name = "l3_init_clkdm",
3755 .mpu_irqs = omap44xx_usb_tll_hs_irqs,
3756 .main_clk = "usb_tll_hs_ick",
3757 .prcm = {
3758 .omap4 = {
3759 .clkctrl_offs = OMAP4_CM_L3INIT_USB_TLL_CLKCTRL_OFFSET,
3760 .context_offs = OMAP4_RM_L3INIT_USB_TLL_CONTEXT_OFFSET,
3761 .modulemode = MODULEMODE_HWCTRL,
3762 },
3763 },
3764};
3765
3766/*
3767 * 'wd_timer' class
3768 * 32-bit watchdog upward counter that generates a pulse on the reset pin on
3769 * overflow condition
3770 */
3771
3772static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
3773 .rev_offs = 0x0000,
3774 .sysc_offs = 0x0010,
3775 .syss_offs = 0x0014,
3776 .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE |
3777 SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS),
3778 .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART |
3779 SIDLE_SMART_WKUP),
3780 .sysc_fields = &omap_hwmod_sysc_type1,
3781};
3782
3783static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
3784 .name = "wd_timer",
3785 .sysc = &omap44xx_wd_timer_sysc,
3786 .pre_shutdown = &omap2_wd_timer_disable,
Kevin Hilman414e4122012-05-08 11:34:30 -06003787 .reset = &omap2_wd_timer_reset,
Paul Walmsley844a3b62012-04-19 04:04:33 -06003788};
3789
3790/* wd_timer2 */
3791static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = {
3792 { .irq = 80 + OMAP44XX_IRQ_GIC_START },
3793 { .irq = -1 }
3794};
3795
3796static struct omap_hwmod omap44xx_wd_timer2_hwmod = {
3797 .name = "wd_timer2",
3798 .class = &omap44xx_wd_timer_hwmod_class,
3799 .clkdm_name = "l4_wkup_clkdm",
3800 .mpu_irqs = omap44xx_wd_timer2_irqs,
3801 .main_clk = "wd_timer2_fck",
3802 .prcm = {
3803 .omap4 = {
3804 .clkctrl_offs = OMAP4_CM_WKUP_WDT2_CLKCTRL_OFFSET,
3805 .context_offs = OMAP4_RM_WKUP_WDT2_CONTEXT_OFFSET,
3806 .modulemode = MODULEMODE_SWCTRL,
3807 },
3808 },
3809};
3810
3811/* wd_timer3 */
3812static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = {
3813 { .irq = 36 + OMAP44XX_IRQ_GIC_START },
3814 { .irq = -1 }
3815};
3816
3817static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
3818 .name = "wd_timer3",
3819 .class = &omap44xx_wd_timer_hwmod_class,
3820 .clkdm_name = "abe_clkdm",
3821 .mpu_irqs = omap44xx_wd_timer3_irqs,
3822 .main_clk = "wd_timer3_fck",
3823 .prcm = {
3824 .omap4 = {
3825 .clkctrl_offs = OMAP4_CM1_ABE_WDT3_CLKCTRL_OFFSET,
3826 .context_offs = OMAP4_RM_ABE_WDT3_CONTEXT_OFFSET,
3827 .modulemode = MODULEMODE_SWCTRL,
3828 },
3829 },
3830};
3831
3832
3833/*
3834 * interfaces
3835 */
3836
Paul Walmsley42b9e382012-04-19 13:33:54 -06003837static struct omap_hwmod_addr_space omap44xx_c2c_target_fw_addrs[] = {
3838 {
3839 .pa_start = 0x4a204000,
3840 .pa_end = 0x4a2040ff,
3841 .flags = ADDR_TYPE_RT
3842 },
3843 { }
3844};
3845
3846/* c2c -> c2c_target_fw */
3847static struct omap_hwmod_ocp_if omap44xx_c2c__c2c_target_fw = {
3848 .master = &omap44xx_c2c_hwmod,
3849 .slave = &omap44xx_c2c_target_fw_hwmod,
3850 .clk = "div_core_ck",
3851 .addr = omap44xx_c2c_target_fw_addrs,
3852 .user = OCP_USER_MPU,
3853};
3854
3855/* l4_cfg -> c2c_target_fw */
3856static struct omap_hwmod_ocp_if omap44xx_l4_cfg__c2c_target_fw = {
3857 .master = &omap44xx_l4_cfg_hwmod,
3858 .slave = &omap44xx_c2c_target_fw_hwmod,
3859 .clk = "l4_div_ck",
3860 .user = OCP_USER_MPU | OCP_USER_SDMA,
3861};
3862
Paul Walmsley844a3b62012-04-19 04:04:33 -06003863/* l3_main_1 -> dmm */
3864static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = {
3865 .master = &omap44xx_l3_main_1_hwmod,
3866 .slave = &omap44xx_dmm_hwmod,
3867 .clk = "l3_div_ck",
3868 .user = OCP_USER_SDMA,
3869};
3870
3871static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = {
3872 {
3873 .pa_start = 0x4e000000,
3874 .pa_end = 0x4e0007ff,
3875 .flags = ADDR_TYPE_RT
3876 },
3877 { }
3878};
3879
3880/* mpu -> dmm */
3881static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = {
3882 .master = &omap44xx_mpu_hwmod,
3883 .slave = &omap44xx_dmm_hwmod,
3884 .clk = "l3_div_ck",
3885 .addr = omap44xx_dmm_addrs,
3886 .user = OCP_USER_MPU,
3887};
3888
Paul Walmsley42b9e382012-04-19 13:33:54 -06003889/* c2c -> emif_fw */
3890static struct omap_hwmod_ocp_if omap44xx_c2c__emif_fw = {
3891 .master = &omap44xx_c2c_hwmod,
3892 .slave = &omap44xx_emif_fw_hwmod,
3893 .clk = "div_core_ck",
3894 .user = OCP_USER_MPU | OCP_USER_SDMA,
3895};
3896
Paul Walmsley844a3b62012-04-19 04:04:33 -06003897/* dmm -> emif_fw */
3898static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = {
3899 .master = &omap44xx_dmm_hwmod,
3900 .slave = &omap44xx_emif_fw_hwmod,
3901 .clk = "l3_div_ck",
3902 .user = OCP_USER_MPU | OCP_USER_SDMA,
3903};
3904
3905static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = {
3906 {
3907 .pa_start = 0x4a20c000,
3908 .pa_end = 0x4a20c0ff,
3909 .flags = ADDR_TYPE_RT
3910 },
3911 { }
3912};
3913
3914/* l4_cfg -> emif_fw */
3915static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = {
3916 .master = &omap44xx_l4_cfg_hwmod,
3917 .slave = &omap44xx_emif_fw_hwmod,
3918 .clk = "l4_div_ck",
3919 .addr = omap44xx_emif_fw_addrs,
3920 .user = OCP_USER_MPU,
3921};
3922
3923/* iva -> l3_instr */
3924static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = {
3925 .master = &omap44xx_iva_hwmod,
3926 .slave = &omap44xx_l3_instr_hwmod,
3927 .clk = "l3_div_ck",
3928 .user = OCP_USER_MPU | OCP_USER_SDMA,
3929};
3930
3931/* l3_main_3 -> l3_instr */
3932static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = {
3933 .master = &omap44xx_l3_main_3_hwmod,
3934 .slave = &omap44xx_l3_instr_hwmod,
3935 .clk = "l3_div_ck",
3936 .user = OCP_USER_MPU | OCP_USER_SDMA,
3937};
3938
Benoît Cousson9a817bc2012-04-19 13:33:56 -06003939/* ocp_wp_noc -> l3_instr */
3940static struct omap_hwmod_ocp_if omap44xx_ocp_wp_noc__l3_instr = {
3941 .master = &omap44xx_ocp_wp_noc_hwmod,
3942 .slave = &omap44xx_l3_instr_hwmod,
3943 .clk = "l3_div_ck",
3944 .user = OCP_USER_MPU | OCP_USER_SDMA,
3945};
3946
Paul Walmsley844a3b62012-04-19 04:04:33 -06003947/* dsp -> l3_main_1 */
3948static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = {
3949 .master = &omap44xx_dsp_hwmod,
3950 .slave = &omap44xx_l3_main_1_hwmod,
3951 .clk = "l3_div_ck",
3952 .user = OCP_USER_MPU | OCP_USER_SDMA,
3953};
3954
3955/* dss -> l3_main_1 */
3956static struct omap_hwmod_ocp_if omap44xx_dss__l3_main_1 = {
3957 .master = &omap44xx_dss_hwmod,
3958 .slave = &omap44xx_l3_main_1_hwmod,
3959 .clk = "l3_div_ck",
3960 .user = OCP_USER_MPU | OCP_USER_SDMA,
3961};
3962
3963/* l3_main_2 -> l3_main_1 */
3964static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = {
3965 .master = &omap44xx_l3_main_2_hwmod,
3966 .slave = &omap44xx_l3_main_1_hwmod,
3967 .clk = "l3_div_ck",
3968 .user = OCP_USER_MPU | OCP_USER_SDMA,
3969};
3970
3971/* l4_cfg -> l3_main_1 */
3972static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = {
3973 .master = &omap44xx_l4_cfg_hwmod,
3974 .slave = &omap44xx_l3_main_1_hwmod,
3975 .clk = "l4_div_ck",
3976 .user = OCP_USER_MPU | OCP_USER_SDMA,
3977};
3978
3979/* mmc1 -> l3_main_1 */
3980static struct omap_hwmod_ocp_if omap44xx_mmc1__l3_main_1 = {
3981 .master = &omap44xx_mmc1_hwmod,
3982 .slave = &omap44xx_l3_main_1_hwmod,
3983 .clk = "l3_div_ck",
3984 .user = OCP_USER_MPU | OCP_USER_SDMA,
3985};
3986
3987/* mmc2 -> l3_main_1 */
3988static struct omap_hwmod_ocp_if omap44xx_mmc2__l3_main_1 = {
3989 .master = &omap44xx_mmc2_hwmod,
3990 .slave = &omap44xx_l3_main_1_hwmod,
3991 .clk = "l3_div_ck",
3992 .user = OCP_USER_MPU | OCP_USER_SDMA,
3993};
3994
3995static struct omap_hwmod_addr_space omap44xx_l3_main_1_addrs[] = {
3996 {
3997 .pa_start = 0x44000000,
3998 .pa_end = 0x44000fff,
3999 .flags = ADDR_TYPE_RT
4000 },
4001 { }
4002};
4003
4004/* mpu -> l3_main_1 */
4005static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = {
4006 .master = &omap44xx_mpu_hwmod,
4007 .slave = &omap44xx_l3_main_1_hwmod,
4008 .clk = "l3_div_ck",
4009 .addr = omap44xx_l3_main_1_addrs,
4010 .user = OCP_USER_MPU,
4011};
4012
Paul Walmsley42b9e382012-04-19 13:33:54 -06004013/* c2c_target_fw -> l3_main_2 */
4014static struct omap_hwmod_ocp_if omap44xx_c2c_target_fw__l3_main_2 = {
4015 .master = &omap44xx_c2c_target_fw_hwmod,
4016 .slave = &omap44xx_l3_main_2_hwmod,
4017 .clk = "l3_div_ck",
4018 .user = OCP_USER_MPU | OCP_USER_SDMA,
4019};
4020
Benoît Cousson96566042012-04-19 13:33:59 -06004021/* debugss -> l3_main_2 */
4022static struct omap_hwmod_ocp_if omap44xx_debugss__l3_main_2 = {
4023 .master = &omap44xx_debugss_hwmod,
4024 .slave = &omap44xx_l3_main_2_hwmod,
4025 .clk = "dbgclk_mux_ck",
4026 .user = OCP_USER_MPU | OCP_USER_SDMA,
4027};
4028
Paul Walmsley844a3b62012-04-19 04:04:33 -06004029/* dma_system -> l3_main_2 */
4030static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = {
4031 .master = &omap44xx_dma_system_hwmod,
4032 .slave = &omap44xx_l3_main_2_hwmod,
4033 .clk = "l3_div_ck",
4034 .user = OCP_USER_MPU | OCP_USER_SDMA,
4035};
4036
Ming Leib050f682012-04-19 13:33:50 -06004037/* fdif -> l3_main_2 */
4038static struct omap_hwmod_ocp_if omap44xx_fdif__l3_main_2 = {
4039 .master = &omap44xx_fdif_hwmod,
4040 .slave = &omap44xx_l3_main_2_hwmod,
4041 .clk = "l3_div_ck",
4042 .user = OCP_USER_MPU | OCP_USER_SDMA,
4043};
4044
Paul Walmsley9def3902012-04-19 13:33:53 -06004045/* gpu -> l3_main_2 */
4046static struct omap_hwmod_ocp_if omap44xx_gpu__l3_main_2 = {
4047 .master = &omap44xx_gpu_hwmod,
4048 .slave = &omap44xx_l3_main_2_hwmod,
4049 .clk = "l3_div_ck",
4050 .user = OCP_USER_MPU | OCP_USER_SDMA,
4051};
4052
Paul Walmsley844a3b62012-04-19 04:04:33 -06004053/* hsi -> l3_main_2 */
4054static struct omap_hwmod_ocp_if omap44xx_hsi__l3_main_2 = {
4055 .master = &omap44xx_hsi_hwmod,
4056 .slave = &omap44xx_l3_main_2_hwmod,
4057 .clk = "l3_div_ck",
4058 .user = OCP_USER_MPU | OCP_USER_SDMA,
4059};
4060
4061/* ipu -> l3_main_2 */
4062static struct omap_hwmod_ocp_if omap44xx_ipu__l3_main_2 = {
4063 .master = &omap44xx_ipu_hwmod,
4064 .slave = &omap44xx_l3_main_2_hwmod,
4065 .clk = "l3_div_ck",
4066 .user = OCP_USER_MPU | OCP_USER_SDMA,
4067};
4068
4069/* iss -> l3_main_2 */
4070static struct omap_hwmod_ocp_if omap44xx_iss__l3_main_2 = {
4071 .master = &omap44xx_iss_hwmod,
4072 .slave = &omap44xx_l3_main_2_hwmod,
4073 .clk = "l3_div_ck",
4074 .user = OCP_USER_MPU | OCP_USER_SDMA,
4075};
4076
4077/* iva -> l3_main_2 */
4078static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = {
4079 .master = &omap44xx_iva_hwmod,
4080 .slave = &omap44xx_l3_main_2_hwmod,
4081 .clk = "l3_div_ck",
4082 .user = OCP_USER_MPU | OCP_USER_SDMA,
4083};
4084
4085static struct omap_hwmod_addr_space omap44xx_l3_main_2_addrs[] = {
4086 {
4087 .pa_start = 0x44800000,
4088 .pa_end = 0x44801fff,
4089 .flags = ADDR_TYPE_RT
4090 },
4091 { }
4092};
4093
4094/* l3_main_1 -> l3_main_2 */
4095static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = {
4096 .master = &omap44xx_l3_main_1_hwmod,
4097 .slave = &omap44xx_l3_main_2_hwmod,
4098 .clk = "l3_div_ck",
4099 .addr = omap44xx_l3_main_2_addrs,
4100 .user = OCP_USER_MPU,
4101};
4102
4103/* l4_cfg -> l3_main_2 */
4104static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = {
4105 .master = &omap44xx_l4_cfg_hwmod,
4106 .slave = &omap44xx_l3_main_2_hwmod,
4107 .clk = "l4_div_ck",
4108 .user = OCP_USER_MPU | OCP_USER_SDMA,
4109};
4110
Benoît Cousson0c668872012-04-19 13:33:55 -06004111/* usb_host_fs -> l3_main_2 */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004112static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = {
Benoît Cousson0c668872012-04-19 13:33:55 -06004113 .master = &omap44xx_usb_host_fs_hwmod,
4114 .slave = &omap44xx_l3_main_2_hwmod,
4115 .clk = "l3_div_ck",
4116 .user = OCP_USER_MPU | OCP_USER_SDMA,
4117};
4118
Paul Walmsley844a3b62012-04-19 04:04:33 -06004119/* usb_host_hs -> l3_main_2 */
4120static struct omap_hwmod_ocp_if omap44xx_usb_host_hs__l3_main_2 = {
4121 .master = &omap44xx_usb_host_hs_hwmod,
4122 .slave = &omap44xx_l3_main_2_hwmod,
4123 .clk = "l3_div_ck",
4124 .user = OCP_USER_MPU | OCP_USER_SDMA,
4125};
4126
4127/* usb_otg_hs -> l3_main_2 */
4128static struct omap_hwmod_ocp_if omap44xx_usb_otg_hs__l3_main_2 = {
4129 .master = &omap44xx_usb_otg_hs_hwmod,
4130 .slave = &omap44xx_l3_main_2_hwmod,
4131 .clk = "l3_div_ck",
4132 .user = OCP_USER_MPU | OCP_USER_SDMA,
4133};
4134
4135static struct omap_hwmod_addr_space omap44xx_l3_main_3_addrs[] = {
4136 {
4137 .pa_start = 0x45000000,
4138 .pa_end = 0x45000fff,
4139 .flags = ADDR_TYPE_RT
4140 },
4141 { }
4142};
4143
4144/* l3_main_1 -> l3_main_3 */
4145static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = {
4146 .master = &omap44xx_l3_main_1_hwmod,
4147 .slave = &omap44xx_l3_main_3_hwmod,
4148 .clk = "l3_div_ck",
4149 .addr = omap44xx_l3_main_3_addrs,
4150 .user = OCP_USER_MPU,
4151};
4152
4153/* l3_main_2 -> l3_main_3 */
4154static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = {
4155 .master = &omap44xx_l3_main_2_hwmod,
4156 .slave = &omap44xx_l3_main_3_hwmod,
4157 .clk = "l3_div_ck",
4158 .user = OCP_USER_MPU | OCP_USER_SDMA,
4159};
4160
4161/* l4_cfg -> l3_main_3 */
4162static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = {
4163 .master = &omap44xx_l4_cfg_hwmod,
4164 .slave = &omap44xx_l3_main_3_hwmod,
4165 .clk = "l4_div_ck",
4166 .user = OCP_USER_MPU | OCP_USER_SDMA,
4167};
4168
4169/* aess -> l4_abe */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004170static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06004171 .master = &omap44xx_aess_hwmod,
4172 .slave = &omap44xx_l4_abe_hwmod,
4173 .clk = "ocp_abe_iclk",
4174 .user = OCP_USER_MPU | OCP_USER_SDMA,
4175};
4176
4177/* dsp -> l4_abe */
4178static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = {
4179 .master = &omap44xx_dsp_hwmod,
4180 .slave = &omap44xx_l4_abe_hwmod,
4181 .clk = "ocp_abe_iclk",
4182 .user = OCP_USER_MPU | OCP_USER_SDMA,
4183};
4184
4185/* l3_main_1 -> l4_abe */
4186static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = {
4187 .master = &omap44xx_l3_main_1_hwmod,
4188 .slave = &omap44xx_l4_abe_hwmod,
4189 .clk = "l3_div_ck",
4190 .user = OCP_USER_MPU | OCP_USER_SDMA,
4191};
4192
4193/* mpu -> l4_abe */
4194static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = {
4195 .master = &omap44xx_mpu_hwmod,
4196 .slave = &omap44xx_l4_abe_hwmod,
4197 .clk = "ocp_abe_iclk",
4198 .user = OCP_USER_MPU | OCP_USER_SDMA,
4199};
4200
4201/* l3_main_1 -> l4_cfg */
4202static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = {
4203 .master = &omap44xx_l3_main_1_hwmod,
4204 .slave = &omap44xx_l4_cfg_hwmod,
4205 .clk = "l3_div_ck",
4206 .user = OCP_USER_MPU | OCP_USER_SDMA,
4207};
4208
4209/* l3_main_2 -> l4_per */
4210static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = {
4211 .master = &omap44xx_l3_main_2_hwmod,
4212 .slave = &omap44xx_l4_per_hwmod,
4213 .clk = "l3_div_ck",
4214 .user = OCP_USER_MPU | OCP_USER_SDMA,
4215};
4216
4217/* l4_cfg -> l4_wkup */
4218static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = {
4219 .master = &omap44xx_l4_cfg_hwmod,
4220 .slave = &omap44xx_l4_wkup_hwmod,
4221 .clk = "l4_div_ck",
4222 .user = OCP_USER_MPU | OCP_USER_SDMA,
4223};
4224
4225/* mpu -> mpu_private */
4226static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = {
4227 .master = &omap44xx_mpu_hwmod,
4228 .slave = &omap44xx_mpu_private_hwmod,
4229 .clk = "l3_div_ck",
4230 .user = OCP_USER_MPU | OCP_USER_SDMA,
4231};
4232
Benoît Cousson9a817bc2012-04-19 13:33:56 -06004233static struct omap_hwmod_addr_space omap44xx_ocp_wp_noc_addrs[] = {
4234 {
4235 .pa_start = 0x4a102000,
4236 .pa_end = 0x4a10207f,
4237 .flags = ADDR_TYPE_RT
4238 },
4239 { }
4240};
4241
4242/* l4_cfg -> ocp_wp_noc */
4243static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp_wp_noc = {
4244 .master = &omap44xx_l4_cfg_hwmod,
4245 .slave = &omap44xx_ocp_wp_noc_hwmod,
4246 .clk = "l4_div_ck",
4247 .addr = omap44xx_ocp_wp_noc_addrs,
4248 .user = OCP_USER_MPU | OCP_USER_SDMA,
4249};
4250
Paul Walmsley844a3b62012-04-19 04:04:33 -06004251static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = {
4252 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07004253 .name = "dmem",
4254 .pa_start = 0x40180000,
4255 .pa_end = 0x4018ffff
4256 },
4257 {
4258 .name = "cmem",
4259 .pa_start = 0x401a0000,
4260 .pa_end = 0x401a1fff
4261 },
4262 {
4263 .name = "smem",
4264 .pa_start = 0x401c0000,
4265 .pa_end = 0x401c5fff
4266 },
4267 {
4268 .name = "pmem",
4269 .pa_start = 0x401e0000,
4270 .pa_end = 0x401e1fff
4271 },
4272 {
4273 .name = "mpu",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004274 .pa_start = 0x401f1000,
4275 .pa_end = 0x401f13ff,
4276 .flags = ADDR_TYPE_RT
4277 },
4278 { }
4279};
4280
4281/* l4_abe -> aess */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004282static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06004283 .master = &omap44xx_l4_abe_hwmod,
4284 .slave = &omap44xx_aess_hwmod,
4285 .clk = "ocp_abe_iclk",
4286 .addr = omap44xx_aess_addrs,
4287 .user = OCP_USER_MPU,
4288};
4289
4290static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = {
4291 {
Sebastien Guiriec9f0c5992013-02-10 11:22:24 -07004292 .name = "dmem_dma",
4293 .pa_start = 0x49080000,
4294 .pa_end = 0x4908ffff
4295 },
4296 {
4297 .name = "cmem_dma",
4298 .pa_start = 0x490a0000,
4299 .pa_end = 0x490a1fff
4300 },
4301 {
4302 .name = "smem_dma",
4303 .pa_start = 0x490c0000,
4304 .pa_end = 0x490c5fff
4305 },
4306 {
4307 .name = "pmem_dma",
4308 .pa_start = 0x490e0000,
4309 .pa_end = 0x490e1fff
4310 },
4311 {
4312 .name = "dma",
Paul Walmsley844a3b62012-04-19 04:04:33 -06004313 .pa_start = 0x490f1000,
4314 .pa_end = 0x490f13ff,
4315 .flags = ADDR_TYPE_RT
4316 },
4317 { }
4318};
4319
4320/* l4_abe -> aess (dma) */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06004321static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = {
Paul Walmsley844a3b62012-04-19 04:04:33 -06004322 .master = &omap44xx_l4_abe_hwmod,
4323 .slave = &omap44xx_aess_hwmod,
4324 .clk = "ocp_abe_iclk",
4325 .addr = omap44xx_aess_dma_addrs,
4326 .user = OCP_USER_SDMA,
4327};
4328
Paul Walmsley42b9e382012-04-19 13:33:54 -06004329/* l3_main_2 -> c2c */
4330static struct omap_hwmod_ocp_if omap44xx_l3_main_2__c2c = {
4331 .master = &omap44xx_l3_main_2_hwmod,
4332 .slave = &omap44xx_c2c_hwmod,
4333 .clk = "l3_div_ck",
4334 .user = OCP_USER_MPU | OCP_USER_SDMA,
4335};
4336
Paul Walmsley844a3b62012-04-19 04:04:33 -06004337static struct omap_hwmod_addr_space omap44xx_counter_32k_addrs[] = {
4338 {
4339 .pa_start = 0x4a304000,
4340 .pa_end = 0x4a30401f,
4341 .flags = ADDR_TYPE_RT
4342 },
4343 { }
4344};
4345
4346/* l4_wkup -> counter_32k */
4347static struct omap_hwmod_ocp_if omap44xx_l4_wkup__counter_32k = {
4348 .master = &omap44xx_l4_wkup_hwmod,
4349 .slave = &omap44xx_counter_32k_hwmod,
4350 .clk = "l4_wkup_clk_mux_ck",
4351 .addr = omap44xx_counter_32k_addrs,
4352 .user = OCP_USER_MPU | OCP_USER_SDMA,
4353};
4354
Paul Walmsleya0b5d812012-04-19 13:33:57 -06004355static struct omap_hwmod_addr_space omap44xx_ctrl_module_core_addrs[] = {
4356 {
4357 .pa_start = 0x4a002000,
4358 .pa_end = 0x4a0027ff,
4359 .flags = ADDR_TYPE_RT
4360 },
4361 { }
4362};
4363
4364/* l4_cfg -> ctrl_module_core */
4365static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_core = {
4366 .master = &omap44xx_l4_cfg_hwmod,
4367 .slave = &omap44xx_ctrl_module_core_hwmod,
4368 .clk = "l4_div_ck",
4369 .addr = omap44xx_ctrl_module_core_addrs,
4370 .user = OCP_USER_MPU | OCP_USER_SDMA,
4371};
4372
4373static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_core_addrs[] = {
4374 {
4375 .pa_start = 0x4a100000,
4376 .pa_end = 0x4a1007ff,
4377 .flags = ADDR_TYPE_RT
4378 },
4379 { }
4380};
4381
4382/* l4_cfg -> ctrl_module_pad_core */
4383static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ctrl_module_pad_core = {
4384 .master = &omap44xx_l4_cfg_hwmod,
4385 .slave = &omap44xx_ctrl_module_pad_core_hwmod,
4386 .clk = "l4_div_ck",
4387 .addr = omap44xx_ctrl_module_pad_core_addrs,
4388 .user = OCP_USER_MPU | OCP_USER_SDMA,
4389};
4390
4391static struct omap_hwmod_addr_space omap44xx_ctrl_module_wkup_addrs[] = {
4392 {
4393 .pa_start = 0x4a30c000,
4394 .pa_end = 0x4a30c7ff,
4395 .flags = ADDR_TYPE_RT
4396 },
4397 { }
4398};
4399
4400/* l4_wkup -> ctrl_module_wkup */
4401static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_wkup = {
4402 .master = &omap44xx_l4_wkup_hwmod,
4403 .slave = &omap44xx_ctrl_module_wkup_hwmod,
4404 .clk = "l4_wkup_clk_mux_ck",
4405 .addr = omap44xx_ctrl_module_wkup_addrs,
4406 .user = OCP_USER_MPU | OCP_USER_SDMA,
4407};
4408
4409static struct omap_hwmod_addr_space omap44xx_ctrl_module_pad_wkup_addrs[] = {
4410 {
4411 .pa_start = 0x4a31e000,
4412 .pa_end = 0x4a31e7ff,
4413 .flags = ADDR_TYPE_RT
4414 },
4415 { }
4416};
4417
4418/* l4_wkup -> ctrl_module_pad_wkup */
4419static struct omap_hwmod_ocp_if omap44xx_l4_wkup__ctrl_module_pad_wkup = {
4420 .master = &omap44xx_l4_wkup_hwmod,
4421 .slave = &omap44xx_ctrl_module_pad_wkup_hwmod,
4422 .clk = "l4_wkup_clk_mux_ck",
4423 .addr = omap44xx_ctrl_module_pad_wkup_addrs,
4424 .user = OCP_USER_MPU | OCP_USER_SDMA,
4425};
4426
Benoît Cousson96566042012-04-19 13:33:59 -06004427static struct omap_hwmod_addr_space omap44xx_debugss_addrs[] = {
4428 {
4429 .pa_start = 0x54160000,
4430 .pa_end = 0x54167fff,
4431 .flags = ADDR_TYPE_RT
4432 },
4433 { }
4434};
4435
4436/* l3_instr -> debugss */
4437static struct omap_hwmod_ocp_if omap44xx_l3_instr__debugss = {
4438 .master = &omap44xx_l3_instr_hwmod,
4439 .slave = &omap44xx_debugss_hwmod,
4440 .clk = "l3_div_ck",
4441 .addr = omap44xx_debugss_addrs,
4442 .user = OCP_USER_MPU | OCP_USER_SDMA,
4443};
4444
Paul Walmsley844a3b62012-04-19 04:04:33 -06004445static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = {
4446 {
4447 .pa_start = 0x4a056000,
4448 .pa_end = 0x4a056fff,
4449 .flags = ADDR_TYPE_RT
4450 },
4451 { }
4452};
4453
4454/* l4_cfg -> dma_system */
4455static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = {
4456 .master = &omap44xx_l4_cfg_hwmod,
4457 .slave = &omap44xx_dma_system_hwmod,
4458 .clk = "l4_div_ck",
4459 .addr = omap44xx_dma_system_addrs,
4460 .user = OCP_USER_MPU | OCP_USER_SDMA,
4461};
4462
4463static struct omap_hwmod_addr_space omap44xx_dmic_addrs[] = {
4464 {
4465 .name = "mpu",
4466 .pa_start = 0x4012e000,
4467 .pa_end = 0x4012e07f,
4468 .flags = ADDR_TYPE_RT
4469 },
4470 { }
4471};
4472
4473/* l4_abe -> dmic */
4474static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic = {
4475 .master = &omap44xx_l4_abe_hwmod,
4476 .slave = &omap44xx_dmic_hwmod,
4477 .clk = "ocp_abe_iclk",
4478 .addr = omap44xx_dmic_addrs,
4479 .user = OCP_USER_MPU,
4480};
4481
4482static struct omap_hwmod_addr_space omap44xx_dmic_dma_addrs[] = {
4483 {
4484 .name = "dma",
4485 .pa_start = 0x4902e000,
4486 .pa_end = 0x4902e07f,
4487 .flags = ADDR_TYPE_RT
4488 },
4489 { }
4490};
4491
4492/* l4_abe -> dmic (dma) */
4493static struct omap_hwmod_ocp_if omap44xx_l4_abe__dmic_dma = {
4494 .master = &omap44xx_l4_abe_hwmod,
4495 .slave = &omap44xx_dmic_hwmod,
4496 .clk = "ocp_abe_iclk",
4497 .addr = omap44xx_dmic_dma_addrs,
4498 .user = OCP_USER_SDMA,
4499};
4500
4501/* dsp -> iva */
4502static struct omap_hwmod_ocp_if omap44xx_dsp__iva = {
4503 .master = &omap44xx_dsp_hwmod,
4504 .slave = &omap44xx_iva_hwmod,
4505 .clk = "dpll_iva_m5x2_ck",
4506 .user = OCP_USER_DSP,
4507};
4508
Paul Walmsley42b9e382012-04-19 13:33:54 -06004509/* dsp -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06004510static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06004511 .master = &omap44xx_dsp_hwmod,
4512 .slave = &omap44xx_sl2if_hwmod,
4513 .clk = "dpll_iva_m5x2_ck",
4514 .user = OCP_USER_DSP,
4515};
4516
Paul Walmsley844a3b62012-04-19 04:04:33 -06004517/* l4_cfg -> dsp */
4518static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = {
4519 .master = &omap44xx_l4_cfg_hwmod,
4520 .slave = &omap44xx_dsp_hwmod,
4521 .clk = "l4_div_ck",
4522 .user = OCP_USER_MPU | OCP_USER_SDMA,
4523};
4524
4525static struct omap_hwmod_addr_space omap44xx_dss_dma_addrs[] = {
4526 {
4527 .pa_start = 0x58000000,
4528 .pa_end = 0x5800007f,
4529 .flags = ADDR_TYPE_RT
4530 },
4531 { }
4532};
4533
4534/* l3_main_2 -> dss */
4535static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss = {
4536 .master = &omap44xx_l3_main_2_hwmod,
4537 .slave = &omap44xx_dss_hwmod,
4538 .clk = "dss_fck",
4539 .addr = omap44xx_dss_dma_addrs,
4540 .user = OCP_USER_SDMA,
4541};
4542
4543static struct omap_hwmod_addr_space omap44xx_dss_addrs[] = {
4544 {
4545 .pa_start = 0x48040000,
4546 .pa_end = 0x4804007f,
4547 .flags = ADDR_TYPE_RT
4548 },
4549 { }
4550};
4551
4552/* l4_per -> dss */
4553static struct omap_hwmod_ocp_if omap44xx_l4_per__dss = {
4554 .master = &omap44xx_l4_per_hwmod,
4555 .slave = &omap44xx_dss_hwmod,
4556 .clk = "l4_div_ck",
4557 .addr = omap44xx_dss_addrs,
4558 .user = OCP_USER_MPU,
4559};
4560
4561static struct omap_hwmod_addr_space omap44xx_dss_dispc_dma_addrs[] = {
4562 {
4563 .pa_start = 0x58001000,
4564 .pa_end = 0x58001fff,
4565 .flags = ADDR_TYPE_RT
4566 },
4567 { }
4568};
4569
4570/* l3_main_2 -> dss_dispc */
4571static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dispc = {
4572 .master = &omap44xx_l3_main_2_hwmod,
4573 .slave = &omap44xx_dss_dispc_hwmod,
4574 .clk = "dss_fck",
4575 .addr = omap44xx_dss_dispc_dma_addrs,
4576 .user = OCP_USER_SDMA,
4577};
4578
4579static struct omap_hwmod_addr_space omap44xx_dss_dispc_addrs[] = {
4580 {
4581 .pa_start = 0x48041000,
4582 .pa_end = 0x48041fff,
4583 .flags = ADDR_TYPE_RT
4584 },
4585 { }
4586};
4587
4588/* l4_per -> dss_dispc */
4589static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dispc = {
4590 .master = &omap44xx_l4_per_hwmod,
4591 .slave = &omap44xx_dss_dispc_hwmod,
4592 .clk = "l4_div_ck",
4593 .addr = omap44xx_dss_dispc_addrs,
4594 .user = OCP_USER_MPU,
4595};
4596
4597static struct omap_hwmod_addr_space omap44xx_dss_dsi1_dma_addrs[] = {
4598 {
4599 .pa_start = 0x58004000,
4600 .pa_end = 0x580041ff,
4601 .flags = ADDR_TYPE_RT
4602 },
4603 { }
4604};
4605
4606/* l3_main_2 -> dss_dsi1 */
4607static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi1 = {
4608 .master = &omap44xx_l3_main_2_hwmod,
4609 .slave = &omap44xx_dss_dsi1_hwmod,
4610 .clk = "dss_fck",
4611 .addr = omap44xx_dss_dsi1_dma_addrs,
4612 .user = OCP_USER_SDMA,
4613};
4614
4615static struct omap_hwmod_addr_space omap44xx_dss_dsi1_addrs[] = {
4616 {
4617 .pa_start = 0x48044000,
4618 .pa_end = 0x480441ff,
4619 .flags = ADDR_TYPE_RT
4620 },
4621 { }
4622};
4623
4624/* l4_per -> dss_dsi1 */
4625static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi1 = {
4626 .master = &omap44xx_l4_per_hwmod,
4627 .slave = &omap44xx_dss_dsi1_hwmod,
4628 .clk = "l4_div_ck",
4629 .addr = omap44xx_dss_dsi1_addrs,
4630 .user = OCP_USER_MPU,
4631};
4632
4633static struct omap_hwmod_addr_space omap44xx_dss_dsi2_dma_addrs[] = {
4634 {
4635 .pa_start = 0x58005000,
4636 .pa_end = 0x580051ff,
4637 .flags = ADDR_TYPE_RT
4638 },
4639 { }
4640};
4641
4642/* l3_main_2 -> dss_dsi2 */
4643static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_dsi2 = {
4644 .master = &omap44xx_l3_main_2_hwmod,
4645 .slave = &omap44xx_dss_dsi2_hwmod,
4646 .clk = "dss_fck",
4647 .addr = omap44xx_dss_dsi2_dma_addrs,
4648 .user = OCP_USER_SDMA,
4649};
4650
4651static struct omap_hwmod_addr_space omap44xx_dss_dsi2_addrs[] = {
4652 {
4653 .pa_start = 0x48045000,
4654 .pa_end = 0x480451ff,
4655 .flags = ADDR_TYPE_RT
4656 },
4657 { }
4658};
4659
4660/* l4_per -> dss_dsi2 */
4661static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_dsi2 = {
4662 .master = &omap44xx_l4_per_hwmod,
4663 .slave = &omap44xx_dss_dsi2_hwmod,
4664 .clk = "l4_div_ck",
4665 .addr = omap44xx_dss_dsi2_addrs,
4666 .user = OCP_USER_MPU,
4667};
4668
4669static struct omap_hwmod_addr_space omap44xx_dss_hdmi_dma_addrs[] = {
4670 {
4671 .pa_start = 0x58006000,
4672 .pa_end = 0x58006fff,
4673 .flags = ADDR_TYPE_RT
4674 },
4675 { }
4676};
4677
4678/* l3_main_2 -> dss_hdmi */
4679static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_hdmi = {
4680 .master = &omap44xx_l3_main_2_hwmod,
4681 .slave = &omap44xx_dss_hdmi_hwmod,
4682 .clk = "dss_fck",
4683 .addr = omap44xx_dss_hdmi_dma_addrs,
4684 .user = OCP_USER_SDMA,
4685};
4686
4687static struct omap_hwmod_addr_space omap44xx_dss_hdmi_addrs[] = {
4688 {
4689 .pa_start = 0x48046000,
4690 .pa_end = 0x48046fff,
4691 .flags = ADDR_TYPE_RT
4692 },
4693 { }
4694};
4695
4696/* l4_per -> dss_hdmi */
4697static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_hdmi = {
4698 .master = &omap44xx_l4_per_hwmod,
4699 .slave = &omap44xx_dss_hdmi_hwmod,
4700 .clk = "l4_div_ck",
4701 .addr = omap44xx_dss_hdmi_addrs,
4702 .user = OCP_USER_MPU,
4703};
4704
4705static struct omap_hwmod_addr_space omap44xx_dss_rfbi_dma_addrs[] = {
4706 {
4707 .pa_start = 0x58002000,
4708 .pa_end = 0x580020ff,
4709 .flags = ADDR_TYPE_RT
4710 },
4711 { }
4712};
4713
4714/* l3_main_2 -> dss_rfbi */
4715static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_rfbi = {
4716 .master = &omap44xx_l3_main_2_hwmod,
4717 .slave = &omap44xx_dss_rfbi_hwmod,
4718 .clk = "dss_fck",
4719 .addr = omap44xx_dss_rfbi_dma_addrs,
4720 .user = OCP_USER_SDMA,
4721};
4722
4723static struct omap_hwmod_addr_space omap44xx_dss_rfbi_addrs[] = {
4724 {
4725 .pa_start = 0x48042000,
4726 .pa_end = 0x480420ff,
4727 .flags = ADDR_TYPE_RT
4728 },
4729 { }
4730};
4731
4732/* l4_per -> dss_rfbi */
4733static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_rfbi = {
4734 .master = &omap44xx_l4_per_hwmod,
4735 .slave = &omap44xx_dss_rfbi_hwmod,
4736 .clk = "l4_div_ck",
4737 .addr = omap44xx_dss_rfbi_addrs,
4738 .user = OCP_USER_MPU,
4739};
4740
4741static struct omap_hwmod_addr_space omap44xx_dss_venc_dma_addrs[] = {
4742 {
4743 .pa_start = 0x58003000,
4744 .pa_end = 0x580030ff,
4745 .flags = ADDR_TYPE_RT
4746 },
4747 { }
4748};
4749
4750/* l3_main_2 -> dss_venc */
4751static struct omap_hwmod_ocp_if omap44xx_l3_main_2__dss_venc = {
4752 .master = &omap44xx_l3_main_2_hwmod,
4753 .slave = &omap44xx_dss_venc_hwmod,
4754 .clk = "dss_fck",
4755 .addr = omap44xx_dss_venc_dma_addrs,
4756 .user = OCP_USER_SDMA,
4757};
4758
4759static struct omap_hwmod_addr_space omap44xx_dss_venc_addrs[] = {
4760 {
4761 .pa_start = 0x48043000,
4762 .pa_end = 0x480430ff,
4763 .flags = ADDR_TYPE_RT
4764 },
4765 { }
4766};
4767
4768/* l4_per -> dss_venc */
4769static struct omap_hwmod_ocp_if omap44xx_l4_per__dss_venc = {
4770 .master = &omap44xx_l4_per_hwmod,
4771 .slave = &omap44xx_dss_venc_hwmod,
4772 .clk = "l4_div_ck",
4773 .addr = omap44xx_dss_venc_addrs,
4774 .user = OCP_USER_MPU,
4775};
4776
Paul Walmsley42b9e382012-04-19 13:33:54 -06004777static struct omap_hwmod_addr_space omap44xx_elm_addrs[] = {
4778 {
4779 .pa_start = 0x48078000,
4780 .pa_end = 0x48078fff,
4781 .flags = ADDR_TYPE_RT
4782 },
4783 { }
4784};
4785
4786/* l4_per -> elm */
4787static struct omap_hwmod_ocp_if omap44xx_l4_per__elm = {
4788 .master = &omap44xx_l4_per_hwmod,
4789 .slave = &omap44xx_elm_hwmod,
4790 .clk = "l4_div_ck",
4791 .addr = omap44xx_elm_addrs,
4792 .user = OCP_USER_MPU | OCP_USER_SDMA,
4793};
4794
Paul Walmsleybf30f952012-04-19 13:33:52 -06004795static struct omap_hwmod_addr_space omap44xx_emif1_addrs[] = {
4796 {
4797 .pa_start = 0x4c000000,
4798 .pa_end = 0x4c0000ff,
4799 .flags = ADDR_TYPE_RT
4800 },
4801 { }
4802};
4803
4804/* emif_fw -> emif1 */
4805static struct omap_hwmod_ocp_if omap44xx_emif_fw__emif1 = {
4806 .master = &omap44xx_emif_fw_hwmod,
4807 .slave = &omap44xx_emif1_hwmod,
4808 .clk = "l3_div_ck",
4809 .addr = omap44xx_emif1_addrs,
4810 .user = OCP_USER_MPU | OCP_USER_SDMA,
4811};
4812
4813static struct omap_hwmod_addr_space omap44xx_emif2_addrs[] = {
4814 {
4815 .pa_start = 0x4d000000,
4816 .pa_end = 0x4d0000ff,
4817 .flags = ADDR_TYPE_RT
4818 },
4819 { }
4820};
4821
4822/* emif_fw -> emif2 */
4823static struct omap_hwmod_ocp_if omap44xx_emif_fw__emif2 = {
4824 .master = &omap44xx_emif_fw_hwmod,
4825 .slave = &omap44xx_emif2_hwmod,
4826 .clk = "l3_div_ck",
4827 .addr = omap44xx_emif2_addrs,
4828 .user = OCP_USER_MPU | OCP_USER_SDMA,
4829};
4830
Ming Leib050f682012-04-19 13:33:50 -06004831static struct omap_hwmod_addr_space omap44xx_fdif_addrs[] = {
4832 {
4833 .pa_start = 0x4a10a000,
4834 .pa_end = 0x4a10a1ff,
4835 .flags = ADDR_TYPE_RT
4836 },
4837 { }
4838};
4839
4840/* l4_cfg -> fdif */
4841static struct omap_hwmod_ocp_if omap44xx_l4_cfg__fdif = {
4842 .master = &omap44xx_l4_cfg_hwmod,
4843 .slave = &omap44xx_fdif_hwmod,
4844 .clk = "l4_div_ck",
4845 .addr = omap44xx_fdif_addrs,
4846 .user = OCP_USER_MPU | OCP_USER_SDMA,
4847};
4848
Paul Walmsley844a3b62012-04-19 04:04:33 -06004849static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = {
4850 {
4851 .pa_start = 0x4a310000,
4852 .pa_end = 0x4a3101ff,
4853 .flags = ADDR_TYPE_RT
4854 },
4855 { }
4856};
4857
4858/* l4_wkup -> gpio1 */
4859static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = {
4860 .master = &omap44xx_l4_wkup_hwmod,
4861 .slave = &omap44xx_gpio1_hwmod,
4862 .clk = "l4_wkup_clk_mux_ck",
4863 .addr = omap44xx_gpio1_addrs,
4864 .user = OCP_USER_MPU | OCP_USER_SDMA,
4865};
4866
4867static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = {
4868 {
4869 .pa_start = 0x48055000,
4870 .pa_end = 0x480551ff,
4871 .flags = ADDR_TYPE_RT
4872 },
4873 { }
4874};
4875
4876/* l4_per -> gpio2 */
4877static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = {
4878 .master = &omap44xx_l4_per_hwmod,
4879 .slave = &omap44xx_gpio2_hwmod,
4880 .clk = "l4_div_ck",
4881 .addr = omap44xx_gpio2_addrs,
4882 .user = OCP_USER_MPU | OCP_USER_SDMA,
4883};
4884
4885static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = {
4886 {
4887 .pa_start = 0x48057000,
4888 .pa_end = 0x480571ff,
4889 .flags = ADDR_TYPE_RT
4890 },
4891 { }
4892};
4893
4894/* l4_per -> gpio3 */
4895static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = {
4896 .master = &omap44xx_l4_per_hwmod,
4897 .slave = &omap44xx_gpio3_hwmod,
4898 .clk = "l4_div_ck",
4899 .addr = omap44xx_gpio3_addrs,
4900 .user = OCP_USER_MPU | OCP_USER_SDMA,
4901};
4902
4903static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = {
4904 {
4905 .pa_start = 0x48059000,
4906 .pa_end = 0x480591ff,
4907 .flags = ADDR_TYPE_RT
4908 },
4909 { }
4910};
4911
4912/* l4_per -> gpio4 */
4913static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = {
4914 .master = &omap44xx_l4_per_hwmod,
4915 .slave = &omap44xx_gpio4_hwmod,
4916 .clk = "l4_div_ck",
4917 .addr = omap44xx_gpio4_addrs,
4918 .user = OCP_USER_MPU | OCP_USER_SDMA,
4919};
4920
4921static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = {
4922 {
4923 .pa_start = 0x4805b000,
4924 .pa_end = 0x4805b1ff,
4925 .flags = ADDR_TYPE_RT
4926 },
4927 { }
4928};
4929
4930/* l4_per -> gpio5 */
4931static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = {
4932 .master = &omap44xx_l4_per_hwmod,
4933 .slave = &omap44xx_gpio5_hwmod,
4934 .clk = "l4_div_ck",
4935 .addr = omap44xx_gpio5_addrs,
4936 .user = OCP_USER_MPU | OCP_USER_SDMA,
4937};
4938
4939static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = {
4940 {
4941 .pa_start = 0x4805d000,
4942 .pa_end = 0x4805d1ff,
4943 .flags = ADDR_TYPE_RT
4944 },
4945 { }
4946};
4947
4948/* l4_per -> gpio6 */
4949static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = {
4950 .master = &omap44xx_l4_per_hwmod,
4951 .slave = &omap44xx_gpio6_hwmod,
4952 .clk = "l4_div_ck",
4953 .addr = omap44xx_gpio6_addrs,
4954 .user = OCP_USER_MPU | OCP_USER_SDMA,
4955};
4956
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06004957static struct omap_hwmod_addr_space omap44xx_gpmc_addrs[] = {
4958 {
4959 .pa_start = 0x50000000,
4960 .pa_end = 0x500003ff,
4961 .flags = ADDR_TYPE_RT
4962 },
4963 { }
4964};
4965
4966/* l3_main_2 -> gpmc */
4967static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpmc = {
4968 .master = &omap44xx_l3_main_2_hwmod,
4969 .slave = &omap44xx_gpmc_hwmod,
4970 .clk = "l3_div_ck",
4971 .addr = omap44xx_gpmc_addrs,
4972 .user = OCP_USER_MPU | OCP_USER_SDMA,
4973};
4974
Paul Walmsley9def3902012-04-19 13:33:53 -06004975static struct omap_hwmod_addr_space omap44xx_gpu_addrs[] = {
4976 {
4977 .pa_start = 0x56000000,
4978 .pa_end = 0x5600ffff,
4979 .flags = ADDR_TYPE_RT
4980 },
4981 { }
4982};
4983
4984/* l3_main_2 -> gpu */
4985static struct omap_hwmod_ocp_if omap44xx_l3_main_2__gpu = {
4986 .master = &omap44xx_l3_main_2_hwmod,
4987 .slave = &omap44xx_gpu_hwmod,
4988 .clk = "l3_div_ck",
4989 .addr = omap44xx_gpu_addrs,
4990 .user = OCP_USER_MPU | OCP_USER_SDMA,
4991};
4992
Paul Walmsleya091c082012-04-19 13:33:50 -06004993static struct omap_hwmod_addr_space omap44xx_hdq1w_addrs[] = {
4994 {
4995 .pa_start = 0x480b2000,
4996 .pa_end = 0x480b201f,
4997 .flags = ADDR_TYPE_RT
4998 },
4999 { }
5000};
5001
5002/* l4_per -> hdq1w */
5003static struct omap_hwmod_ocp_if omap44xx_l4_per__hdq1w = {
5004 .master = &omap44xx_l4_per_hwmod,
5005 .slave = &omap44xx_hdq1w_hwmod,
5006 .clk = "l4_div_ck",
5007 .addr = omap44xx_hdq1w_addrs,
5008 .user = OCP_USER_MPU | OCP_USER_SDMA,
5009};
5010
Paul Walmsley844a3b62012-04-19 04:04:33 -06005011static struct omap_hwmod_addr_space omap44xx_hsi_addrs[] = {
5012 {
5013 .pa_start = 0x4a058000,
5014 .pa_end = 0x4a05bfff,
5015 .flags = ADDR_TYPE_RT
5016 },
5017 { }
5018};
5019
5020/* l4_cfg -> hsi */
5021static struct omap_hwmod_ocp_if omap44xx_l4_cfg__hsi = {
5022 .master = &omap44xx_l4_cfg_hwmod,
5023 .slave = &omap44xx_hsi_hwmod,
5024 .clk = "l4_div_ck",
5025 .addr = omap44xx_hsi_addrs,
5026 .user = OCP_USER_MPU | OCP_USER_SDMA,
5027};
5028
5029static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = {
5030 {
5031 .pa_start = 0x48070000,
5032 .pa_end = 0x480700ff,
5033 .flags = ADDR_TYPE_RT
5034 },
5035 { }
5036};
5037
5038/* l4_per -> i2c1 */
5039static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = {
5040 .master = &omap44xx_l4_per_hwmod,
5041 .slave = &omap44xx_i2c1_hwmod,
5042 .clk = "l4_div_ck",
5043 .addr = omap44xx_i2c1_addrs,
5044 .user = OCP_USER_MPU | OCP_USER_SDMA,
5045};
5046
5047static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = {
5048 {
5049 .pa_start = 0x48072000,
5050 .pa_end = 0x480720ff,
5051 .flags = ADDR_TYPE_RT
5052 },
5053 { }
5054};
5055
5056/* l4_per -> i2c2 */
5057static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = {
5058 .master = &omap44xx_l4_per_hwmod,
5059 .slave = &omap44xx_i2c2_hwmod,
5060 .clk = "l4_div_ck",
5061 .addr = omap44xx_i2c2_addrs,
5062 .user = OCP_USER_MPU | OCP_USER_SDMA,
5063};
5064
5065static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = {
5066 {
5067 .pa_start = 0x48060000,
5068 .pa_end = 0x480600ff,
5069 .flags = ADDR_TYPE_RT
5070 },
5071 { }
5072};
5073
5074/* l4_per -> i2c3 */
5075static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = {
5076 .master = &omap44xx_l4_per_hwmod,
5077 .slave = &omap44xx_i2c3_hwmod,
5078 .clk = "l4_div_ck",
5079 .addr = omap44xx_i2c3_addrs,
5080 .user = OCP_USER_MPU | OCP_USER_SDMA,
5081};
5082
5083static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = {
5084 {
5085 .pa_start = 0x48350000,
5086 .pa_end = 0x483500ff,
5087 .flags = ADDR_TYPE_RT
5088 },
5089 { }
5090};
5091
5092/* l4_per -> i2c4 */
5093static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = {
5094 .master = &omap44xx_l4_per_hwmod,
5095 .slave = &omap44xx_i2c4_hwmod,
5096 .clk = "l4_div_ck",
5097 .addr = omap44xx_i2c4_addrs,
5098 .user = OCP_USER_MPU | OCP_USER_SDMA,
5099};
5100
5101/* l3_main_2 -> ipu */
5102static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ipu = {
5103 .master = &omap44xx_l3_main_2_hwmod,
5104 .slave = &omap44xx_ipu_hwmod,
5105 .clk = "l3_div_ck",
5106 .user = OCP_USER_MPU | OCP_USER_SDMA,
5107};
5108
5109static struct omap_hwmod_addr_space omap44xx_iss_addrs[] = {
5110 {
5111 .pa_start = 0x52000000,
5112 .pa_end = 0x520000ff,
5113 .flags = ADDR_TYPE_RT
5114 },
5115 { }
5116};
5117
5118/* l3_main_2 -> iss */
5119static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iss = {
5120 .master = &omap44xx_l3_main_2_hwmod,
5121 .slave = &omap44xx_iss_hwmod,
5122 .clk = "l3_div_ck",
5123 .addr = omap44xx_iss_addrs,
5124 .user = OCP_USER_MPU | OCP_USER_SDMA,
5125};
5126
Paul Walmsley42b9e382012-04-19 13:33:54 -06005127/* iva -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06005128static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06005129 .master = &omap44xx_iva_hwmod,
5130 .slave = &omap44xx_sl2if_hwmod,
5131 .clk = "dpll_iva_m5x2_ck",
5132 .user = OCP_USER_IVA,
5133};
5134
Paul Walmsley844a3b62012-04-19 04:04:33 -06005135static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = {
5136 {
5137 .pa_start = 0x5a000000,
5138 .pa_end = 0x5a07ffff,
5139 .flags = ADDR_TYPE_RT
5140 },
5141 { }
5142};
5143
5144/* l3_main_2 -> iva */
5145static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = {
5146 .master = &omap44xx_l3_main_2_hwmod,
5147 .slave = &omap44xx_iva_hwmod,
5148 .clk = "l3_div_ck",
5149 .addr = omap44xx_iva_addrs,
5150 .user = OCP_USER_MPU,
5151};
5152
5153static struct omap_hwmod_addr_space omap44xx_kbd_addrs[] = {
5154 {
5155 .pa_start = 0x4a31c000,
5156 .pa_end = 0x4a31c07f,
5157 .flags = ADDR_TYPE_RT
5158 },
5159 { }
5160};
5161
5162/* l4_wkup -> kbd */
5163static struct omap_hwmod_ocp_if omap44xx_l4_wkup__kbd = {
5164 .master = &omap44xx_l4_wkup_hwmod,
5165 .slave = &omap44xx_kbd_hwmod,
5166 .clk = "l4_wkup_clk_mux_ck",
5167 .addr = omap44xx_kbd_addrs,
5168 .user = OCP_USER_MPU | OCP_USER_SDMA,
5169};
5170
5171static struct omap_hwmod_addr_space omap44xx_mailbox_addrs[] = {
5172 {
5173 .pa_start = 0x4a0f4000,
5174 .pa_end = 0x4a0f41ff,
5175 .flags = ADDR_TYPE_RT
5176 },
5177 { }
5178};
5179
5180/* l4_cfg -> mailbox */
5181static struct omap_hwmod_ocp_if omap44xx_l4_cfg__mailbox = {
5182 .master = &omap44xx_l4_cfg_hwmod,
5183 .slave = &omap44xx_mailbox_hwmod,
5184 .clk = "l4_div_ck",
5185 .addr = omap44xx_mailbox_addrs,
5186 .user = OCP_USER_MPU | OCP_USER_SDMA,
5187};
5188
Benoît Cousson896d4e92012-04-19 13:33:54 -06005189static struct omap_hwmod_addr_space omap44xx_mcasp_addrs[] = {
5190 {
5191 .pa_start = 0x40128000,
5192 .pa_end = 0x401283ff,
5193 .flags = ADDR_TYPE_RT
5194 },
5195 { }
5196};
5197
5198/* l4_abe -> mcasp */
5199static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp = {
5200 .master = &omap44xx_l4_abe_hwmod,
5201 .slave = &omap44xx_mcasp_hwmod,
5202 .clk = "ocp_abe_iclk",
5203 .addr = omap44xx_mcasp_addrs,
5204 .user = OCP_USER_MPU,
5205};
5206
5207static struct omap_hwmod_addr_space omap44xx_mcasp_dma_addrs[] = {
5208 {
5209 .pa_start = 0x49028000,
5210 .pa_end = 0x490283ff,
5211 .flags = ADDR_TYPE_RT
5212 },
5213 { }
5214};
5215
5216/* l4_abe -> mcasp (dma) */
5217static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcasp_dma = {
5218 .master = &omap44xx_l4_abe_hwmod,
5219 .slave = &omap44xx_mcasp_hwmod,
5220 .clk = "ocp_abe_iclk",
5221 .addr = omap44xx_mcasp_dma_addrs,
5222 .user = OCP_USER_SDMA,
5223};
5224
Paul Walmsley844a3b62012-04-19 04:04:33 -06005225static struct omap_hwmod_addr_space omap44xx_mcbsp1_addrs[] = {
5226 {
5227 .name = "mpu",
5228 .pa_start = 0x40122000,
5229 .pa_end = 0x401220ff,
5230 .flags = ADDR_TYPE_RT
5231 },
5232 { }
5233};
5234
5235/* l4_abe -> mcbsp1 */
5236static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1 = {
5237 .master = &omap44xx_l4_abe_hwmod,
5238 .slave = &omap44xx_mcbsp1_hwmod,
5239 .clk = "ocp_abe_iclk",
5240 .addr = omap44xx_mcbsp1_addrs,
5241 .user = OCP_USER_MPU,
5242};
5243
5244static struct omap_hwmod_addr_space omap44xx_mcbsp1_dma_addrs[] = {
5245 {
5246 .name = "dma",
5247 .pa_start = 0x49022000,
5248 .pa_end = 0x490220ff,
5249 .flags = ADDR_TYPE_RT
5250 },
5251 { }
5252};
5253
5254/* l4_abe -> mcbsp1 (dma) */
5255static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp1_dma = {
5256 .master = &omap44xx_l4_abe_hwmod,
5257 .slave = &omap44xx_mcbsp1_hwmod,
5258 .clk = "ocp_abe_iclk",
5259 .addr = omap44xx_mcbsp1_dma_addrs,
5260 .user = OCP_USER_SDMA,
5261};
5262
5263static struct omap_hwmod_addr_space omap44xx_mcbsp2_addrs[] = {
5264 {
5265 .name = "mpu",
5266 .pa_start = 0x40124000,
5267 .pa_end = 0x401240ff,
5268 .flags = ADDR_TYPE_RT
5269 },
5270 { }
5271};
5272
5273/* l4_abe -> mcbsp2 */
5274static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2 = {
5275 .master = &omap44xx_l4_abe_hwmod,
5276 .slave = &omap44xx_mcbsp2_hwmod,
5277 .clk = "ocp_abe_iclk",
5278 .addr = omap44xx_mcbsp2_addrs,
5279 .user = OCP_USER_MPU,
5280};
5281
5282static struct omap_hwmod_addr_space omap44xx_mcbsp2_dma_addrs[] = {
5283 {
5284 .name = "dma",
5285 .pa_start = 0x49024000,
5286 .pa_end = 0x490240ff,
5287 .flags = ADDR_TYPE_RT
5288 },
5289 { }
5290};
5291
5292/* l4_abe -> mcbsp2 (dma) */
5293static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp2_dma = {
5294 .master = &omap44xx_l4_abe_hwmod,
5295 .slave = &omap44xx_mcbsp2_hwmod,
5296 .clk = "ocp_abe_iclk",
5297 .addr = omap44xx_mcbsp2_dma_addrs,
5298 .user = OCP_USER_SDMA,
5299};
5300
5301static struct omap_hwmod_addr_space omap44xx_mcbsp3_addrs[] = {
5302 {
5303 .name = "mpu",
5304 .pa_start = 0x40126000,
5305 .pa_end = 0x401260ff,
5306 .flags = ADDR_TYPE_RT
5307 },
5308 { }
5309};
5310
5311/* l4_abe -> mcbsp3 */
5312static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3 = {
5313 .master = &omap44xx_l4_abe_hwmod,
5314 .slave = &omap44xx_mcbsp3_hwmod,
5315 .clk = "ocp_abe_iclk",
5316 .addr = omap44xx_mcbsp3_addrs,
5317 .user = OCP_USER_MPU,
5318};
5319
5320static struct omap_hwmod_addr_space omap44xx_mcbsp3_dma_addrs[] = {
5321 {
5322 .name = "dma",
5323 .pa_start = 0x49026000,
5324 .pa_end = 0x490260ff,
5325 .flags = ADDR_TYPE_RT
5326 },
5327 { }
5328};
5329
5330/* l4_abe -> mcbsp3 (dma) */
5331static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcbsp3_dma = {
5332 .master = &omap44xx_l4_abe_hwmod,
5333 .slave = &omap44xx_mcbsp3_hwmod,
5334 .clk = "ocp_abe_iclk",
5335 .addr = omap44xx_mcbsp3_dma_addrs,
5336 .user = OCP_USER_SDMA,
5337};
5338
5339static struct omap_hwmod_addr_space omap44xx_mcbsp4_addrs[] = {
5340 {
5341 .pa_start = 0x48096000,
5342 .pa_end = 0x480960ff,
5343 .flags = ADDR_TYPE_RT
5344 },
5345 { }
5346};
5347
5348/* l4_per -> mcbsp4 */
5349static struct omap_hwmod_ocp_if omap44xx_l4_per__mcbsp4 = {
5350 .master = &omap44xx_l4_per_hwmod,
5351 .slave = &omap44xx_mcbsp4_hwmod,
5352 .clk = "l4_div_ck",
5353 .addr = omap44xx_mcbsp4_addrs,
5354 .user = OCP_USER_MPU | OCP_USER_SDMA,
5355};
5356
5357static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = {
5358 {
Peter Ujfalusiacd08ec2012-09-14 15:05:53 +03005359 .name = "mpu",
Paul Walmsley844a3b62012-04-19 04:04:33 -06005360 .pa_start = 0x40132000,
5361 .pa_end = 0x4013207f,
5362 .flags = ADDR_TYPE_RT
5363 },
5364 { }
5365};
5366
5367/* l4_abe -> mcpdm */
5368static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm = {
5369 .master = &omap44xx_l4_abe_hwmod,
5370 .slave = &omap44xx_mcpdm_hwmod,
5371 .clk = "ocp_abe_iclk",
5372 .addr = omap44xx_mcpdm_addrs,
5373 .user = OCP_USER_MPU,
5374};
5375
5376static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = {
5377 {
Peter Ujfalusiacd08ec2012-09-14 15:05:53 +03005378 .name = "dma",
Paul Walmsley844a3b62012-04-19 04:04:33 -06005379 .pa_start = 0x49032000,
5380 .pa_end = 0x4903207f,
5381 .flags = ADDR_TYPE_RT
5382 },
5383 { }
5384};
5385
5386/* l4_abe -> mcpdm (dma) */
5387static struct omap_hwmod_ocp_if omap44xx_l4_abe__mcpdm_dma = {
5388 .master = &omap44xx_l4_abe_hwmod,
5389 .slave = &omap44xx_mcpdm_hwmod,
5390 .clk = "ocp_abe_iclk",
5391 .addr = omap44xx_mcpdm_dma_addrs,
5392 .user = OCP_USER_SDMA,
5393};
5394
5395static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = {
5396 {
5397 .pa_start = 0x48098000,
5398 .pa_end = 0x480981ff,
5399 .flags = ADDR_TYPE_RT
5400 },
5401 { }
5402};
5403
5404/* l4_per -> mcspi1 */
5405static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = {
5406 .master = &omap44xx_l4_per_hwmod,
5407 .slave = &omap44xx_mcspi1_hwmod,
5408 .clk = "l4_div_ck",
5409 .addr = omap44xx_mcspi1_addrs,
5410 .user = OCP_USER_MPU | OCP_USER_SDMA,
5411};
5412
5413static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = {
5414 {
5415 .pa_start = 0x4809a000,
5416 .pa_end = 0x4809a1ff,
5417 .flags = ADDR_TYPE_RT
5418 },
5419 { }
5420};
5421
5422/* l4_per -> mcspi2 */
5423static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = {
5424 .master = &omap44xx_l4_per_hwmod,
5425 .slave = &omap44xx_mcspi2_hwmod,
5426 .clk = "l4_div_ck",
5427 .addr = omap44xx_mcspi2_addrs,
5428 .user = OCP_USER_MPU | OCP_USER_SDMA,
5429};
5430
5431static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = {
5432 {
5433 .pa_start = 0x480b8000,
5434 .pa_end = 0x480b81ff,
5435 .flags = ADDR_TYPE_RT
5436 },
5437 { }
5438};
5439
5440/* l4_per -> mcspi3 */
5441static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = {
5442 .master = &omap44xx_l4_per_hwmod,
5443 .slave = &omap44xx_mcspi3_hwmod,
5444 .clk = "l4_div_ck",
5445 .addr = omap44xx_mcspi3_addrs,
5446 .user = OCP_USER_MPU | OCP_USER_SDMA,
5447};
5448
5449static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = {
5450 {
5451 .pa_start = 0x480ba000,
5452 .pa_end = 0x480ba1ff,
5453 .flags = ADDR_TYPE_RT
5454 },
5455 { }
5456};
5457
5458/* l4_per -> mcspi4 */
5459static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = {
5460 .master = &omap44xx_l4_per_hwmod,
5461 .slave = &omap44xx_mcspi4_hwmod,
5462 .clk = "l4_div_ck",
5463 .addr = omap44xx_mcspi4_addrs,
5464 .user = OCP_USER_MPU | OCP_USER_SDMA,
5465};
5466
5467static struct omap_hwmod_addr_space omap44xx_mmc1_addrs[] = {
5468 {
5469 .pa_start = 0x4809c000,
5470 .pa_end = 0x4809c3ff,
5471 .flags = ADDR_TYPE_RT
5472 },
5473 { }
5474};
5475
5476/* l4_per -> mmc1 */
5477static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc1 = {
5478 .master = &omap44xx_l4_per_hwmod,
5479 .slave = &omap44xx_mmc1_hwmod,
5480 .clk = "l4_div_ck",
5481 .addr = omap44xx_mmc1_addrs,
5482 .user = OCP_USER_MPU | OCP_USER_SDMA,
5483};
5484
5485static struct omap_hwmod_addr_space omap44xx_mmc2_addrs[] = {
5486 {
5487 .pa_start = 0x480b4000,
5488 .pa_end = 0x480b43ff,
5489 .flags = ADDR_TYPE_RT
5490 },
5491 { }
5492};
5493
5494/* l4_per -> mmc2 */
5495static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc2 = {
5496 .master = &omap44xx_l4_per_hwmod,
5497 .slave = &omap44xx_mmc2_hwmod,
5498 .clk = "l4_div_ck",
5499 .addr = omap44xx_mmc2_addrs,
5500 .user = OCP_USER_MPU | OCP_USER_SDMA,
5501};
5502
5503static struct omap_hwmod_addr_space omap44xx_mmc3_addrs[] = {
5504 {
5505 .pa_start = 0x480ad000,
5506 .pa_end = 0x480ad3ff,
5507 .flags = ADDR_TYPE_RT
5508 },
5509 { }
5510};
5511
5512/* l4_per -> mmc3 */
5513static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc3 = {
5514 .master = &omap44xx_l4_per_hwmod,
5515 .slave = &omap44xx_mmc3_hwmod,
5516 .clk = "l4_div_ck",
5517 .addr = omap44xx_mmc3_addrs,
5518 .user = OCP_USER_MPU | OCP_USER_SDMA,
5519};
5520
5521static struct omap_hwmod_addr_space omap44xx_mmc4_addrs[] = {
5522 {
5523 .pa_start = 0x480d1000,
5524 .pa_end = 0x480d13ff,
5525 .flags = ADDR_TYPE_RT
5526 },
5527 { }
5528};
5529
5530/* l4_per -> mmc4 */
5531static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc4 = {
5532 .master = &omap44xx_l4_per_hwmod,
5533 .slave = &omap44xx_mmc4_hwmod,
5534 .clk = "l4_div_ck",
5535 .addr = omap44xx_mmc4_addrs,
5536 .user = OCP_USER_MPU | OCP_USER_SDMA,
5537};
5538
5539static struct omap_hwmod_addr_space omap44xx_mmc5_addrs[] = {
5540 {
5541 .pa_start = 0x480d5000,
5542 .pa_end = 0x480d53ff,
5543 .flags = ADDR_TYPE_RT
5544 },
5545 { }
5546};
5547
5548/* l4_per -> mmc5 */
5549static struct omap_hwmod_ocp_if omap44xx_l4_per__mmc5 = {
5550 .master = &omap44xx_l4_per_hwmod,
5551 .slave = &omap44xx_mmc5_hwmod,
5552 .clk = "l4_div_ck",
5553 .addr = omap44xx_mmc5_addrs,
5554 .user = OCP_USER_MPU | OCP_USER_SDMA,
5555};
5556
Paul Walmsleye17f18c2012-04-19 13:33:56 -06005557/* l3_main_2 -> ocmc_ram */
5558static struct omap_hwmod_ocp_if omap44xx_l3_main_2__ocmc_ram = {
5559 .master = &omap44xx_l3_main_2_hwmod,
5560 .slave = &omap44xx_ocmc_ram_hwmod,
5561 .clk = "l3_div_ck",
5562 .user = OCP_USER_MPU | OCP_USER_SDMA,
5563};
5564
Benoit Cousson33c976e2012-09-23 17:28:21 -06005565static struct omap_hwmod_addr_space omap44xx_ocp2scp_usb_phy_addrs[] = {
5566 {
5567 .pa_start = 0x4a0ad000,
5568 .pa_end = 0x4a0ad01f,
5569 .flags = ADDR_TYPE_RT
5570 },
5571 { }
5572};
5573
Benoît Cousson0c668872012-04-19 13:33:55 -06005574/* l4_cfg -> ocp2scp_usb_phy */
5575static struct omap_hwmod_ocp_if omap44xx_l4_cfg__ocp2scp_usb_phy = {
5576 .master = &omap44xx_l4_cfg_hwmod,
5577 .slave = &omap44xx_ocp2scp_usb_phy_hwmod,
5578 .clk = "l4_div_ck",
Benoit Cousson33c976e2012-09-23 17:28:21 -06005579 .addr = omap44xx_ocp2scp_usb_phy_addrs,
Benoît Cousson0c668872012-04-19 13:33:55 -06005580 .user = OCP_USER_MPU | OCP_USER_SDMA,
5581};
5582
Paul Walmsley794b4802012-04-19 13:33:58 -06005583static struct omap_hwmod_addr_space omap44xx_prcm_mpu_addrs[] = {
5584 {
5585 .pa_start = 0x48243000,
5586 .pa_end = 0x48243fff,
5587 .flags = ADDR_TYPE_RT
5588 },
5589 { }
5590};
5591
5592/* mpu_private -> prcm_mpu */
5593static struct omap_hwmod_ocp_if omap44xx_mpu_private__prcm_mpu = {
5594 .master = &omap44xx_mpu_private_hwmod,
5595 .slave = &omap44xx_prcm_mpu_hwmod,
5596 .clk = "l3_div_ck",
5597 .addr = omap44xx_prcm_mpu_addrs,
5598 .user = OCP_USER_MPU | OCP_USER_SDMA,
5599};
5600
5601static struct omap_hwmod_addr_space omap44xx_cm_core_aon_addrs[] = {
5602 {
5603 .pa_start = 0x4a004000,
5604 .pa_end = 0x4a004fff,
5605 .flags = ADDR_TYPE_RT
5606 },
5607 { }
5608};
5609
5610/* l4_wkup -> cm_core_aon */
5611static struct omap_hwmod_ocp_if omap44xx_l4_wkup__cm_core_aon = {
5612 .master = &omap44xx_l4_wkup_hwmod,
5613 .slave = &omap44xx_cm_core_aon_hwmod,
5614 .clk = "l4_wkup_clk_mux_ck",
5615 .addr = omap44xx_cm_core_aon_addrs,
5616 .user = OCP_USER_MPU | OCP_USER_SDMA,
5617};
5618
5619static struct omap_hwmod_addr_space omap44xx_cm_core_addrs[] = {
5620 {
5621 .pa_start = 0x4a008000,
5622 .pa_end = 0x4a009fff,
5623 .flags = ADDR_TYPE_RT
5624 },
5625 { }
5626};
5627
5628/* l4_cfg -> cm_core */
5629static struct omap_hwmod_ocp_if omap44xx_l4_cfg__cm_core = {
5630 .master = &omap44xx_l4_cfg_hwmod,
5631 .slave = &omap44xx_cm_core_hwmod,
5632 .clk = "l4_div_ck",
5633 .addr = omap44xx_cm_core_addrs,
5634 .user = OCP_USER_MPU | OCP_USER_SDMA,
5635};
5636
5637static struct omap_hwmod_addr_space omap44xx_prm_addrs[] = {
5638 {
5639 .pa_start = 0x4a306000,
5640 .pa_end = 0x4a307fff,
5641 .flags = ADDR_TYPE_RT
5642 },
5643 { }
5644};
5645
5646/* l4_wkup -> prm */
5647static struct omap_hwmod_ocp_if omap44xx_l4_wkup__prm = {
5648 .master = &omap44xx_l4_wkup_hwmod,
5649 .slave = &omap44xx_prm_hwmod,
5650 .clk = "l4_wkup_clk_mux_ck",
5651 .addr = omap44xx_prm_addrs,
5652 .user = OCP_USER_MPU | OCP_USER_SDMA,
5653};
5654
5655static struct omap_hwmod_addr_space omap44xx_scrm_addrs[] = {
5656 {
5657 .pa_start = 0x4a30a000,
5658 .pa_end = 0x4a30a7ff,
5659 .flags = ADDR_TYPE_RT
5660 },
5661 { }
5662};
5663
5664/* l4_wkup -> scrm */
5665static struct omap_hwmod_ocp_if omap44xx_l4_wkup__scrm = {
5666 .master = &omap44xx_l4_wkup_hwmod,
5667 .slave = &omap44xx_scrm_hwmod,
5668 .clk = "l4_wkup_clk_mux_ck",
5669 .addr = omap44xx_scrm_addrs,
5670 .user = OCP_USER_MPU | OCP_USER_SDMA,
5671};
5672
Paul Walmsley42b9e382012-04-19 13:33:54 -06005673/* l3_main_2 -> sl2if */
Tero Kristob3601242012-09-03 11:50:53 -06005674static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06005675 .master = &omap44xx_l3_main_2_hwmod,
5676 .slave = &omap44xx_sl2if_hwmod,
5677 .clk = "l3_div_ck",
5678 .user = OCP_USER_MPU | OCP_USER_SDMA,
5679};
5680
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06005681static struct omap_hwmod_addr_space omap44xx_slimbus1_addrs[] = {
5682 {
5683 .pa_start = 0x4012c000,
5684 .pa_end = 0x4012c3ff,
5685 .flags = ADDR_TYPE_RT
5686 },
5687 { }
5688};
5689
5690/* l4_abe -> slimbus1 */
5691static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1 = {
5692 .master = &omap44xx_l4_abe_hwmod,
5693 .slave = &omap44xx_slimbus1_hwmod,
5694 .clk = "ocp_abe_iclk",
5695 .addr = omap44xx_slimbus1_addrs,
5696 .user = OCP_USER_MPU,
5697};
5698
5699static struct omap_hwmod_addr_space omap44xx_slimbus1_dma_addrs[] = {
5700 {
5701 .pa_start = 0x4902c000,
5702 .pa_end = 0x4902c3ff,
5703 .flags = ADDR_TYPE_RT
5704 },
5705 { }
5706};
5707
5708/* l4_abe -> slimbus1 (dma) */
5709static struct omap_hwmod_ocp_if omap44xx_l4_abe__slimbus1_dma = {
5710 .master = &omap44xx_l4_abe_hwmod,
5711 .slave = &omap44xx_slimbus1_hwmod,
5712 .clk = "ocp_abe_iclk",
5713 .addr = omap44xx_slimbus1_dma_addrs,
5714 .user = OCP_USER_SDMA,
5715};
5716
5717static struct omap_hwmod_addr_space omap44xx_slimbus2_addrs[] = {
5718 {
5719 .pa_start = 0x48076000,
5720 .pa_end = 0x480763ff,
5721 .flags = ADDR_TYPE_RT
5722 },
5723 { }
5724};
5725
5726/* l4_per -> slimbus2 */
5727static struct omap_hwmod_ocp_if omap44xx_l4_per__slimbus2 = {
5728 .master = &omap44xx_l4_per_hwmod,
5729 .slave = &omap44xx_slimbus2_hwmod,
5730 .clk = "l4_div_ck",
5731 .addr = omap44xx_slimbus2_addrs,
5732 .user = OCP_USER_MPU | OCP_USER_SDMA,
5733};
5734
Paul Walmsley844a3b62012-04-19 04:04:33 -06005735static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = {
5736 {
5737 .pa_start = 0x4a0dd000,
5738 .pa_end = 0x4a0dd03f,
5739 .flags = ADDR_TYPE_RT
5740 },
5741 { }
5742};
5743
5744/* l4_cfg -> smartreflex_core */
5745static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = {
5746 .master = &omap44xx_l4_cfg_hwmod,
5747 .slave = &omap44xx_smartreflex_core_hwmod,
5748 .clk = "l4_div_ck",
5749 .addr = omap44xx_smartreflex_core_addrs,
5750 .user = OCP_USER_MPU | OCP_USER_SDMA,
5751};
5752
5753static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = {
5754 {
5755 .pa_start = 0x4a0db000,
5756 .pa_end = 0x4a0db03f,
5757 .flags = ADDR_TYPE_RT
5758 },
5759 { }
5760};
5761
5762/* l4_cfg -> smartreflex_iva */
5763static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = {
5764 .master = &omap44xx_l4_cfg_hwmod,
5765 .slave = &omap44xx_smartreflex_iva_hwmod,
5766 .clk = "l4_div_ck",
5767 .addr = omap44xx_smartreflex_iva_addrs,
5768 .user = OCP_USER_MPU | OCP_USER_SDMA,
5769};
5770
5771static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = {
5772 {
5773 .pa_start = 0x4a0d9000,
5774 .pa_end = 0x4a0d903f,
5775 .flags = ADDR_TYPE_RT
5776 },
5777 { }
5778};
5779
5780/* l4_cfg -> smartreflex_mpu */
5781static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = {
5782 .master = &omap44xx_l4_cfg_hwmod,
5783 .slave = &omap44xx_smartreflex_mpu_hwmod,
5784 .clk = "l4_div_ck",
5785 .addr = omap44xx_smartreflex_mpu_addrs,
5786 .user = OCP_USER_MPU | OCP_USER_SDMA,
5787};
5788
5789static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = {
5790 {
5791 .pa_start = 0x4a0f6000,
5792 .pa_end = 0x4a0f6fff,
5793 .flags = ADDR_TYPE_RT
5794 },
5795 { }
5796};
5797
5798/* l4_cfg -> spinlock */
5799static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = {
5800 .master = &omap44xx_l4_cfg_hwmod,
5801 .slave = &omap44xx_spinlock_hwmod,
5802 .clk = "l4_div_ck",
5803 .addr = omap44xx_spinlock_addrs,
5804 .user = OCP_USER_MPU | OCP_USER_SDMA,
5805};
5806
5807static struct omap_hwmod_addr_space omap44xx_timer1_addrs[] = {
5808 {
5809 .pa_start = 0x4a318000,
5810 .pa_end = 0x4a31807f,
5811 .flags = ADDR_TYPE_RT
5812 },
5813 { }
5814};
5815
5816/* l4_wkup -> timer1 */
5817static struct omap_hwmod_ocp_if omap44xx_l4_wkup__timer1 = {
5818 .master = &omap44xx_l4_wkup_hwmod,
5819 .slave = &omap44xx_timer1_hwmod,
5820 .clk = "l4_wkup_clk_mux_ck",
5821 .addr = omap44xx_timer1_addrs,
5822 .user = OCP_USER_MPU | OCP_USER_SDMA,
5823};
5824
5825static struct omap_hwmod_addr_space omap44xx_timer2_addrs[] = {
5826 {
5827 .pa_start = 0x48032000,
5828 .pa_end = 0x4803207f,
5829 .flags = ADDR_TYPE_RT
5830 },
5831 { }
5832};
5833
5834/* l4_per -> timer2 */
5835static struct omap_hwmod_ocp_if omap44xx_l4_per__timer2 = {
5836 .master = &omap44xx_l4_per_hwmod,
5837 .slave = &omap44xx_timer2_hwmod,
5838 .clk = "l4_div_ck",
5839 .addr = omap44xx_timer2_addrs,
5840 .user = OCP_USER_MPU | OCP_USER_SDMA,
5841};
5842
5843static struct omap_hwmod_addr_space omap44xx_timer3_addrs[] = {
5844 {
5845 .pa_start = 0x48034000,
5846 .pa_end = 0x4803407f,
5847 .flags = ADDR_TYPE_RT
5848 },
5849 { }
5850};
5851
5852/* l4_per -> timer3 */
5853static struct omap_hwmod_ocp_if omap44xx_l4_per__timer3 = {
5854 .master = &omap44xx_l4_per_hwmod,
5855 .slave = &omap44xx_timer3_hwmod,
5856 .clk = "l4_div_ck",
5857 .addr = omap44xx_timer3_addrs,
5858 .user = OCP_USER_MPU | OCP_USER_SDMA,
5859};
5860
5861static struct omap_hwmod_addr_space omap44xx_timer4_addrs[] = {
5862 {
5863 .pa_start = 0x48036000,
5864 .pa_end = 0x4803607f,
5865 .flags = ADDR_TYPE_RT
5866 },
5867 { }
5868};
5869
5870/* l4_per -> timer4 */
5871static struct omap_hwmod_ocp_if omap44xx_l4_per__timer4 = {
5872 .master = &omap44xx_l4_per_hwmod,
5873 .slave = &omap44xx_timer4_hwmod,
5874 .clk = "l4_div_ck",
5875 .addr = omap44xx_timer4_addrs,
5876 .user = OCP_USER_MPU | OCP_USER_SDMA,
5877};
5878
5879static struct omap_hwmod_addr_space omap44xx_timer5_addrs[] = {
5880 {
5881 .pa_start = 0x40138000,
5882 .pa_end = 0x4013807f,
5883 .flags = ADDR_TYPE_RT
5884 },
5885 { }
5886};
5887
5888/* l4_abe -> timer5 */
5889static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5 = {
5890 .master = &omap44xx_l4_abe_hwmod,
5891 .slave = &omap44xx_timer5_hwmod,
5892 .clk = "ocp_abe_iclk",
5893 .addr = omap44xx_timer5_addrs,
5894 .user = OCP_USER_MPU,
5895};
5896
5897static struct omap_hwmod_addr_space omap44xx_timer5_dma_addrs[] = {
5898 {
5899 .pa_start = 0x49038000,
5900 .pa_end = 0x4903807f,
5901 .flags = ADDR_TYPE_RT
5902 },
5903 { }
5904};
5905
5906/* l4_abe -> timer5 (dma) */
5907static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer5_dma = {
5908 .master = &omap44xx_l4_abe_hwmod,
5909 .slave = &omap44xx_timer5_hwmod,
5910 .clk = "ocp_abe_iclk",
5911 .addr = omap44xx_timer5_dma_addrs,
5912 .user = OCP_USER_SDMA,
5913};
5914
5915static struct omap_hwmod_addr_space omap44xx_timer6_addrs[] = {
5916 {
5917 .pa_start = 0x4013a000,
5918 .pa_end = 0x4013a07f,
5919 .flags = ADDR_TYPE_RT
5920 },
5921 { }
5922};
5923
5924/* l4_abe -> timer6 */
5925static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6 = {
5926 .master = &omap44xx_l4_abe_hwmod,
5927 .slave = &omap44xx_timer6_hwmod,
5928 .clk = "ocp_abe_iclk",
5929 .addr = omap44xx_timer6_addrs,
5930 .user = OCP_USER_MPU,
5931};
5932
5933static struct omap_hwmod_addr_space omap44xx_timer6_dma_addrs[] = {
5934 {
5935 .pa_start = 0x4903a000,
5936 .pa_end = 0x4903a07f,
5937 .flags = ADDR_TYPE_RT
5938 },
5939 { }
5940};
5941
5942/* l4_abe -> timer6 (dma) */
5943static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer6_dma = {
5944 .master = &omap44xx_l4_abe_hwmod,
5945 .slave = &omap44xx_timer6_hwmod,
5946 .clk = "ocp_abe_iclk",
5947 .addr = omap44xx_timer6_dma_addrs,
5948 .user = OCP_USER_SDMA,
5949};
5950
5951static struct omap_hwmod_addr_space omap44xx_timer7_addrs[] = {
5952 {
5953 .pa_start = 0x4013c000,
5954 .pa_end = 0x4013c07f,
5955 .flags = ADDR_TYPE_RT
5956 },
5957 { }
5958};
5959
5960/* l4_abe -> timer7 */
5961static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7 = {
5962 .master = &omap44xx_l4_abe_hwmod,
5963 .slave = &omap44xx_timer7_hwmod,
5964 .clk = "ocp_abe_iclk",
5965 .addr = omap44xx_timer7_addrs,
5966 .user = OCP_USER_MPU,
5967};
5968
5969static struct omap_hwmod_addr_space omap44xx_timer7_dma_addrs[] = {
5970 {
5971 .pa_start = 0x4903c000,
5972 .pa_end = 0x4903c07f,
5973 .flags = ADDR_TYPE_RT
5974 },
5975 { }
5976};
5977
5978/* l4_abe -> timer7 (dma) */
5979static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer7_dma = {
5980 .master = &omap44xx_l4_abe_hwmod,
5981 .slave = &omap44xx_timer7_hwmod,
5982 .clk = "ocp_abe_iclk",
5983 .addr = omap44xx_timer7_dma_addrs,
5984 .user = OCP_USER_SDMA,
5985};
5986
5987static struct omap_hwmod_addr_space omap44xx_timer8_addrs[] = {
5988 {
5989 .pa_start = 0x4013e000,
5990 .pa_end = 0x4013e07f,
5991 .flags = ADDR_TYPE_RT
5992 },
5993 { }
5994};
5995
5996/* l4_abe -> timer8 */
5997static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8 = {
5998 .master = &omap44xx_l4_abe_hwmod,
5999 .slave = &omap44xx_timer8_hwmod,
6000 .clk = "ocp_abe_iclk",
6001 .addr = omap44xx_timer8_addrs,
6002 .user = OCP_USER_MPU,
6003};
6004
6005static struct omap_hwmod_addr_space omap44xx_timer8_dma_addrs[] = {
6006 {
6007 .pa_start = 0x4903e000,
6008 .pa_end = 0x4903e07f,
6009 .flags = ADDR_TYPE_RT
6010 },
6011 { }
6012};
6013
6014/* l4_abe -> timer8 (dma) */
6015static struct omap_hwmod_ocp_if omap44xx_l4_abe__timer8_dma = {
6016 .master = &omap44xx_l4_abe_hwmod,
6017 .slave = &omap44xx_timer8_hwmod,
6018 .clk = "ocp_abe_iclk",
6019 .addr = omap44xx_timer8_dma_addrs,
6020 .user = OCP_USER_SDMA,
6021};
6022
6023static struct omap_hwmod_addr_space omap44xx_timer9_addrs[] = {
6024 {
6025 .pa_start = 0x4803e000,
6026 .pa_end = 0x4803e07f,
6027 .flags = ADDR_TYPE_RT
6028 },
6029 { }
6030};
6031
6032/* l4_per -> timer9 */
6033static struct omap_hwmod_ocp_if omap44xx_l4_per__timer9 = {
6034 .master = &omap44xx_l4_per_hwmod,
6035 .slave = &omap44xx_timer9_hwmod,
6036 .clk = "l4_div_ck",
6037 .addr = omap44xx_timer9_addrs,
6038 .user = OCP_USER_MPU | OCP_USER_SDMA,
6039};
6040
6041static struct omap_hwmod_addr_space omap44xx_timer10_addrs[] = {
6042 {
6043 .pa_start = 0x48086000,
6044 .pa_end = 0x4808607f,
6045 .flags = ADDR_TYPE_RT
6046 },
6047 { }
6048};
6049
6050/* l4_per -> timer10 */
6051static struct omap_hwmod_ocp_if omap44xx_l4_per__timer10 = {
6052 .master = &omap44xx_l4_per_hwmod,
6053 .slave = &omap44xx_timer10_hwmod,
6054 .clk = "l4_div_ck",
6055 .addr = omap44xx_timer10_addrs,
6056 .user = OCP_USER_MPU | OCP_USER_SDMA,
6057};
6058
6059static struct omap_hwmod_addr_space omap44xx_timer11_addrs[] = {
6060 {
6061 .pa_start = 0x48088000,
6062 .pa_end = 0x4808807f,
6063 .flags = ADDR_TYPE_RT
6064 },
6065 { }
6066};
6067
6068/* l4_per -> timer11 */
6069static struct omap_hwmod_ocp_if omap44xx_l4_per__timer11 = {
6070 .master = &omap44xx_l4_per_hwmod,
6071 .slave = &omap44xx_timer11_hwmod,
6072 .clk = "l4_div_ck",
6073 .addr = omap44xx_timer11_addrs,
6074 .user = OCP_USER_MPU | OCP_USER_SDMA,
6075};
6076
6077static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = {
6078 {
6079 .pa_start = 0x4806a000,
6080 .pa_end = 0x4806a0ff,
6081 .flags = ADDR_TYPE_RT
6082 },
6083 { }
6084};
6085
6086/* l4_per -> uart1 */
6087static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = {
6088 .master = &omap44xx_l4_per_hwmod,
6089 .slave = &omap44xx_uart1_hwmod,
6090 .clk = "l4_div_ck",
6091 .addr = omap44xx_uart1_addrs,
6092 .user = OCP_USER_MPU | OCP_USER_SDMA,
6093};
6094
6095static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = {
6096 {
6097 .pa_start = 0x4806c000,
6098 .pa_end = 0x4806c0ff,
6099 .flags = ADDR_TYPE_RT
6100 },
6101 { }
6102};
6103
6104/* l4_per -> uart2 */
6105static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = {
6106 .master = &omap44xx_l4_per_hwmod,
6107 .slave = &omap44xx_uart2_hwmod,
6108 .clk = "l4_div_ck",
6109 .addr = omap44xx_uart2_addrs,
6110 .user = OCP_USER_MPU | OCP_USER_SDMA,
6111};
6112
6113static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = {
6114 {
6115 .pa_start = 0x48020000,
6116 .pa_end = 0x480200ff,
6117 .flags = ADDR_TYPE_RT
6118 },
6119 { }
6120};
6121
6122/* l4_per -> uart3 */
6123static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = {
6124 .master = &omap44xx_l4_per_hwmod,
6125 .slave = &omap44xx_uart3_hwmod,
6126 .clk = "l4_div_ck",
6127 .addr = omap44xx_uart3_addrs,
6128 .user = OCP_USER_MPU | OCP_USER_SDMA,
6129};
6130
6131static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = {
6132 {
6133 .pa_start = 0x4806e000,
6134 .pa_end = 0x4806e0ff,
6135 .flags = ADDR_TYPE_RT
6136 },
6137 { }
6138};
6139
6140/* l4_per -> uart4 */
6141static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = {
6142 .master = &omap44xx_l4_per_hwmod,
6143 .slave = &omap44xx_uart4_hwmod,
6144 .clk = "l4_div_ck",
6145 .addr = omap44xx_uart4_addrs,
6146 .user = OCP_USER_MPU | OCP_USER_SDMA,
6147};
6148
Benoît Cousson0c668872012-04-19 13:33:55 -06006149static struct omap_hwmod_addr_space omap44xx_usb_host_fs_addrs[] = {
6150 {
6151 .pa_start = 0x4a0a9000,
6152 .pa_end = 0x4a0a93ff,
6153 .flags = ADDR_TYPE_RT
6154 },
6155 { }
6156};
6157
6158/* l4_cfg -> usb_host_fs */
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06006159static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = {
Benoît Cousson0c668872012-04-19 13:33:55 -06006160 .master = &omap44xx_l4_cfg_hwmod,
6161 .slave = &omap44xx_usb_host_fs_hwmod,
6162 .clk = "l4_div_ck",
6163 .addr = omap44xx_usb_host_fs_addrs,
6164 .user = OCP_USER_MPU | OCP_USER_SDMA,
6165};
6166
Paul Walmsley844a3b62012-04-19 04:04:33 -06006167static struct omap_hwmod_addr_space omap44xx_usb_host_hs_addrs[] = {
6168 {
6169 .name = "uhh",
6170 .pa_start = 0x4a064000,
6171 .pa_end = 0x4a0647ff,
6172 .flags = ADDR_TYPE_RT
6173 },
6174 {
6175 .name = "ohci",
6176 .pa_start = 0x4a064800,
6177 .pa_end = 0x4a064bff,
6178 },
6179 {
6180 .name = "ehci",
6181 .pa_start = 0x4a064c00,
6182 .pa_end = 0x4a064fff,
6183 },
6184 {}
6185};
6186
6187/* l4_cfg -> usb_host_hs */
6188static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_host_hs = {
6189 .master = &omap44xx_l4_cfg_hwmod,
6190 .slave = &omap44xx_usb_host_hs_hwmod,
6191 .clk = "l4_div_ck",
6192 .addr = omap44xx_usb_host_hs_addrs,
6193 .user = OCP_USER_MPU | OCP_USER_SDMA,
6194};
6195
6196static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = {
6197 {
6198 .pa_start = 0x4a0ab000,
Benoit Cousson33c976e2012-09-23 17:28:21 -06006199 .pa_end = 0x4a0ab7ff,
Paul Walmsley844a3b62012-04-19 04:04:33 -06006200 .flags = ADDR_TYPE_RT
6201 },
Kishon Vijay Abraham I94715d52012-09-11 14:39:38 +05306202 {
6203 /* XXX: Remove this once control module driver is in place */
6204 .pa_start = 0x4a00233c,
6205 .pa_end = 0x4a00233f,
6206 .flags = ADDR_TYPE_RT
6207 },
Paul Walmsley844a3b62012-04-19 04:04:33 -06006208 { }
6209};
6210
6211/* l4_cfg -> usb_otg_hs */
6212static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_otg_hs = {
6213 .master = &omap44xx_l4_cfg_hwmod,
6214 .slave = &omap44xx_usb_otg_hs_hwmod,
6215 .clk = "l4_div_ck",
6216 .addr = omap44xx_usb_otg_hs_addrs,
6217 .user = OCP_USER_MPU | OCP_USER_SDMA,
6218};
6219
Benoit Coussonaf88fa92011-12-15 23:15:18 -07006220static struct omap_hwmod_addr_space omap44xx_usb_tll_hs_addrs[] = {
6221 {
6222 .name = "tll",
6223 .pa_start = 0x4a062000,
6224 .pa_end = 0x4a063fff,
6225 .flags = ADDR_TYPE_RT
6226 },
6227 {}
6228};
6229
Paul Walmsley844a3b62012-04-19 04:04:33 -06006230/* l4_cfg -> usb_tll_hs */
Benoit Coussonaf88fa92011-12-15 23:15:18 -07006231static struct omap_hwmod_ocp_if omap44xx_l4_cfg__usb_tll_hs = {
6232 .master = &omap44xx_l4_cfg_hwmod,
6233 .slave = &omap44xx_usb_tll_hs_hwmod,
6234 .clk = "l4_div_ck",
6235 .addr = omap44xx_usb_tll_hs_addrs,
6236 .user = OCP_USER_MPU | OCP_USER_SDMA,
6237};
6238
Paul Walmsley844a3b62012-04-19 04:04:33 -06006239static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = {
6240 {
6241 .pa_start = 0x4a314000,
6242 .pa_end = 0x4a31407f,
6243 .flags = ADDR_TYPE_RT
Benoit Coussonaf88fa92011-12-15 23:15:18 -07006244 },
Paul Walmsley844a3b62012-04-19 04:04:33 -06006245 { }
6246};
6247
6248/* l4_wkup -> wd_timer2 */
6249static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = {
6250 .master = &omap44xx_l4_wkup_hwmod,
6251 .slave = &omap44xx_wd_timer2_hwmod,
6252 .clk = "l4_wkup_clk_mux_ck",
6253 .addr = omap44xx_wd_timer2_addrs,
6254 .user = OCP_USER_MPU | OCP_USER_SDMA,
6255};
6256
6257static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = {
6258 {
6259 .pa_start = 0x40130000,
6260 .pa_end = 0x4013007f,
6261 .flags = ADDR_TYPE_RT
6262 },
6263 { }
6264};
6265
6266/* l4_abe -> wd_timer3 */
6267static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = {
6268 .master = &omap44xx_l4_abe_hwmod,
6269 .slave = &omap44xx_wd_timer3_hwmod,
6270 .clk = "ocp_abe_iclk",
6271 .addr = omap44xx_wd_timer3_addrs,
6272 .user = OCP_USER_MPU,
6273};
6274
6275static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = {
6276 {
6277 .pa_start = 0x49030000,
6278 .pa_end = 0x4903007f,
6279 .flags = ADDR_TYPE_RT
6280 },
6281 { }
6282};
6283
6284/* l4_abe -> wd_timer3 (dma) */
6285static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = {
6286 .master = &omap44xx_l4_abe_hwmod,
6287 .slave = &omap44xx_wd_timer3_hwmod,
6288 .clk = "ocp_abe_iclk",
6289 .addr = omap44xx_wd_timer3_dma_addrs,
6290 .user = OCP_USER_SDMA,
Benoit Coussonaf88fa92011-12-15 23:15:18 -07006291};
6292
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006293static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = {
Paul Walmsley42b9e382012-04-19 13:33:54 -06006294 &omap44xx_c2c__c2c_target_fw,
6295 &omap44xx_l4_cfg__c2c_target_fw,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006296 &omap44xx_l3_main_1__dmm,
6297 &omap44xx_mpu__dmm,
Paul Walmsley42b9e382012-04-19 13:33:54 -06006298 &omap44xx_c2c__emif_fw,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006299 &omap44xx_dmm__emif_fw,
6300 &omap44xx_l4_cfg__emif_fw,
6301 &omap44xx_iva__l3_instr,
6302 &omap44xx_l3_main_3__l3_instr,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06006303 &omap44xx_ocp_wp_noc__l3_instr,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006304 &omap44xx_dsp__l3_main_1,
6305 &omap44xx_dss__l3_main_1,
6306 &omap44xx_l3_main_2__l3_main_1,
6307 &omap44xx_l4_cfg__l3_main_1,
6308 &omap44xx_mmc1__l3_main_1,
6309 &omap44xx_mmc2__l3_main_1,
6310 &omap44xx_mpu__l3_main_1,
Paul Walmsley42b9e382012-04-19 13:33:54 -06006311 &omap44xx_c2c_target_fw__l3_main_2,
Benoît Cousson96566042012-04-19 13:33:59 -06006312 &omap44xx_debugss__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006313 &omap44xx_dma_system__l3_main_2,
Ming Leib050f682012-04-19 13:33:50 -06006314 &omap44xx_fdif__l3_main_2,
Paul Walmsley9def3902012-04-19 13:33:53 -06006315 &omap44xx_gpu__l3_main_2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006316 &omap44xx_hsi__l3_main_2,
6317 &omap44xx_ipu__l3_main_2,
6318 &omap44xx_iss__l3_main_2,
6319 &omap44xx_iva__l3_main_2,
6320 &omap44xx_l3_main_1__l3_main_2,
6321 &omap44xx_l4_cfg__l3_main_2,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06006322 /* &omap44xx_usb_host_fs__l3_main_2, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006323 &omap44xx_usb_host_hs__l3_main_2,
6324 &omap44xx_usb_otg_hs__l3_main_2,
6325 &omap44xx_l3_main_1__l3_main_3,
6326 &omap44xx_l3_main_2__l3_main_3,
6327 &omap44xx_l4_cfg__l3_main_3,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07006328 &omap44xx_aess__l4_abe,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006329 &omap44xx_dsp__l4_abe,
6330 &omap44xx_l3_main_1__l4_abe,
6331 &omap44xx_mpu__l4_abe,
6332 &omap44xx_l3_main_1__l4_cfg,
6333 &omap44xx_l3_main_2__l4_per,
6334 &omap44xx_l4_cfg__l4_wkup,
6335 &omap44xx_mpu__mpu_private,
Benoît Cousson9a817bc2012-04-19 13:33:56 -06006336 &omap44xx_l4_cfg__ocp_wp_noc,
Sebastien Guiriec5cebb232013-02-10 11:17:16 -07006337 &omap44xx_l4_abe__aess,
6338 &omap44xx_l4_abe__aess_dma,
Paul Walmsley42b9e382012-04-19 13:33:54 -06006339 &omap44xx_l3_main_2__c2c,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006340 &omap44xx_l4_wkup__counter_32k,
Paul Walmsleya0b5d812012-04-19 13:33:57 -06006341 &omap44xx_l4_cfg__ctrl_module_core,
6342 &omap44xx_l4_cfg__ctrl_module_pad_core,
6343 &omap44xx_l4_wkup__ctrl_module_wkup,
6344 &omap44xx_l4_wkup__ctrl_module_pad_wkup,
Benoît Cousson96566042012-04-19 13:33:59 -06006345 &omap44xx_l3_instr__debugss,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006346 &omap44xx_l4_cfg__dma_system,
6347 &omap44xx_l4_abe__dmic,
6348 &omap44xx_l4_abe__dmic_dma,
6349 &omap44xx_dsp__iva,
Tero Kristob3601242012-09-03 11:50:53 -06006350 /* &omap44xx_dsp__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006351 &omap44xx_l4_cfg__dsp,
6352 &omap44xx_l3_main_2__dss,
6353 &omap44xx_l4_per__dss,
6354 &omap44xx_l3_main_2__dss_dispc,
6355 &omap44xx_l4_per__dss_dispc,
6356 &omap44xx_l3_main_2__dss_dsi1,
6357 &omap44xx_l4_per__dss_dsi1,
6358 &omap44xx_l3_main_2__dss_dsi2,
6359 &omap44xx_l4_per__dss_dsi2,
6360 &omap44xx_l3_main_2__dss_hdmi,
6361 &omap44xx_l4_per__dss_hdmi,
6362 &omap44xx_l3_main_2__dss_rfbi,
6363 &omap44xx_l4_per__dss_rfbi,
6364 &omap44xx_l3_main_2__dss_venc,
6365 &omap44xx_l4_per__dss_venc,
Paul Walmsley42b9e382012-04-19 13:33:54 -06006366 &omap44xx_l4_per__elm,
Paul Walmsleybf30f952012-04-19 13:33:52 -06006367 &omap44xx_emif_fw__emif1,
6368 &omap44xx_emif_fw__emif2,
Ming Leib050f682012-04-19 13:33:50 -06006369 &omap44xx_l4_cfg__fdif,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006370 &omap44xx_l4_wkup__gpio1,
6371 &omap44xx_l4_per__gpio2,
6372 &omap44xx_l4_per__gpio3,
6373 &omap44xx_l4_per__gpio4,
6374 &omap44xx_l4_per__gpio5,
6375 &omap44xx_l4_per__gpio6,
Benoît Coussoneb42b5d2012-04-19 13:33:51 -06006376 &omap44xx_l3_main_2__gpmc,
Paul Walmsley9def3902012-04-19 13:33:53 -06006377 &omap44xx_l3_main_2__gpu,
Paul Walmsleya091c082012-04-19 13:33:50 -06006378 &omap44xx_l4_per__hdq1w,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006379 &omap44xx_l4_cfg__hsi,
6380 &omap44xx_l4_per__i2c1,
6381 &omap44xx_l4_per__i2c2,
6382 &omap44xx_l4_per__i2c3,
6383 &omap44xx_l4_per__i2c4,
6384 &omap44xx_l3_main_2__ipu,
6385 &omap44xx_l3_main_2__iss,
Tero Kristob3601242012-09-03 11:50:53 -06006386 /* &omap44xx_iva__sl2if, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006387 &omap44xx_l3_main_2__iva,
6388 &omap44xx_l4_wkup__kbd,
6389 &omap44xx_l4_cfg__mailbox,
Benoît Cousson896d4e92012-04-19 13:33:54 -06006390 &omap44xx_l4_abe__mcasp,
6391 &omap44xx_l4_abe__mcasp_dma,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006392 &omap44xx_l4_abe__mcbsp1,
6393 &omap44xx_l4_abe__mcbsp1_dma,
6394 &omap44xx_l4_abe__mcbsp2,
6395 &omap44xx_l4_abe__mcbsp2_dma,
6396 &omap44xx_l4_abe__mcbsp3,
6397 &omap44xx_l4_abe__mcbsp3_dma,
6398 &omap44xx_l4_per__mcbsp4,
6399 &omap44xx_l4_abe__mcpdm,
6400 &omap44xx_l4_abe__mcpdm_dma,
6401 &omap44xx_l4_per__mcspi1,
6402 &omap44xx_l4_per__mcspi2,
6403 &omap44xx_l4_per__mcspi3,
6404 &omap44xx_l4_per__mcspi4,
6405 &omap44xx_l4_per__mmc1,
6406 &omap44xx_l4_per__mmc2,
6407 &omap44xx_l4_per__mmc3,
6408 &omap44xx_l4_per__mmc4,
6409 &omap44xx_l4_per__mmc5,
Omar Ramirez Luna230844d2012-09-23 17:28:24 -06006410 &omap44xx_l3_main_2__mmu_ipu,
6411 &omap44xx_l4_cfg__mmu_dsp,
Paul Walmsleye17f18c2012-04-19 13:33:56 -06006412 &omap44xx_l3_main_2__ocmc_ram,
Benoît Cousson0c668872012-04-19 13:33:55 -06006413 &omap44xx_l4_cfg__ocp2scp_usb_phy,
Paul Walmsley794b4802012-04-19 13:33:58 -06006414 &omap44xx_mpu_private__prcm_mpu,
6415 &omap44xx_l4_wkup__cm_core_aon,
6416 &omap44xx_l4_cfg__cm_core,
6417 &omap44xx_l4_wkup__prm,
6418 &omap44xx_l4_wkup__scrm,
Tero Kristob3601242012-09-03 11:50:53 -06006419 /* &omap44xx_l3_main_2__sl2if, */
Benoît Cousson1e3b5e592012-04-19 13:33:53 -06006420 &omap44xx_l4_abe__slimbus1,
6421 &omap44xx_l4_abe__slimbus1_dma,
6422 &omap44xx_l4_per__slimbus2,
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006423 &omap44xx_l4_cfg__smartreflex_core,
6424 &omap44xx_l4_cfg__smartreflex_iva,
6425 &omap44xx_l4_cfg__smartreflex_mpu,
6426 &omap44xx_l4_cfg__spinlock,
6427 &omap44xx_l4_wkup__timer1,
6428 &omap44xx_l4_per__timer2,
6429 &omap44xx_l4_per__timer3,
6430 &omap44xx_l4_per__timer4,
6431 &omap44xx_l4_abe__timer5,
6432 &omap44xx_l4_abe__timer5_dma,
6433 &omap44xx_l4_abe__timer6,
6434 &omap44xx_l4_abe__timer6_dma,
6435 &omap44xx_l4_abe__timer7,
6436 &omap44xx_l4_abe__timer7_dma,
6437 &omap44xx_l4_abe__timer8,
6438 &omap44xx_l4_abe__timer8_dma,
6439 &omap44xx_l4_per__timer9,
6440 &omap44xx_l4_per__timer10,
6441 &omap44xx_l4_per__timer11,
6442 &omap44xx_l4_per__uart1,
6443 &omap44xx_l4_per__uart2,
6444 &omap44xx_l4_per__uart3,
6445 &omap44xx_l4_per__uart4,
Paul Walmsleyb0a70cc2012-07-04 06:55:29 -06006446 /* &omap44xx_l4_cfg__usb_host_fs, */
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006447 &omap44xx_l4_cfg__usb_host_hs,
6448 &omap44xx_l4_cfg__usb_otg_hs,
6449 &omap44xx_l4_cfg__usb_tll_hs,
6450 &omap44xx_l4_wkup__wd_timer2,
6451 &omap44xx_l4_abe__wd_timer3,
6452 &omap44xx_l4_abe__wd_timer3_dma,
Benoit Cousson55d2cb02010-05-12 17:54:36 +02006453 NULL,
6454};
6455
6456int __init omap44xx_hwmod_init(void)
6457{
Kevin Hilman9ebfd282012-06-18 12:12:23 -06006458 omap_hwmod_init();
Paul Walmsley0a78c5c2012-04-19 04:04:31 -06006459 return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs);
Benoit Cousson55d2cb02010-05-12 17:54:36 +02006460}
6461