Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Hardware modules present on the OMAP44xx chips |
| 3 | * |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 4 | * Copyright (C) 2009-2012 Texas Instruments, Inc. |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 5 | * 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 Lindgren | 4b25408 | 2012-08-30 15:37:24 -0700 | [diff] [blame] | 22 | #include <linux/platform_data/gpio-omap.h> |
Jean Pihet | b86aeaf | 2012-04-25 16:06:20 +0530 | [diff] [blame] | 23 | #include <linux/power/smartreflex.h> |
Kishon Vijay Abraham I | 637874d | 2012-10-27 19:05:55 +0530 | [diff] [blame] | 24 | #include <linux/platform_data/omap_ocp2scp.h> |
Tony Lindgren | 3a8761c | 2012-10-08 09:11:22 -0700 | [diff] [blame] | 25 | #include <linux/i2c-omap.h> |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 26 | |
Tony Lindgren | 45c3eb7 | 2012-11-30 08:41:50 -0800 | [diff] [blame] | 27 | #include <linux/omap-dma.h> |
Tony Lindgren | 2a296c8 | 2012-10-02 17:41:35 -0700 | [diff] [blame] | 28 | |
Arnd Bergmann | 2203747 | 2012-08-24 15:21:06 +0200 | [diff] [blame] | 29 | #include <linux/platform_data/spi-omap2-mcspi.h> |
| 30 | #include <linux/platform_data/asoc-ti-mcbsp.h> |
Tony Lindgren | 2ab7c84 | 2012-11-02 12:24:14 -0700 | [diff] [blame] | 31 | #include <linux/platform_data/iommu-omap.h> |
Tarun Kanti DebBarma | c345c8b | 2011-09-20 17:00:18 +0530 | [diff] [blame] | 32 | #include <plat/dmtimer.h> |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 33 | |
Tony Lindgren | 2a296c8 | 2012-10-02 17:41:35 -0700 | [diff] [blame] | 34 | #include "omap_hwmod.h" |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 35 | #include "omap_hwmod_common_data.h" |
Paul Walmsley | d198b51 | 2010-12-21 15:30:54 -0700 | [diff] [blame] | 36 | #include "cm1_44xx.h" |
| 37 | #include "cm2_44xx.h" |
| 38 | #include "prm44xx.h" |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 39 | #include "prm-regbits-44xx.h" |
Tony Lindgren | 3a8761c | 2012-10-08 09:11:22 -0700 | [diff] [blame] | 40 | #include "i2c.h" |
Tony Lindgren | 68f39e7 | 2012-10-15 12:09:43 -0700 | [diff] [blame] | 41 | #include "mmc.h" |
Paul Walmsley | ff2516f | 2010-12-21 15:39:15 -0700 | [diff] [blame] | 42 | #include "wd_timer.h" |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 43 | |
| 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 48 | #define OMAP44XX_DMA_REQ_START 1 |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 49 | |
| 50 | /* |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 51 | * IP blocks |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 52 | */ |
| 53 | |
| 54 | /* |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 55 | * 'c2c_target_fw' class |
| 56 | * instance(s): c2c_target_fw |
| 57 | */ |
| 58 | static struct omap_hwmod_class omap44xx_c2c_target_fw_hwmod_class = { |
| 59 | .name = "c2c_target_fw", |
| 60 | }; |
| 61 | |
| 62 | /* c2c_target_fw */ |
| 63 | static 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 Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 76 | * 'dmm' class |
| 77 | * instance(s): dmm |
| 78 | */ |
| 79 | static struct omap_hwmod_class omap44xx_dmm_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 80 | .name = "dmm", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 81 | }; |
| 82 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 83 | /* dmm */ |
| 84 | static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = { |
| 85 | { .irq = 113 + OMAP44XX_IRQ_GIC_START }, |
| 86 | { .irq = -1 } |
| 87 | }; |
| 88 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 89 | static struct omap_hwmod omap44xx_dmm_hwmod = { |
| 90 | .name = "dmm", |
| 91 | .class = &omap44xx_dmm_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 92 | .clkdm_name = "l3_emif_clkdm", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 93 | .mpu_irqs = omap44xx_dmm_irqs, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 94 | .prcm = { |
| 95 | .omap4 = { |
| 96 | .clkctrl_offs = OMAP4_CM_MEMIF_DMM_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 97 | .context_offs = OMAP4_RM_MEMIF_DMM_CONTEXT_OFFSET, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 98 | }, |
| 99 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 100 | }; |
| 101 | |
| 102 | /* |
| 103 | * 'emif_fw' class |
| 104 | * instance(s): emif_fw |
| 105 | */ |
| 106 | static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 107 | .name = "emif_fw", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 108 | }; |
| 109 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 110 | /* emif_fw */ |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 111 | static struct omap_hwmod omap44xx_emif_fw_hwmod = { |
| 112 | .name = "emif_fw", |
| 113 | .class = &omap44xx_emif_fw_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 114 | .clkdm_name = "l3_emif_clkdm", |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 115 | .prcm = { |
| 116 | .omap4 = { |
| 117 | .clkctrl_offs = OMAP4_CM_MEMIF_EMIF_FW_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 118 | .context_offs = OMAP4_RM_MEMIF_EMIF_FW_CONTEXT_OFFSET, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 119 | }, |
| 120 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 121 | }; |
| 122 | |
| 123 | /* |
| 124 | * 'l3' class |
| 125 | * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3 |
| 126 | */ |
| 127 | static struct omap_hwmod_class omap44xx_l3_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 128 | .name = "l3", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 129 | }; |
| 130 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 131 | /* l3_instr */ |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 132 | static struct omap_hwmod omap44xx_l3_instr_hwmod = { |
| 133 | .name = "l3_instr", |
| 134 | .class = &omap44xx_l3_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 135 | .clkdm_name = "l3_instr_clkdm", |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 136 | .prcm = { |
| 137 | .omap4 = { |
| 138 | .clkctrl_offs = OMAP4_CM_L3INSTR_L3_INSTR_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 139 | .context_offs = OMAP4_RM_L3INSTR_L3_INSTR_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 140 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 141 | }, |
| 142 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 143 | }; |
| 144 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 145 | /* l3_main_1 */ |
Benoit Cousson | 9b4021b | 2011-07-09 19:14:27 -0600 | [diff] [blame] | 146 | static 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 Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 152 | static struct omap_hwmod omap44xx_l3_main_1_hwmod = { |
| 153 | .name = "l3_main_1", |
| 154 | .class = &omap44xx_l3_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 155 | .clkdm_name = "l3_1_clkdm", |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 156 | .mpu_irqs = omap44xx_l3_main_1_irqs, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 157 | .prcm = { |
| 158 | .omap4 = { |
| 159 | .clkctrl_offs = OMAP4_CM_L3_1_L3_1_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 160 | .context_offs = OMAP4_RM_L3_1_L3_1_CONTEXT_OFFSET, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 161 | }, |
| 162 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 163 | }; |
| 164 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 165 | /* l3_main_2 */ |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 166 | static struct omap_hwmod omap44xx_l3_main_2_hwmod = { |
| 167 | .name = "l3_main_2", |
| 168 | .class = &omap44xx_l3_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 169 | .clkdm_name = "l3_2_clkdm", |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 170 | .prcm = { |
| 171 | .omap4 = { |
| 172 | .clkctrl_offs = OMAP4_CM_L3_2_L3_2_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 173 | .context_offs = OMAP4_RM_L3_2_L3_2_CONTEXT_OFFSET, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 174 | }, |
| 175 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 176 | }; |
| 177 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 178 | /* l3_main_3 */ |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 179 | static struct omap_hwmod omap44xx_l3_main_3_hwmod = { |
| 180 | .name = "l3_main_3", |
| 181 | .class = &omap44xx_l3_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 182 | .clkdm_name = "l3_instr_clkdm", |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 183 | .prcm = { |
| 184 | .omap4 = { |
| 185 | .clkctrl_offs = OMAP4_CM_L3INSTR_L3_3_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 186 | .context_offs = OMAP4_RM_L3INSTR_L3_3_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 187 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 188 | }, |
| 189 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | /* |
| 193 | * 'l4' class |
| 194 | * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup |
| 195 | */ |
| 196 | static struct omap_hwmod_class omap44xx_l4_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 197 | .name = "l4", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 198 | }; |
| 199 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 200 | /* l4_abe */ |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 201 | static struct omap_hwmod omap44xx_l4_abe_hwmod = { |
| 202 | .name = "l4_abe", |
| 203 | .class = &omap44xx_l4_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 204 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 205 | .prcm = { |
| 206 | .omap4 = { |
| 207 | .clkctrl_offs = OMAP4_CM1_ABE_L4ABE_CLKCTRL_OFFSET, |
Tero Kristo | ce80979 | 2012-09-23 17:28:19 -0600 | [diff] [blame] | 208 | .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET, |
| 209 | .lostcontext_mask = OMAP4430_LOSTMEM_AESSMEM_MASK, |
Tero Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 210 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 211 | }, |
| 212 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 213 | }; |
| 214 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 215 | /* l4_cfg */ |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 216 | static struct omap_hwmod omap44xx_l4_cfg_hwmod = { |
| 217 | .name = "l4_cfg", |
| 218 | .class = &omap44xx_l4_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 219 | .clkdm_name = "l4_cfg_clkdm", |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 220 | .prcm = { |
| 221 | .omap4 = { |
| 222 | .clkctrl_offs = OMAP4_CM_L4CFG_L4_CFG_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 223 | .context_offs = OMAP4_RM_L4CFG_L4_CFG_CONTEXT_OFFSET, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 224 | }, |
| 225 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 226 | }; |
| 227 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 228 | /* l4_per */ |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 229 | static struct omap_hwmod omap44xx_l4_per_hwmod = { |
| 230 | .name = "l4_per", |
| 231 | .class = &omap44xx_l4_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 232 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 233 | .prcm = { |
| 234 | .omap4 = { |
| 235 | .clkctrl_offs = OMAP4_CM_L4PER_L4PER_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 236 | .context_offs = OMAP4_RM_L4PER_L4_PER_CONTEXT_OFFSET, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 237 | }, |
| 238 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 239 | }; |
| 240 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 241 | /* l4_wkup */ |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 242 | static struct omap_hwmod omap44xx_l4_wkup_hwmod = { |
| 243 | .name = "l4_wkup", |
| 244 | .class = &omap44xx_l4_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 245 | .clkdm_name = "l4_wkup_clkdm", |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 246 | .prcm = { |
| 247 | .omap4 = { |
| 248 | .clkctrl_offs = OMAP4_CM_WKUP_L4WKUP_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 249 | .context_offs = OMAP4_RM_WKUP_L4WKUP_CONTEXT_OFFSET, |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 250 | }, |
| 251 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 252 | }; |
| 253 | |
| 254 | /* |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 255 | * 'mpu_bus' class |
| 256 | * instance(s): mpu_private |
| 257 | */ |
| 258 | static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 259 | .name = "mpu_bus", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 260 | }; |
| 261 | |
Benoit Cousson | 7e69ed9 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 262 | /* mpu_private */ |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 263 | static struct omap_hwmod omap44xx_mpu_private_hwmod = { |
| 264 | .name = "mpu_private", |
| 265 | .class = &omap44xx_mpu_bus_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 266 | .clkdm_name = "mpuss_clkdm", |
Tero Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 267 | .prcm = { |
| 268 | .omap4 = { |
| 269 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 270 | }, |
| 271 | }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 272 | }; |
| 273 | |
| 274 | /* |
Benoît Cousson | 9a817bc | 2012-04-19 13:33:56 -0600 | [diff] [blame] | 275 | * 'ocp_wp_noc' class |
| 276 | * instance(s): ocp_wp_noc |
| 277 | */ |
| 278 | static struct omap_hwmod_class omap44xx_ocp_wp_noc_hwmod_class = { |
| 279 | .name = "ocp_wp_noc", |
| 280 | }; |
| 281 | |
| 282 | /* ocp_wp_noc */ |
| 283 | static 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 Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 297 | * 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 Cousson | 9656604 | 2012-04-19 13:33:59 -0600 | [diff] [blame] | 304 | * usim |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 305 | */ |
| 306 | |
| 307 | /* |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 308 | * 'aess' class |
| 309 | * audio engine sub system |
| 310 | */ |
| 311 | |
| 312 | static 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 Cousson | c614ebf | 2011-07-01 22:54:01 +0200 | [diff] [blame] | 317 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART | |
| 318 | MSTANDBY_SMART_WKUP), |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 319 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 320 | }; |
| 321 | |
| 322 | static struct omap_hwmod_class omap44xx_aess_hwmod_class = { |
| 323 | .name = "aess", |
| 324 | .sysc = &omap44xx_aess_sysc, |
Paul Walmsley | c02060d | 2013-02-10 11:22:23 -0700 | [diff] [blame] | 325 | .enable_preprogram = omap_hwmod_aess_preprogram, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 326 | }; |
| 327 | |
| 328 | /* aess */ |
| 329 | static struct omap_hwmod_irq_info omap44xx_aess_irqs[] = { |
| 330 | { .irq = 99 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 331 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 332 | }; |
| 333 | |
| 334 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 343 | { .dma_req = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 344 | }; |
| 345 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 346 | static struct omap_hwmod omap44xx_aess_hwmod = { |
| 347 | .name = "aess", |
| 348 | .class = &omap44xx_aess_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 349 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 350 | .mpu_irqs = omap44xx_aess_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 351 | .sdma_reqs = omap44xx_aess_sdma_reqs, |
Sebastien Guiriec | 9f0c599 | 2013-02-10 11:22:24 -0700 | [diff] [blame] | 352 | .main_clk = "aess_fclk", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 353 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 354 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 355 | .clkctrl_offs = OMAP4_CM1_ABE_AESS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 356 | .context_offs = OMAP4_RM_ABE_AESS_CONTEXT_OFFSET, |
Tero Kristo | ce80979 | 2012-09-23 17:28:19 -0600 | [diff] [blame] | 357 | .lostcontext_mask = OMAP4430_LOSTCONTEXT_DFF_MASK, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 358 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 359 | }, |
| 360 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 361 | }; |
| 362 | |
| 363 | /* |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 364 | * 'c2c' class |
| 365 | * chip 2 chip interface used to plug the ape soc (omap) with an external modem |
| 366 | * soc |
| 367 | */ |
| 368 | |
| 369 | static struct omap_hwmod_class omap44xx_c2c_hwmod_class = { |
| 370 | .name = "c2c", |
| 371 | }; |
| 372 | |
| 373 | /* c2c */ |
| 374 | static struct omap_hwmod_irq_info omap44xx_c2c_irqs[] = { |
| 375 | { .irq = 88 + OMAP44XX_IRQ_GIC_START }, |
| 376 | { .irq = -1 } |
| 377 | }; |
| 378 | |
| 379 | static struct omap_hwmod_dma_info omap44xx_c2c_sdma_reqs[] = { |
| 380 | { .dma_req = 68 + OMAP44XX_DMA_REQ_START }, |
| 381 | { .dma_req = -1 } |
| 382 | }; |
| 383 | |
| 384 | static 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 Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 399 | * 'counter' class |
| 400 | * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock |
| 401 | */ |
| 402 | |
| 403 | static struct omap_hwmod_class_sysconfig omap44xx_counter_sysc = { |
| 404 | .rev_offs = 0x0000, |
| 405 | .sysc_offs = 0x0004, |
| 406 | .sysc_flags = SYSC_HAS_SIDLEMODE, |
Paul Walmsley | 252a4c5 | 2012-06-17 11:57:51 -0600 | [diff] [blame] | 407 | .idlemodes = (SIDLE_FORCE | SIDLE_NO), |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 408 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 409 | }; |
| 410 | |
| 411 | static struct omap_hwmod_class omap44xx_counter_hwmod_class = { |
| 412 | .name = "counter", |
| 413 | .sysc = &omap44xx_counter_sysc, |
| 414 | }; |
| 415 | |
| 416 | /* counter_32k */ |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 417 | static struct omap_hwmod omap44xx_counter_32k_hwmod = { |
| 418 | .name = "counter_32k", |
| 419 | .class = &omap44xx_counter_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 420 | .clkdm_name = "l4_wkup_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 421 | .flags = HWMOD_SWSUP_SIDLE, |
| 422 | .main_clk = "sys_32k_ck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 423 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 424 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 425 | .clkctrl_offs = OMAP4_CM_WKUP_SYNCTIMER_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 426 | .context_offs = OMAP4_RM_WKUP_SYNCTIMER_CONTEXT_OFFSET, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 427 | }, |
| 428 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 429 | }; |
| 430 | |
| 431 | /* |
Paul Walmsley | a0b5d81 | 2012-04-19 13:33:57 -0600 | [diff] [blame] | 432 | * 'ctrl_module' class |
| 433 | * attila core control module + core pad control module + wkup pad control |
| 434 | * module + attila wkup control module |
| 435 | */ |
| 436 | |
| 437 | static 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 | |
| 446 | static 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 */ |
| 452 | static struct omap_hwmod_irq_info omap44xx_ctrl_module_core_irqs[] = { |
| 453 | { .irq = 8 + OMAP44XX_IRQ_GIC_START }, |
| 454 | { .irq = -1 } |
| 455 | }; |
| 456 | |
| 457 | static 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 Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 462 | .prcm = { |
| 463 | .omap4 = { |
| 464 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 465 | }, |
| 466 | }, |
Paul Walmsley | a0b5d81 | 2012-04-19 13:33:57 -0600 | [diff] [blame] | 467 | }; |
| 468 | |
| 469 | /* ctrl_module_pad_core */ |
| 470 | static 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 Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 474 | .prcm = { |
| 475 | .omap4 = { |
| 476 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 477 | }, |
| 478 | }, |
Paul Walmsley | a0b5d81 | 2012-04-19 13:33:57 -0600 | [diff] [blame] | 479 | }; |
| 480 | |
| 481 | /* ctrl_module_wkup */ |
| 482 | static 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 Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 486 | .prcm = { |
| 487 | .omap4 = { |
| 488 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 489 | }, |
| 490 | }, |
Paul Walmsley | a0b5d81 | 2012-04-19 13:33:57 -0600 | [diff] [blame] | 491 | }; |
| 492 | |
| 493 | /* ctrl_module_pad_wkup */ |
| 494 | static 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 Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 498 | .prcm = { |
| 499 | .omap4 = { |
| 500 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 501 | }, |
| 502 | }, |
Paul Walmsley | a0b5d81 | 2012-04-19 13:33:57 -0600 | [diff] [blame] | 503 | }; |
| 504 | |
| 505 | /* |
Benoît Cousson | 9656604 | 2012-04-19 13:33:59 -0600 | [diff] [blame] | 506 | * 'debugss' class |
| 507 | * debug and emulation sub system |
| 508 | */ |
| 509 | |
| 510 | static struct omap_hwmod_class omap44xx_debugss_hwmod_class = { |
| 511 | .name = "debugss", |
| 512 | }; |
| 513 | |
| 514 | /* debugss */ |
| 515 | static 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 Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 529 | * '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 | |
| 534 | static 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 | |
| 547 | static struct omap_hwmod_class omap44xx_dma_hwmod_class = { |
| 548 | .name = "dma", |
| 549 | .sysc = &omap44xx_dma_sysc, |
| 550 | }; |
| 551 | |
| 552 | /* dma dev_attr */ |
| 553 | static 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 */ |
| 560 | static 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 Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 565 | { .irq = -1 } |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 566 | }; |
| 567 | |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 568 | static struct omap_hwmod omap44xx_dma_system_hwmod = { |
| 569 | .name = "dma_system", |
| 570 | .class = &omap44xx_dma_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 571 | .clkdm_name = "l3_dma_clkdm", |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 572 | .mpu_irqs = omap44xx_dma_system_irqs, |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 573 | .main_clk = "l3_div_ck", |
| 574 | .prcm = { |
| 575 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 576 | .clkctrl_offs = OMAP4_CM_SDMA_SDMA_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 577 | .context_offs = OMAP4_RM_SDMA_SDMA_CONTEXT_OFFSET, |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 578 | }, |
| 579 | }, |
| 580 | .dev_attr = &dma_dev_attr, |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 581 | }; |
| 582 | |
| 583 | /* |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 584 | * 'dmic' class |
| 585 | * digital microphone controller |
| 586 | */ |
| 587 | |
| 588 | static 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 | |
| 598 | static struct omap_hwmod_class omap44xx_dmic_hwmod_class = { |
| 599 | .name = "dmic", |
| 600 | .sysc = &omap44xx_dmic_sysc, |
| 601 | }; |
| 602 | |
| 603 | /* dmic */ |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 604 | static struct omap_hwmod_irq_info omap44xx_dmic_irqs[] = { |
| 605 | { .irq = 114 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 606 | { .irq = -1 } |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 607 | }; |
| 608 | |
| 609 | static struct omap_hwmod_dma_info omap44xx_dmic_sdma_reqs[] = { |
| 610 | { .dma_req = 66 + OMAP44XX_DMA_REQ_START }, |
Paul Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 611 | { .dma_req = -1 } |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 612 | }; |
| 613 | |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 614 | static struct omap_hwmod omap44xx_dmic_hwmod = { |
| 615 | .name = "dmic", |
| 616 | .class = &omap44xx_dmic_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 617 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 618 | .mpu_irqs = omap44xx_dmic_irqs, |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 619 | .sdma_reqs = omap44xx_dmic_sdma_reqs, |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 620 | .main_clk = "dmic_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 621 | .prcm = { |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 622 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 623 | .clkctrl_offs = OMAP4_CM1_ABE_DMIC_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 624 | .context_offs = OMAP4_RM_ABE_DMIC_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 625 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 626 | }, |
| 627 | }, |
Benoit Cousson | 8ca476d | 2011-01-25 22:01:00 +0000 | [diff] [blame] | 628 | }; |
| 629 | |
| 630 | /* |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 631 | * 'dsp' class |
| 632 | * dsp sub-system |
| 633 | */ |
| 634 | |
| 635 | static struct omap_hwmod_class omap44xx_dsp_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 636 | .name = "dsp", |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 637 | }; |
| 638 | |
| 639 | /* dsp */ |
| 640 | static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = { |
| 641 | { .irq = 28 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 642 | { .irq = -1 } |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 643 | }; |
| 644 | |
| 645 | static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = { |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 646 | { .name = "dsp", .rst_shift = 0 }, |
| 647 | }; |
| 648 | |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 649 | static struct omap_hwmod omap44xx_dsp_hwmod = { |
| 650 | .name = "dsp", |
| 651 | .class = &omap44xx_dsp_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 652 | .clkdm_name = "tesla_clkdm", |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 653 | .mpu_irqs = omap44xx_dsp_irqs, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 654 | .rst_lines = omap44xx_dsp_resets, |
| 655 | .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets), |
Omar Ramirez Luna | 298ea44 | 2012-11-19 19:05:52 -0600 | [diff] [blame] | 656 | .main_clk = "dpll_iva_m4x2_ck", |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 657 | .prcm = { |
| 658 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 659 | .clkctrl_offs = OMAP4_CM_TESLA_TESLA_CLKCTRL_OFFSET, |
Benoit Cousson | eaac329 | 2011-07-10 05:56:31 -0600 | [diff] [blame] | 660 | .rstctrl_offs = OMAP4_RM_TESLA_RSTCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 661 | .context_offs = OMAP4_RM_TESLA_TESLA_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 662 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 663 | }, |
| 664 | }, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 665 | }; |
| 666 | |
| 667 | /* |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 668 | * 'dss' class |
| 669 | * display sub-system |
| 670 | */ |
| 671 | |
| 672 | static 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 | |
| 678 | static struct omap_hwmod_class omap44xx_dss_hwmod_class = { |
| 679 | .name = "dss", |
| 680 | .sysc = &omap44xx_dss_sysc, |
Tomi Valkeinen | 13662dc | 2011-11-08 03:16:13 -0700 | [diff] [blame] | 681 | .reset = omap_dss_reset, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 682 | }; |
| 683 | |
| 684 | /* dss */ |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 685 | static 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 Valkeinen | 4d0698d | 2011-11-08 03:16:12 -0700 | [diff] [blame] | 688 | { .role = "hdmi_clk", .clk = "dss_48mhz_clk" }, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 689 | }; |
| 690 | |
| 691 | static struct omap_hwmod omap44xx_dss_hwmod = { |
| 692 | .name = "dss_core", |
Tomi Valkeinen | 37ad085 | 2011-11-08 03:16:11 -0700 | [diff] [blame] | 693 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 694 | .class = &omap44xx_dss_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 695 | .clkdm_name = "l3_dss_clkdm", |
Tomi Valkeinen | da7cdfa | 2011-07-09 20:39:45 -0600 | [diff] [blame] | 696 | .main_clk = "dss_dss_clk", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 697 | .prcm = { |
| 698 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 699 | .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 700 | .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 701 | }, |
| 702 | }, |
| 703 | .opt_clks = dss_opt_clks, |
| 704 | .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks), |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 705 | }; |
| 706 | |
| 707 | /* |
| 708 | * 'dispc' class |
| 709 | * display controller |
| 710 | */ |
| 711 | |
| 712 | static 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 | |
| 725 | static struct omap_hwmod_class omap44xx_dispc_hwmod_class = { |
| 726 | .name = "dispc", |
| 727 | .sysc = &omap44xx_dispc_sysc, |
| 728 | }; |
| 729 | |
| 730 | /* dss_dispc */ |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 731 | static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = { |
| 732 | { .irq = 25 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 733 | { .irq = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 734 | }; |
| 735 | |
| 736 | static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = { |
| 737 | { .dma_req = 5 + OMAP44XX_DMA_REQ_START }, |
Paul Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 738 | { .dma_req = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 739 | }; |
| 740 | |
Archit Taneja | b923d40 | 2011-10-06 18:04:08 -0600 | [diff] [blame] | 741 | static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = { |
| 742 | .manager_count = 3, |
| 743 | .has_framedonetv_irq = 1 |
| 744 | }; |
| 745 | |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 746 | static struct omap_hwmod omap44xx_dss_dispc_hwmod = { |
| 747 | .name = "dss_dispc", |
| 748 | .class = &omap44xx_dispc_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 749 | .clkdm_name = "l3_dss_clkdm", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 750 | .mpu_irqs = omap44xx_dss_dispc_irqs, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 751 | .sdma_reqs = omap44xx_dss_dispc_sdma_reqs, |
Tomi Valkeinen | da7cdfa | 2011-07-09 20:39:45 -0600 | [diff] [blame] | 752 | .main_clk = "dss_dss_clk", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 753 | .prcm = { |
| 754 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 755 | .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 756 | .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 757 | }, |
| 758 | }, |
Archit Taneja | b923d40 | 2011-10-06 18:04:08 -0600 | [diff] [blame] | 759 | .dev_attr = &omap44xx_dss_dispc_dev_attr |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 760 | }; |
| 761 | |
| 762 | /* |
| 763 | * 'dsi' class |
| 764 | * display serial interface controller |
| 765 | */ |
| 766 | |
| 767 | static 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 | |
| 778 | static struct omap_hwmod_class omap44xx_dsi_hwmod_class = { |
| 779 | .name = "dsi", |
| 780 | .sysc = &omap44xx_dsi_sysc, |
| 781 | }; |
| 782 | |
| 783 | /* dss_dsi1 */ |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 784 | static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = { |
| 785 | { .irq = 53 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 786 | { .irq = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 787 | }; |
| 788 | |
| 789 | static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = { |
| 790 | { .dma_req = 74 + OMAP44XX_DMA_REQ_START }, |
Paul Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 791 | { .dma_req = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 792 | }; |
| 793 | |
Tomi Valkeinen | 3a23aaf | 2011-07-09 20:39:44 -0600 | [diff] [blame] | 794 | static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = { |
| 795 | { .role = "sys_clk", .clk = "dss_sys_clk" }, |
| 796 | }; |
| 797 | |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 798 | static struct omap_hwmod omap44xx_dss_dsi1_hwmod = { |
| 799 | .name = "dss_dsi1", |
| 800 | .class = &omap44xx_dsi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 801 | .clkdm_name = "l3_dss_clkdm", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 802 | .mpu_irqs = omap44xx_dss_dsi1_irqs, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 803 | .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs, |
Tomi Valkeinen | da7cdfa | 2011-07-09 20:39:45 -0600 | [diff] [blame] | 804 | .main_clk = "dss_dss_clk", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 805 | .prcm = { |
| 806 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 807 | .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 808 | .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 809 | }, |
| 810 | }, |
Tomi Valkeinen | 3a23aaf | 2011-07-09 20:39:44 -0600 | [diff] [blame] | 811 | .opt_clks = dss_dsi1_opt_clks, |
| 812 | .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks), |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 813 | }; |
| 814 | |
| 815 | /* dss_dsi2 */ |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 816 | static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = { |
| 817 | { .irq = 84 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 818 | { .irq = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 819 | }; |
| 820 | |
| 821 | static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = { |
| 822 | { .dma_req = 83 + OMAP44XX_DMA_REQ_START }, |
Paul Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 823 | { .dma_req = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 824 | }; |
| 825 | |
Tomi Valkeinen | 3a23aaf | 2011-07-09 20:39:44 -0600 | [diff] [blame] | 826 | static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = { |
| 827 | { .role = "sys_clk", .clk = "dss_sys_clk" }, |
| 828 | }; |
| 829 | |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 830 | static struct omap_hwmod omap44xx_dss_dsi2_hwmod = { |
| 831 | .name = "dss_dsi2", |
| 832 | .class = &omap44xx_dsi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 833 | .clkdm_name = "l3_dss_clkdm", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 834 | .mpu_irqs = omap44xx_dss_dsi2_irqs, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 835 | .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs, |
Tomi Valkeinen | da7cdfa | 2011-07-09 20:39:45 -0600 | [diff] [blame] | 836 | .main_clk = "dss_dss_clk", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 837 | .prcm = { |
| 838 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 839 | .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 840 | .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 841 | }, |
| 842 | }, |
Tomi Valkeinen | 3a23aaf | 2011-07-09 20:39:44 -0600 | [diff] [blame] | 843 | .opt_clks = dss_dsi2_opt_clks, |
| 844 | .opt_clks_cnt = ARRAY_SIZE(dss_dsi2_opt_clks), |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 845 | }; |
| 846 | |
| 847 | /* |
| 848 | * 'hdmi' class |
| 849 | * hdmi controller |
| 850 | */ |
| 851 | |
| 852 | static 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 | |
| 862 | static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = { |
| 863 | .name = "hdmi", |
| 864 | .sysc = &omap44xx_hdmi_sysc, |
| 865 | }; |
| 866 | |
| 867 | /* dss_hdmi */ |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 868 | static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = { |
| 869 | { .irq = 101 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 870 | { .irq = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 871 | }; |
| 872 | |
| 873 | static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = { |
| 874 | { .dma_req = 75 + OMAP44XX_DMA_REQ_START }, |
Paul Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 875 | { .dma_req = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 876 | }; |
| 877 | |
Tomi Valkeinen | 3a23aaf | 2011-07-09 20:39:44 -0600 | [diff] [blame] | 878 | static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = { |
| 879 | { .role = "sys_clk", .clk = "dss_sys_clk" }, |
| 880 | }; |
| 881 | |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 882 | static struct omap_hwmod omap44xx_dss_hdmi_hwmod = { |
| 883 | .name = "dss_hdmi", |
| 884 | .class = &omap44xx_hdmi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 885 | .clkdm_name = "l3_dss_clkdm", |
Ricardo Neri | dc57aef | 2012-06-21 10:08:53 +0200 | [diff] [blame] | 886 | /* |
| 887 | * HDMI audio requires to use no-idle mode. Hence, |
| 888 | * set idle mode by software. |
| 889 | */ |
| 890 | .flags = HWMOD_SWSUP_SIDLE, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 891 | .mpu_irqs = omap44xx_dss_hdmi_irqs, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 892 | .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs, |
Tomi Valkeinen | 4d0698d | 2011-11-08 03:16:12 -0700 | [diff] [blame] | 893 | .main_clk = "dss_48mhz_clk", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 894 | .prcm = { |
| 895 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 896 | .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 897 | .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 898 | }, |
| 899 | }, |
Tomi Valkeinen | 3a23aaf | 2011-07-09 20:39:44 -0600 | [diff] [blame] | 900 | .opt_clks = dss_hdmi_opt_clks, |
| 901 | .opt_clks_cnt = ARRAY_SIZE(dss_hdmi_opt_clks), |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 902 | }; |
| 903 | |
| 904 | /* |
| 905 | * 'rfbi' class |
| 906 | * remote frame buffer interface |
| 907 | */ |
| 908 | |
| 909 | static 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 | |
| 919 | static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = { |
| 920 | .name = "rfbi", |
| 921 | .sysc = &omap44xx_rfbi_sysc, |
| 922 | }; |
| 923 | |
| 924 | /* dss_rfbi */ |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 925 | static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = { |
| 926 | { .dma_req = 13 + OMAP44XX_DMA_REQ_START }, |
Paul Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 927 | { .dma_req = -1 } |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 928 | }; |
| 929 | |
Tomi Valkeinen | 3a23aaf | 2011-07-09 20:39:44 -0600 | [diff] [blame] | 930 | static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = { |
| 931 | { .role = "ick", .clk = "dss_fck" }, |
| 932 | }; |
| 933 | |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 934 | static struct omap_hwmod omap44xx_dss_rfbi_hwmod = { |
| 935 | .name = "dss_rfbi", |
| 936 | .class = &omap44xx_rfbi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 937 | .clkdm_name = "l3_dss_clkdm", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 938 | .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs, |
Tomi Valkeinen | da7cdfa | 2011-07-09 20:39:45 -0600 | [diff] [blame] | 939 | .main_clk = "dss_dss_clk", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 940 | .prcm = { |
| 941 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 942 | .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 943 | .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 944 | }, |
| 945 | }, |
Tomi Valkeinen | 3a23aaf | 2011-07-09 20:39:44 -0600 | [diff] [blame] | 946 | .opt_clks = dss_rfbi_opt_clks, |
| 947 | .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks), |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 948 | }; |
| 949 | |
| 950 | /* |
| 951 | * 'venc' class |
| 952 | * video encoder |
| 953 | */ |
| 954 | |
| 955 | static struct omap_hwmod_class omap44xx_venc_hwmod_class = { |
| 956 | .name = "venc", |
| 957 | }; |
| 958 | |
| 959 | /* dss_venc */ |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 960 | static struct omap_hwmod omap44xx_dss_venc_hwmod = { |
| 961 | .name = "dss_venc", |
| 962 | .class = &omap44xx_venc_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 963 | .clkdm_name = "l3_dss_clkdm", |
Tomi Valkeinen | 4d0698d | 2011-11-08 03:16:12 -0700 | [diff] [blame] | 964 | .main_clk = "dss_tv_clk", |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 965 | .prcm = { |
| 966 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 967 | .clkctrl_offs = OMAP4_CM_DSS_DSS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 968 | .context_offs = OMAP4_RM_DSS_DSS_CONTEXT_OFFSET, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 969 | }, |
| 970 | }, |
Benoit Cousson | d63bd74 | 2011-01-27 11:17:03 +0000 | [diff] [blame] | 971 | }; |
| 972 | |
| 973 | /* |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 974 | * 'elm' class |
| 975 | * bch error location module |
| 976 | */ |
| 977 | |
| 978 | static 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 | |
| 989 | static struct omap_hwmod_class omap44xx_elm_hwmod_class = { |
| 990 | .name = "elm", |
| 991 | .sysc = &omap44xx_elm_sysc, |
| 992 | }; |
| 993 | |
| 994 | /* elm */ |
| 995 | static struct omap_hwmod_irq_info omap44xx_elm_irqs[] = { |
| 996 | { .irq = 4 + OMAP44XX_IRQ_GIC_START }, |
| 997 | { .irq = -1 } |
| 998 | }; |
| 999 | |
| 1000 | static 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 Walmsley | bf30f95 | 2012-04-19 13:33:52 -0600 | [diff] [blame] | 1014 | * 'emif' class |
| 1015 | * external memory interface no1 |
| 1016 | */ |
| 1017 | |
| 1018 | static struct omap_hwmod_class_sysconfig omap44xx_emif_sysc = { |
| 1019 | .rev_offs = 0x0000, |
| 1020 | }; |
| 1021 | |
| 1022 | static struct omap_hwmod_class omap44xx_emif_hwmod_class = { |
| 1023 | .name = "emif", |
| 1024 | .sysc = &omap44xx_emif_sysc, |
| 1025 | }; |
| 1026 | |
| 1027 | /* emif1 */ |
| 1028 | static struct omap_hwmod_irq_info omap44xx_emif1_irqs[] = { |
| 1029 | { .irq = 110 + OMAP44XX_IRQ_GIC_START }, |
| 1030 | { .irq = -1 } |
| 1031 | }; |
| 1032 | |
| 1033 | static 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 */ |
| 1050 | static struct omap_hwmod_irq_info omap44xx_emif2_irqs[] = { |
| 1051 | { .irq = 111 + OMAP44XX_IRQ_GIC_START }, |
| 1052 | { .irq = -1 } |
| 1053 | }; |
| 1054 | |
| 1055 | static 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 Lei | b050f68 | 2012-04-19 13:33:50 -0600 | [diff] [blame] | 1072 | * 'fdif' class |
| 1073 | * face detection hw accelerator module |
| 1074 | */ |
| 1075 | |
| 1076 | static 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 | |
| 1095 | static struct omap_hwmod_class omap44xx_fdif_hwmod_class = { |
| 1096 | .name = "fdif", |
| 1097 | .sysc = &omap44xx_fdif_sysc, |
| 1098 | }; |
| 1099 | |
| 1100 | /* fdif */ |
| 1101 | static struct omap_hwmod_irq_info omap44xx_fdif_irqs[] = { |
| 1102 | { .irq = 69 + OMAP44XX_IRQ_GIC_START }, |
| 1103 | { .irq = -1 } |
| 1104 | }; |
| 1105 | |
| 1106 | static 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 Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1122 | * 'gpio' class |
| 1123 | * general purpose io module |
| 1124 | */ |
| 1125 | |
| 1126 | static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = { |
| 1127 | .rev_offs = 0x0000, |
| 1128 | .sysc_offs = 0x0010, |
| 1129 | .syss_offs = 0x0114, |
Benoit Cousson | 0cfe875 | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1130 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP | |
| 1131 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | |
| 1132 | SYSS_HAS_RESET_STATUS), |
Benoit Cousson | 7cffa6b | 2010-12-21 21:31:28 -0700 | [diff] [blame] | 1133 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1134 | SIDLE_SMART_WKUP), |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1135 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1136 | }; |
| 1137 | |
| 1138 | static struct omap_hwmod_class omap44xx_gpio_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1139 | .name = "gpio", |
| 1140 | .sysc = &omap44xx_gpio_sysc, |
| 1141 | .rev = 2, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1142 | }; |
| 1143 | |
| 1144 | /* gpio dev_attr */ |
| 1145 | static struct omap_gpio_dev_attr gpio_dev_attr = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1146 | .bank_width = 32, |
| 1147 | .dbck_flag = true, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1148 | }; |
| 1149 | |
| 1150 | /* gpio1 */ |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1151 | static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = { |
| 1152 | { .irq = 29 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1153 | { .irq = -1 } |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1154 | }; |
| 1155 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1156 | static struct omap_hwmod_opt_clk gpio1_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1157 | { .role = "dbclk", .clk = "gpio1_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1158 | }; |
| 1159 | |
| 1160 | static struct omap_hwmod omap44xx_gpio1_hwmod = { |
| 1161 | .name = "gpio1", |
| 1162 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1163 | .clkdm_name = "l4_wkup_clkdm", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1164 | .mpu_irqs = omap44xx_gpio1_irqs, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1165 | .main_clk = "gpio1_ick", |
| 1166 | .prcm = { |
| 1167 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1168 | .clkctrl_offs = OMAP4_CM_WKUP_GPIO1_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1169 | .context_offs = OMAP4_RM_WKUP_GPIO1_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1170 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1171 | }, |
| 1172 | }, |
| 1173 | .opt_clks = gpio1_opt_clks, |
| 1174 | .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks), |
| 1175 | .dev_attr = &gpio_dev_attr, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1176 | }; |
| 1177 | |
| 1178 | /* gpio2 */ |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1179 | static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = { |
| 1180 | { .irq = 30 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1181 | { .irq = -1 } |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1182 | }; |
| 1183 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1184 | static struct omap_hwmod_opt_clk gpio2_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1185 | { .role = "dbclk", .clk = "gpio2_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1186 | }; |
| 1187 | |
| 1188 | static struct omap_hwmod omap44xx_gpio2_hwmod = { |
| 1189 | .name = "gpio2", |
| 1190 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1191 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1192 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1193 | .mpu_irqs = omap44xx_gpio2_irqs, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1194 | .main_clk = "gpio2_ick", |
| 1195 | .prcm = { |
| 1196 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1197 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO2_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1198 | .context_offs = OMAP4_RM_L4PER_GPIO2_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1199 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1200 | }, |
| 1201 | }, |
| 1202 | .opt_clks = gpio2_opt_clks, |
| 1203 | .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks), |
| 1204 | .dev_attr = &gpio_dev_attr, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1205 | }; |
| 1206 | |
| 1207 | /* gpio3 */ |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1208 | static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = { |
| 1209 | { .irq = 31 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1210 | { .irq = -1 } |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1211 | }; |
| 1212 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1213 | static struct omap_hwmod_opt_clk gpio3_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1214 | { .role = "dbclk", .clk = "gpio3_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1215 | }; |
| 1216 | |
| 1217 | static struct omap_hwmod omap44xx_gpio3_hwmod = { |
| 1218 | .name = "gpio3", |
| 1219 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1220 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1221 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1222 | .mpu_irqs = omap44xx_gpio3_irqs, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1223 | .main_clk = "gpio3_ick", |
| 1224 | .prcm = { |
| 1225 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1226 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO3_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1227 | .context_offs = OMAP4_RM_L4PER_GPIO3_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1228 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1229 | }, |
| 1230 | }, |
| 1231 | .opt_clks = gpio3_opt_clks, |
| 1232 | .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks), |
| 1233 | .dev_attr = &gpio_dev_attr, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1234 | }; |
| 1235 | |
| 1236 | /* gpio4 */ |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1237 | static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = { |
| 1238 | { .irq = 32 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1239 | { .irq = -1 } |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1240 | }; |
| 1241 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1242 | static struct omap_hwmod_opt_clk gpio4_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1243 | { .role = "dbclk", .clk = "gpio4_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1244 | }; |
| 1245 | |
| 1246 | static struct omap_hwmod omap44xx_gpio4_hwmod = { |
| 1247 | .name = "gpio4", |
| 1248 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1249 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1250 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1251 | .mpu_irqs = omap44xx_gpio4_irqs, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1252 | .main_clk = "gpio4_ick", |
| 1253 | .prcm = { |
| 1254 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1255 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO4_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1256 | .context_offs = OMAP4_RM_L4PER_GPIO4_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1257 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1258 | }, |
| 1259 | }, |
| 1260 | .opt_clks = gpio4_opt_clks, |
| 1261 | .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks), |
| 1262 | .dev_attr = &gpio_dev_attr, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1263 | }; |
| 1264 | |
| 1265 | /* gpio5 */ |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1266 | static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = { |
| 1267 | { .irq = 33 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1268 | { .irq = -1 } |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1269 | }; |
| 1270 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1271 | static struct omap_hwmod_opt_clk gpio5_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1272 | { .role = "dbclk", .clk = "gpio5_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1273 | }; |
| 1274 | |
| 1275 | static struct omap_hwmod omap44xx_gpio5_hwmod = { |
| 1276 | .name = "gpio5", |
| 1277 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1278 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1279 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1280 | .mpu_irqs = omap44xx_gpio5_irqs, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1281 | .main_clk = "gpio5_ick", |
| 1282 | .prcm = { |
| 1283 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1284 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO5_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1285 | .context_offs = OMAP4_RM_L4PER_GPIO5_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1286 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1287 | }, |
| 1288 | }, |
| 1289 | .opt_clks = gpio5_opt_clks, |
| 1290 | .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks), |
| 1291 | .dev_attr = &gpio_dev_attr, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1292 | }; |
| 1293 | |
| 1294 | /* gpio6 */ |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1295 | static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = { |
| 1296 | { .irq = 34 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1297 | { .irq = -1 } |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1298 | }; |
| 1299 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1300 | static struct omap_hwmod_opt_clk gpio6_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1301 | { .role = "dbclk", .clk = "gpio6_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1302 | }; |
| 1303 | |
| 1304 | static struct omap_hwmod omap44xx_gpio6_hwmod = { |
| 1305 | .name = "gpio6", |
| 1306 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1307 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1308 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1309 | .mpu_irqs = omap44xx_gpio6_irqs, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1310 | .main_clk = "gpio6_ick", |
| 1311 | .prcm = { |
| 1312 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1313 | .clkctrl_offs = OMAP4_CM_L4PER_GPIO6_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1314 | .context_offs = OMAP4_RM_L4PER_GPIO6_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1315 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1316 | }, |
| 1317 | }, |
| 1318 | .opt_clks = gpio6_opt_clks, |
| 1319 | .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks), |
| 1320 | .dev_attr = &gpio_dev_attr, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1321 | }; |
| 1322 | |
| 1323 | /* |
Benoît Cousson | eb42b5d | 2012-04-19 13:33:51 -0600 | [diff] [blame] | 1324 | * 'gpmc' class |
| 1325 | * general purpose memory controller |
| 1326 | */ |
| 1327 | |
| 1328 | static 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 | |
| 1338 | static struct omap_hwmod_class omap44xx_gpmc_hwmod_class = { |
| 1339 | .name = "gpmc", |
| 1340 | .sysc = &omap44xx_gpmc_sysc, |
| 1341 | }; |
| 1342 | |
| 1343 | /* gpmc */ |
| 1344 | static struct omap_hwmod_irq_info omap44xx_gpmc_irqs[] = { |
| 1345 | { .irq = 20 + OMAP44XX_IRQ_GIC_START }, |
| 1346 | { .irq = -1 } |
| 1347 | }; |
| 1348 | |
| 1349 | static struct omap_hwmod_dma_info omap44xx_gpmc_sdma_reqs[] = { |
| 1350 | { .dma_req = 3 + OMAP44XX_DMA_REQ_START }, |
| 1351 | { .dma_req = -1 } |
| 1352 | }; |
| 1353 | |
| 1354 | static struct omap_hwmod omap44xx_gpmc_hwmod = { |
| 1355 | .name = "gpmc", |
| 1356 | .class = &omap44xx_gpmc_hwmod_class, |
| 1357 | .clkdm_name = "l3_2_clkdm", |
Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 1358 | /* |
| 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 Cousson | eb42b5d | 2012-04-19 13:33:51 -0600 | [diff] [blame] | 1366 | .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 Walmsley | 9def390 | 2012-04-19 13:33:53 -0600 | [diff] [blame] | 1379 | * 'gpu' class |
| 1380 | * 2d/3d graphics accelerator |
| 1381 | */ |
| 1382 | |
| 1383 | static 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 | |
| 1393 | static struct omap_hwmod_class omap44xx_gpu_hwmod_class = { |
| 1394 | .name = "gpu", |
| 1395 | .sysc = &omap44xx_gpu_sysc, |
| 1396 | }; |
| 1397 | |
| 1398 | /* gpu */ |
| 1399 | static struct omap_hwmod_irq_info omap44xx_gpu_irqs[] = { |
| 1400 | { .irq = 21 + OMAP44XX_IRQ_GIC_START }, |
| 1401 | { .irq = -1 } |
| 1402 | }; |
| 1403 | |
| 1404 | static 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 Walmsley | a091c08 | 2012-04-19 13:33:50 -0600 | [diff] [blame] | 1420 | * 'hdq1w' class |
| 1421 | * hdq / 1-wire serial interface controller |
| 1422 | */ |
| 1423 | |
| 1424 | static 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 | |
| 1433 | static struct omap_hwmod_class omap44xx_hdq1w_hwmod_class = { |
| 1434 | .name = "hdq1w", |
| 1435 | .sysc = &omap44xx_hdq1w_sysc, |
| 1436 | }; |
| 1437 | |
| 1438 | /* hdq1w */ |
| 1439 | static struct omap_hwmod_irq_info omap44xx_hdq1w_irqs[] = { |
| 1440 | { .irq = 58 + OMAP44XX_IRQ_GIC_START }, |
| 1441 | { .irq = -1 } |
| 1442 | }; |
| 1443 | |
| 1444 | static 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 Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1461 | * 'hsi' class |
| 1462 | * mipi high-speed synchronous serial interface (multichannel and full-duplex |
| 1463 | * serial if) |
| 1464 | */ |
| 1465 | |
| 1466 | static 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 Cousson | c614ebf | 2011-07-01 22:54:01 +0200 | [diff] [blame] | 1475 | MSTANDBY_SMART | MSTANDBY_SMART_WKUP), |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1476 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1477 | }; |
| 1478 | |
| 1479 | static struct omap_hwmod_class omap44xx_hsi_hwmod_class = { |
| 1480 | .name = "hsi", |
| 1481 | .sysc = &omap44xx_hsi_sysc, |
| 1482 | }; |
| 1483 | |
| 1484 | /* hsi */ |
| 1485 | static 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 Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1489 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1490 | }; |
| 1491 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1492 | static struct omap_hwmod omap44xx_hsi_hwmod = { |
| 1493 | .name = "hsi", |
| 1494 | .class = &omap44xx_hsi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1495 | .clkdm_name = "l3_init_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1496 | .mpu_irqs = omap44xx_hsi_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1497 | .main_clk = "hsi_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 1498 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1499 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1500 | .clkctrl_offs = OMAP4_CM_L3INIT_HSI_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1501 | .context_offs = OMAP4_RM_L3INIT_HSI_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1502 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1503 | }, |
| 1504 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1505 | }; |
| 1506 | |
| 1507 | /* |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1508 | * 'i2c' class |
| 1509 | * multimaster high-speed i2c controller |
| 1510 | */ |
| 1511 | |
| 1512 | static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = { |
| 1513 | .sysc_offs = 0x0010, |
| 1514 | .syss_offs = 0x0090, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1515 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY | |
| 1516 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE | |
Benoit Cousson | 0cfe875 | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1517 | SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), |
Benoit Cousson | 7cffa6b | 2010-12-21 21:31:28 -0700 | [diff] [blame] | 1518 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1519 | SIDLE_SMART_WKUP), |
Shubhrajyoti D | 3e47dc6 | 2011-12-13 16:25:54 +0530 | [diff] [blame] | 1520 | .clockact = CLOCKACT_TEST_ICLK, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1521 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1522 | }; |
| 1523 | |
| 1524 | static struct omap_hwmod_class omap44xx_i2c_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1525 | .name = "i2c", |
| 1526 | .sysc = &omap44xx_i2c_sysc, |
Andy Green | db791a7 | 2011-07-10 05:27:15 -0600 | [diff] [blame] | 1527 | .rev = OMAP_I2C_IP_VERSION_2, |
Avinash.H.M | 6d3c55f | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 1528 | .reset = &omap_i2c_reset, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1529 | }; |
| 1530 | |
Andy Green | 4d4441a | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 1531 | static struct omap_i2c_dev_attr i2c_dev_attr = { |
Shubhrajyoti D | 972deb4 | 2012-11-26 15:25:11 +0530 | [diff] [blame] | 1532 | .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE, |
Andy Green | 4d4441a | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 1533 | }; |
| 1534 | |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1535 | /* i2c1 */ |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1536 | static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = { |
| 1537 | { .irq = 56 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1538 | { .irq = -1 } |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1539 | }; |
| 1540 | |
| 1541 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 1544 | { .dma_req = -1 } |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1545 | }; |
| 1546 | |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1547 | static struct omap_hwmod omap44xx_i2c1_hwmod = { |
| 1548 | .name = "i2c1", |
| 1549 | .class = &omap44xx_i2c_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1550 | .clkdm_name = "l4_per_clkdm", |
Shubhrajyoti D | 3e47dc6 | 2011-12-13 16:25:54 +0530 | [diff] [blame] | 1551 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1552 | .mpu_irqs = omap44xx_i2c1_irqs, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1553 | .sdma_reqs = omap44xx_i2c1_sdma_reqs, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1554 | .main_clk = "i2c1_fck", |
| 1555 | .prcm = { |
| 1556 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1557 | .clkctrl_offs = OMAP4_CM_L4PER_I2C1_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1558 | .context_offs = OMAP4_RM_L4PER_I2C1_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1559 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1560 | }, |
| 1561 | }, |
Andy Green | 4d4441a | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 1562 | .dev_attr = &i2c_dev_attr, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1563 | }; |
| 1564 | |
| 1565 | /* i2c2 */ |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1566 | static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = { |
| 1567 | { .irq = 57 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1568 | { .irq = -1 } |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1569 | }; |
| 1570 | |
| 1571 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 1574 | { .dma_req = -1 } |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1575 | }; |
| 1576 | |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1577 | static struct omap_hwmod omap44xx_i2c2_hwmod = { |
| 1578 | .name = "i2c2", |
| 1579 | .class = &omap44xx_i2c_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1580 | .clkdm_name = "l4_per_clkdm", |
Shubhrajyoti D | 3e47dc6 | 2011-12-13 16:25:54 +0530 | [diff] [blame] | 1581 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1582 | .mpu_irqs = omap44xx_i2c2_irqs, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1583 | .sdma_reqs = omap44xx_i2c2_sdma_reqs, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1584 | .main_clk = "i2c2_fck", |
| 1585 | .prcm = { |
| 1586 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1587 | .clkctrl_offs = OMAP4_CM_L4PER_I2C2_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1588 | .context_offs = OMAP4_RM_L4PER_I2C2_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1589 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1590 | }, |
| 1591 | }, |
Andy Green | 4d4441a | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 1592 | .dev_attr = &i2c_dev_attr, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1593 | }; |
| 1594 | |
| 1595 | /* i2c3 */ |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1596 | static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = { |
| 1597 | { .irq = 61 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1598 | { .irq = -1 } |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1599 | }; |
| 1600 | |
| 1601 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 1604 | { .dma_req = -1 } |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1605 | }; |
| 1606 | |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1607 | static struct omap_hwmod omap44xx_i2c3_hwmod = { |
| 1608 | .name = "i2c3", |
| 1609 | .class = &omap44xx_i2c_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1610 | .clkdm_name = "l4_per_clkdm", |
Shubhrajyoti D | 3e47dc6 | 2011-12-13 16:25:54 +0530 | [diff] [blame] | 1611 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1612 | .mpu_irqs = omap44xx_i2c3_irqs, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1613 | .sdma_reqs = omap44xx_i2c3_sdma_reqs, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1614 | .main_clk = "i2c3_fck", |
| 1615 | .prcm = { |
| 1616 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1617 | .clkctrl_offs = OMAP4_CM_L4PER_I2C3_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1618 | .context_offs = OMAP4_RM_L4PER_I2C3_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1619 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1620 | }, |
| 1621 | }, |
Andy Green | 4d4441a | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 1622 | .dev_attr = &i2c_dev_attr, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1623 | }; |
| 1624 | |
| 1625 | /* i2c4 */ |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1626 | static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = { |
| 1627 | { .irq = 62 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1628 | { .irq = -1 } |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1629 | }; |
| 1630 | |
| 1631 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 1634 | { .dma_req = -1 } |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1635 | }; |
| 1636 | |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1637 | static struct omap_hwmod omap44xx_i2c4_hwmod = { |
| 1638 | .name = "i2c4", |
| 1639 | .class = &omap44xx_i2c_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1640 | .clkdm_name = "l4_per_clkdm", |
Shubhrajyoti D | 3e47dc6 | 2011-12-13 16:25:54 +0530 | [diff] [blame] | 1641 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1642 | .mpu_irqs = omap44xx_i2c4_irqs, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1643 | .sdma_reqs = omap44xx_i2c4_sdma_reqs, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1644 | .main_clk = "i2c4_fck", |
| 1645 | .prcm = { |
| 1646 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1647 | .clkctrl_offs = OMAP4_CM_L4PER_I2C4_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1648 | .context_offs = OMAP4_RM_L4PER_I2C4_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1649 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1650 | }, |
| 1651 | }, |
Andy Green | 4d4441a | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 1652 | .dev_attr = &i2c_dev_attr, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1653 | }; |
| 1654 | |
| 1655 | /* |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1656 | * 'ipu' class |
| 1657 | * imaging processor unit |
| 1658 | */ |
| 1659 | |
| 1660 | static struct omap_hwmod_class omap44xx_ipu_hwmod_class = { |
| 1661 | .name = "ipu", |
| 1662 | }; |
| 1663 | |
| 1664 | /* ipu */ |
| 1665 | static struct omap_hwmod_irq_info omap44xx_ipu_irqs[] = { |
| 1666 | { .irq = 100 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1667 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1668 | }; |
| 1669 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1670 | static struct omap_hwmod_rst_info omap44xx_ipu_resets[] = { |
Paul Walmsley | f2f5736 | 2012-04-18 19:10:02 -0600 | [diff] [blame] | 1671 | { .name = "cpu0", .rst_shift = 0 }, |
| 1672 | { .name = "cpu1", .rst_shift = 1 }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1673 | }; |
| 1674 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1675 | static struct omap_hwmod omap44xx_ipu_hwmod = { |
| 1676 | .name = "ipu", |
| 1677 | .class = &omap44xx_ipu_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1678 | .clkdm_name = "ducati_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1679 | .mpu_irqs = omap44xx_ipu_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1680 | .rst_lines = omap44xx_ipu_resets, |
| 1681 | .rst_lines_cnt = ARRAY_SIZE(omap44xx_ipu_resets), |
Omar Ramirez Luna | 298ea44 | 2012-11-19 19:05:52 -0600 | [diff] [blame] | 1682 | .main_clk = "ducati_clk_mux_ck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 1683 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1684 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1685 | .clkctrl_offs = OMAP4_CM_DUCATI_DUCATI_CLKCTRL_OFFSET, |
Benoit Cousson | eaac329 | 2011-07-10 05:56:31 -0600 | [diff] [blame] | 1686 | .rstctrl_offs = OMAP4_RM_DUCATI_RSTCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1687 | .context_offs = OMAP4_RM_DUCATI_DUCATI_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1688 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1689 | }, |
| 1690 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1691 | }; |
| 1692 | |
| 1693 | /* |
| 1694 | * 'iss' class |
| 1695 | * external images sensor pixel data processor |
| 1696 | */ |
| 1697 | |
| 1698 | static struct omap_hwmod_class_sysconfig omap44xx_iss_sysc = { |
| 1699 | .rev_offs = 0x0000, |
| 1700 | .sysc_offs = 0x0010, |
Fernando Guzman Lugo | d99de7f | 2012-04-13 05:08:03 -0600 | [diff] [blame] | 1701 | /* |
| 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 Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1710 | .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 Cousson | c614ebf | 2011-07-01 22:54:01 +0200 | [diff] [blame] | 1714 | MSTANDBY_SMART | MSTANDBY_SMART_WKUP), |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1715 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 1716 | }; |
| 1717 | |
| 1718 | static struct omap_hwmod_class omap44xx_iss_hwmod_class = { |
| 1719 | .name = "iss", |
| 1720 | .sysc = &omap44xx_iss_sysc, |
| 1721 | }; |
| 1722 | |
| 1723 | /* iss */ |
| 1724 | static struct omap_hwmod_irq_info omap44xx_iss_irqs[] = { |
| 1725 | { .irq = 24 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1726 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1727 | }; |
| 1728 | |
| 1729 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 1734 | { .dma_req = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1735 | }; |
| 1736 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1737 | static struct omap_hwmod_opt_clk iss_opt_clks[] = { |
| 1738 | { .role = "ctrlclk", .clk = "iss_ctrlclk" }, |
| 1739 | }; |
| 1740 | |
| 1741 | static struct omap_hwmod omap44xx_iss_hwmod = { |
| 1742 | .name = "iss", |
| 1743 | .class = &omap44xx_iss_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1744 | .clkdm_name = "iss_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1745 | .mpu_irqs = omap44xx_iss_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1746 | .sdma_reqs = omap44xx_iss_sdma_reqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1747 | .main_clk = "iss_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 1748 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1749 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1750 | .clkctrl_offs = OMAP4_CM_CAM_ISS_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1751 | .context_offs = OMAP4_RM_CAM_ISS_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1752 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1753 | }, |
| 1754 | }, |
| 1755 | .opt_clks = iss_opt_clks, |
| 1756 | .opt_clks_cnt = ARRAY_SIZE(iss_opt_clks), |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1757 | }; |
| 1758 | |
| 1759 | /* |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1760 | * 'iva' class |
| 1761 | * multi-standard video encoder/decoder hardware accelerator |
| 1762 | */ |
| 1763 | |
| 1764 | static struct omap_hwmod_class omap44xx_iva_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1765 | .name = "iva", |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1766 | }; |
| 1767 | |
| 1768 | /* iva */ |
| 1769 | static 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 Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1773 | { .irq = -1 } |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1774 | }; |
| 1775 | |
| 1776 | static struct omap_hwmod_rst_info omap44xx_iva_resets[] = { |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1777 | { .name = "seq0", .rst_shift = 0 }, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1778 | { .name = "seq1", .rst_shift = 1 }, |
Paul Walmsley | f2f5736 | 2012-04-18 19:10:02 -0600 | [diff] [blame] | 1779 | { .name = "logic", .rst_shift = 2 }, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1780 | }; |
| 1781 | |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1782 | static struct omap_hwmod omap44xx_iva_hwmod = { |
| 1783 | .name = "iva", |
| 1784 | .class = &omap44xx_iva_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1785 | .clkdm_name = "ivahd_clkdm", |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1786 | .mpu_irqs = omap44xx_iva_irqs, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1787 | .rst_lines = omap44xx_iva_resets, |
| 1788 | .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets), |
| 1789 | .main_clk = "iva_fck", |
| 1790 | .prcm = { |
| 1791 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1792 | .clkctrl_offs = OMAP4_CM_IVAHD_IVAHD_CLKCTRL_OFFSET, |
Benoit Cousson | eaac329 | 2011-07-10 05:56:31 -0600 | [diff] [blame] | 1793 | .rstctrl_offs = OMAP4_RM_IVAHD_RSTCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1794 | .context_offs = OMAP4_RM_IVAHD_IVAHD_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1795 | .modulemode = MODULEMODE_HWCTRL, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1796 | }, |
| 1797 | }, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1798 | }; |
| 1799 | |
| 1800 | /* |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1801 | * 'kbd' class |
| 1802 | * keyboard controller |
| 1803 | */ |
| 1804 | |
| 1805 | static 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 | |
| 1817 | static struct omap_hwmod_class omap44xx_kbd_hwmod_class = { |
| 1818 | .name = "kbd", |
| 1819 | .sysc = &omap44xx_kbd_sysc, |
| 1820 | }; |
| 1821 | |
| 1822 | /* kbd */ |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1823 | static struct omap_hwmod_irq_info omap44xx_kbd_irqs[] = { |
| 1824 | { .irq = 120 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1825 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1826 | }; |
| 1827 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1828 | static struct omap_hwmod omap44xx_kbd_hwmod = { |
| 1829 | .name = "kbd", |
| 1830 | .class = &omap44xx_kbd_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1831 | .clkdm_name = "l4_wkup_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1832 | .mpu_irqs = omap44xx_kbd_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1833 | .main_clk = "kbd_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 1834 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1835 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1836 | .clkctrl_offs = OMAP4_CM_WKUP_KEYBOARD_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1837 | .context_offs = OMAP4_RM_WKUP_KEYBOARD_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1838 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1839 | }, |
| 1840 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 1841 | }; |
| 1842 | |
| 1843 | /* |
Benoit Cousson | ec5df92 | 2011-02-02 19:27:21 +0000 | [diff] [blame] | 1844 | * 'mailbox' class |
| 1845 | * mailbox module allowing communication between the on-chip processors using a |
| 1846 | * queued mailbox-interrupt mechanism. |
| 1847 | */ |
| 1848 | |
| 1849 | static 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 | |
| 1858 | static struct omap_hwmod_class omap44xx_mailbox_hwmod_class = { |
| 1859 | .name = "mailbox", |
| 1860 | .sysc = &omap44xx_mailbox_sysc, |
| 1861 | }; |
| 1862 | |
| 1863 | /* mailbox */ |
Benoit Cousson | ec5df92 | 2011-02-02 19:27:21 +0000 | [diff] [blame] | 1864 | static struct omap_hwmod_irq_info omap44xx_mailbox_irqs[] = { |
| 1865 | { .irq = 26 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1866 | { .irq = -1 } |
Benoit Cousson | ec5df92 | 2011-02-02 19:27:21 +0000 | [diff] [blame] | 1867 | }; |
| 1868 | |
Benoit Cousson | ec5df92 | 2011-02-02 19:27:21 +0000 | [diff] [blame] | 1869 | static struct omap_hwmod omap44xx_mailbox_hwmod = { |
| 1870 | .name = "mailbox", |
| 1871 | .class = &omap44xx_mailbox_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1872 | .clkdm_name = "l4_cfg_clkdm", |
Benoit Cousson | ec5df92 | 2011-02-02 19:27:21 +0000 | [diff] [blame] | 1873 | .mpu_irqs = omap44xx_mailbox_irqs, |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 1874 | .prcm = { |
Benoit Cousson | ec5df92 | 2011-02-02 19:27:21 +0000 | [diff] [blame] | 1875 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1876 | .clkctrl_offs = OMAP4_CM_L4CFG_MAILBOX_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1877 | .context_offs = OMAP4_RM_L4CFG_MAILBOX_CONTEXT_OFFSET, |
Benoit Cousson | ec5df92 | 2011-02-02 19:27:21 +0000 | [diff] [blame] | 1878 | }, |
| 1879 | }, |
Benoit Cousson | ec5df92 | 2011-02-02 19:27:21 +0000 | [diff] [blame] | 1880 | }; |
| 1881 | |
| 1882 | /* |
Benoît Cousson | 896d4e9 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 1883 | * 'mcasp' class |
| 1884 | * multi-channel audio serial port controller |
| 1885 | */ |
| 1886 | |
| 1887 | /* The IP is not compliant to type1 / type2 scheme */ |
| 1888 | static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_mcasp = { |
| 1889 | .sidle_shift = 0, |
| 1890 | }; |
| 1891 | |
| 1892 | static 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 | |
| 1900 | static struct omap_hwmod_class omap44xx_mcasp_hwmod_class = { |
| 1901 | .name = "mcasp", |
| 1902 | .sysc = &omap44xx_mcasp_sysc, |
| 1903 | }; |
| 1904 | |
| 1905 | /* mcasp */ |
| 1906 | static 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 | |
| 1912 | static 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 | |
| 1918 | static 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 Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1935 | * 'mcbsp' class |
| 1936 | * multi channel buffered serial port controller |
| 1937 | */ |
| 1938 | |
| 1939 | static 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 | |
| 1947 | static struct omap_hwmod_class omap44xx_mcbsp_hwmod_class = { |
| 1948 | .name = "mcbsp", |
| 1949 | .sysc = &omap44xx_mcbsp_sysc, |
Kishon Vijay Abraham I | cb7e9de | 2011-02-24 15:16:50 +0530 | [diff] [blame] | 1950 | .rev = MCBSP_CONFIG_TYPE4, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1951 | }; |
| 1952 | |
| 1953 | /* mcbsp1 */ |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1954 | static struct omap_hwmod_irq_info omap44xx_mcbsp1_irqs[] = { |
Peter Ujfalusi | 437e897 | 2012-05-08 11:34:29 -0600 | [diff] [blame] | 1955 | { .name = "common", .irq = 17 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1956 | { .irq = -1 } |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1957 | }; |
| 1958 | |
| 1959 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 1962 | { .dma_req = -1 } |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1963 | }; |
| 1964 | |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 1965 | static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = { |
| 1966 | { .role = "pad_fck", .clk = "pad_clks_ck" }, |
Benoit Cousson | d7a0b51 | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 1967 | { .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" }, |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 1968 | }; |
| 1969 | |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1970 | static struct omap_hwmod omap44xx_mcbsp1_hwmod = { |
| 1971 | .name = "mcbsp1", |
| 1972 | .class = &omap44xx_mcbsp_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 1973 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1974 | .mpu_irqs = omap44xx_mcbsp1_irqs, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1975 | .sdma_reqs = omap44xx_mcbsp1_sdma_reqs, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1976 | .main_clk = "mcbsp1_fck", |
| 1977 | .prcm = { |
| 1978 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 1979 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP1_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1980 | .context_offs = OMAP4_RM_ABE_MCBSP1_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 1981 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1982 | }, |
| 1983 | }, |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 1984 | .opt_clks = mcbsp1_opt_clks, |
| 1985 | .opt_clks_cnt = ARRAY_SIZE(mcbsp1_opt_clks), |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1986 | }; |
| 1987 | |
| 1988 | /* mcbsp2 */ |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1989 | static struct omap_hwmod_irq_info omap44xx_mcbsp2_irqs[] = { |
Peter Ujfalusi | 437e897 | 2012-05-08 11:34:29 -0600 | [diff] [blame] | 1990 | { .name = "common", .irq = 22 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 1991 | { .irq = -1 } |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1992 | }; |
| 1993 | |
| 1994 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 1997 | { .dma_req = -1 } |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 1998 | }; |
| 1999 | |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2000 | static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = { |
| 2001 | { .role = "pad_fck", .clk = "pad_clks_ck" }, |
Benoit Cousson | d7a0b51 | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 2002 | { .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" }, |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2003 | }; |
| 2004 | |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2005 | static struct omap_hwmod omap44xx_mcbsp2_hwmod = { |
| 2006 | .name = "mcbsp2", |
| 2007 | .class = &omap44xx_mcbsp_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2008 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2009 | .mpu_irqs = omap44xx_mcbsp2_irqs, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2010 | .sdma_reqs = omap44xx_mcbsp2_sdma_reqs, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2011 | .main_clk = "mcbsp2_fck", |
| 2012 | .prcm = { |
| 2013 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2014 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP2_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2015 | .context_offs = OMAP4_RM_ABE_MCBSP2_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2016 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2017 | }, |
| 2018 | }, |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2019 | .opt_clks = mcbsp2_opt_clks, |
| 2020 | .opt_clks_cnt = ARRAY_SIZE(mcbsp2_opt_clks), |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2021 | }; |
| 2022 | |
| 2023 | /* mcbsp3 */ |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2024 | static struct omap_hwmod_irq_info omap44xx_mcbsp3_irqs[] = { |
Peter Ujfalusi | 437e897 | 2012-05-08 11:34:29 -0600 | [diff] [blame] | 2025 | { .name = "common", .irq = 23 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2026 | { .irq = -1 } |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2027 | }; |
| 2028 | |
| 2029 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2032 | { .dma_req = -1 } |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2033 | }; |
| 2034 | |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2035 | static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = { |
| 2036 | { .role = "pad_fck", .clk = "pad_clks_ck" }, |
Benoit Cousson | d7a0b51 | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 2037 | { .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" }, |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2038 | }; |
| 2039 | |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2040 | static struct omap_hwmod omap44xx_mcbsp3_hwmod = { |
| 2041 | .name = "mcbsp3", |
| 2042 | .class = &omap44xx_mcbsp_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2043 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2044 | .mpu_irqs = omap44xx_mcbsp3_irqs, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2045 | .sdma_reqs = omap44xx_mcbsp3_sdma_reqs, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2046 | .main_clk = "mcbsp3_fck", |
| 2047 | .prcm = { |
| 2048 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2049 | .clkctrl_offs = OMAP4_CM1_ABE_MCBSP3_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2050 | .context_offs = OMAP4_RM_ABE_MCBSP3_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2051 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2052 | }, |
| 2053 | }, |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2054 | .opt_clks = mcbsp3_opt_clks, |
| 2055 | .opt_clks_cnt = ARRAY_SIZE(mcbsp3_opt_clks), |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2056 | }; |
| 2057 | |
| 2058 | /* mcbsp4 */ |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2059 | static struct omap_hwmod_irq_info omap44xx_mcbsp4_irqs[] = { |
Peter Ujfalusi | 437e897 | 2012-05-08 11:34:29 -0600 | [diff] [blame] | 2060 | { .name = "common", .irq = 16 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2061 | { .irq = -1 } |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2062 | }; |
| 2063 | |
| 2064 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2067 | { .dma_req = -1 } |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2068 | }; |
| 2069 | |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2070 | static struct omap_hwmod_opt_clk mcbsp4_opt_clks[] = { |
| 2071 | { .role = "pad_fck", .clk = "pad_clks_ck" }, |
Benoit Cousson | d7a0b51 | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 2072 | { .role = "prcm_fck", .clk = "mcbsp4_sync_mux_ck" }, |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2073 | }; |
| 2074 | |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2075 | static struct omap_hwmod omap44xx_mcbsp4_hwmod = { |
| 2076 | .name = "mcbsp4", |
| 2077 | .class = &omap44xx_mcbsp_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2078 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2079 | .mpu_irqs = omap44xx_mcbsp4_irqs, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2080 | .sdma_reqs = omap44xx_mcbsp4_sdma_reqs, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2081 | .main_clk = "mcbsp4_fck", |
| 2082 | .prcm = { |
| 2083 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2084 | .clkctrl_offs = OMAP4_CM_L4PER_MCBSP4_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2085 | .context_offs = OMAP4_RM_L4PER_MCBSP4_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2086 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2087 | }, |
| 2088 | }, |
Paul Walmsley | 503d0ea | 2012-04-04 09:11:48 -0600 | [diff] [blame] | 2089 | .opt_clks = mcbsp4_opt_clks, |
| 2090 | .opt_clks_cnt = ARRAY_SIZE(mcbsp4_opt_clks), |
Benoit Cousson | 4ddff49 | 2011-01-31 14:50:30 +0000 | [diff] [blame] | 2091 | }; |
| 2092 | |
| 2093 | /* |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2094 | * 'mcpdm' class |
| 2095 | * multi channel pdm controller (proprietary interface with phoenix power |
| 2096 | * ic) |
| 2097 | */ |
| 2098 | |
| 2099 | static 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 | |
| 2109 | static struct omap_hwmod_class omap44xx_mcpdm_hwmod_class = { |
| 2110 | .name = "mcpdm", |
| 2111 | .sysc = &omap44xx_mcpdm_sysc, |
| 2112 | }; |
| 2113 | |
| 2114 | /* mcpdm */ |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2115 | static struct omap_hwmod_irq_info omap44xx_mcpdm_irqs[] = { |
| 2116 | { .irq = 112 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2117 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2118 | }; |
| 2119 | |
| 2120 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2123 | { .dma_req = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2124 | }; |
| 2125 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2126 | static struct omap_hwmod omap44xx_mcpdm_hwmod = { |
| 2127 | .name = "mcpdm", |
| 2128 | .class = &omap44xx_mcpdm_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2129 | .clkdm_name = "abe_clkdm", |
Paul Walmsley | bc05244 | 2012-10-29 22:02:14 -0600 | [diff] [blame] | 2130 | /* |
| 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 Ujfalusi | 12d82e4 | 2013-01-18 16:48:16 -0700 | [diff] [blame] | 2136 | * |
| 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 Walmsley | bc05244 | 2012-10-29 22:02:14 -0600 | [diff] [blame] | 2140 | */ |
Peter Ujfalusi | 12d82e4 | 2013-01-18 16:48:16 -0700 | [diff] [blame] | 2141 | .flags = HWMOD_EXT_OPT_MAIN_CLK | HWMOD_SWSUP_SIDLE, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2142 | .mpu_irqs = omap44xx_mcpdm_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2143 | .sdma_reqs = omap44xx_mcpdm_sdma_reqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2144 | .main_clk = "mcpdm_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 2145 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2146 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2147 | .clkctrl_offs = OMAP4_CM1_ABE_PDM_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2148 | .context_offs = OMAP4_RM_ABE_PDM_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2149 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2150 | }, |
| 2151 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2152 | }; |
| 2153 | |
| 2154 | /* |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2155 | * 'mcspi' class |
| 2156 | * multichannel serial port interface (mcspi) / master/slave synchronous serial |
| 2157 | * bus |
| 2158 | */ |
| 2159 | |
| 2160 | static 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 | |
| 2170 | static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = { |
| 2171 | .name = "mcspi", |
| 2172 | .sysc = &omap44xx_mcspi_sysc, |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2173 | .rev = OMAP4_MCSPI_REV, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2174 | }; |
| 2175 | |
| 2176 | /* mcspi1 */ |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2177 | static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = { |
| 2178 | { .irq = 65 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2179 | { .irq = -1 } |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2180 | }; |
| 2181 | |
| 2182 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2191 | { .dma_req = -1 } |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2192 | }; |
| 2193 | |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2194 | /* mcspi1 dev_attr */ |
| 2195 | static struct omap2_mcspi_dev_attr mcspi1_dev_attr = { |
| 2196 | .num_chipselect = 4, |
| 2197 | }; |
| 2198 | |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2199 | static struct omap_hwmod omap44xx_mcspi1_hwmod = { |
| 2200 | .name = "mcspi1", |
| 2201 | .class = &omap44xx_mcspi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2202 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2203 | .mpu_irqs = omap44xx_mcspi1_irqs, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2204 | .sdma_reqs = omap44xx_mcspi1_sdma_reqs, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2205 | .main_clk = "mcspi1_fck", |
| 2206 | .prcm = { |
| 2207 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2208 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI1_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2209 | .context_offs = OMAP4_RM_L4PER_MCSPI1_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2210 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2211 | }, |
| 2212 | }, |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2213 | .dev_attr = &mcspi1_dev_attr, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2214 | }; |
| 2215 | |
| 2216 | /* mcspi2 */ |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2217 | static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = { |
| 2218 | { .irq = 66 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2219 | { .irq = -1 } |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2220 | }; |
| 2221 | |
| 2222 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2227 | { .dma_req = -1 } |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2228 | }; |
| 2229 | |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2230 | /* mcspi2 dev_attr */ |
| 2231 | static struct omap2_mcspi_dev_attr mcspi2_dev_attr = { |
| 2232 | .num_chipselect = 2, |
| 2233 | }; |
| 2234 | |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2235 | static struct omap_hwmod omap44xx_mcspi2_hwmod = { |
| 2236 | .name = "mcspi2", |
| 2237 | .class = &omap44xx_mcspi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2238 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2239 | .mpu_irqs = omap44xx_mcspi2_irqs, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2240 | .sdma_reqs = omap44xx_mcspi2_sdma_reqs, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2241 | .main_clk = "mcspi2_fck", |
| 2242 | .prcm = { |
| 2243 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2244 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI2_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2245 | .context_offs = OMAP4_RM_L4PER_MCSPI2_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2246 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2247 | }, |
| 2248 | }, |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2249 | .dev_attr = &mcspi2_dev_attr, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2250 | }; |
| 2251 | |
| 2252 | /* mcspi3 */ |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2253 | static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = { |
| 2254 | { .irq = 91 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2255 | { .irq = -1 } |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2256 | }; |
| 2257 | |
| 2258 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2263 | { .dma_req = -1 } |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2264 | }; |
| 2265 | |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2266 | /* mcspi3 dev_attr */ |
| 2267 | static struct omap2_mcspi_dev_attr mcspi3_dev_attr = { |
| 2268 | .num_chipselect = 2, |
| 2269 | }; |
| 2270 | |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2271 | static struct omap_hwmod omap44xx_mcspi3_hwmod = { |
| 2272 | .name = "mcspi3", |
| 2273 | .class = &omap44xx_mcspi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2274 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2275 | .mpu_irqs = omap44xx_mcspi3_irqs, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2276 | .sdma_reqs = omap44xx_mcspi3_sdma_reqs, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2277 | .main_clk = "mcspi3_fck", |
| 2278 | .prcm = { |
| 2279 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2280 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI3_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2281 | .context_offs = OMAP4_RM_L4PER_MCSPI3_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2282 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2283 | }, |
| 2284 | }, |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2285 | .dev_attr = &mcspi3_dev_attr, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2286 | }; |
| 2287 | |
| 2288 | /* mcspi4 */ |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2289 | static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = { |
| 2290 | { .irq = 48 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2291 | { .irq = -1 } |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2292 | }; |
| 2293 | |
| 2294 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2297 | { .dma_req = -1 } |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2298 | }; |
| 2299 | |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2300 | /* mcspi4 dev_attr */ |
| 2301 | static struct omap2_mcspi_dev_attr mcspi4_dev_attr = { |
| 2302 | .num_chipselect = 1, |
| 2303 | }; |
| 2304 | |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2305 | static struct omap_hwmod omap44xx_mcspi4_hwmod = { |
| 2306 | .name = "mcspi4", |
| 2307 | .class = &omap44xx_mcspi_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2308 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2309 | .mpu_irqs = omap44xx_mcspi4_irqs, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2310 | .sdma_reqs = omap44xx_mcspi4_sdma_reqs, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2311 | .main_clk = "mcspi4_fck", |
| 2312 | .prcm = { |
| 2313 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2314 | .clkctrl_offs = OMAP4_CM_L4PER_MCSPI4_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2315 | .context_offs = OMAP4_RM_L4PER_MCSPI4_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2316 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2317 | }, |
| 2318 | }, |
Benoit Cousson | 905a74d | 2011-02-18 14:01:06 +0100 | [diff] [blame] | 2319 | .dev_attr = &mcspi4_dev_attr, |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame] | 2320 | }; |
| 2321 | |
| 2322 | /* |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2323 | * 'mmc' class |
| 2324 | * multimedia card high-speed/sd/sdio (mmc/sd/sdio) host controller |
| 2325 | */ |
| 2326 | |
| 2327 | static 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 Cousson | c614ebf | 2011-07-01 22:54:01 +0200 | [diff] [blame] | 2335 | MSTANDBY_SMART | MSTANDBY_SMART_WKUP), |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2336 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 2337 | }; |
| 2338 | |
| 2339 | static struct omap_hwmod_class omap44xx_mmc_hwmod_class = { |
| 2340 | .name = "mmc", |
| 2341 | .sysc = &omap44xx_mmc_sysc, |
| 2342 | }; |
| 2343 | |
| 2344 | /* mmc1 */ |
| 2345 | static struct omap_hwmod_irq_info omap44xx_mmc1_irqs[] = { |
| 2346 | { .irq = 83 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2347 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2348 | }; |
| 2349 | |
| 2350 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2353 | { .dma_req = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2354 | }; |
| 2355 | |
Kishore Kadiyala | 6ab8946 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2356 | /* mmc1 dev_attr */ |
| 2357 | static struct omap_mmc_dev_attr mmc1_dev_attr = { |
| 2358 | .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT, |
| 2359 | }; |
| 2360 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2361 | static struct omap_hwmod omap44xx_mmc1_hwmod = { |
| 2362 | .name = "mmc1", |
| 2363 | .class = &omap44xx_mmc_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2364 | .clkdm_name = "l3_init_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2365 | .mpu_irqs = omap44xx_mmc1_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2366 | .sdma_reqs = omap44xx_mmc1_sdma_reqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2367 | .main_clk = "mmc1_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 2368 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2369 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2370 | .clkctrl_offs = OMAP4_CM_L3INIT_MMC1_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2371 | .context_offs = OMAP4_RM_L3INIT_MMC1_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2372 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2373 | }, |
| 2374 | }, |
Kishore Kadiyala | 6ab8946 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2375 | .dev_attr = &mmc1_dev_attr, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2376 | }; |
| 2377 | |
| 2378 | /* mmc2 */ |
| 2379 | static struct omap_hwmod_irq_info omap44xx_mmc2_irqs[] = { |
| 2380 | { .irq = 86 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2381 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2382 | }; |
| 2383 | |
| 2384 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2387 | { .dma_req = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2388 | }; |
| 2389 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2390 | static struct omap_hwmod omap44xx_mmc2_hwmod = { |
| 2391 | .name = "mmc2", |
| 2392 | .class = &omap44xx_mmc_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2393 | .clkdm_name = "l3_init_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2394 | .mpu_irqs = omap44xx_mmc2_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2395 | .sdma_reqs = omap44xx_mmc2_sdma_reqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2396 | .main_clk = "mmc2_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 2397 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2398 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2399 | .clkctrl_offs = OMAP4_CM_L3INIT_MMC2_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2400 | .context_offs = OMAP4_RM_L3INIT_MMC2_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2401 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2402 | }, |
| 2403 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2404 | }; |
| 2405 | |
| 2406 | /* mmc3 */ |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2407 | static struct omap_hwmod_irq_info omap44xx_mmc3_irqs[] = { |
| 2408 | { .irq = 94 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2409 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2410 | }; |
| 2411 | |
| 2412 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2415 | { .dma_req = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2416 | }; |
| 2417 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2418 | static struct omap_hwmod omap44xx_mmc3_hwmod = { |
| 2419 | .name = "mmc3", |
| 2420 | .class = &omap44xx_mmc_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2421 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2422 | .mpu_irqs = omap44xx_mmc3_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2423 | .sdma_reqs = omap44xx_mmc3_sdma_reqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2424 | .main_clk = "mmc3_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 2425 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2426 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2427 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD3_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2428 | .context_offs = OMAP4_RM_L4PER_MMCSD3_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2429 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2430 | }, |
| 2431 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2432 | }; |
| 2433 | |
| 2434 | /* mmc4 */ |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2435 | static struct omap_hwmod_irq_info omap44xx_mmc4_irqs[] = { |
| 2436 | { .irq = 96 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2437 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2438 | }; |
| 2439 | |
| 2440 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2443 | { .dma_req = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2444 | }; |
| 2445 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2446 | static struct omap_hwmod omap44xx_mmc4_hwmod = { |
| 2447 | .name = "mmc4", |
| 2448 | .class = &omap44xx_mmc_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2449 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2450 | .mpu_irqs = omap44xx_mmc4_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2451 | .sdma_reqs = omap44xx_mmc4_sdma_reqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2452 | .main_clk = "mmc4_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 2453 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2454 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2455 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD4_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2456 | .context_offs = OMAP4_RM_L4PER_MMCSD4_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2457 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2458 | }, |
| 2459 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2460 | }; |
| 2461 | |
| 2462 | /* mmc5 */ |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2463 | static struct omap_hwmod_irq_info omap44xx_mmc5_irqs[] = { |
| 2464 | { .irq = 59 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2465 | { .irq = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2466 | }; |
| 2467 | |
| 2468 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 2471 | { .dma_req = -1 } |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2472 | }; |
| 2473 | |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2474 | static struct omap_hwmod omap44xx_mmc5_hwmod = { |
| 2475 | .name = "mmc5", |
| 2476 | .class = &omap44xx_mmc_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2477 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2478 | .mpu_irqs = omap44xx_mmc5_irqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2479 | .sdma_reqs = omap44xx_mmc5_sdma_reqs, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2480 | .main_clk = "mmc5_fck", |
Benoit Cousson | 00fe610 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 2481 | .prcm = { |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2482 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2483 | .clkctrl_offs = OMAP4_CM_L4PER_MMCSD5_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2484 | .context_offs = OMAP4_RM_L4PER_MMCSD5_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2485 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2486 | }, |
| 2487 | }, |
Benoit Cousson | 407a688 | 2011-02-15 22:39:48 +0100 | [diff] [blame] | 2488 | }; |
| 2489 | |
| 2490 | /* |
Omar Ramirez Luna | 230844d | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 2491 | * 'mmu' class |
| 2492 | * The memory management unit performs virtual to physical address translation |
| 2493 | * for its requestors. |
| 2494 | */ |
| 2495 | |
| 2496 | static 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 | |
| 2506 | static struct omap_hwmod_class omap44xx_mmu_hwmod_class = { |
| 2507 | .name = "mmu", |
| 2508 | .sysc = &mmu_sysc, |
| 2509 | }; |
| 2510 | |
| 2511 | /* mmu ipu */ |
| 2512 | |
| 2513 | static struct omap_mmu_dev_attr mmu_ipu_dev_attr = { |
| 2514 | .da_start = 0x0, |
| 2515 | .da_end = 0xfffff000, |
| 2516 | .nr_tlb_entries = 32, |
| 2517 | }; |
| 2518 | |
| 2519 | static struct omap_hwmod omap44xx_mmu_ipu_hwmod; |
| 2520 | static struct omap_hwmod_irq_info omap44xx_mmu_ipu_irqs[] = { |
| 2521 | { .irq = 100 + OMAP44XX_IRQ_GIC_START, }, |
| 2522 | { .irq = -1 } |
| 2523 | }; |
| 2524 | |
| 2525 | static struct omap_hwmod_rst_info omap44xx_mmu_ipu_resets[] = { |
| 2526 | { .name = "mmu_cache", .rst_shift = 2 }, |
| 2527 | }; |
| 2528 | |
| 2529 | static 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 */ |
| 2539 | static 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 | |
| 2547 | static 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 | |
| 2568 | static struct omap_mmu_dev_attr mmu_dsp_dev_attr = { |
| 2569 | .da_start = 0x0, |
| 2570 | .da_end = 0xfffff000, |
| 2571 | .nr_tlb_entries = 32, |
| 2572 | }; |
| 2573 | |
| 2574 | static struct omap_hwmod omap44xx_mmu_dsp_hwmod; |
| 2575 | static struct omap_hwmod_irq_info omap44xx_mmu_dsp_irqs[] = { |
| 2576 | { .irq = 28 + OMAP44XX_IRQ_GIC_START }, |
| 2577 | { .irq = -1 } |
| 2578 | }; |
| 2579 | |
| 2580 | static struct omap_hwmod_rst_info omap44xx_mmu_dsp_resets[] = { |
| 2581 | { .name = "mmu_cache", .rst_shift = 1 }, |
| 2582 | }; |
| 2583 | |
| 2584 | static 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 */ |
| 2594 | static 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 | |
| 2602 | static 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 Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2622 | * 'mpu' class |
| 2623 | * mpu sub-system |
| 2624 | */ |
| 2625 | |
| 2626 | static struct omap_hwmod_class omap44xx_mpu_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 2627 | .name = "mpu", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2628 | }; |
| 2629 | |
| 2630 | /* mpu */ |
| 2631 | static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = { |
Jon Hunter | 76a5d9b | 2012-09-23 17:28:30 -0600 | [diff] [blame] | 2632 | { .name = "pmu0", .irq = 54 + OMAP44XX_IRQ_GIC_START }, |
| 2633 | { .name = "pmu1", .irq = 55 + OMAP44XX_IRQ_GIC_START }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2634 | { .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 Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2637 | { .irq = -1 } |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2638 | }; |
| 2639 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2640 | static struct omap_hwmod omap44xx_mpu_hwmod = { |
| 2641 | .name = "mpu", |
| 2642 | .class = &omap44xx_mpu_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2643 | .clkdm_name = "mpuss_clkdm", |
Benoit Cousson | 7ecc5373 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 2644 | .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2645 | .mpu_irqs = omap44xx_mpu_irqs, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2646 | .main_clk = "dpll_mpu_m2_ck", |
| 2647 | .prcm = { |
| 2648 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2649 | .clkctrl_offs = OMAP4_CM_MPU_MPU_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 2650 | .context_offs = OMAP4_RM_MPU_MPU_CONTEXT_OFFSET, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2651 | }, |
| 2652 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2653 | }; |
| 2654 | |
Benoit Cousson | 92b18d1 | 2010-09-23 20:02:41 +0530 | [diff] [blame] | 2655 | /* |
Paul Walmsley | e17f18c | 2012-04-19 13:33:56 -0600 | [diff] [blame] | 2656 | * 'ocmc_ram' class |
| 2657 | * top-level core on-chip ram |
| 2658 | */ |
| 2659 | |
| 2660 | static struct omap_hwmod_class omap44xx_ocmc_ram_hwmod_class = { |
| 2661 | .name = "ocmc_ram", |
| 2662 | }; |
| 2663 | |
| 2664 | /* ocmc_ram */ |
| 2665 | static 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 Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 2678 | * 'ocp2scp' class |
| 2679 | * bridge to transform ocp interface protocol to scp (serial control port) |
| 2680 | * protocol |
| 2681 | */ |
| 2682 | |
Benoit Cousson | 33c976e | 2012-09-23 17:28:21 -0600 | [diff] [blame] | 2683 | static 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 Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 2693 | static struct omap_hwmod_class omap44xx_ocp2scp_hwmod_class = { |
| 2694 | .name = "ocp2scp", |
Benoit Cousson | 33c976e | 2012-09-23 17:28:21 -0600 | [diff] [blame] | 2695 | .sysc = &omap44xx_ocp2scp_sysc, |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 2696 | }; |
| 2697 | |
Kishon Vijay Abraham I | 637874d | 2012-10-27 19:05:55 +0530 | [diff] [blame] | 2698 | /* ocp2scp dev_attr */ |
| 2699 | static 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 | |
| 2716 | static 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 Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 2724 | /* ocp2scp_usb_phy */ |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 2725 | static 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 I | 1b024d2 | 2012-09-23 17:28:22 -0600 | [diff] [blame] | 2729 | .main_clk = "ocp2scp_usb_phy_phy_48m", |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 2730 | .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 I | 637874d | 2012-10-27 19:05:55 +0530 | [diff] [blame] | 2737 | .dev_attr = ocp2scp_dev_attr, |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 2738 | }; |
| 2739 | |
| 2740 | /* |
Paul Walmsley | 794b480 | 2012-04-19 13:33:58 -0600 | [diff] [blame] | 2741 | * '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 | |
| 2746 | static struct omap_hwmod_class omap44xx_prcm_hwmod_class = { |
| 2747 | .name = "prcm", |
| 2748 | }; |
| 2749 | |
| 2750 | /* prcm_mpu */ |
| 2751 | static struct omap_hwmod omap44xx_prcm_mpu_hwmod = { |
| 2752 | .name = "prcm_mpu", |
| 2753 | .class = &omap44xx_prcm_hwmod_class, |
| 2754 | .clkdm_name = "l4_wkup_clkdm", |
Paul Walmsley | 53cce97 | 2012-09-23 17:28:22 -0600 | [diff] [blame] | 2755 | .flags = HWMOD_NO_IDLEST, |
Tero Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 2756 | .prcm = { |
| 2757 | .omap4 = { |
| 2758 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 2759 | }, |
| 2760 | }, |
Paul Walmsley | 794b480 | 2012-04-19 13:33:58 -0600 | [diff] [blame] | 2761 | }; |
| 2762 | |
| 2763 | /* cm_core_aon */ |
| 2764 | static struct omap_hwmod omap44xx_cm_core_aon_hwmod = { |
| 2765 | .name = "cm_core_aon", |
| 2766 | .class = &omap44xx_prcm_hwmod_class, |
Paul Walmsley | 53cce97 | 2012-09-23 17:28:22 -0600 | [diff] [blame] | 2767 | .flags = HWMOD_NO_IDLEST, |
Tero Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 2768 | .prcm = { |
| 2769 | .omap4 = { |
| 2770 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 2771 | }, |
| 2772 | }, |
Paul Walmsley | 794b480 | 2012-04-19 13:33:58 -0600 | [diff] [blame] | 2773 | }; |
| 2774 | |
| 2775 | /* cm_core */ |
| 2776 | static struct omap_hwmod omap44xx_cm_core_hwmod = { |
| 2777 | .name = "cm_core", |
| 2778 | .class = &omap44xx_prcm_hwmod_class, |
Paul Walmsley | 53cce97 | 2012-09-23 17:28:22 -0600 | [diff] [blame] | 2779 | .flags = HWMOD_NO_IDLEST, |
Tero Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 2780 | .prcm = { |
| 2781 | .omap4 = { |
| 2782 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 2783 | }, |
| 2784 | }, |
Paul Walmsley | 794b480 | 2012-04-19 13:33:58 -0600 | [diff] [blame] | 2785 | }; |
| 2786 | |
| 2787 | /* prm */ |
| 2788 | static struct omap_hwmod_irq_info omap44xx_prm_irqs[] = { |
| 2789 | { .irq = 11 + OMAP44XX_IRQ_GIC_START }, |
| 2790 | { .irq = -1 } |
| 2791 | }; |
| 2792 | |
| 2793 | static 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 | |
| 2798 | static struct omap_hwmod omap44xx_prm_hwmod = { |
| 2799 | .name = "prm", |
| 2800 | .class = &omap44xx_prcm_hwmod_class, |
Paul Walmsley | 794b480 | 2012-04-19 13:33:58 -0600 | [diff] [blame] | 2801 | .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 | |
| 2811 | static struct omap_hwmod_class omap44xx_scrm_hwmod_class = { |
| 2812 | .name = "scrm", |
| 2813 | }; |
| 2814 | |
| 2815 | /* scrm */ |
| 2816 | static struct omap_hwmod omap44xx_scrm_hwmod = { |
| 2817 | .name = "scrm", |
| 2818 | .class = &omap44xx_scrm_hwmod_class, |
| 2819 | .clkdm_name = "l4_wkup_clkdm", |
Tero Kristo | 46b3af2 | 2012-09-23 17:28:20 -0600 | [diff] [blame] | 2820 | .prcm = { |
| 2821 | .omap4 = { |
| 2822 | .flags = HWMOD_OMAP4_NO_CONTEXT_LOSS_BIT, |
| 2823 | }, |
| 2824 | }, |
Paul Walmsley | 794b480 | 2012-04-19 13:33:58 -0600 | [diff] [blame] | 2825 | }; |
| 2826 | |
| 2827 | /* |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 2828 | * 'sl2if' class |
| 2829 | * shared level 2 memory interface |
| 2830 | */ |
| 2831 | |
| 2832 | static struct omap_hwmod_class omap44xx_sl2if_hwmod_class = { |
| 2833 | .name = "sl2if", |
| 2834 | }; |
| 2835 | |
| 2836 | /* sl2if */ |
| 2837 | static 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 Cousson | 1e3b5e59 | 2012-04-19 13:33:53 -0600 | [diff] [blame] | 2851 | * 'slimbus' class |
| 2852 | * bidirectional, multi-drop, multi-channel two-line serial interface between |
| 2853 | * the device and external components |
| 2854 | */ |
| 2855 | |
| 2856 | static 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 | |
| 2866 | static struct omap_hwmod_class omap44xx_slimbus_hwmod_class = { |
| 2867 | .name = "slimbus", |
| 2868 | .sysc = &omap44xx_slimbus_sysc, |
| 2869 | }; |
| 2870 | |
| 2871 | /* slimbus1 */ |
| 2872 | static struct omap_hwmod_irq_info omap44xx_slimbus1_irqs[] = { |
| 2873 | { .irq = 97 + OMAP44XX_IRQ_GIC_START }, |
| 2874 | { .irq = -1 } |
| 2875 | }; |
| 2876 | |
| 2877 | static 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 | |
| 2889 | static 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 | |
| 2896 | static 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 */ |
| 2914 | static struct omap_hwmod_irq_info omap44xx_slimbus2_irqs[] = { |
| 2915 | { .irq = 98 + OMAP44XX_IRQ_GIC_START }, |
| 2916 | { .irq = -1 } |
| 2917 | }; |
| 2918 | |
| 2919 | static 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 | |
| 2931 | static 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 | |
| 2937 | static 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 Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2955 | * '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 */ |
| 2961 | static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = { |
| 2962 | .sidle_shift = 24, |
| 2963 | .enwkup_shift = 26, |
| 2964 | }; |
| 2965 | |
| 2966 | static 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 | |
| 2974 | static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 2975 | .name = "smartreflex", |
| 2976 | .sysc = &omap44xx_smartreflex_sysc, |
| 2977 | .rev = 2, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2978 | }; |
| 2979 | |
| 2980 | /* smartreflex_core */ |
Shweta Gulati | cea6b94 | 2012-02-29 23:33:37 +0100 | [diff] [blame] | 2981 | static struct omap_smartreflex_dev_attr smartreflex_core_dev_attr = { |
| 2982 | .sensor_voltdm_name = "core", |
| 2983 | }; |
| 2984 | |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2985 | static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = { |
| 2986 | { .irq = 19 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2987 | { .irq = -1 } |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2988 | }; |
| 2989 | |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2990 | static struct omap_hwmod omap44xx_smartreflex_core_hwmod = { |
| 2991 | .name = "smartreflex_core", |
| 2992 | .class = &omap44xx_smartreflex_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 2993 | .clkdm_name = "l4_ao_clkdm", |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2994 | .mpu_irqs = omap44xx_smartreflex_core_irqs, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2995 | |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2996 | .main_clk = "smartreflex_core_fck", |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2997 | .prcm = { |
| 2998 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 2999 | .clkctrl_offs = OMAP4_CM_ALWON_SR_CORE_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3000 | .context_offs = OMAP4_RM_ALWON_SR_CORE_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3001 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3002 | }, |
| 3003 | }, |
Shweta Gulati | cea6b94 | 2012-02-29 23:33:37 +0100 | [diff] [blame] | 3004 | .dev_attr = &smartreflex_core_dev_attr, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3005 | }; |
| 3006 | |
| 3007 | /* smartreflex_iva */ |
Shweta Gulati | cea6b94 | 2012-02-29 23:33:37 +0100 | [diff] [blame] | 3008 | static struct omap_smartreflex_dev_attr smartreflex_iva_dev_attr = { |
| 3009 | .sensor_voltdm_name = "iva", |
| 3010 | }; |
| 3011 | |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3012 | static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = { |
| 3013 | { .irq = 102 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3014 | { .irq = -1 } |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3015 | }; |
| 3016 | |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3017 | static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = { |
| 3018 | .name = "smartreflex_iva", |
| 3019 | .class = &omap44xx_smartreflex_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3020 | .clkdm_name = "l4_ao_clkdm", |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3021 | .mpu_irqs = omap44xx_smartreflex_iva_irqs, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3022 | .main_clk = "smartreflex_iva_fck", |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3023 | .prcm = { |
| 3024 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3025 | .clkctrl_offs = OMAP4_CM_ALWON_SR_IVA_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3026 | .context_offs = OMAP4_RM_ALWON_SR_IVA_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3027 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3028 | }, |
| 3029 | }, |
Shweta Gulati | cea6b94 | 2012-02-29 23:33:37 +0100 | [diff] [blame] | 3030 | .dev_attr = &smartreflex_iva_dev_attr, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3031 | }; |
| 3032 | |
| 3033 | /* smartreflex_mpu */ |
Shweta Gulati | cea6b94 | 2012-02-29 23:33:37 +0100 | [diff] [blame] | 3034 | static struct omap_smartreflex_dev_attr smartreflex_mpu_dev_attr = { |
| 3035 | .sensor_voltdm_name = "mpu", |
| 3036 | }; |
| 3037 | |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3038 | static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = { |
| 3039 | { .irq = 18 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3040 | { .irq = -1 } |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3041 | }; |
| 3042 | |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3043 | static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = { |
| 3044 | .name = "smartreflex_mpu", |
| 3045 | .class = &omap44xx_smartreflex_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3046 | .clkdm_name = "l4_ao_clkdm", |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3047 | .mpu_irqs = omap44xx_smartreflex_mpu_irqs, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3048 | .main_clk = "smartreflex_mpu_fck", |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3049 | .prcm = { |
| 3050 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3051 | .clkctrl_offs = OMAP4_CM_ALWON_SR_MPU_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3052 | .context_offs = OMAP4_RM_ALWON_SR_MPU_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3053 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3054 | }, |
| 3055 | }, |
Shweta Gulati | cea6b94 | 2012-02-29 23:33:37 +0100 | [diff] [blame] | 3056 | .dev_attr = &smartreflex_mpu_dev_attr, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 3057 | }; |
| 3058 | |
| 3059 | /* |
Benoit Cousson | d11c217 | 2011-02-02 12:04:36 +0000 | [diff] [blame] | 3060 | * 'spinlock' class |
| 3061 | * spinlock provides hardware assistance for synchronizing the processes |
| 3062 | * running on multiple processors |
| 3063 | */ |
| 3064 | |
| 3065 | static 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 | |
| 3077 | static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = { |
| 3078 | .name = "spinlock", |
| 3079 | .sysc = &omap44xx_spinlock_sysc, |
| 3080 | }; |
| 3081 | |
| 3082 | /* spinlock */ |
Benoit Cousson | d11c217 | 2011-02-02 12:04:36 +0000 | [diff] [blame] | 3083 | static struct omap_hwmod omap44xx_spinlock_hwmod = { |
| 3084 | .name = "spinlock", |
| 3085 | .class = &omap44xx_spinlock_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3086 | .clkdm_name = "l4_cfg_clkdm", |
Benoit Cousson | d11c217 | 2011-02-02 12:04:36 +0000 | [diff] [blame] | 3087 | .prcm = { |
| 3088 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3089 | .clkctrl_offs = OMAP4_CM_L4CFG_HW_SEM_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3090 | .context_offs = OMAP4_RM_L4CFG_HW_SEM_CONTEXT_OFFSET, |
Benoit Cousson | d11c217 | 2011-02-02 12:04:36 +0000 | [diff] [blame] | 3091 | }, |
| 3092 | }, |
Benoit Cousson | d11c217 | 2011-02-02 12:04:36 +0000 | [diff] [blame] | 3093 | }; |
| 3094 | |
| 3095 | /* |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3096 | * 'timer' class |
| 3097 | * general purpose timer module with accurate 1ms tick |
| 3098 | * This class contains several variants: ['timer_1ms', 'timer'] |
| 3099 | */ |
| 3100 | |
| 3101 | static 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 Hunter | 10759e8 | 2012-07-11 13:00:13 -0500 | [diff] [blame] | 3110 | .clockact = CLOCKACT_TEST_ICLK, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3111 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 3112 | }; |
| 3113 | |
| 3114 | static struct omap_hwmod_class omap44xx_timer_1ms_hwmod_class = { |
| 3115 | .name = "timer", |
| 3116 | .sysc = &omap44xx_timer_1ms_sysc, |
| 3117 | }; |
| 3118 | |
| 3119 | static 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 | |
| 3129 | static struct omap_hwmod_class omap44xx_timer_hwmod_class = { |
| 3130 | .name = "timer", |
| 3131 | .sysc = &omap44xx_timer_sysc, |
| 3132 | }; |
| 3133 | |
Tarun Kanti DebBarma | c345c8b | 2011-09-20 17:00:18 +0530 | [diff] [blame] | 3134 | /* always-on timers dev attribute */ |
| 3135 | static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = { |
| 3136 | .timer_capability = OMAP_TIMER_ALWON, |
| 3137 | }; |
| 3138 | |
| 3139 | /* pwm timers dev attribute */ |
| 3140 | static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = { |
| 3141 | .timer_capability = OMAP_TIMER_HAS_PWM, |
| 3142 | }; |
| 3143 | |
Jon Hunter | 5c3e4ec | 2012-09-23 17:28:27 -0600 | [diff] [blame] | 3144 | /* timers with DSP interrupt dev attribute */ |
| 3145 | static 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 */ |
| 3150 | static 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 Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3154 | /* timer1 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3155 | static struct omap_hwmod_irq_info omap44xx_timer1_irqs[] = { |
| 3156 | { .irq = 37 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3157 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3158 | }; |
| 3159 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3160 | static struct omap_hwmod omap44xx_timer1_hwmod = { |
| 3161 | .name = "timer1", |
| 3162 | .class = &omap44xx_timer_1ms_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3163 | .clkdm_name = "l4_wkup_clkdm", |
Jon Hunter | 10759e8 | 2012-07-11 13:00:13 -0500 | [diff] [blame] | 3164 | .flags = HWMOD_SET_DEFAULT_CLOCKACT, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3165 | .mpu_irqs = omap44xx_timer1_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3166 | .main_clk = "timer1_fck", |
| 3167 | .prcm = { |
| 3168 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3169 | .clkctrl_offs = OMAP4_CM_WKUP_TIMER1_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3170 | .context_offs = OMAP4_RM_WKUP_TIMER1_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3171 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3172 | }, |
| 3173 | }, |
Tarun Kanti DebBarma | c345c8b | 2011-09-20 17:00:18 +0530 | [diff] [blame] | 3174 | .dev_attr = &capability_alwon_dev_attr, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3175 | }; |
| 3176 | |
| 3177 | /* timer2 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3178 | static struct omap_hwmod_irq_info omap44xx_timer2_irqs[] = { |
| 3179 | { .irq = 38 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3180 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3181 | }; |
| 3182 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3183 | static struct omap_hwmod omap44xx_timer2_hwmod = { |
| 3184 | .name = "timer2", |
| 3185 | .class = &omap44xx_timer_1ms_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3186 | .clkdm_name = "l4_per_clkdm", |
Jon Hunter | 10759e8 | 2012-07-11 13:00:13 -0500 | [diff] [blame] | 3187 | .flags = HWMOD_SET_DEFAULT_CLOCKACT, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3188 | .mpu_irqs = omap44xx_timer2_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3189 | .main_clk = "timer2_fck", |
| 3190 | .prcm = { |
| 3191 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3192 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER2_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3193 | .context_offs = OMAP4_RM_L4PER_DMTIMER2_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3194 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3195 | }, |
| 3196 | }, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3197 | }; |
| 3198 | |
| 3199 | /* timer3 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3200 | static struct omap_hwmod_irq_info omap44xx_timer3_irqs[] = { |
| 3201 | { .irq = 39 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3202 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3203 | }; |
| 3204 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3205 | static struct omap_hwmod omap44xx_timer3_hwmod = { |
| 3206 | .name = "timer3", |
| 3207 | .class = &omap44xx_timer_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3208 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3209 | .mpu_irqs = omap44xx_timer3_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3210 | .main_clk = "timer3_fck", |
| 3211 | .prcm = { |
| 3212 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3213 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER3_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3214 | .context_offs = OMAP4_RM_L4PER_DMTIMER3_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3215 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3216 | }, |
| 3217 | }, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3218 | }; |
| 3219 | |
| 3220 | /* timer4 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3221 | static struct omap_hwmod_irq_info omap44xx_timer4_irqs[] = { |
| 3222 | { .irq = 40 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3223 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3224 | }; |
| 3225 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3226 | static struct omap_hwmod omap44xx_timer4_hwmod = { |
| 3227 | .name = "timer4", |
| 3228 | .class = &omap44xx_timer_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3229 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3230 | .mpu_irqs = omap44xx_timer4_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3231 | .main_clk = "timer4_fck", |
| 3232 | .prcm = { |
| 3233 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3234 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER4_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3235 | .context_offs = OMAP4_RM_L4PER_DMTIMER4_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3236 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3237 | }, |
| 3238 | }, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3239 | }; |
| 3240 | |
| 3241 | /* timer5 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3242 | static struct omap_hwmod_irq_info omap44xx_timer5_irqs[] = { |
| 3243 | { .irq = 41 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3244 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3245 | }; |
| 3246 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3247 | static struct omap_hwmod omap44xx_timer5_hwmod = { |
| 3248 | .name = "timer5", |
| 3249 | .class = &omap44xx_timer_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3250 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3251 | .mpu_irqs = omap44xx_timer5_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3252 | .main_clk = "timer5_fck", |
| 3253 | .prcm = { |
| 3254 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3255 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER5_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3256 | .context_offs = OMAP4_RM_ABE_TIMER5_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3257 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3258 | }, |
| 3259 | }, |
Jon Hunter | 5c3e4ec | 2012-09-23 17:28:27 -0600 | [diff] [blame] | 3260 | .dev_attr = &capability_dsp_dev_attr, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3261 | }; |
| 3262 | |
| 3263 | /* timer6 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3264 | static struct omap_hwmod_irq_info omap44xx_timer6_irqs[] = { |
| 3265 | { .irq = 42 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3266 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3267 | }; |
| 3268 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3269 | static struct omap_hwmod omap44xx_timer6_hwmod = { |
| 3270 | .name = "timer6", |
| 3271 | .class = &omap44xx_timer_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3272 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3273 | .mpu_irqs = omap44xx_timer6_irqs, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3274 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3275 | .main_clk = "timer6_fck", |
| 3276 | .prcm = { |
| 3277 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3278 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER6_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3279 | .context_offs = OMAP4_RM_ABE_TIMER6_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3280 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3281 | }, |
| 3282 | }, |
Jon Hunter | 5c3e4ec | 2012-09-23 17:28:27 -0600 | [diff] [blame] | 3283 | .dev_attr = &capability_dsp_dev_attr, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3284 | }; |
| 3285 | |
| 3286 | /* timer7 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3287 | static struct omap_hwmod_irq_info omap44xx_timer7_irqs[] = { |
| 3288 | { .irq = 43 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3289 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3290 | }; |
| 3291 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3292 | static struct omap_hwmod omap44xx_timer7_hwmod = { |
| 3293 | .name = "timer7", |
| 3294 | .class = &omap44xx_timer_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3295 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3296 | .mpu_irqs = omap44xx_timer7_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3297 | .main_clk = "timer7_fck", |
| 3298 | .prcm = { |
| 3299 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3300 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER7_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3301 | .context_offs = OMAP4_RM_ABE_TIMER7_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3302 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3303 | }, |
| 3304 | }, |
Jon Hunter | 5c3e4ec | 2012-09-23 17:28:27 -0600 | [diff] [blame] | 3305 | .dev_attr = &capability_dsp_dev_attr, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3306 | }; |
| 3307 | |
| 3308 | /* timer8 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3309 | static struct omap_hwmod_irq_info omap44xx_timer8_irqs[] = { |
| 3310 | { .irq = 44 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3311 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3312 | }; |
| 3313 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3314 | static struct omap_hwmod omap44xx_timer8_hwmod = { |
| 3315 | .name = "timer8", |
| 3316 | .class = &omap44xx_timer_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3317 | .clkdm_name = "abe_clkdm", |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3318 | .mpu_irqs = omap44xx_timer8_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3319 | .main_clk = "timer8_fck", |
| 3320 | .prcm = { |
| 3321 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3322 | .clkctrl_offs = OMAP4_CM1_ABE_TIMER8_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3323 | .context_offs = OMAP4_RM_ABE_TIMER8_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3324 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3325 | }, |
| 3326 | }, |
Jon Hunter | 5c3e4ec | 2012-09-23 17:28:27 -0600 | [diff] [blame] | 3327 | .dev_attr = &capability_dsp_pwm_dev_attr, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3328 | }; |
| 3329 | |
| 3330 | /* timer9 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3331 | static struct omap_hwmod_irq_info omap44xx_timer9_irqs[] = { |
| 3332 | { .irq = 45 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3333 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3334 | }; |
| 3335 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3336 | static struct omap_hwmod omap44xx_timer9_hwmod = { |
| 3337 | .name = "timer9", |
| 3338 | .class = &omap44xx_timer_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3339 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3340 | .mpu_irqs = omap44xx_timer9_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3341 | .main_clk = "timer9_fck", |
| 3342 | .prcm = { |
| 3343 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3344 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER9_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3345 | .context_offs = OMAP4_RM_L4PER_DMTIMER9_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3346 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3347 | }, |
| 3348 | }, |
Tarun Kanti DebBarma | c345c8b | 2011-09-20 17:00:18 +0530 | [diff] [blame] | 3349 | .dev_attr = &capability_pwm_dev_attr, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3350 | }; |
| 3351 | |
| 3352 | /* timer10 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3353 | static struct omap_hwmod_irq_info omap44xx_timer10_irqs[] = { |
| 3354 | { .irq = 46 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3355 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3356 | }; |
| 3357 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3358 | static struct omap_hwmod omap44xx_timer10_hwmod = { |
| 3359 | .name = "timer10", |
| 3360 | .class = &omap44xx_timer_1ms_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3361 | .clkdm_name = "l4_per_clkdm", |
Jon Hunter | 10759e8 | 2012-07-11 13:00:13 -0500 | [diff] [blame] | 3362 | .flags = HWMOD_SET_DEFAULT_CLOCKACT, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3363 | .mpu_irqs = omap44xx_timer10_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3364 | .main_clk = "timer10_fck", |
| 3365 | .prcm = { |
| 3366 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3367 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER10_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3368 | .context_offs = OMAP4_RM_L4PER_DMTIMER10_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3369 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3370 | }, |
| 3371 | }, |
Tarun Kanti DebBarma | c345c8b | 2011-09-20 17:00:18 +0530 | [diff] [blame] | 3372 | .dev_attr = &capability_pwm_dev_attr, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3373 | }; |
| 3374 | |
| 3375 | /* timer11 */ |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3376 | static struct omap_hwmod_irq_info omap44xx_timer11_irqs[] = { |
| 3377 | { .irq = 47 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3378 | { .irq = -1 } |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3379 | }; |
| 3380 | |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3381 | static struct omap_hwmod omap44xx_timer11_hwmod = { |
| 3382 | .name = "timer11", |
| 3383 | .class = &omap44xx_timer_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3384 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3385 | .mpu_irqs = omap44xx_timer11_irqs, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3386 | .main_clk = "timer11_fck", |
| 3387 | .prcm = { |
| 3388 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3389 | .clkctrl_offs = OMAP4_CM_L4PER_DMTIMER11_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3390 | .context_offs = OMAP4_RM_L4PER_DMTIMER11_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3391 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3392 | }, |
| 3393 | }, |
Tarun Kanti DebBarma | c345c8b | 2011-09-20 17:00:18 +0530 | [diff] [blame] | 3394 | .dev_attr = &capability_pwm_dev_attr, |
Benoit Cousson | 35d1a66 | 2011-02-11 11:17:14 +0000 | [diff] [blame] | 3395 | }; |
| 3396 | |
| 3397 | /* |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3398 | * 'uart' class |
| 3399 | * universal asynchronous receiver/transmitter (uart) |
| 3400 | */ |
| 3401 | |
| 3402 | static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = { |
| 3403 | .rev_offs = 0x0050, |
| 3404 | .sysc_offs = 0x0054, |
| 3405 | .syss_offs = 0x0058, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 3406 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP | |
Benoit Cousson | 0cfe875 | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 3407 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | |
| 3408 | SYSS_HAS_RESET_STATUS), |
Benoit Cousson | 7cffa6b | 2010-12-21 21:31:28 -0700 | [diff] [blame] | 3409 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 3410 | SIDLE_SMART_WKUP), |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3411 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 3412 | }; |
| 3413 | |
| 3414 | static struct omap_hwmod_class omap44xx_uart_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 3415 | .name = "uart", |
| 3416 | .sysc = &omap44xx_uart_sysc, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3417 | }; |
| 3418 | |
| 3419 | /* uart1 */ |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3420 | static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = { |
| 3421 | { .irq = 72 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3422 | { .irq = -1 } |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3423 | }; |
| 3424 | |
| 3425 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 3428 | { .dma_req = -1 } |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3429 | }; |
| 3430 | |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3431 | static struct omap_hwmod omap44xx_uart1_hwmod = { |
| 3432 | .name = "uart1", |
| 3433 | .class = &omap44xx_uart_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3434 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3435 | .mpu_irqs = omap44xx_uart1_irqs, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3436 | .sdma_reqs = omap44xx_uart1_sdma_reqs, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3437 | .main_clk = "uart1_fck", |
| 3438 | .prcm = { |
| 3439 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3440 | .clkctrl_offs = OMAP4_CM_L4PER_UART1_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3441 | .context_offs = OMAP4_RM_L4PER_UART1_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3442 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3443 | }, |
| 3444 | }, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3445 | }; |
| 3446 | |
| 3447 | /* uart2 */ |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3448 | static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = { |
| 3449 | { .irq = 73 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3450 | { .irq = -1 } |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3451 | }; |
| 3452 | |
| 3453 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 3456 | { .dma_req = -1 } |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3457 | }; |
| 3458 | |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3459 | static struct omap_hwmod omap44xx_uart2_hwmod = { |
| 3460 | .name = "uart2", |
| 3461 | .class = &omap44xx_uart_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3462 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3463 | .mpu_irqs = omap44xx_uart2_irqs, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3464 | .sdma_reqs = omap44xx_uart2_sdma_reqs, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3465 | .main_clk = "uart2_fck", |
| 3466 | .prcm = { |
| 3467 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3468 | .clkctrl_offs = OMAP4_CM_L4PER_UART2_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3469 | .context_offs = OMAP4_RM_L4PER_UART2_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3470 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3471 | }, |
| 3472 | }, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3473 | }; |
| 3474 | |
| 3475 | /* uart3 */ |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3476 | static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = { |
| 3477 | { .irq = 74 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3478 | { .irq = -1 } |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3479 | }; |
| 3480 | |
| 3481 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 3484 | { .dma_req = -1 } |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3485 | }; |
| 3486 | |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3487 | static struct omap_hwmod omap44xx_uart3_hwmod = { |
| 3488 | .name = "uart3", |
| 3489 | .class = &omap44xx_uart_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3490 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | 7ecc5373 | 2011-07-09 19:14:28 -0600 | [diff] [blame] | 3491 | .flags = HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3492 | .mpu_irqs = omap44xx_uart3_irqs, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3493 | .sdma_reqs = omap44xx_uart3_sdma_reqs, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3494 | .main_clk = "uart3_fck", |
| 3495 | .prcm = { |
| 3496 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3497 | .clkctrl_offs = OMAP4_CM_L4PER_UART3_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3498 | .context_offs = OMAP4_RM_L4PER_UART3_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3499 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3500 | }, |
| 3501 | }, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3502 | }; |
| 3503 | |
| 3504 | /* uart4 */ |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3505 | static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = { |
| 3506 | { .irq = 70 + OMAP44XX_IRQ_GIC_START }, |
Paul Walmsley | 212738a | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3507 | { .irq = -1 } |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3508 | }; |
| 3509 | |
| 3510 | static 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 Walmsley | bc61495 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 3513 | { .dma_req = -1 } |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3514 | }; |
| 3515 | |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3516 | static struct omap_hwmod omap44xx_uart4_hwmod = { |
| 3517 | .name = "uart4", |
| 3518 | .class = &omap44xx_uart_hwmod_class, |
Benoit Cousson | a5322c6 | 2011-07-10 05:56:29 -0600 | [diff] [blame] | 3519 | .clkdm_name = "l4_per_clkdm", |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3520 | .mpu_irqs = omap44xx_uart4_irqs, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3521 | .sdma_reqs = omap44xx_uart4_sdma_reqs, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3522 | .main_clk = "uart4_fck", |
| 3523 | .prcm = { |
| 3524 | .omap4 = { |
Benoit Cousson | d0f0631 | 2011-07-10 05:56:30 -0600 | [diff] [blame] | 3525 | .clkctrl_offs = OMAP4_CM_L4PER_UART4_CLKCTRL_OFFSET, |
Benoit Cousson | 27bb00b | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3526 | .context_offs = OMAP4_RM_L4PER_UART4_CONTEXT_OFFSET, |
Benoit Cousson | 03fdefe5 | 2011-07-10 05:56:32 -0600 | [diff] [blame] | 3527 | .modulemode = MODULEMODE_SWCTRL, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3528 | }, |
| 3529 | }, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 3530 | }; |
| 3531 | |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 3532 | /* |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 3533 | * 'usb_host_fs' class |
| 3534 | * full-speed usb host controller |
| 3535 | */ |
| 3536 | |
| 3537 | /* The IP is not compliant to type1 / type2 scheme */ |
| 3538 | static 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 | |
| 3544 | static 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 | |
| 3554 | static 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 */ |
| 3560 | static 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 | |
| 3566 | static 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 Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3582 | * 'usb_host_hs' class |
| 3583 | * high-speed multi-port usb host controller |
| 3584 | */ |
Benoit Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3585 | |
| 3586 | static 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 | |
| 3598 | static struct omap_hwmod_class omap44xx_usb_host_hs_hwmod_class = { |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3599 | .name = "usb_host_hs", |
| 3600 | .sysc = &omap44xx_usb_host_hs_sysc, |
Benoit Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3601 | }; |
| 3602 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3603 | /* usb_host_hs */ |
Benoit Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3604 | static 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 Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3610 | static 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 Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3623 | |
| 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3674 | * 'usb_otg_hs' class |
| 3675 | * high-speed on-the-go universal serial bus (usb_otg_hs) controller |
| 3676 | */ |
| 3677 | |
| 3678 | static 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 | |
| 3691 | static 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 */ |
| 3697 | static 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 | |
| 3703 | static struct omap_hwmod_opt_clk usb_otg_hs_opt_clks[] = { |
| 3704 | { .role = "xclk", .clk = "usb_otg_hs_xclk" }, |
| 3705 | }; |
| 3706 | |
| 3707 | static 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 Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3726 | * 'usb_tll_hs' class |
| 3727 | * usb_tll_hs module is the adapter on the usb_host_hs ports |
| 3728 | */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3729 | |
Benoit Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3730 | static 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 | |
| 3741 | static struct omap_hwmod_class omap44xx_usb_tll_hs_hwmod_class = { |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3742 | .name = "usb_tll_hs", |
| 3743 | .sysc = &omap44xx_usb_tll_hs_sysc, |
Benoit Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 3744 | }; |
| 3745 | |
| 3746 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3751 | static 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 | |
| 3772 | static 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 | |
| 3783 | static 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 Hilman | 414e412 | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 3787 | .reset = &omap2_wd_timer_reset, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3788 | }; |
| 3789 | |
| 3790 | /* wd_timer2 */ |
| 3791 | static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = { |
| 3792 | { .irq = 80 + OMAP44XX_IRQ_GIC_START }, |
| 3793 | { .irq = -1 } |
| 3794 | }; |
| 3795 | |
| 3796 | static 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 */ |
| 3812 | static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = { |
| 3813 | { .irq = 36 + OMAP44XX_IRQ_GIC_START }, |
| 3814 | { .irq = -1 } |
| 3815 | }; |
| 3816 | |
| 3817 | static 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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 3837 | static 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 */ |
| 3847 | static 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 */ |
| 3856 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3863 | /* l3_main_1 -> dmm */ |
| 3864 | static 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 | |
| 3871 | static 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 */ |
| 3881 | static 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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 3889 | /* c2c -> emif_fw */ |
| 3890 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3897 | /* dmm -> emif_fw */ |
| 3898 | static 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 | |
| 3905 | static 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 */ |
| 3915 | static 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 */ |
| 3924 | static 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 */ |
| 3932 | static 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 Cousson | 9a817bc | 2012-04-19 13:33:56 -0600 | [diff] [blame] | 3939 | /* ocp_wp_noc -> l3_instr */ |
| 3940 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 3947 | /* dsp -> l3_main_1 */ |
| 3948 | static 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 */ |
| 3956 | static 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 */ |
| 3964 | static 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 */ |
| 3972 | static 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 */ |
| 3980 | static 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 */ |
| 3988 | static 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 | |
| 3995 | static 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 */ |
| 4005 | static 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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 4013 | /* c2c_target_fw -> l3_main_2 */ |
| 4014 | static 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 Cousson | 9656604 | 2012-04-19 13:33:59 -0600 | [diff] [blame] | 4021 | /* debugss -> l3_main_2 */ |
| 4022 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4029 | /* dma_system -> l3_main_2 */ |
| 4030 | static 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 Lei | b050f68 | 2012-04-19 13:33:50 -0600 | [diff] [blame] | 4037 | /* fdif -> l3_main_2 */ |
| 4038 | static 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 Walmsley | 9def390 | 2012-04-19 13:33:53 -0600 | [diff] [blame] | 4045 | /* gpu -> l3_main_2 */ |
| 4046 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4053 | /* hsi -> l3_main_2 */ |
| 4054 | static 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 */ |
| 4062 | static 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 */ |
| 4070 | static 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 */ |
| 4078 | static 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 | |
| 4085 | static 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 */ |
| 4095 | static 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 */ |
| 4104 | static 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 Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 4111 | /* usb_host_fs -> l3_main_2 */ |
Paul Walmsley | b0a70cc | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 4112 | static struct omap_hwmod_ocp_if __maybe_unused omap44xx_usb_host_fs__l3_main_2 = { |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 4113 | .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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4119 | /* usb_host_hs -> l3_main_2 */ |
| 4120 | static 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 */ |
| 4128 | static 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 | |
| 4135 | static 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 */ |
| 4145 | static 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 */ |
| 4154 | static 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 */ |
| 4162 | static 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 Walmsley | b0a70cc | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 4170 | static struct omap_hwmod_ocp_if __maybe_unused omap44xx_aess__l4_abe = { |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4171 | .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 */ |
| 4178 | static 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 */ |
| 4186 | static 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 */ |
| 4194 | static 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 */ |
| 4202 | static 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 */ |
| 4210 | static 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 */ |
| 4218 | static 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 */ |
| 4226 | static 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 Cousson | 9a817bc | 2012-04-19 13:33:56 -0600 | [diff] [blame] | 4233 | static 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 */ |
| 4243 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4251 | static struct omap_hwmod_addr_space omap44xx_aess_addrs[] = { |
| 4252 | { |
Sebastien Guiriec | 9f0c599 | 2013-02-10 11:22:24 -0700 | [diff] [blame] | 4253 | .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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4274 | .pa_start = 0x401f1000, |
| 4275 | .pa_end = 0x401f13ff, |
| 4276 | .flags = ADDR_TYPE_RT |
| 4277 | }, |
| 4278 | { } |
| 4279 | }; |
| 4280 | |
| 4281 | /* l4_abe -> aess */ |
Paul Walmsley | b0a70cc | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 4282 | static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess = { |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4283 | .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 | |
| 4290 | static struct omap_hwmod_addr_space omap44xx_aess_dma_addrs[] = { |
| 4291 | { |
Sebastien Guiriec | 9f0c599 | 2013-02-10 11:22:24 -0700 | [diff] [blame] | 4292 | .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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4313 | .pa_start = 0x490f1000, |
| 4314 | .pa_end = 0x490f13ff, |
| 4315 | .flags = ADDR_TYPE_RT |
| 4316 | }, |
| 4317 | { } |
| 4318 | }; |
| 4319 | |
| 4320 | /* l4_abe -> aess (dma) */ |
Paul Walmsley | b0a70cc | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 4321 | static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_abe__aess_dma = { |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4322 | .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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 4329 | /* l3_main_2 -> c2c */ |
| 4330 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4337 | static 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 */ |
| 4347 | static 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 Walmsley | a0b5d81 | 2012-04-19 13:33:57 -0600 | [diff] [blame] | 4355 | static 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 */ |
| 4365 | static 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 | |
| 4373 | static 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 */ |
| 4383 | static 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 | |
| 4391 | static 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 */ |
| 4401 | static 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 | |
| 4409 | static 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 */ |
| 4419 | static 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 Cousson | 9656604 | 2012-04-19 13:33:59 -0600 | [diff] [blame] | 4427 | static 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 */ |
| 4437 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4445 | static 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 */ |
| 4455 | static 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 | |
| 4463 | static 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 */ |
| 4474 | static 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 | |
| 4482 | static 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) */ |
| 4493 | static 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 */ |
| 4502 | static 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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 4509 | /* dsp -> sl2if */ |
Tero Kristo | b360124 | 2012-09-03 11:50:53 -0600 | [diff] [blame] | 4510 | static struct omap_hwmod_ocp_if __maybe_unused omap44xx_dsp__sl2if = { |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 4511 | .master = &omap44xx_dsp_hwmod, |
| 4512 | .slave = &omap44xx_sl2if_hwmod, |
| 4513 | .clk = "dpll_iva_m5x2_ck", |
| 4514 | .user = OCP_USER_DSP, |
| 4515 | }; |
| 4516 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4517 | /* l4_cfg -> dsp */ |
| 4518 | static 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 | |
| 4525 | static 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 */ |
| 4535 | static 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 | |
| 4543 | static 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 */ |
| 4553 | static 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 | |
| 4561 | static 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 */ |
| 4571 | static 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 | |
| 4579 | static 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 */ |
| 4589 | static 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 | |
| 4597 | static 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 */ |
| 4607 | static 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 | |
| 4615 | static 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 */ |
| 4625 | static 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 | |
| 4633 | static 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 */ |
| 4643 | static 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 | |
| 4651 | static 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 */ |
| 4661 | static 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 | |
| 4669 | static 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 */ |
| 4679 | static 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 | |
| 4687 | static 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 */ |
| 4697 | static 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 | |
| 4705 | static 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 */ |
| 4715 | static 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 | |
| 4723 | static 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 */ |
| 4733 | static 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 | |
| 4741 | static 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 */ |
| 4751 | static 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 | |
| 4759 | static 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 */ |
| 4769 | static 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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 4777 | static 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 */ |
| 4787 | static 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 Walmsley | bf30f95 | 2012-04-19 13:33:52 -0600 | [diff] [blame] | 4795 | static 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 */ |
| 4805 | static 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 | |
| 4813 | static 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 */ |
| 4823 | static 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 Lei | b050f68 | 2012-04-19 13:33:50 -0600 | [diff] [blame] | 4831 | static 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 */ |
| 4841 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 4849 | static 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 */ |
| 4859 | static 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 | |
| 4867 | static 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 */ |
| 4877 | static 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 | |
| 4885 | static 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 */ |
| 4895 | static 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 | |
| 4903 | static 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 */ |
| 4913 | static 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 | |
| 4921 | static 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 */ |
| 4931 | static 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 | |
| 4939 | static 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 */ |
| 4949 | static 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 Cousson | eb42b5d | 2012-04-19 13:33:51 -0600 | [diff] [blame] | 4957 | static 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 */ |
| 4967 | static 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 Walmsley | 9def390 | 2012-04-19 13:33:53 -0600 | [diff] [blame] | 4975 | static 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 */ |
| 4985 | static 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 Walmsley | a091c08 | 2012-04-19 13:33:50 -0600 | [diff] [blame] | 4993 | static 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 */ |
| 5003 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 5011 | static 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 */ |
| 5021 | static 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 | |
| 5029 | static 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 */ |
| 5039 | static 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 | |
| 5047 | static 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 */ |
| 5057 | static 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 | |
| 5065 | static 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 */ |
| 5075 | static 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 | |
| 5083 | static 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 */ |
| 5093 | static 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 */ |
| 5102 | static 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 | |
| 5109 | static 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 */ |
| 5119 | static 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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 5127 | /* iva -> sl2if */ |
Tero Kristo | b360124 | 2012-09-03 11:50:53 -0600 | [diff] [blame] | 5128 | static struct omap_hwmod_ocp_if __maybe_unused omap44xx_iva__sl2if = { |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 5129 | .master = &omap44xx_iva_hwmod, |
| 5130 | .slave = &omap44xx_sl2if_hwmod, |
| 5131 | .clk = "dpll_iva_m5x2_ck", |
| 5132 | .user = OCP_USER_IVA, |
| 5133 | }; |
| 5134 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 5135 | static 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 */ |
| 5145 | static 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 | |
| 5153 | static 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 */ |
| 5163 | static 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 | |
| 5171 | static 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 */ |
| 5181 | static 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 Cousson | 896d4e9 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 5189 | static 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 */ |
| 5199 | static 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 | |
| 5207 | static 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) */ |
| 5217 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 5225 | static 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 */ |
| 5236 | static 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 | |
| 5244 | static 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) */ |
| 5255 | static 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 | |
| 5263 | static 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 */ |
| 5274 | static 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 | |
| 5282 | static 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) */ |
| 5293 | static 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 | |
| 5301 | static 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 */ |
| 5312 | static 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 | |
| 5320 | static 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) */ |
| 5331 | static 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 | |
| 5339 | static 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 */ |
| 5349 | static 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 | |
| 5357 | static struct omap_hwmod_addr_space omap44xx_mcpdm_addrs[] = { |
| 5358 | { |
Peter Ujfalusi | acd08ec | 2012-09-14 15:05:53 +0300 | [diff] [blame] | 5359 | .name = "mpu", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 5360 | .pa_start = 0x40132000, |
| 5361 | .pa_end = 0x4013207f, |
| 5362 | .flags = ADDR_TYPE_RT |
| 5363 | }, |
| 5364 | { } |
| 5365 | }; |
| 5366 | |
| 5367 | /* l4_abe -> mcpdm */ |
| 5368 | static 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 | |
| 5376 | static struct omap_hwmod_addr_space omap44xx_mcpdm_dma_addrs[] = { |
| 5377 | { |
Peter Ujfalusi | acd08ec | 2012-09-14 15:05:53 +0300 | [diff] [blame] | 5378 | .name = "dma", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 5379 | .pa_start = 0x49032000, |
| 5380 | .pa_end = 0x4903207f, |
| 5381 | .flags = ADDR_TYPE_RT |
| 5382 | }, |
| 5383 | { } |
| 5384 | }; |
| 5385 | |
| 5386 | /* l4_abe -> mcpdm (dma) */ |
| 5387 | static 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 | |
| 5395 | static 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 */ |
| 5405 | static 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 | |
| 5413 | static 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 */ |
| 5423 | static 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 | |
| 5431 | static 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 */ |
| 5441 | static 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 | |
| 5449 | static 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 */ |
| 5459 | static 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 | |
| 5467 | static 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 */ |
| 5477 | static 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 | |
| 5485 | static 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 */ |
| 5495 | static 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 | |
| 5503 | static 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 */ |
| 5513 | static 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 | |
| 5521 | static 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 */ |
| 5531 | static 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 | |
| 5539 | static 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 */ |
| 5549 | static 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 Walmsley | e17f18c | 2012-04-19 13:33:56 -0600 | [diff] [blame] | 5557 | /* l3_main_2 -> ocmc_ram */ |
| 5558 | static 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 Cousson | 33c976e | 2012-09-23 17:28:21 -0600 | [diff] [blame] | 5565 | static 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 Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 5574 | /* l4_cfg -> ocp2scp_usb_phy */ |
| 5575 | static 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 Cousson | 33c976e | 2012-09-23 17:28:21 -0600 | [diff] [blame] | 5579 | .addr = omap44xx_ocp2scp_usb_phy_addrs, |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 5580 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 5581 | }; |
| 5582 | |
Paul Walmsley | 794b480 | 2012-04-19 13:33:58 -0600 | [diff] [blame] | 5583 | static 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 */ |
| 5593 | static 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 | |
| 5601 | static 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 */ |
| 5611 | static 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 | |
| 5619 | static 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 */ |
| 5629 | static 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 | |
| 5637 | static 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 */ |
| 5647 | static 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 | |
| 5655 | static 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 */ |
| 5665 | static 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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 5673 | /* l3_main_2 -> sl2if */ |
Tero Kristo | b360124 | 2012-09-03 11:50:53 -0600 | [diff] [blame] | 5674 | static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l3_main_2__sl2if = { |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 5675 | .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 Cousson | 1e3b5e59 | 2012-04-19 13:33:53 -0600 | [diff] [blame] | 5681 | static 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 */ |
| 5691 | static 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 | |
| 5699 | static 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) */ |
| 5709 | static 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 | |
| 5717 | static 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 */ |
| 5727 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 5735 | static 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 */ |
| 5745 | static 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 | |
| 5753 | static 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 */ |
| 5763 | static 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 | |
| 5771 | static 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 */ |
| 5781 | static 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 | |
| 5789 | static 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 */ |
| 5799 | static 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 | |
| 5807 | static 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 */ |
| 5817 | static 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 | |
| 5825 | static 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 */ |
| 5835 | static 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 | |
| 5843 | static 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 */ |
| 5853 | static 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 | |
| 5861 | static 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 */ |
| 5871 | static 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 | |
| 5879 | static 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 */ |
| 5889 | static 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 | |
| 5897 | static 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) */ |
| 5907 | static 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 | |
| 5915 | static 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 */ |
| 5925 | static 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 | |
| 5933 | static 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) */ |
| 5943 | static 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 | |
| 5951 | static 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 */ |
| 5961 | static 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 | |
| 5969 | static 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) */ |
| 5979 | static 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 | |
| 5987 | static 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 */ |
| 5997 | static 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 | |
| 6005 | static 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) */ |
| 6015 | static 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 | |
| 6023 | static 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 */ |
| 6033 | static 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 | |
| 6041 | static 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 */ |
| 6051 | static 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 | |
| 6059 | static 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 */ |
| 6069 | static 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 | |
| 6077 | static 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 */ |
| 6087 | static 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 | |
| 6095 | static 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 */ |
| 6105 | static 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 | |
| 6113 | static 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 */ |
| 6123 | static 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 | |
| 6131 | static 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 */ |
| 6141 | static 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 Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 6149 | static 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 Walmsley | b0a70cc | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 6159 | static struct omap_hwmod_ocp_if __maybe_unused omap44xx_l4_cfg__usb_host_fs = { |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 6160 | .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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 6167 | static 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 */ |
| 6188 | static 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 | |
| 6196 | static struct omap_hwmod_addr_space omap44xx_usb_otg_hs_addrs[] = { |
| 6197 | { |
| 6198 | .pa_start = 0x4a0ab000, |
Benoit Cousson | 33c976e | 2012-09-23 17:28:21 -0600 | [diff] [blame] | 6199 | .pa_end = 0x4a0ab7ff, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 6200 | .flags = ADDR_TYPE_RT |
| 6201 | }, |
Kishon Vijay Abraham I | 94715d5 | 2012-09-11 14:39:38 +0530 | [diff] [blame] | 6202 | { |
| 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 6208 | { } |
| 6209 | }; |
| 6210 | |
| 6211 | /* l4_cfg -> usb_otg_hs */ |
| 6212 | static 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 Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 6220 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 6230 | /* l4_cfg -> usb_tll_hs */ |
Benoit Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 6231 | static 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 Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 6239 | static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = { |
| 6240 | { |
| 6241 | .pa_start = 0x4a314000, |
| 6242 | .pa_end = 0x4a31407f, |
| 6243 | .flags = ADDR_TYPE_RT |
Benoit Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 6244 | }, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 6245 | { } |
| 6246 | }; |
| 6247 | |
| 6248 | /* l4_wkup -> wd_timer2 */ |
| 6249 | static 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 | |
| 6257 | static 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 */ |
| 6267 | static 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 | |
| 6275 | static 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) */ |
| 6285 | static 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 Cousson | af88fa9 | 2011-12-15 23:15:18 -0700 | [diff] [blame] | 6291 | }; |
| 6292 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6293 | static struct omap_hwmod_ocp_if *omap44xx_hwmod_ocp_ifs[] __initdata = { |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 6294 | &omap44xx_c2c__c2c_target_fw, |
| 6295 | &omap44xx_l4_cfg__c2c_target_fw, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6296 | &omap44xx_l3_main_1__dmm, |
| 6297 | &omap44xx_mpu__dmm, |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 6298 | &omap44xx_c2c__emif_fw, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6299 | &omap44xx_dmm__emif_fw, |
| 6300 | &omap44xx_l4_cfg__emif_fw, |
| 6301 | &omap44xx_iva__l3_instr, |
| 6302 | &omap44xx_l3_main_3__l3_instr, |
Benoît Cousson | 9a817bc | 2012-04-19 13:33:56 -0600 | [diff] [blame] | 6303 | &omap44xx_ocp_wp_noc__l3_instr, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6304 | &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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 6311 | &omap44xx_c2c_target_fw__l3_main_2, |
Benoît Cousson | 9656604 | 2012-04-19 13:33:59 -0600 | [diff] [blame] | 6312 | &omap44xx_debugss__l3_main_2, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6313 | &omap44xx_dma_system__l3_main_2, |
Ming Lei | b050f68 | 2012-04-19 13:33:50 -0600 | [diff] [blame] | 6314 | &omap44xx_fdif__l3_main_2, |
Paul Walmsley | 9def390 | 2012-04-19 13:33:53 -0600 | [diff] [blame] | 6315 | &omap44xx_gpu__l3_main_2, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6316 | &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 Walmsley | b0a70cc | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 6322 | /* &omap44xx_usb_host_fs__l3_main_2, */ |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6323 | &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 Guiriec | 5cebb23 | 2013-02-10 11:17:16 -0700 | [diff] [blame^] | 6328 | &omap44xx_aess__l4_abe, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6329 | &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 Cousson | 9a817bc | 2012-04-19 13:33:56 -0600 | [diff] [blame] | 6336 | &omap44xx_l4_cfg__ocp_wp_noc, |
Sebastien Guiriec | 5cebb23 | 2013-02-10 11:17:16 -0700 | [diff] [blame^] | 6337 | &omap44xx_l4_abe__aess, |
| 6338 | &omap44xx_l4_abe__aess_dma, |
Paul Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 6339 | &omap44xx_l3_main_2__c2c, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6340 | &omap44xx_l4_wkup__counter_32k, |
Paul Walmsley | a0b5d81 | 2012-04-19 13:33:57 -0600 | [diff] [blame] | 6341 | &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 Cousson | 9656604 | 2012-04-19 13:33:59 -0600 | [diff] [blame] | 6345 | &omap44xx_l3_instr__debugss, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6346 | &omap44xx_l4_cfg__dma_system, |
| 6347 | &omap44xx_l4_abe__dmic, |
| 6348 | &omap44xx_l4_abe__dmic_dma, |
| 6349 | &omap44xx_dsp__iva, |
Tero Kristo | b360124 | 2012-09-03 11:50:53 -0600 | [diff] [blame] | 6350 | /* &omap44xx_dsp__sl2if, */ |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6351 | &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 Walmsley | 42b9e38 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 6366 | &omap44xx_l4_per__elm, |
Paul Walmsley | bf30f95 | 2012-04-19 13:33:52 -0600 | [diff] [blame] | 6367 | &omap44xx_emif_fw__emif1, |
| 6368 | &omap44xx_emif_fw__emif2, |
Ming Lei | b050f68 | 2012-04-19 13:33:50 -0600 | [diff] [blame] | 6369 | &omap44xx_l4_cfg__fdif, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6370 | &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 Cousson | eb42b5d | 2012-04-19 13:33:51 -0600 | [diff] [blame] | 6376 | &omap44xx_l3_main_2__gpmc, |
Paul Walmsley | 9def390 | 2012-04-19 13:33:53 -0600 | [diff] [blame] | 6377 | &omap44xx_l3_main_2__gpu, |
Paul Walmsley | a091c08 | 2012-04-19 13:33:50 -0600 | [diff] [blame] | 6378 | &omap44xx_l4_per__hdq1w, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6379 | &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 Kristo | b360124 | 2012-09-03 11:50:53 -0600 | [diff] [blame] | 6386 | /* &omap44xx_iva__sl2if, */ |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6387 | &omap44xx_l3_main_2__iva, |
| 6388 | &omap44xx_l4_wkup__kbd, |
| 6389 | &omap44xx_l4_cfg__mailbox, |
Benoît Cousson | 896d4e9 | 2012-04-19 13:33:54 -0600 | [diff] [blame] | 6390 | &omap44xx_l4_abe__mcasp, |
| 6391 | &omap44xx_l4_abe__mcasp_dma, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6392 | &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 Luna | 230844d | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 6410 | &omap44xx_l3_main_2__mmu_ipu, |
| 6411 | &omap44xx_l4_cfg__mmu_dsp, |
Paul Walmsley | e17f18c | 2012-04-19 13:33:56 -0600 | [diff] [blame] | 6412 | &omap44xx_l3_main_2__ocmc_ram, |
Benoît Cousson | 0c66887 | 2012-04-19 13:33:55 -0600 | [diff] [blame] | 6413 | &omap44xx_l4_cfg__ocp2scp_usb_phy, |
Paul Walmsley | 794b480 | 2012-04-19 13:33:58 -0600 | [diff] [blame] | 6414 | &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 Kristo | b360124 | 2012-09-03 11:50:53 -0600 | [diff] [blame] | 6419 | /* &omap44xx_l3_main_2__sl2if, */ |
Benoît Cousson | 1e3b5e59 | 2012-04-19 13:33:53 -0600 | [diff] [blame] | 6420 | &omap44xx_l4_abe__slimbus1, |
| 6421 | &omap44xx_l4_abe__slimbus1_dma, |
| 6422 | &omap44xx_l4_per__slimbus2, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6423 | &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 Walmsley | b0a70cc | 2012-07-04 06:55:29 -0600 | [diff] [blame] | 6446 | /* &omap44xx_l4_cfg__usb_host_fs, */ |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6447 | &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 Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 6453 | NULL, |
| 6454 | }; |
| 6455 | |
| 6456 | int __init omap44xx_hwmod_init(void) |
| 6457 | { |
Kevin Hilman | 9ebfd28 | 2012-06-18 12:12:23 -0600 | [diff] [blame] | 6458 | omap_hwmod_init(); |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6459 | return omap_hwmod_register_links(omap44xx_hwmod_ocp_ifs); |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 6460 | } |
| 6461 | |