Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Hardware modules present on the OMAP44xx chips |
| 3 | * |
| 4 | * Copyright (C) 2009-2010 Texas Instruments, Inc. |
| 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> |
| 22 | |
| 23 | #include <plat/omap_hwmod.h> |
| 24 | #include <plat/cpu.h> |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 25 | #include <plat/gpio.h> |
Benoit Cousson | 531ce0d | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 26 | #include <plat/dma.h> |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 27 | |
| 28 | #include "omap_hwmod_common_data.h" |
| 29 | |
Paul Walmsley | d198b51 | 2010-12-21 15:30:54 -0700 | [diff] [blame] | 30 | #include "cm1_44xx.h" |
| 31 | #include "cm2_44xx.h" |
| 32 | #include "prm44xx.h" |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 33 | #include "prm-regbits-44xx.h" |
Paul Walmsley | ff2516f | 2010-12-21 15:39:15 -0700 | [diff] [blame] | 34 | #include "wd_timer.h" |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 35 | |
| 36 | /* Base offset for all OMAP4 interrupts external to MPUSS */ |
| 37 | #define OMAP44XX_IRQ_GIC_START 32 |
| 38 | |
| 39 | /* Base offset for all OMAP4 dma requests */ |
| 40 | #define OMAP44XX_DMA_REQ_START 1 |
| 41 | |
| 42 | /* Backward references (IPs with Bus Master capability) */ |
Benoit Cousson | 531ce0d | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 43 | static struct omap_hwmod omap44xx_dma_system_hwmod; |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 44 | static struct omap_hwmod omap44xx_dmm_hwmod; |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 45 | static struct omap_hwmod omap44xx_dsp_hwmod; |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 46 | static struct omap_hwmod omap44xx_emif_fw_hwmod; |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 47 | static struct omap_hwmod omap44xx_iva_hwmod; |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 48 | static struct omap_hwmod omap44xx_l3_instr_hwmod; |
| 49 | static struct omap_hwmod omap44xx_l3_main_1_hwmod; |
| 50 | static struct omap_hwmod omap44xx_l3_main_2_hwmod; |
| 51 | static struct omap_hwmod omap44xx_l3_main_3_hwmod; |
| 52 | static struct omap_hwmod omap44xx_l4_abe_hwmod; |
| 53 | static struct omap_hwmod omap44xx_l4_cfg_hwmod; |
| 54 | static struct omap_hwmod omap44xx_l4_per_hwmod; |
| 55 | static struct omap_hwmod omap44xx_l4_wkup_hwmod; |
| 56 | static struct omap_hwmod omap44xx_mpu_hwmod; |
| 57 | static struct omap_hwmod omap44xx_mpu_private_hwmod; |
| 58 | |
| 59 | /* |
| 60 | * Interconnects omap_hwmod structures |
| 61 | * hwmods that compose the global OMAP interconnect |
| 62 | */ |
| 63 | |
| 64 | /* |
| 65 | * 'dmm' class |
| 66 | * instance(s): dmm |
| 67 | */ |
| 68 | static struct omap_hwmod_class omap44xx_dmm_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 69 | .name = "dmm", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 70 | }; |
| 71 | |
| 72 | /* dmm interface data */ |
| 73 | /* l3_main_1 -> dmm */ |
| 74 | static struct omap_hwmod_ocp_if omap44xx_l3_main_1__dmm = { |
| 75 | .master = &omap44xx_l3_main_1_hwmod, |
| 76 | .slave = &omap44xx_dmm_hwmod, |
| 77 | .clk = "l3_div_ck", |
Benoit Cousson | 659fa82 | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 78 | .user = OCP_USER_SDMA, |
| 79 | }; |
| 80 | |
| 81 | static struct omap_hwmod_addr_space omap44xx_dmm_addrs[] = { |
| 82 | { |
| 83 | .pa_start = 0x4e000000, |
| 84 | .pa_end = 0x4e0007ff, |
| 85 | .flags = ADDR_TYPE_RT |
| 86 | }, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | /* mpu -> dmm */ |
| 90 | static struct omap_hwmod_ocp_if omap44xx_mpu__dmm = { |
| 91 | .master = &omap44xx_mpu_hwmod, |
| 92 | .slave = &omap44xx_dmm_hwmod, |
| 93 | .clk = "l3_div_ck", |
Benoit Cousson | 659fa82 | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 94 | .addr = omap44xx_dmm_addrs, |
| 95 | .addr_cnt = ARRAY_SIZE(omap44xx_dmm_addrs), |
| 96 | .user = OCP_USER_MPU, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 97 | }; |
| 98 | |
| 99 | /* dmm slave ports */ |
| 100 | static struct omap_hwmod_ocp_if *omap44xx_dmm_slaves[] = { |
| 101 | &omap44xx_l3_main_1__dmm, |
| 102 | &omap44xx_mpu__dmm, |
| 103 | }; |
| 104 | |
| 105 | static struct omap_hwmod_irq_info omap44xx_dmm_irqs[] = { |
| 106 | { .irq = 113 + OMAP44XX_IRQ_GIC_START }, |
| 107 | }; |
| 108 | |
| 109 | static struct omap_hwmod omap44xx_dmm_hwmod = { |
| 110 | .name = "dmm", |
| 111 | .class = &omap44xx_dmm_hwmod_class, |
| 112 | .slaves = omap44xx_dmm_slaves, |
| 113 | .slaves_cnt = ARRAY_SIZE(omap44xx_dmm_slaves), |
| 114 | .mpu_irqs = omap44xx_dmm_irqs, |
| 115 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dmm_irqs), |
| 116 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 117 | }; |
| 118 | |
| 119 | /* |
| 120 | * 'emif_fw' class |
| 121 | * instance(s): emif_fw |
| 122 | */ |
| 123 | static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 124 | .name = "emif_fw", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 125 | }; |
| 126 | |
| 127 | /* emif_fw interface data */ |
| 128 | /* dmm -> emif_fw */ |
| 129 | static struct omap_hwmod_ocp_if omap44xx_dmm__emif_fw = { |
| 130 | .master = &omap44xx_dmm_hwmod, |
| 131 | .slave = &omap44xx_emif_fw_hwmod, |
| 132 | .clk = "l3_div_ck", |
| 133 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 134 | }; |
| 135 | |
Benoit Cousson | 659fa82 | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 136 | static struct omap_hwmod_addr_space omap44xx_emif_fw_addrs[] = { |
| 137 | { |
| 138 | .pa_start = 0x4a20c000, |
| 139 | .pa_end = 0x4a20c0ff, |
| 140 | .flags = ADDR_TYPE_RT |
| 141 | }, |
| 142 | }; |
| 143 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 144 | /* l4_cfg -> emif_fw */ |
| 145 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__emif_fw = { |
| 146 | .master = &omap44xx_l4_cfg_hwmod, |
| 147 | .slave = &omap44xx_emif_fw_hwmod, |
| 148 | .clk = "l4_div_ck", |
Benoit Cousson | 659fa82 | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 149 | .addr = omap44xx_emif_fw_addrs, |
| 150 | .addr_cnt = ARRAY_SIZE(omap44xx_emif_fw_addrs), |
| 151 | .user = OCP_USER_MPU, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 152 | }; |
| 153 | |
| 154 | /* emif_fw slave ports */ |
| 155 | static struct omap_hwmod_ocp_if *omap44xx_emif_fw_slaves[] = { |
| 156 | &omap44xx_dmm__emif_fw, |
| 157 | &omap44xx_l4_cfg__emif_fw, |
| 158 | }; |
| 159 | |
| 160 | static struct omap_hwmod omap44xx_emif_fw_hwmod = { |
| 161 | .name = "emif_fw", |
| 162 | .class = &omap44xx_emif_fw_hwmod_class, |
| 163 | .slaves = omap44xx_emif_fw_slaves, |
| 164 | .slaves_cnt = ARRAY_SIZE(omap44xx_emif_fw_slaves), |
| 165 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 166 | }; |
| 167 | |
| 168 | /* |
| 169 | * 'l3' class |
| 170 | * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3 |
| 171 | */ |
| 172 | static struct omap_hwmod_class omap44xx_l3_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 173 | .name = "l3", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 174 | }; |
| 175 | |
| 176 | /* l3_instr interface data */ |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 177 | /* iva -> l3_instr */ |
| 178 | static struct omap_hwmod_ocp_if omap44xx_iva__l3_instr = { |
| 179 | .master = &omap44xx_iva_hwmod, |
| 180 | .slave = &omap44xx_l3_instr_hwmod, |
| 181 | .clk = "l3_div_ck", |
| 182 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 183 | }; |
| 184 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 185 | /* l3_main_3 -> l3_instr */ |
| 186 | static struct omap_hwmod_ocp_if omap44xx_l3_main_3__l3_instr = { |
| 187 | .master = &omap44xx_l3_main_3_hwmod, |
| 188 | .slave = &omap44xx_l3_instr_hwmod, |
| 189 | .clk = "l3_div_ck", |
| 190 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 191 | }; |
| 192 | |
| 193 | /* l3_instr slave ports */ |
| 194 | static struct omap_hwmod_ocp_if *omap44xx_l3_instr_slaves[] = { |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 195 | &omap44xx_iva__l3_instr, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 196 | &omap44xx_l3_main_3__l3_instr, |
| 197 | }; |
| 198 | |
| 199 | static struct omap_hwmod omap44xx_l3_instr_hwmod = { |
| 200 | .name = "l3_instr", |
| 201 | .class = &omap44xx_l3_hwmod_class, |
| 202 | .slaves = omap44xx_l3_instr_slaves, |
| 203 | .slaves_cnt = ARRAY_SIZE(omap44xx_l3_instr_slaves), |
| 204 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 205 | }; |
| 206 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 207 | /* l3_main_1 interface data */ |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 208 | /* dsp -> l3_main_1 */ |
| 209 | static struct omap_hwmod_ocp_if omap44xx_dsp__l3_main_1 = { |
| 210 | .master = &omap44xx_dsp_hwmod, |
| 211 | .slave = &omap44xx_l3_main_1_hwmod, |
| 212 | .clk = "l3_div_ck", |
| 213 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 214 | }; |
| 215 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 216 | /* l3_main_2 -> l3_main_1 */ |
| 217 | static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_1 = { |
| 218 | .master = &omap44xx_l3_main_2_hwmod, |
| 219 | .slave = &omap44xx_l3_main_1_hwmod, |
| 220 | .clk = "l3_div_ck", |
| 221 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 222 | }; |
| 223 | |
| 224 | /* l4_cfg -> l3_main_1 */ |
| 225 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_1 = { |
| 226 | .master = &omap44xx_l4_cfg_hwmod, |
| 227 | .slave = &omap44xx_l3_main_1_hwmod, |
| 228 | .clk = "l4_div_ck", |
| 229 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 230 | }; |
| 231 | |
| 232 | /* mpu -> l3_main_1 */ |
| 233 | static struct omap_hwmod_ocp_if omap44xx_mpu__l3_main_1 = { |
| 234 | .master = &omap44xx_mpu_hwmod, |
| 235 | .slave = &omap44xx_l3_main_1_hwmod, |
| 236 | .clk = "l3_div_ck", |
| 237 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 238 | }; |
| 239 | |
| 240 | /* l3_main_1 slave ports */ |
| 241 | static struct omap_hwmod_ocp_if *omap44xx_l3_main_1_slaves[] = { |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 242 | &omap44xx_dsp__l3_main_1, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 243 | &omap44xx_l3_main_2__l3_main_1, |
| 244 | &omap44xx_l4_cfg__l3_main_1, |
| 245 | &omap44xx_mpu__l3_main_1, |
| 246 | }; |
| 247 | |
| 248 | static struct omap_hwmod omap44xx_l3_main_1_hwmod = { |
| 249 | .name = "l3_main_1", |
| 250 | .class = &omap44xx_l3_hwmod_class, |
| 251 | .slaves = omap44xx_l3_main_1_slaves, |
| 252 | .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_1_slaves), |
| 253 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 254 | }; |
| 255 | |
| 256 | /* l3_main_2 interface data */ |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 257 | /* dma_system -> l3_main_2 */ |
| 258 | static struct omap_hwmod_ocp_if omap44xx_dma_system__l3_main_2 = { |
| 259 | .master = &omap44xx_dma_system_hwmod, |
| 260 | .slave = &omap44xx_l3_main_2_hwmod, |
| 261 | .clk = "l3_div_ck", |
| 262 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 263 | }; |
| 264 | |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 265 | /* iva -> l3_main_2 */ |
| 266 | static struct omap_hwmod_ocp_if omap44xx_iva__l3_main_2 = { |
| 267 | .master = &omap44xx_iva_hwmod, |
| 268 | .slave = &omap44xx_l3_main_2_hwmod, |
| 269 | .clk = "l3_div_ck", |
| 270 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 271 | }; |
| 272 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 273 | /* l3_main_1 -> l3_main_2 */ |
| 274 | static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_2 = { |
| 275 | .master = &omap44xx_l3_main_1_hwmod, |
| 276 | .slave = &omap44xx_l3_main_2_hwmod, |
| 277 | .clk = "l3_div_ck", |
| 278 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 279 | }; |
| 280 | |
| 281 | /* l4_cfg -> l3_main_2 */ |
| 282 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_2 = { |
| 283 | .master = &omap44xx_l4_cfg_hwmod, |
| 284 | .slave = &omap44xx_l3_main_2_hwmod, |
| 285 | .clk = "l4_div_ck", |
| 286 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 287 | }; |
| 288 | |
| 289 | /* l3_main_2 slave ports */ |
| 290 | static struct omap_hwmod_ocp_if *omap44xx_l3_main_2_slaves[] = { |
Benoit Cousson | 531ce0d | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 291 | &omap44xx_dma_system__l3_main_2, |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 292 | &omap44xx_iva__l3_main_2, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 293 | &omap44xx_l3_main_1__l3_main_2, |
| 294 | &omap44xx_l4_cfg__l3_main_2, |
| 295 | }; |
| 296 | |
| 297 | static struct omap_hwmod omap44xx_l3_main_2_hwmod = { |
| 298 | .name = "l3_main_2", |
| 299 | .class = &omap44xx_l3_hwmod_class, |
| 300 | .slaves = omap44xx_l3_main_2_slaves, |
| 301 | .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_2_slaves), |
| 302 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 303 | }; |
| 304 | |
| 305 | /* l3_main_3 interface data */ |
| 306 | /* l3_main_1 -> l3_main_3 */ |
| 307 | static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l3_main_3 = { |
| 308 | .master = &omap44xx_l3_main_1_hwmod, |
| 309 | .slave = &omap44xx_l3_main_3_hwmod, |
| 310 | .clk = "l3_div_ck", |
| 311 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 312 | }; |
| 313 | |
| 314 | /* l3_main_2 -> l3_main_3 */ |
| 315 | static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l3_main_3 = { |
| 316 | .master = &omap44xx_l3_main_2_hwmod, |
| 317 | .slave = &omap44xx_l3_main_3_hwmod, |
| 318 | .clk = "l3_div_ck", |
| 319 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 320 | }; |
| 321 | |
| 322 | /* l4_cfg -> l3_main_3 */ |
| 323 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l3_main_3 = { |
| 324 | .master = &omap44xx_l4_cfg_hwmod, |
| 325 | .slave = &omap44xx_l3_main_3_hwmod, |
| 326 | .clk = "l4_div_ck", |
| 327 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 328 | }; |
| 329 | |
| 330 | /* l3_main_3 slave ports */ |
| 331 | static struct omap_hwmod_ocp_if *omap44xx_l3_main_3_slaves[] = { |
| 332 | &omap44xx_l3_main_1__l3_main_3, |
| 333 | &omap44xx_l3_main_2__l3_main_3, |
| 334 | &omap44xx_l4_cfg__l3_main_3, |
| 335 | }; |
| 336 | |
| 337 | static struct omap_hwmod omap44xx_l3_main_3_hwmod = { |
| 338 | .name = "l3_main_3", |
| 339 | .class = &omap44xx_l3_hwmod_class, |
| 340 | .slaves = omap44xx_l3_main_3_slaves, |
| 341 | .slaves_cnt = ARRAY_SIZE(omap44xx_l3_main_3_slaves), |
| 342 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 343 | }; |
| 344 | |
| 345 | /* |
| 346 | * 'l4' class |
| 347 | * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup |
| 348 | */ |
| 349 | static struct omap_hwmod_class omap44xx_l4_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 350 | .name = "l4", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 351 | }; |
| 352 | |
| 353 | /* l4_abe interface data */ |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 354 | /* dsp -> l4_abe */ |
| 355 | static struct omap_hwmod_ocp_if omap44xx_dsp__l4_abe = { |
| 356 | .master = &omap44xx_dsp_hwmod, |
| 357 | .slave = &omap44xx_l4_abe_hwmod, |
| 358 | .clk = "ocp_abe_iclk", |
| 359 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 360 | }; |
| 361 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 362 | /* l3_main_1 -> l4_abe */ |
| 363 | static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_abe = { |
| 364 | .master = &omap44xx_l3_main_1_hwmod, |
| 365 | .slave = &omap44xx_l4_abe_hwmod, |
| 366 | .clk = "l3_div_ck", |
| 367 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 368 | }; |
| 369 | |
| 370 | /* mpu -> l4_abe */ |
| 371 | static struct omap_hwmod_ocp_if omap44xx_mpu__l4_abe = { |
| 372 | .master = &omap44xx_mpu_hwmod, |
| 373 | .slave = &omap44xx_l4_abe_hwmod, |
| 374 | .clk = "ocp_abe_iclk", |
| 375 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 376 | }; |
| 377 | |
| 378 | /* l4_abe slave ports */ |
| 379 | static struct omap_hwmod_ocp_if *omap44xx_l4_abe_slaves[] = { |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 380 | &omap44xx_dsp__l4_abe, |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 381 | &omap44xx_l3_main_1__l4_abe, |
| 382 | &omap44xx_mpu__l4_abe, |
| 383 | }; |
| 384 | |
| 385 | static struct omap_hwmod omap44xx_l4_abe_hwmod = { |
| 386 | .name = "l4_abe", |
| 387 | .class = &omap44xx_l4_hwmod_class, |
| 388 | .slaves = omap44xx_l4_abe_slaves, |
| 389 | .slaves_cnt = ARRAY_SIZE(omap44xx_l4_abe_slaves), |
| 390 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 391 | }; |
| 392 | |
| 393 | /* l4_cfg interface data */ |
| 394 | /* l3_main_1 -> l4_cfg */ |
| 395 | static struct omap_hwmod_ocp_if omap44xx_l3_main_1__l4_cfg = { |
| 396 | .master = &omap44xx_l3_main_1_hwmod, |
| 397 | .slave = &omap44xx_l4_cfg_hwmod, |
| 398 | .clk = "l3_div_ck", |
| 399 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 400 | }; |
| 401 | |
| 402 | /* l4_cfg slave ports */ |
| 403 | static struct omap_hwmod_ocp_if *omap44xx_l4_cfg_slaves[] = { |
| 404 | &omap44xx_l3_main_1__l4_cfg, |
| 405 | }; |
| 406 | |
| 407 | static struct omap_hwmod omap44xx_l4_cfg_hwmod = { |
| 408 | .name = "l4_cfg", |
| 409 | .class = &omap44xx_l4_hwmod_class, |
| 410 | .slaves = omap44xx_l4_cfg_slaves, |
| 411 | .slaves_cnt = ARRAY_SIZE(omap44xx_l4_cfg_slaves), |
| 412 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 413 | }; |
| 414 | |
| 415 | /* l4_per interface data */ |
| 416 | /* l3_main_2 -> l4_per */ |
| 417 | static struct omap_hwmod_ocp_if omap44xx_l3_main_2__l4_per = { |
| 418 | .master = &omap44xx_l3_main_2_hwmod, |
| 419 | .slave = &omap44xx_l4_per_hwmod, |
| 420 | .clk = "l3_div_ck", |
| 421 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 422 | }; |
| 423 | |
| 424 | /* l4_per slave ports */ |
| 425 | static struct omap_hwmod_ocp_if *omap44xx_l4_per_slaves[] = { |
| 426 | &omap44xx_l3_main_2__l4_per, |
| 427 | }; |
| 428 | |
| 429 | static struct omap_hwmod omap44xx_l4_per_hwmod = { |
| 430 | .name = "l4_per", |
| 431 | .class = &omap44xx_l4_hwmod_class, |
| 432 | .slaves = omap44xx_l4_per_slaves, |
| 433 | .slaves_cnt = ARRAY_SIZE(omap44xx_l4_per_slaves), |
| 434 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 435 | }; |
| 436 | |
| 437 | /* l4_wkup interface data */ |
| 438 | /* l4_cfg -> l4_wkup */ |
| 439 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__l4_wkup = { |
| 440 | .master = &omap44xx_l4_cfg_hwmod, |
| 441 | .slave = &omap44xx_l4_wkup_hwmod, |
| 442 | .clk = "l4_div_ck", |
| 443 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 444 | }; |
| 445 | |
| 446 | /* l4_wkup slave ports */ |
| 447 | static struct omap_hwmod_ocp_if *omap44xx_l4_wkup_slaves[] = { |
| 448 | &omap44xx_l4_cfg__l4_wkup, |
| 449 | }; |
| 450 | |
| 451 | static struct omap_hwmod omap44xx_l4_wkup_hwmod = { |
| 452 | .name = "l4_wkup", |
| 453 | .class = &omap44xx_l4_hwmod_class, |
| 454 | .slaves = omap44xx_l4_wkup_slaves, |
| 455 | .slaves_cnt = ARRAY_SIZE(omap44xx_l4_wkup_slaves), |
| 456 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 457 | }; |
| 458 | |
| 459 | /* |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 460 | * 'mpu_bus' class |
| 461 | * instance(s): mpu_private |
| 462 | */ |
| 463 | static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 464 | .name = "mpu_bus", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 465 | }; |
| 466 | |
| 467 | /* mpu_private interface data */ |
| 468 | /* mpu -> mpu_private */ |
| 469 | static struct omap_hwmod_ocp_if omap44xx_mpu__mpu_private = { |
| 470 | .master = &omap44xx_mpu_hwmod, |
| 471 | .slave = &omap44xx_mpu_private_hwmod, |
| 472 | .clk = "l3_div_ck", |
| 473 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 474 | }; |
| 475 | |
| 476 | /* mpu_private slave ports */ |
| 477 | static struct omap_hwmod_ocp_if *omap44xx_mpu_private_slaves[] = { |
| 478 | &omap44xx_mpu__mpu_private, |
| 479 | }; |
| 480 | |
| 481 | static struct omap_hwmod omap44xx_mpu_private_hwmod = { |
| 482 | .name = "mpu_private", |
| 483 | .class = &omap44xx_mpu_bus_hwmod_class, |
| 484 | .slaves = omap44xx_mpu_private_slaves, |
| 485 | .slaves_cnt = ARRAY_SIZE(omap44xx_mpu_private_slaves), |
| 486 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 487 | }; |
| 488 | |
| 489 | /* |
| 490 | * Modules omap_hwmod structures |
| 491 | * |
| 492 | * The following IPs are excluded for the moment because: |
| 493 | * - They do not need an explicit SW control using omap_hwmod API. |
| 494 | * - They still need to be validated with the driver |
| 495 | * properly adapted to omap_hwmod / omap_device |
| 496 | * |
| 497 | * aess |
| 498 | * bandgap |
| 499 | * c2c |
| 500 | * c2c_target_fw |
| 501 | * cm_core |
| 502 | * cm_core_aon |
| 503 | * counter_32k |
| 504 | * ctrl_module_core |
| 505 | * ctrl_module_pad_core |
| 506 | * ctrl_module_pad_wkup |
| 507 | * ctrl_module_wkup |
| 508 | * debugss |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 509 | * dmic |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 510 | * dss |
| 511 | * dss_dispc |
| 512 | * dss_dsi1 |
| 513 | * dss_dsi2 |
| 514 | * dss_hdmi |
| 515 | * dss_rfbi |
| 516 | * dss_venc |
| 517 | * efuse_ctrl_cust |
| 518 | * efuse_ctrl_std |
| 519 | * elm |
| 520 | * emif1 |
| 521 | * emif2 |
| 522 | * fdif |
| 523 | * gpmc |
| 524 | * gpu |
| 525 | * hdq1w |
| 526 | * hsi |
| 527 | * ipu |
| 528 | * iss |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 529 | * kbd |
| 530 | * mailbox |
| 531 | * mcasp |
| 532 | * mcbsp1 |
| 533 | * mcbsp2 |
| 534 | * mcbsp3 |
| 535 | * mcbsp4 |
| 536 | * mcpdm |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 537 | * mmc1 |
| 538 | * mmc2 |
| 539 | * mmc3 |
| 540 | * mmc4 |
| 541 | * mmc5 |
| 542 | * mpu_c0 |
| 543 | * mpu_c1 |
| 544 | * ocmc_ram |
| 545 | * ocp2scp_usb_phy |
| 546 | * ocp_wp_noc |
| 547 | * prcm |
| 548 | * prcm_mpu |
| 549 | * prm |
| 550 | * scrm |
| 551 | * sl2if |
| 552 | * slimbus1 |
| 553 | * slimbus2 |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 554 | * timer1 |
| 555 | * timer10 |
| 556 | * timer11 |
| 557 | * timer2 |
| 558 | * timer3 |
| 559 | * timer4 |
| 560 | * timer5 |
| 561 | * timer6 |
| 562 | * timer7 |
| 563 | * timer8 |
| 564 | * timer9 |
| 565 | * usb_host_fs |
| 566 | * usb_host_hs |
| 567 | * usb_otg_hs |
| 568 | * usb_phy_cm |
| 569 | * usb_tll_hs |
| 570 | * usim |
| 571 | */ |
| 572 | |
| 573 | /* |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 574 | * 'dma' class |
| 575 | * dma controller for data exchange between memory to memory (i.e. internal or |
| 576 | * external memory) and gp peripherals to memory or memory to gp peripherals |
| 577 | */ |
| 578 | |
| 579 | static struct omap_hwmod_class_sysconfig omap44xx_dma_sysc = { |
| 580 | .rev_offs = 0x0000, |
| 581 | .sysc_offs = 0x002c, |
| 582 | .syss_offs = 0x0028, |
| 583 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY | |
| 584 | SYSC_HAS_EMUFREE | SYSC_HAS_MIDLEMODE | |
| 585 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | |
| 586 | SYSS_HAS_RESET_STATUS), |
| 587 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 588 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), |
| 589 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 590 | }; |
| 591 | |
| 592 | static struct omap_hwmod_class omap44xx_dma_hwmod_class = { |
| 593 | .name = "dma", |
| 594 | .sysc = &omap44xx_dma_sysc, |
| 595 | }; |
| 596 | |
| 597 | /* dma dev_attr */ |
| 598 | static struct omap_dma_dev_attr dma_dev_attr = { |
| 599 | .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY | |
| 600 | IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY, |
| 601 | .lch_count = 32, |
| 602 | }; |
| 603 | |
| 604 | /* dma_system */ |
| 605 | static struct omap_hwmod_irq_info omap44xx_dma_system_irqs[] = { |
| 606 | { .name = "0", .irq = 12 + OMAP44XX_IRQ_GIC_START }, |
| 607 | { .name = "1", .irq = 13 + OMAP44XX_IRQ_GIC_START }, |
| 608 | { .name = "2", .irq = 14 + OMAP44XX_IRQ_GIC_START }, |
| 609 | { .name = "3", .irq = 15 + OMAP44XX_IRQ_GIC_START }, |
| 610 | }; |
| 611 | |
| 612 | /* dma_system master ports */ |
| 613 | static struct omap_hwmod_ocp_if *omap44xx_dma_system_masters[] = { |
| 614 | &omap44xx_dma_system__l3_main_2, |
| 615 | }; |
| 616 | |
| 617 | static struct omap_hwmod_addr_space omap44xx_dma_system_addrs[] = { |
| 618 | { |
| 619 | .pa_start = 0x4a056000, |
| 620 | .pa_end = 0x4a0560ff, |
| 621 | .flags = ADDR_TYPE_RT |
| 622 | }, |
| 623 | }; |
| 624 | |
| 625 | /* l4_cfg -> dma_system */ |
| 626 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dma_system = { |
| 627 | .master = &omap44xx_l4_cfg_hwmod, |
| 628 | .slave = &omap44xx_dma_system_hwmod, |
| 629 | .clk = "l4_div_ck", |
| 630 | .addr = omap44xx_dma_system_addrs, |
| 631 | .addr_cnt = ARRAY_SIZE(omap44xx_dma_system_addrs), |
| 632 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 633 | }; |
| 634 | |
| 635 | /* dma_system slave ports */ |
| 636 | static struct omap_hwmod_ocp_if *omap44xx_dma_system_slaves[] = { |
| 637 | &omap44xx_l4_cfg__dma_system, |
| 638 | }; |
| 639 | |
| 640 | static struct omap_hwmod omap44xx_dma_system_hwmod = { |
| 641 | .name = "dma_system", |
| 642 | .class = &omap44xx_dma_hwmod_class, |
| 643 | .mpu_irqs = omap44xx_dma_system_irqs, |
| 644 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dma_system_irqs), |
| 645 | .main_clk = "l3_div_ck", |
| 646 | .prcm = { |
| 647 | .omap4 = { |
| 648 | .clkctrl_reg = OMAP4430_CM_SDMA_SDMA_CLKCTRL, |
| 649 | }, |
| 650 | }, |
| 651 | .dev_attr = &dma_dev_attr, |
| 652 | .slaves = omap44xx_dma_system_slaves, |
| 653 | .slaves_cnt = ARRAY_SIZE(omap44xx_dma_system_slaves), |
| 654 | .masters = omap44xx_dma_system_masters, |
| 655 | .masters_cnt = ARRAY_SIZE(omap44xx_dma_system_masters), |
| 656 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 657 | }; |
| 658 | |
| 659 | /* |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 660 | * 'dsp' class |
| 661 | * dsp sub-system |
| 662 | */ |
| 663 | |
| 664 | static struct omap_hwmod_class omap44xx_dsp_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 665 | .name = "dsp", |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 666 | }; |
| 667 | |
| 668 | /* dsp */ |
| 669 | static struct omap_hwmod_irq_info omap44xx_dsp_irqs[] = { |
| 670 | { .irq = 28 + OMAP44XX_IRQ_GIC_START }, |
| 671 | }; |
| 672 | |
| 673 | static struct omap_hwmod_rst_info omap44xx_dsp_resets[] = { |
| 674 | { .name = "mmu_cache", .rst_shift = 1 }, |
| 675 | }; |
| 676 | |
| 677 | static struct omap_hwmod_rst_info omap44xx_dsp_c0_resets[] = { |
| 678 | { .name = "dsp", .rst_shift = 0 }, |
| 679 | }; |
| 680 | |
| 681 | /* dsp -> iva */ |
| 682 | static struct omap_hwmod_ocp_if omap44xx_dsp__iva = { |
| 683 | .master = &omap44xx_dsp_hwmod, |
| 684 | .slave = &omap44xx_iva_hwmod, |
| 685 | .clk = "dpll_iva_m5x2_ck", |
| 686 | }; |
| 687 | |
| 688 | /* dsp master ports */ |
| 689 | static struct omap_hwmod_ocp_if *omap44xx_dsp_masters[] = { |
| 690 | &omap44xx_dsp__l3_main_1, |
| 691 | &omap44xx_dsp__l4_abe, |
| 692 | &omap44xx_dsp__iva, |
| 693 | }; |
| 694 | |
| 695 | /* l4_cfg -> dsp */ |
| 696 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__dsp = { |
| 697 | .master = &omap44xx_l4_cfg_hwmod, |
| 698 | .slave = &omap44xx_dsp_hwmod, |
| 699 | .clk = "l4_div_ck", |
| 700 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 701 | }; |
| 702 | |
| 703 | /* dsp slave ports */ |
| 704 | static struct omap_hwmod_ocp_if *omap44xx_dsp_slaves[] = { |
| 705 | &omap44xx_l4_cfg__dsp, |
| 706 | }; |
| 707 | |
| 708 | /* Pseudo hwmod for reset control purpose only */ |
| 709 | static struct omap_hwmod omap44xx_dsp_c0_hwmod = { |
| 710 | .name = "dsp_c0", |
| 711 | .class = &omap44xx_dsp_hwmod_class, |
| 712 | .flags = HWMOD_INIT_NO_RESET, |
| 713 | .rst_lines = omap44xx_dsp_c0_resets, |
| 714 | .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_c0_resets), |
| 715 | .prcm = { |
| 716 | .omap4 = { |
| 717 | .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL, |
| 718 | }, |
| 719 | }, |
| 720 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 721 | }; |
| 722 | |
| 723 | static struct omap_hwmod omap44xx_dsp_hwmod = { |
| 724 | .name = "dsp", |
| 725 | .class = &omap44xx_dsp_hwmod_class, |
| 726 | .mpu_irqs = omap44xx_dsp_irqs, |
| 727 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_dsp_irqs), |
| 728 | .rst_lines = omap44xx_dsp_resets, |
| 729 | .rst_lines_cnt = ARRAY_SIZE(omap44xx_dsp_resets), |
| 730 | .main_clk = "dsp_fck", |
| 731 | .prcm = { |
| 732 | .omap4 = { |
| 733 | .clkctrl_reg = OMAP4430_CM_TESLA_TESLA_CLKCTRL, |
| 734 | .rstctrl_reg = OMAP4430_RM_TESLA_RSTCTRL, |
| 735 | }, |
| 736 | }, |
| 737 | .slaves = omap44xx_dsp_slaves, |
| 738 | .slaves_cnt = ARRAY_SIZE(omap44xx_dsp_slaves), |
| 739 | .masters = omap44xx_dsp_masters, |
| 740 | .masters_cnt = ARRAY_SIZE(omap44xx_dsp_masters), |
| 741 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 742 | }; |
| 743 | |
| 744 | /* |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 745 | * 'gpio' class |
| 746 | * general purpose io module |
| 747 | */ |
| 748 | |
| 749 | static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = { |
| 750 | .rev_offs = 0x0000, |
| 751 | .sysc_offs = 0x0010, |
| 752 | .syss_offs = 0x0114, |
Benoit Cousson | 0cfe875 | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 753 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP | |
| 754 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | |
| 755 | SYSS_HAS_RESET_STATUS), |
Benoit Cousson | 7cffa6b | 2010-12-21 21:31:28 -0700 | [diff] [blame] | 756 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 757 | SIDLE_SMART_WKUP), |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 758 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 759 | }; |
| 760 | |
| 761 | static struct omap_hwmod_class omap44xx_gpio_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 762 | .name = "gpio", |
| 763 | .sysc = &omap44xx_gpio_sysc, |
| 764 | .rev = 2, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 765 | }; |
| 766 | |
| 767 | /* gpio dev_attr */ |
| 768 | static struct omap_gpio_dev_attr gpio_dev_attr = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 769 | .bank_width = 32, |
| 770 | .dbck_flag = true, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 771 | }; |
| 772 | |
| 773 | /* gpio1 */ |
| 774 | static struct omap_hwmod omap44xx_gpio1_hwmod; |
| 775 | static struct omap_hwmod_irq_info omap44xx_gpio1_irqs[] = { |
| 776 | { .irq = 29 + OMAP44XX_IRQ_GIC_START }, |
| 777 | }; |
| 778 | |
| 779 | static struct omap_hwmod_addr_space omap44xx_gpio1_addrs[] = { |
| 780 | { |
| 781 | .pa_start = 0x4a310000, |
| 782 | .pa_end = 0x4a3101ff, |
| 783 | .flags = ADDR_TYPE_RT |
| 784 | }, |
| 785 | }; |
| 786 | |
| 787 | /* l4_wkup -> gpio1 */ |
| 788 | static struct omap_hwmod_ocp_if omap44xx_l4_wkup__gpio1 = { |
| 789 | .master = &omap44xx_l4_wkup_hwmod, |
| 790 | .slave = &omap44xx_gpio1_hwmod, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 791 | .clk = "l4_wkup_clk_mux_ck", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 792 | .addr = omap44xx_gpio1_addrs, |
| 793 | .addr_cnt = ARRAY_SIZE(omap44xx_gpio1_addrs), |
| 794 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 795 | }; |
| 796 | |
| 797 | /* gpio1 slave ports */ |
| 798 | static struct omap_hwmod_ocp_if *omap44xx_gpio1_slaves[] = { |
| 799 | &omap44xx_l4_wkup__gpio1, |
| 800 | }; |
| 801 | |
| 802 | static struct omap_hwmod_opt_clk gpio1_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 803 | { .role = "dbclk", .clk = "gpio1_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 804 | }; |
| 805 | |
| 806 | static struct omap_hwmod omap44xx_gpio1_hwmod = { |
| 807 | .name = "gpio1", |
| 808 | .class = &omap44xx_gpio_hwmod_class, |
| 809 | .mpu_irqs = omap44xx_gpio1_irqs, |
| 810 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio1_irqs), |
| 811 | .main_clk = "gpio1_ick", |
| 812 | .prcm = { |
| 813 | .omap4 = { |
| 814 | .clkctrl_reg = OMAP4430_CM_WKUP_GPIO1_CLKCTRL, |
| 815 | }, |
| 816 | }, |
| 817 | .opt_clks = gpio1_opt_clks, |
| 818 | .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks), |
| 819 | .dev_attr = &gpio_dev_attr, |
| 820 | .slaves = omap44xx_gpio1_slaves, |
| 821 | .slaves_cnt = ARRAY_SIZE(omap44xx_gpio1_slaves), |
| 822 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 823 | }; |
| 824 | |
| 825 | /* gpio2 */ |
| 826 | static struct omap_hwmod omap44xx_gpio2_hwmod; |
| 827 | static struct omap_hwmod_irq_info omap44xx_gpio2_irqs[] = { |
| 828 | { .irq = 30 + OMAP44XX_IRQ_GIC_START }, |
| 829 | }; |
| 830 | |
| 831 | static struct omap_hwmod_addr_space omap44xx_gpio2_addrs[] = { |
| 832 | { |
| 833 | .pa_start = 0x48055000, |
| 834 | .pa_end = 0x480551ff, |
| 835 | .flags = ADDR_TYPE_RT |
| 836 | }, |
| 837 | }; |
| 838 | |
| 839 | /* l4_per -> gpio2 */ |
| 840 | static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio2 = { |
| 841 | .master = &omap44xx_l4_per_hwmod, |
| 842 | .slave = &omap44xx_gpio2_hwmod, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 843 | .clk = "l4_div_ck", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 844 | .addr = omap44xx_gpio2_addrs, |
| 845 | .addr_cnt = ARRAY_SIZE(omap44xx_gpio2_addrs), |
| 846 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 847 | }; |
| 848 | |
| 849 | /* gpio2 slave ports */ |
| 850 | static struct omap_hwmod_ocp_if *omap44xx_gpio2_slaves[] = { |
| 851 | &omap44xx_l4_per__gpio2, |
| 852 | }; |
| 853 | |
| 854 | static struct omap_hwmod_opt_clk gpio2_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 855 | { .role = "dbclk", .clk = "gpio2_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 856 | }; |
| 857 | |
| 858 | static struct omap_hwmod omap44xx_gpio2_hwmod = { |
| 859 | .name = "gpio2", |
| 860 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 861 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 862 | .mpu_irqs = omap44xx_gpio2_irqs, |
| 863 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio2_irqs), |
| 864 | .main_clk = "gpio2_ick", |
| 865 | .prcm = { |
| 866 | .omap4 = { |
| 867 | .clkctrl_reg = OMAP4430_CM_L4PER_GPIO2_CLKCTRL, |
| 868 | }, |
| 869 | }, |
| 870 | .opt_clks = gpio2_opt_clks, |
| 871 | .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks), |
| 872 | .dev_attr = &gpio_dev_attr, |
| 873 | .slaves = omap44xx_gpio2_slaves, |
| 874 | .slaves_cnt = ARRAY_SIZE(omap44xx_gpio2_slaves), |
| 875 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 876 | }; |
| 877 | |
| 878 | /* gpio3 */ |
| 879 | static struct omap_hwmod omap44xx_gpio3_hwmod; |
| 880 | static struct omap_hwmod_irq_info omap44xx_gpio3_irqs[] = { |
| 881 | { .irq = 31 + OMAP44XX_IRQ_GIC_START }, |
| 882 | }; |
| 883 | |
| 884 | static struct omap_hwmod_addr_space omap44xx_gpio3_addrs[] = { |
| 885 | { |
| 886 | .pa_start = 0x48057000, |
| 887 | .pa_end = 0x480571ff, |
| 888 | .flags = ADDR_TYPE_RT |
| 889 | }, |
| 890 | }; |
| 891 | |
| 892 | /* l4_per -> gpio3 */ |
| 893 | static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio3 = { |
| 894 | .master = &omap44xx_l4_per_hwmod, |
| 895 | .slave = &omap44xx_gpio3_hwmod, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 896 | .clk = "l4_div_ck", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 897 | .addr = omap44xx_gpio3_addrs, |
| 898 | .addr_cnt = ARRAY_SIZE(omap44xx_gpio3_addrs), |
| 899 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 900 | }; |
| 901 | |
| 902 | /* gpio3 slave ports */ |
| 903 | static struct omap_hwmod_ocp_if *omap44xx_gpio3_slaves[] = { |
| 904 | &omap44xx_l4_per__gpio3, |
| 905 | }; |
| 906 | |
| 907 | static struct omap_hwmod_opt_clk gpio3_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 908 | { .role = "dbclk", .clk = "gpio3_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 909 | }; |
| 910 | |
| 911 | static struct omap_hwmod omap44xx_gpio3_hwmod = { |
| 912 | .name = "gpio3", |
| 913 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 914 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 915 | .mpu_irqs = omap44xx_gpio3_irqs, |
| 916 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio3_irqs), |
| 917 | .main_clk = "gpio3_ick", |
| 918 | .prcm = { |
| 919 | .omap4 = { |
| 920 | .clkctrl_reg = OMAP4430_CM_L4PER_GPIO3_CLKCTRL, |
| 921 | }, |
| 922 | }, |
| 923 | .opt_clks = gpio3_opt_clks, |
| 924 | .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks), |
| 925 | .dev_attr = &gpio_dev_attr, |
| 926 | .slaves = omap44xx_gpio3_slaves, |
| 927 | .slaves_cnt = ARRAY_SIZE(omap44xx_gpio3_slaves), |
| 928 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 929 | }; |
| 930 | |
| 931 | /* gpio4 */ |
| 932 | static struct omap_hwmod omap44xx_gpio4_hwmod; |
| 933 | static struct omap_hwmod_irq_info omap44xx_gpio4_irqs[] = { |
| 934 | { .irq = 32 + OMAP44XX_IRQ_GIC_START }, |
| 935 | }; |
| 936 | |
| 937 | static struct omap_hwmod_addr_space omap44xx_gpio4_addrs[] = { |
| 938 | { |
| 939 | .pa_start = 0x48059000, |
| 940 | .pa_end = 0x480591ff, |
| 941 | .flags = ADDR_TYPE_RT |
| 942 | }, |
| 943 | }; |
| 944 | |
| 945 | /* l4_per -> gpio4 */ |
| 946 | static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio4 = { |
| 947 | .master = &omap44xx_l4_per_hwmod, |
| 948 | .slave = &omap44xx_gpio4_hwmod, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 949 | .clk = "l4_div_ck", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 950 | .addr = omap44xx_gpio4_addrs, |
| 951 | .addr_cnt = ARRAY_SIZE(omap44xx_gpio4_addrs), |
| 952 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 953 | }; |
| 954 | |
| 955 | /* gpio4 slave ports */ |
| 956 | static struct omap_hwmod_ocp_if *omap44xx_gpio4_slaves[] = { |
| 957 | &omap44xx_l4_per__gpio4, |
| 958 | }; |
| 959 | |
| 960 | static struct omap_hwmod_opt_clk gpio4_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 961 | { .role = "dbclk", .clk = "gpio4_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 962 | }; |
| 963 | |
| 964 | static struct omap_hwmod omap44xx_gpio4_hwmod = { |
| 965 | .name = "gpio4", |
| 966 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 967 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 968 | .mpu_irqs = omap44xx_gpio4_irqs, |
| 969 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio4_irqs), |
| 970 | .main_clk = "gpio4_ick", |
| 971 | .prcm = { |
| 972 | .omap4 = { |
| 973 | .clkctrl_reg = OMAP4430_CM_L4PER_GPIO4_CLKCTRL, |
| 974 | }, |
| 975 | }, |
| 976 | .opt_clks = gpio4_opt_clks, |
| 977 | .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks), |
| 978 | .dev_attr = &gpio_dev_attr, |
| 979 | .slaves = omap44xx_gpio4_slaves, |
| 980 | .slaves_cnt = ARRAY_SIZE(omap44xx_gpio4_slaves), |
| 981 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 982 | }; |
| 983 | |
| 984 | /* gpio5 */ |
| 985 | static struct omap_hwmod omap44xx_gpio5_hwmod; |
| 986 | static struct omap_hwmod_irq_info omap44xx_gpio5_irqs[] = { |
| 987 | { .irq = 33 + OMAP44XX_IRQ_GIC_START }, |
| 988 | }; |
| 989 | |
| 990 | static struct omap_hwmod_addr_space omap44xx_gpio5_addrs[] = { |
| 991 | { |
| 992 | .pa_start = 0x4805b000, |
| 993 | .pa_end = 0x4805b1ff, |
| 994 | .flags = ADDR_TYPE_RT |
| 995 | }, |
| 996 | }; |
| 997 | |
| 998 | /* l4_per -> gpio5 */ |
| 999 | static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio5 = { |
| 1000 | .master = &omap44xx_l4_per_hwmod, |
| 1001 | .slave = &omap44xx_gpio5_hwmod, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1002 | .clk = "l4_div_ck", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1003 | .addr = omap44xx_gpio5_addrs, |
| 1004 | .addr_cnt = ARRAY_SIZE(omap44xx_gpio5_addrs), |
| 1005 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1006 | }; |
| 1007 | |
| 1008 | /* gpio5 slave ports */ |
| 1009 | static struct omap_hwmod_ocp_if *omap44xx_gpio5_slaves[] = { |
| 1010 | &omap44xx_l4_per__gpio5, |
| 1011 | }; |
| 1012 | |
| 1013 | static struct omap_hwmod_opt_clk gpio5_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1014 | { .role = "dbclk", .clk = "gpio5_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1015 | }; |
| 1016 | |
| 1017 | static struct omap_hwmod omap44xx_gpio5_hwmod = { |
| 1018 | .name = "gpio5", |
| 1019 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1020 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1021 | .mpu_irqs = omap44xx_gpio5_irqs, |
| 1022 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio5_irqs), |
| 1023 | .main_clk = "gpio5_ick", |
| 1024 | .prcm = { |
| 1025 | .omap4 = { |
| 1026 | .clkctrl_reg = OMAP4430_CM_L4PER_GPIO5_CLKCTRL, |
| 1027 | }, |
| 1028 | }, |
| 1029 | .opt_clks = gpio5_opt_clks, |
| 1030 | .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks), |
| 1031 | .dev_attr = &gpio_dev_attr, |
| 1032 | .slaves = omap44xx_gpio5_slaves, |
| 1033 | .slaves_cnt = ARRAY_SIZE(omap44xx_gpio5_slaves), |
| 1034 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1035 | }; |
| 1036 | |
| 1037 | /* gpio6 */ |
| 1038 | static struct omap_hwmod omap44xx_gpio6_hwmod; |
| 1039 | static struct omap_hwmod_irq_info omap44xx_gpio6_irqs[] = { |
| 1040 | { .irq = 34 + OMAP44XX_IRQ_GIC_START }, |
| 1041 | }; |
| 1042 | |
| 1043 | static struct omap_hwmod_addr_space omap44xx_gpio6_addrs[] = { |
| 1044 | { |
| 1045 | .pa_start = 0x4805d000, |
| 1046 | .pa_end = 0x4805d1ff, |
| 1047 | .flags = ADDR_TYPE_RT |
| 1048 | }, |
| 1049 | }; |
| 1050 | |
| 1051 | /* l4_per -> gpio6 */ |
| 1052 | static struct omap_hwmod_ocp_if omap44xx_l4_per__gpio6 = { |
| 1053 | .master = &omap44xx_l4_per_hwmod, |
| 1054 | .slave = &omap44xx_gpio6_hwmod, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1055 | .clk = "l4_div_ck", |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1056 | .addr = omap44xx_gpio6_addrs, |
| 1057 | .addr_cnt = ARRAY_SIZE(omap44xx_gpio6_addrs), |
| 1058 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1059 | }; |
| 1060 | |
| 1061 | /* gpio6 slave ports */ |
| 1062 | static struct omap_hwmod_ocp_if *omap44xx_gpio6_slaves[] = { |
| 1063 | &omap44xx_l4_per__gpio6, |
| 1064 | }; |
| 1065 | |
| 1066 | static struct omap_hwmod_opt_clk gpio6_opt_clks[] = { |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1067 | { .role = "dbclk", .clk = "gpio6_dbclk" }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1068 | }; |
| 1069 | |
| 1070 | static struct omap_hwmod omap44xx_gpio6_hwmod = { |
| 1071 | .name = "gpio6", |
| 1072 | .class = &omap44xx_gpio_hwmod_class, |
Benoit Cousson | b399bca | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1073 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1074 | .mpu_irqs = omap44xx_gpio6_irqs, |
| 1075 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_gpio6_irqs), |
| 1076 | .main_clk = "gpio6_ick", |
| 1077 | .prcm = { |
| 1078 | .omap4 = { |
| 1079 | .clkctrl_reg = OMAP4430_CM_L4PER_GPIO6_CLKCTRL, |
| 1080 | }, |
| 1081 | }, |
| 1082 | .opt_clks = gpio6_opt_clks, |
| 1083 | .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks), |
| 1084 | .dev_attr = &gpio_dev_attr, |
| 1085 | .slaves = omap44xx_gpio6_slaves, |
| 1086 | .slaves_cnt = ARRAY_SIZE(omap44xx_gpio6_slaves), |
| 1087 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1088 | }; |
| 1089 | |
| 1090 | /* |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1091 | * 'i2c' class |
| 1092 | * multimaster high-speed i2c controller |
| 1093 | */ |
| 1094 | |
| 1095 | static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = { |
| 1096 | .sysc_offs = 0x0010, |
| 1097 | .syss_offs = 0x0090, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1098 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY | |
| 1099 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE | |
Benoit Cousson | 0cfe875 | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1100 | SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), |
Benoit Cousson | 7cffa6b | 2010-12-21 21:31:28 -0700 | [diff] [blame] | 1101 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1102 | SIDLE_SMART_WKUP), |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1103 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1104 | }; |
| 1105 | |
| 1106 | static struct omap_hwmod_class omap44xx_i2c_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1107 | .name = "i2c", |
| 1108 | .sysc = &omap44xx_i2c_sysc, |
Benoit Cousson | f776471 | 2010-09-21 19:37:14 +0530 | [diff] [blame] | 1109 | }; |
| 1110 | |
| 1111 | /* i2c1 */ |
| 1112 | static struct omap_hwmod omap44xx_i2c1_hwmod; |
| 1113 | static struct omap_hwmod_irq_info omap44xx_i2c1_irqs[] = { |
| 1114 | { .irq = 56 + OMAP44XX_IRQ_GIC_START }, |
| 1115 | }; |
| 1116 | |
| 1117 | static struct omap_hwmod_dma_info omap44xx_i2c1_sdma_reqs[] = { |
| 1118 | { .name = "tx", .dma_req = 26 + OMAP44XX_DMA_REQ_START }, |
| 1119 | { .name = "rx", .dma_req = 27 + OMAP44XX_DMA_REQ_START }, |
| 1120 | }; |
| 1121 | |
| 1122 | static struct omap_hwmod_addr_space omap44xx_i2c1_addrs[] = { |
| 1123 | { |
| 1124 | .pa_start = 0x48070000, |
| 1125 | .pa_end = 0x480700ff, |
| 1126 | .flags = ADDR_TYPE_RT |
| 1127 | }, |
| 1128 | }; |
| 1129 | |
| 1130 | /* l4_per -> i2c1 */ |
| 1131 | static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c1 = { |
| 1132 | .master = &omap44xx_l4_per_hwmod, |
| 1133 | .slave = &omap44xx_i2c1_hwmod, |
| 1134 | .clk = "l4_div_ck", |
| 1135 | .addr = omap44xx_i2c1_addrs, |
| 1136 | .addr_cnt = ARRAY_SIZE(omap44xx_i2c1_addrs), |
| 1137 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1138 | }; |
| 1139 | |
| 1140 | /* i2c1 slave ports */ |
| 1141 | static struct omap_hwmod_ocp_if *omap44xx_i2c1_slaves[] = { |
| 1142 | &omap44xx_l4_per__i2c1, |
| 1143 | }; |
| 1144 | |
| 1145 | static struct omap_hwmod omap44xx_i2c1_hwmod = { |
| 1146 | .name = "i2c1", |
| 1147 | .class = &omap44xx_i2c_hwmod_class, |
| 1148 | .flags = HWMOD_INIT_NO_RESET, |
| 1149 | .mpu_irqs = omap44xx_i2c1_irqs, |
| 1150 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c1_irqs), |
| 1151 | .sdma_reqs = omap44xx_i2c1_sdma_reqs, |
| 1152 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c1_sdma_reqs), |
| 1153 | .main_clk = "i2c1_fck", |
| 1154 | .prcm = { |
| 1155 | .omap4 = { |
| 1156 | .clkctrl_reg = OMAP4430_CM_L4PER_I2C1_CLKCTRL, |
| 1157 | }, |
| 1158 | }, |
| 1159 | .slaves = omap44xx_i2c1_slaves, |
| 1160 | .slaves_cnt = ARRAY_SIZE(omap44xx_i2c1_slaves), |
| 1161 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1162 | }; |
| 1163 | |
| 1164 | /* i2c2 */ |
| 1165 | static struct omap_hwmod omap44xx_i2c2_hwmod; |
| 1166 | static struct omap_hwmod_irq_info omap44xx_i2c2_irqs[] = { |
| 1167 | { .irq = 57 + OMAP44XX_IRQ_GIC_START }, |
| 1168 | }; |
| 1169 | |
| 1170 | static struct omap_hwmod_dma_info omap44xx_i2c2_sdma_reqs[] = { |
| 1171 | { .name = "tx", .dma_req = 28 + OMAP44XX_DMA_REQ_START }, |
| 1172 | { .name = "rx", .dma_req = 29 + OMAP44XX_DMA_REQ_START }, |
| 1173 | }; |
| 1174 | |
| 1175 | static struct omap_hwmod_addr_space omap44xx_i2c2_addrs[] = { |
| 1176 | { |
| 1177 | .pa_start = 0x48072000, |
| 1178 | .pa_end = 0x480720ff, |
| 1179 | .flags = ADDR_TYPE_RT |
| 1180 | }, |
| 1181 | }; |
| 1182 | |
| 1183 | /* l4_per -> i2c2 */ |
| 1184 | static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c2 = { |
| 1185 | .master = &omap44xx_l4_per_hwmod, |
| 1186 | .slave = &omap44xx_i2c2_hwmod, |
| 1187 | .clk = "l4_div_ck", |
| 1188 | .addr = omap44xx_i2c2_addrs, |
| 1189 | .addr_cnt = ARRAY_SIZE(omap44xx_i2c2_addrs), |
| 1190 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1191 | }; |
| 1192 | |
| 1193 | /* i2c2 slave ports */ |
| 1194 | static struct omap_hwmod_ocp_if *omap44xx_i2c2_slaves[] = { |
| 1195 | &omap44xx_l4_per__i2c2, |
| 1196 | }; |
| 1197 | |
| 1198 | static struct omap_hwmod omap44xx_i2c2_hwmod = { |
| 1199 | .name = "i2c2", |
| 1200 | .class = &omap44xx_i2c_hwmod_class, |
| 1201 | .flags = HWMOD_INIT_NO_RESET, |
| 1202 | .mpu_irqs = omap44xx_i2c2_irqs, |
| 1203 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c2_irqs), |
| 1204 | .sdma_reqs = omap44xx_i2c2_sdma_reqs, |
| 1205 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c2_sdma_reqs), |
| 1206 | .main_clk = "i2c2_fck", |
| 1207 | .prcm = { |
| 1208 | .omap4 = { |
| 1209 | .clkctrl_reg = OMAP4430_CM_L4PER_I2C2_CLKCTRL, |
| 1210 | }, |
| 1211 | }, |
| 1212 | .slaves = omap44xx_i2c2_slaves, |
| 1213 | .slaves_cnt = ARRAY_SIZE(omap44xx_i2c2_slaves), |
| 1214 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1215 | }; |
| 1216 | |
| 1217 | /* i2c3 */ |
| 1218 | static struct omap_hwmod omap44xx_i2c3_hwmod; |
| 1219 | static struct omap_hwmod_irq_info omap44xx_i2c3_irqs[] = { |
| 1220 | { .irq = 61 + OMAP44XX_IRQ_GIC_START }, |
| 1221 | }; |
| 1222 | |
| 1223 | static struct omap_hwmod_dma_info omap44xx_i2c3_sdma_reqs[] = { |
| 1224 | { .name = "tx", .dma_req = 24 + OMAP44XX_DMA_REQ_START }, |
| 1225 | { .name = "rx", .dma_req = 25 + OMAP44XX_DMA_REQ_START }, |
| 1226 | }; |
| 1227 | |
| 1228 | static struct omap_hwmod_addr_space omap44xx_i2c3_addrs[] = { |
| 1229 | { |
| 1230 | .pa_start = 0x48060000, |
| 1231 | .pa_end = 0x480600ff, |
| 1232 | .flags = ADDR_TYPE_RT |
| 1233 | }, |
| 1234 | }; |
| 1235 | |
| 1236 | /* l4_per -> i2c3 */ |
| 1237 | static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c3 = { |
| 1238 | .master = &omap44xx_l4_per_hwmod, |
| 1239 | .slave = &omap44xx_i2c3_hwmod, |
| 1240 | .clk = "l4_div_ck", |
| 1241 | .addr = omap44xx_i2c3_addrs, |
| 1242 | .addr_cnt = ARRAY_SIZE(omap44xx_i2c3_addrs), |
| 1243 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1244 | }; |
| 1245 | |
| 1246 | /* i2c3 slave ports */ |
| 1247 | static struct omap_hwmod_ocp_if *omap44xx_i2c3_slaves[] = { |
| 1248 | &omap44xx_l4_per__i2c3, |
| 1249 | }; |
| 1250 | |
| 1251 | static struct omap_hwmod omap44xx_i2c3_hwmod = { |
| 1252 | .name = "i2c3", |
| 1253 | .class = &omap44xx_i2c_hwmod_class, |
| 1254 | .flags = HWMOD_INIT_NO_RESET, |
| 1255 | .mpu_irqs = omap44xx_i2c3_irqs, |
| 1256 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c3_irqs), |
| 1257 | .sdma_reqs = omap44xx_i2c3_sdma_reqs, |
| 1258 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c3_sdma_reqs), |
| 1259 | .main_clk = "i2c3_fck", |
| 1260 | .prcm = { |
| 1261 | .omap4 = { |
| 1262 | .clkctrl_reg = OMAP4430_CM_L4PER_I2C3_CLKCTRL, |
| 1263 | }, |
| 1264 | }, |
| 1265 | .slaves = omap44xx_i2c3_slaves, |
| 1266 | .slaves_cnt = ARRAY_SIZE(omap44xx_i2c3_slaves), |
| 1267 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1268 | }; |
| 1269 | |
| 1270 | /* i2c4 */ |
| 1271 | static struct omap_hwmod omap44xx_i2c4_hwmod; |
| 1272 | static struct omap_hwmod_irq_info omap44xx_i2c4_irqs[] = { |
| 1273 | { .irq = 62 + OMAP44XX_IRQ_GIC_START }, |
| 1274 | }; |
| 1275 | |
| 1276 | static struct omap_hwmod_dma_info omap44xx_i2c4_sdma_reqs[] = { |
| 1277 | { .name = "tx", .dma_req = 123 + OMAP44XX_DMA_REQ_START }, |
| 1278 | { .name = "rx", .dma_req = 124 + OMAP44XX_DMA_REQ_START }, |
| 1279 | }; |
| 1280 | |
| 1281 | static struct omap_hwmod_addr_space omap44xx_i2c4_addrs[] = { |
| 1282 | { |
| 1283 | .pa_start = 0x48350000, |
| 1284 | .pa_end = 0x483500ff, |
| 1285 | .flags = ADDR_TYPE_RT |
| 1286 | }, |
| 1287 | }; |
| 1288 | |
| 1289 | /* l4_per -> i2c4 */ |
| 1290 | static struct omap_hwmod_ocp_if omap44xx_l4_per__i2c4 = { |
| 1291 | .master = &omap44xx_l4_per_hwmod, |
| 1292 | .slave = &omap44xx_i2c4_hwmod, |
| 1293 | .clk = "l4_div_ck", |
| 1294 | .addr = omap44xx_i2c4_addrs, |
| 1295 | .addr_cnt = ARRAY_SIZE(omap44xx_i2c4_addrs), |
| 1296 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1297 | }; |
| 1298 | |
| 1299 | /* i2c4 slave ports */ |
| 1300 | static struct omap_hwmod_ocp_if *omap44xx_i2c4_slaves[] = { |
| 1301 | &omap44xx_l4_per__i2c4, |
| 1302 | }; |
| 1303 | |
| 1304 | static struct omap_hwmod omap44xx_i2c4_hwmod = { |
| 1305 | .name = "i2c4", |
| 1306 | .class = &omap44xx_i2c_hwmod_class, |
| 1307 | .flags = HWMOD_INIT_NO_RESET, |
| 1308 | .mpu_irqs = omap44xx_i2c4_irqs, |
| 1309 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_i2c4_irqs), |
| 1310 | .sdma_reqs = omap44xx_i2c4_sdma_reqs, |
| 1311 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_i2c4_sdma_reqs), |
| 1312 | .main_clk = "i2c4_fck", |
| 1313 | .prcm = { |
| 1314 | .omap4 = { |
| 1315 | .clkctrl_reg = OMAP4430_CM_L4PER_I2C4_CLKCTRL, |
| 1316 | }, |
| 1317 | }, |
| 1318 | .slaves = omap44xx_i2c4_slaves, |
| 1319 | .slaves_cnt = ARRAY_SIZE(omap44xx_i2c4_slaves), |
| 1320 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1321 | }; |
| 1322 | |
| 1323 | /* |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1324 | * 'iva' class |
| 1325 | * multi-standard video encoder/decoder hardware accelerator |
| 1326 | */ |
| 1327 | |
| 1328 | static struct omap_hwmod_class omap44xx_iva_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1329 | .name = "iva", |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 1330 | }; |
| 1331 | |
| 1332 | /* iva */ |
| 1333 | static struct omap_hwmod_irq_info omap44xx_iva_irqs[] = { |
| 1334 | { .name = "sync_1", .irq = 103 + OMAP44XX_IRQ_GIC_START }, |
| 1335 | { .name = "sync_0", .irq = 104 + OMAP44XX_IRQ_GIC_START }, |
| 1336 | { .name = "mailbox_0", .irq = 107 + OMAP44XX_IRQ_GIC_START }, |
| 1337 | }; |
| 1338 | |
| 1339 | static struct omap_hwmod_rst_info omap44xx_iva_resets[] = { |
| 1340 | { .name = "logic", .rst_shift = 2 }, |
| 1341 | }; |
| 1342 | |
| 1343 | static struct omap_hwmod_rst_info omap44xx_iva_seq0_resets[] = { |
| 1344 | { .name = "seq0", .rst_shift = 0 }, |
| 1345 | }; |
| 1346 | |
| 1347 | static struct omap_hwmod_rst_info omap44xx_iva_seq1_resets[] = { |
| 1348 | { .name = "seq1", .rst_shift = 1 }, |
| 1349 | }; |
| 1350 | |
| 1351 | /* iva master ports */ |
| 1352 | static struct omap_hwmod_ocp_if *omap44xx_iva_masters[] = { |
| 1353 | &omap44xx_iva__l3_main_2, |
| 1354 | &omap44xx_iva__l3_instr, |
| 1355 | }; |
| 1356 | |
| 1357 | static struct omap_hwmod_addr_space omap44xx_iva_addrs[] = { |
| 1358 | { |
| 1359 | .pa_start = 0x5a000000, |
| 1360 | .pa_end = 0x5a07ffff, |
| 1361 | .flags = ADDR_TYPE_RT |
| 1362 | }, |
| 1363 | }; |
| 1364 | |
| 1365 | /* l3_main_2 -> iva */ |
| 1366 | static struct omap_hwmod_ocp_if omap44xx_l3_main_2__iva = { |
| 1367 | .master = &omap44xx_l3_main_2_hwmod, |
| 1368 | .slave = &omap44xx_iva_hwmod, |
| 1369 | .clk = "l3_div_ck", |
| 1370 | .addr = omap44xx_iva_addrs, |
| 1371 | .addr_cnt = ARRAY_SIZE(omap44xx_iva_addrs), |
| 1372 | .user = OCP_USER_MPU, |
| 1373 | }; |
| 1374 | |
| 1375 | /* iva slave ports */ |
| 1376 | static struct omap_hwmod_ocp_if *omap44xx_iva_slaves[] = { |
| 1377 | &omap44xx_dsp__iva, |
| 1378 | &omap44xx_l3_main_2__iva, |
| 1379 | }; |
| 1380 | |
| 1381 | /* Pseudo hwmod for reset control purpose only */ |
| 1382 | static struct omap_hwmod omap44xx_iva_seq0_hwmod = { |
| 1383 | .name = "iva_seq0", |
| 1384 | .class = &omap44xx_iva_hwmod_class, |
| 1385 | .flags = HWMOD_INIT_NO_RESET, |
| 1386 | .rst_lines = omap44xx_iva_seq0_resets, |
| 1387 | .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq0_resets), |
| 1388 | .prcm = { |
| 1389 | .omap4 = { |
| 1390 | .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL, |
| 1391 | }, |
| 1392 | }, |
| 1393 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1394 | }; |
| 1395 | |
| 1396 | /* Pseudo hwmod for reset control purpose only */ |
| 1397 | static struct omap_hwmod omap44xx_iva_seq1_hwmod = { |
| 1398 | .name = "iva_seq1", |
| 1399 | .class = &omap44xx_iva_hwmod_class, |
| 1400 | .flags = HWMOD_INIT_NO_RESET, |
| 1401 | .rst_lines = omap44xx_iva_seq1_resets, |
| 1402 | .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_seq1_resets), |
| 1403 | .prcm = { |
| 1404 | .omap4 = { |
| 1405 | .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL, |
| 1406 | }, |
| 1407 | }, |
| 1408 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1409 | }; |
| 1410 | |
| 1411 | static struct omap_hwmod omap44xx_iva_hwmod = { |
| 1412 | .name = "iva", |
| 1413 | .class = &omap44xx_iva_hwmod_class, |
| 1414 | .mpu_irqs = omap44xx_iva_irqs, |
| 1415 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_iva_irqs), |
| 1416 | .rst_lines = omap44xx_iva_resets, |
| 1417 | .rst_lines_cnt = ARRAY_SIZE(omap44xx_iva_resets), |
| 1418 | .main_clk = "iva_fck", |
| 1419 | .prcm = { |
| 1420 | .omap4 = { |
| 1421 | .clkctrl_reg = OMAP4430_CM_IVAHD_IVAHD_CLKCTRL, |
| 1422 | .rstctrl_reg = OMAP4430_RM_IVAHD_RSTCTRL, |
| 1423 | }, |
| 1424 | }, |
| 1425 | .slaves = omap44xx_iva_slaves, |
| 1426 | .slaves_cnt = ARRAY_SIZE(omap44xx_iva_slaves), |
| 1427 | .masters = omap44xx_iva_masters, |
| 1428 | .masters_cnt = ARRAY_SIZE(omap44xx_iva_masters), |
| 1429 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1430 | }; |
| 1431 | |
| 1432 | /* |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame^] | 1433 | * 'mcspi' class |
| 1434 | * multichannel serial port interface (mcspi) / master/slave synchronous serial |
| 1435 | * bus |
| 1436 | */ |
| 1437 | |
| 1438 | static struct omap_hwmod_class_sysconfig omap44xx_mcspi_sysc = { |
| 1439 | .rev_offs = 0x0000, |
| 1440 | .sysc_offs = 0x0010, |
| 1441 | .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_RESET_STATUS | |
| 1442 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET), |
| 1443 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1444 | SIDLE_SMART_WKUP), |
| 1445 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 1446 | }; |
| 1447 | |
| 1448 | static struct omap_hwmod_class omap44xx_mcspi_hwmod_class = { |
| 1449 | .name = "mcspi", |
| 1450 | .sysc = &omap44xx_mcspi_sysc, |
| 1451 | }; |
| 1452 | |
| 1453 | /* mcspi1 */ |
| 1454 | static struct omap_hwmod omap44xx_mcspi1_hwmod; |
| 1455 | static struct omap_hwmod_irq_info omap44xx_mcspi1_irqs[] = { |
| 1456 | { .irq = 65 + OMAP44XX_IRQ_GIC_START }, |
| 1457 | }; |
| 1458 | |
| 1459 | static struct omap_hwmod_dma_info omap44xx_mcspi1_sdma_reqs[] = { |
| 1460 | { .name = "tx0", .dma_req = 34 + OMAP44XX_DMA_REQ_START }, |
| 1461 | { .name = "rx0", .dma_req = 35 + OMAP44XX_DMA_REQ_START }, |
| 1462 | { .name = "tx1", .dma_req = 36 + OMAP44XX_DMA_REQ_START }, |
| 1463 | { .name = "rx1", .dma_req = 37 + OMAP44XX_DMA_REQ_START }, |
| 1464 | { .name = "tx2", .dma_req = 38 + OMAP44XX_DMA_REQ_START }, |
| 1465 | { .name = "rx2", .dma_req = 39 + OMAP44XX_DMA_REQ_START }, |
| 1466 | { .name = "tx3", .dma_req = 40 + OMAP44XX_DMA_REQ_START }, |
| 1467 | { .name = "rx3", .dma_req = 41 + OMAP44XX_DMA_REQ_START }, |
| 1468 | }; |
| 1469 | |
| 1470 | static struct omap_hwmod_addr_space omap44xx_mcspi1_addrs[] = { |
| 1471 | { |
| 1472 | .pa_start = 0x48098000, |
| 1473 | .pa_end = 0x480981ff, |
| 1474 | .flags = ADDR_TYPE_RT |
| 1475 | }, |
| 1476 | }; |
| 1477 | |
| 1478 | /* l4_per -> mcspi1 */ |
| 1479 | static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi1 = { |
| 1480 | .master = &omap44xx_l4_per_hwmod, |
| 1481 | .slave = &omap44xx_mcspi1_hwmod, |
| 1482 | .clk = "l4_div_ck", |
| 1483 | .addr = omap44xx_mcspi1_addrs, |
| 1484 | .addr_cnt = ARRAY_SIZE(omap44xx_mcspi1_addrs), |
| 1485 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1486 | }; |
| 1487 | |
| 1488 | /* mcspi1 slave ports */ |
| 1489 | static struct omap_hwmod_ocp_if *omap44xx_mcspi1_slaves[] = { |
| 1490 | &omap44xx_l4_per__mcspi1, |
| 1491 | }; |
| 1492 | |
| 1493 | static struct omap_hwmod omap44xx_mcspi1_hwmod = { |
| 1494 | .name = "mcspi1", |
| 1495 | .class = &omap44xx_mcspi_hwmod_class, |
| 1496 | .mpu_irqs = omap44xx_mcspi1_irqs, |
| 1497 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_irqs), |
| 1498 | .sdma_reqs = omap44xx_mcspi1_sdma_reqs, |
| 1499 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi1_sdma_reqs), |
| 1500 | .main_clk = "mcspi1_fck", |
| 1501 | .prcm = { |
| 1502 | .omap4 = { |
| 1503 | .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI1_CLKCTRL, |
| 1504 | }, |
| 1505 | }, |
| 1506 | .slaves = omap44xx_mcspi1_slaves, |
| 1507 | .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi1_slaves), |
| 1508 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1509 | }; |
| 1510 | |
| 1511 | /* mcspi2 */ |
| 1512 | static struct omap_hwmod omap44xx_mcspi2_hwmod; |
| 1513 | static struct omap_hwmod_irq_info omap44xx_mcspi2_irqs[] = { |
| 1514 | { .irq = 66 + OMAP44XX_IRQ_GIC_START }, |
| 1515 | }; |
| 1516 | |
| 1517 | static struct omap_hwmod_dma_info omap44xx_mcspi2_sdma_reqs[] = { |
| 1518 | { .name = "tx0", .dma_req = 42 + OMAP44XX_DMA_REQ_START }, |
| 1519 | { .name = "rx0", .dma_req = 43 + OMAP44XX_DMA_REQ_START }, |
| 1520 | { .name = "tx1", .dma_req = 44 + OMAP44XX_DMA_REQ_START }, |
| 1521 | { .name = "rx1", .dma_req = 45 + OMAP44XX_DMA_REQ_START }, |
| 1522 | }; |
| 1523 | |
| 1524 | static struct omap_hwmod_addr_space omap44xx_mcspi2_addrs[] = { |
| 1525 | { |
| 1526 | .pa_start = 0x4809a000, |
| 1527 | .pa_end = 0x4809a1ff, |
| 1528 | .flags = ADDR_TYPE_RT |
| 1529 | }, |
| 1530 | }; |
| 1531 | |
| 1532 | /* l4_per -> mcspi2 */ |
| 1533 | static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi2 = { |
| 1534 | .master = &omap44xx_l4_per_hwmod, |
| 1535 | .slave = &omap44xx_mcspi2_hwmod, |
| 1536 | .clk = "l4_div_ck", |
| 1537 | .addr = omap44xx_mcspi2_addrs, |
| 1538 | .addr_cnt = ARRAY_SIZE(omap44xx_mcspi2_addrs), |
| 1539 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1540 | }; |
| 1541 | |
| 1542 | /* mcspi2 slave ports */ |
| 1543 | static struct omap_hwmod_ocp_if *omap44xx_mcspi2_slaves[] = { |
| 1544 | &omap44xx_l4_per__mcspi2, |
| 1545 | }; |
| 1546 | |
| 1547 | static struct omap_hwmod omap44xx_mcspi2_hwmod = { |
| 1548 | .name = "mcspi2", |
| 1549 | .class = &omap44xx_mcspi_hwmod_class, |
| 1550 | .mpu_irqs = omap44xx_mcspi2_irqs, |
| 1551 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_irqs), |
| 1552 | .sdma_reqs = omap44xx_mcspi2_sdma_reqs, |
| 1553 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi2_sdma_reqs), |
| 1554 | .main_clk = "mcspi2_fck", |
| 1555 | .prcm = { |
| 1556 | .omap4 = { |
| 1557 | .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI2_CLKCTRL, |
| 1558 | }, |
| 1559 | }, |
| 1560 | .slaves = omap44xx_mcspi2_slaves, |
| 1561 | .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi2_slaves), |
| 1562 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1563 | }; |
| 1564 | |
| 1565 | /* mcspi3 */ |
| 1566 | static struct omap_hwmod omap44xx_mcspi3_hwmod; |
| 1567 | static struct omap_hwmod_irq_info omap44xx_mcspi3_irqs[] = { |
| 1568 | { .irq = 91 + OMAP44XX_IRQ_GIC_START }, |
| 1569 | }; |
| 1570 | |
| 1571 | static struct omap_hwmod_dma_info omap44xx_mcspi3_sdma_reqs[] = { |
| 1572 | { .name = "tx0", .dma_req = 14 + OMAP44XX_DMA_REQ_START }, |
| 1573 | { .name = "rx0", .dma_req = 15 + OMAP44XX_DMA_REQ_START }, |
| 1574 | { .name = "tx1", .dma_req = 22 + OMAP44XX_DMA_REQ_START }, |
| 1575 | { .name = "rx1", .dma_req = 23 + OMAP44XX_DMA_REQ_START }, |
| 1576 | }; |
| 1577 | |
| 1578 | static struct omap_hwmod_addr_space omap44xx_mcspi3_addrs[] = { |
| 1579 | { |
| 1580 | .pa_start = 0x480b8000, |
| 1581 | .pa_end = 0x480b81ff, |
| 1582 | .flags = ADDR_TYPE_RT |
| 1583 | }, |
| 1584 | }; |
| 1585 | |
| 1586 | /* l4_per -> mcspi3 */ |
| 1587 | static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi3 = { |
| 1588 | .master = &omap44xx_l4_per_hwmod, |
| 1589 | .slave = &omap44xx_mcspi3_hwmod, |
| 1590 | .clk = "l4_div_ck", |
| 1591 | .addr = omap44xx_mcspi3_addrs, |
| 1592 | .addr_cnt = ARRAY_SIZE(omap44xx_mcspi3_addrs), |
| 1593 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1594 | }; |
| 1595 | |
| 1596 | /* mcspi3 slave ports */ |
| 1597 | static struct omap_hwmod_ocp_if *omap44xx_mcspi3_slaves[] = { |
| 1598 | &omap44xx_l4_per__mcspi3, |
| 1599 | }; |
| 1600 | |
| 1601 | static struct omap_hwmod omap44xx_mcspi3_hwmod = { |
| 1602 | .name = "mcspi3", |
| 1603 | .class = &omap44xx_mcspi_hwmod_class, |
| 1604 | .mpu_irqs = omap44xx_mcspi3_irqs, |
| 1605 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_irqs), |
| 1606 | .sdma_reqs = omap44xx_mcspi3_sdma_reqs, |
| 1607 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi3_sdma_reqs), |
| 1608 | .main_clk = "mcspi3_fck", |
| 1609 | .prcm = { |
| 1610 | .omap4 = { |
| 1611 | .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI3_CLKCTRL, |
| 1612 | }, |
| 1613 | }, |
| 1614 | .slaves = omap44xx_mcspi3_slaves, |
| 1615 | .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi3_slaves), |
| 1616 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1617 | }; |
| 1618 | |
| 1619 | /* mcspi4 */ |
| 1620 | static struct omap_hwmod omap44xx_mcspi4_hwmod; |
| 1621 | static struct omap_hwmod_irq_info omap44xx_mcspi4_irqs[] = { |
| 1622 | { .irq = 48 + OMAP44XX_IRQ_GIC_START }, |
| 1623 | }; |
| 1624 | |
| 1625 | static struct omap_hwmod_dma_info omap44xx_mcspi4_sdma_reqs[] = { |
| 1626 | { .name = "tx0", .dma_req = 69 + OMAP44XX_DMA_REQ_START }, |
| 1627 | { .name = "rx0", .dma_req = 70 + OMAP44XX_DMA_REQ_START }, |
| 1628 | }; |
| 1629 | |
| 1630 | static struct omap_hwmod_addr_space omap44xx_mcspi4_addrs[] = { |
| 1631 | { |
| 1632 | .pa_start = 0x480ba000, |
| 1633 | .pa_end = 0x480ba1ff, |
| 1634 | .flags = ADDR_TYPE_RT |
| 1635 | }, |
| 1636 | }; |
| 1637 | |
| 1638 | /* l4_per -> mcspi4 */ |
| 1639 | static struct omap_hwmod_ocp_if omap44xx_l4_per__mcspi4 = { |
| 1640 | .master = &omap44xx_l4_per_hwmod, |
| 1641 | .slave = &omap44xx_mcspi4_hwmod, |
| 1642 | .clk = "l4_div_ck", |
| 1643 | .addr = omap44xx_mcspi4_addrs, |
| 1644 | .addr_cnt = ARRAY_SIZE(omap44xx_mcspi4_addrs), |
| 1645 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1646 | }; |
| 1647 | |
| 1648 | /* mcspi4 slave ports */ |
| 1649 | static struct omap_hwmod_ocp_if *omap44xx_mcspi4_slaves[] = { |
| 1650 | &omap44xx_l4_per__mcspi4, |
| 1651 | }; |
| 1652 | |
| 1653 | static struct omap_hwmod omap44xx_mcspi4_hwmod = { |
| 1654 | .name = "mcspi4", |
| 1655 | .class = &omap44xx_mcspi_hwmod_class, |
| 1656 | .mpu_irqs = omap44xx_mcspi4_irqs, |
| 1657 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_irqs), |
| 1658 | .sdma_reqs = omap44xx_mcspi4_sdma_reqs, |
| 1659 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_mcspi4_sdma_reqs), |
| 1660 | .main_clk = "mcspi4_fck", |
| 1661 | .prcm = { |
| 1662 | .omap4 = { |
| 1663 | .clkctrl_reg = OMAP4430_CM_L4PER_MCSPI4_CLKCTRL, |
| 1664 | }, |
| 1665 | }, |
| 1666 | .slaves = omap44xx_mcspi4_slaves, |
| 1667 | .slaves_cnt = ARRAY_SIZE(omap44xx_mcspi4_slaves), |
| 1668 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1669 | }; |
| 1670 | |
| 1671 | /* |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 1672 | * 'mpu' class |
| 1673 | * mpu sub-system |
| 1674 | */ |
| 1675 | |
| 1676 | static struct omap_hwmod_class omap44xx_mpu_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1677 | .name = "mpu", |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 1678 | }; |
| 1679 | |
| 1680 | /* mpu */ |
| 1681 | static struct omap_hwmod_irq_info omap44xx_mpu_irqs[] = { |
| 1682 | { .name = "pl310", .irq = 0 + OMAP44XX_IRQ_GIC_START }, |
| 1683 | { .name = "cti0", .irq = 1 + OMAP44XX_IRQ_GIC_START }, |
| 1684 | { .name = "cti1", .irq = 2 + OMAP44XX_IRQ_GIC_START }, |
| 1685 | }; |
| 1686 | |
| 1687 | /* mpu master ports */ |
| 1688 | static struct omap_hwmod_ocp_if *omap44xx_mpu_masters[] = { |
| 1689 | &omap44xx_mpu__l3_main_1, |
| 1690 | &omap44xx_mpu__l4_abe, |
| 1691 | &omap44xx_mpu__dmm, |
| 1692 | }; |
| 1693 | |
| 1694 | static struct omap_hwmod omap44xx_mpu_hwmod = { |
| 1695 | .name = "mpu", |
| 1696 | .class = &omap44xx_mpu_hwmod_class, |
| 1697 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 1698 | .mpu_irqs = omap44xx_mpu_irqs, |
| 1699 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_mpu_irqs), |
| 1700 | .main_clk = "dpll_mpu_m2_ck", |
| 1701 | .prcm = { |
| 1702 | .omap4 = { |
| 1703 | .clkctrl_reg = OMAP4430_CM_MPU_MPU_CLKCTRL, |
| 1704 | }, |
| 1705 | }, |
| 1706 | .masters = omap44xx_mpu_masters, |
| 1707 | .masters_cnt = ARRAY_SIZE(omap44xx_mpu_masters), |
| 1708 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1709 | }; |
| 1710 | |
Benoit Cousson | 92b18d1 | 2010-09-23 20:02:41 +0530 | [diff] [blame] | 1711 | /* |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 1712 | * 'smartreflex' class |
| 1713 | * smartreflex module (monitor silicon performance and outputs a measure of |
| 1714 | * performance error) |
| 1715 | */ |
| 1716 | |
| 1717 | /* The IP is not compliant to type1 / type2 scheme */ |
| 1718 | static struct omap_hwmod_sysc_fields omap_hwmod_sysc_type_smartreflex = { |
| 1719 | .sidle_shift = 24, |
| 1720 | .enwkup_shift = 26, |
| 1721 | }; |
| 1722 | |
| 1723 | static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = { |
| 1724 | .sysc_offs = 0x0038, |
| 1725 | .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE), |
| 1726 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1727 | SIDLE_SMART_WKUP), |
| 1728 | .sysc_fields = &omap_hwmod_sysc_type_smartreflex, |
| 1729 | }; |
| 1730 | |
| 1731 | static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1732 | .name = "smartreflex", |
| 1733 | .sysc = &omap44xx_smartreflex_sysc, |
| 1734 | .rev = 2, |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 1735 | }; |
| 1736 | |
| 1737 | /* smartreflex_core */ |
| 1738 | static struct omap_hwmod omap44xx_smartreflex_core_hwmod; |
| 1739 | static struct omap_hwmod_irq_info omap44xx_smartreflex_core_irqs[] = { |
| 1740 | { .irq = 19 + OMAP44XX_IRQ_GIC_START }, |
| 1741 | }; |
| 1742 | |
| 1743 | static struct omap_hwmod_addr_space omap44xx_smartreflex_core_addrs[] = { |
| 1744 | { |
| 1745 | .pa_start = 0x4a0dd000, |
| 1746 | .pa_end = 0x4a0dd03f, |
| 1747 | .flags = ADDR_TYPE_RT |
| 1748 | }, |
| 1749 | }; |
| 1750 | |
| 1751 | /* l4_cfg -> smartreflex_core */ |
| 1752 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_core = { |
| 1753 | .master = &omap44xx_l4_cfg_hwmod, |
| 1754 | .slave = &omap44xx_smartreflex_core_hwmod, |
| 1755 | .clk = "l4_div_ck", |
| 1756 | .addr = omap44xx_smartreflex_core_addrs, |
| 1757 | .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_addrs), |
| 1758 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1759 | }; |
| 1760 | |
| 1761 | /* smartreflex_core slave ports */ |
| 1762 | static struct omap_hwmod_ocp_if *omap44xx_smartreflex_core_slaves[] = { |
| 1763 | &omap44xx_l4_cfg__smartreflex_core, |
| 1764 | }; |
| 1765 | |
| 1766 | static struct omap_hwmod omap44xx_smartreflex_core_hwmod = { |
| 1767 | .name = "smartreflex_core", |
| 1768 | .class = &omap44xx_smartreflex_hwmod_class, |
| 1769 | .mpu_irqs = omap44xx_smartreflex_core_irqs, |
| 1770 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_irqs), |
| 1771 | .main_clk = "smartreflex_core_fck", |
| 1772 | .vdd_name = "core", |
| 1773 | .prcm = { |
| 1774 | .omap4 = { |
| 1775 | .clkctrl_reg = OMAP4430_CM_ALWON_SR_CORE_CLKCTRL, |
| 1776 | }, |
| 1777 | }, |
| 1778 | .slaves = omap44xx_smartreflex_core_slaves, |
| 1779 | .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_core_slaves), |
| 1780 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1781 | }; |
| 1782 | |
| 1783 | /* smartreflex_iva */ |
| 1784 | static struct omap_hwmod omap44xx_smartreflex_iva_hwmod; |
| 1785 | static struct omap_hwmod_irq_info omap44xx_smartreflex_iva_irqs[] = { |
| 1786 | { .irq = 102 + OMAP44XX_IRQ_GIC_START }, |
| 1787 | }; |
| 1788 | |
| 1789 | static struct omap_hwmod_addr_space omap44xx_smartreflex_iva_addrs[] = { |
| 1790 | { |
| 1791 | .pa_start = 0x4a0db000, |
| 1792 | .pa_end = 0x4a0db03f, |
| 1793 | .flags = ADDR_TYPE_RT |
| 1794 | }, |
| 1795 | }; |
| 1796 | |
| 1797 | /* l4_cfg -> smartreflex_iva */ |
| 1798 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_iva = { |
| 1799 | .master = &omap44xx_l4_cfg_hwmod, |
| 1800 | .slave = &omap44xx_smartreflex_iva_hwmod, |
| 1801 | .clk = "l4_div_ck", |
| 1802 | .addr = omap44xx_smartreflex_iva_addrs, |
| 1803 | .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_addrs), |
| 1804 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1805 | }; |
| 1806 | |
| 1807 | /* smartreflex_iva slave ports */ |
| 1808 | static struct omap_hwmod_ocp_if *omap44xx_smartreflex_iva_slaves[] = { |
| 1809 | &omap44xx_l4_cfg__smartreflex_iva, |
| 1810 | }; |
| 1811 | |
| 1812 | static struct omap_hwmod omap44xx_smartreflex_iva_hwmod = { |
| 1813 | .name = "smartreflex_iva", |
| 1814 | .class = &omap44xx_smartreflex_hwmod_class, |
| 1815 | .mpu_irqs = omap44xx_smartreflex_iva_irqs, |
| 1816 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_irqs), |
| 1817 | .main_clk = "smartreflex_iva_fck", |
| 1818 | .vdd_name = "iva", |
| 1819 | .prcm = { |
| 1820 | .omap4 = { |
| 1821 | .clkctrl_reg = OMAP4430_CM_ALWON_SR_IVA_CLKCTRL, |
| 1822 | }, |
| 1823 | }, |
| 1824 | .slaves = omap44xx_smartreflex_iva_slaves, |
| 1825 | .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_iva_slaves), |
| 1826 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1827 | }; |
| 1828 | |
| 1829 | /* smartreflex_mpu */ |
| 1830 | static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod; |
| 1831 | static struct omap_hwmod_irq_info omap44xx_smartreflex_mpu_irqs[] = { |
| 1832 | { .irq = 18 + OMAP44XX_IRQ_GIC_START }, |
| 1833 | }; |
| 1834 | |
| 1835 | static struct omap_hwmod_addr_space omap44xx_smartreflex_mpu_addrs[] = { |
| 1836 | { |
| 1837 | .pa_start = 0x4a0d9000, |
| 1838 | .pa_end = 0x4a0d903f, |
| 1839 | .flags = ADDR_TYPE_RT |
| 1840 | }, |
| 1841 | }; |
| 1842 | |
| 1843 | /* l4_cfg -> smartreflex_mpu */ |
| 1844 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__smartreflex_mpu = { |
| 1845 | .master = &omap44xx_l4_cfg_hwmod, |
| 1846 | .slave = &omap44xx_smartreflex_mpu_hwmod, |
| 1847 | .clk = "l4_div_ck", |
| 1848 | .addr = omap44xx_smartreflex_mpu_addrs, |
| 1849 | .addr_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_addrs), |
| 1850 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1851 | }; |
| 1852 | |
| 1853 | /* smartreflex_mpu slave ports */ |
| 1854 | static struct omap_hwmod_ocp_if *omap44xx_smartreflex_mpu_slaves[] = { |
| 1855 | &omap44xx_l4_cfg__smartreflex_mpu, |
| 1856 | }; |
| 1857 | |
| 1858 | static struct omap_hwmod omap44xx_smartreflex_mpu_hwmod = { |
| 1859 | .name = "smartreflex_mpu", |
| 1860 | .class = &omap44xx_smartreflex_hwmod_class, |
| 1861 | .mpu_irqs = omap44xx_smartreflex_mpu_irqs, |
| 1862 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_irqs), |
| 1863 | .main_clk = "smartreflex_mpu_fck", |
| 1864 | .vdd_name = "mpu", |
| 1865 | .prcm = { |
| 1866 | .omap4 = { |
| 1867 | .clkctrl_reg = OMAP4430_CM_ALWON_SR_MPU_CLKCTRL, |
| 1868 | }, |
| 1869 | }, |
| 1870 | .slaves = omap44xx_smartreflex_mpu_slaves, |
| 1871 | .slaves_cnt = ARRAY_SIZE(omap44xx_smartreflex_mpu_slaves), |
| 1872 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1873 | }; |
| 1874 | |
| 1875 | /* |
Benoit Cousson | d11c217 | 2011-02-02 12:04:36 +0000 | [diff] [blame] | 1876 | * 'spinlock' class |
| 1877 | * spinlock provides hardware assistance for synchronizing the processes |
| 1878 | * running on multiple processors |
| 1879 | */ |
| 1880 | |
| 1881 | static struct omap_hwmod_class_sysconfig omap44xx_spinlock_sysc = { |
| 1882 | .rev_offs = 0x0000, |
| 1883 | .sysc_offs = 0x0010, |
| 1884 | .syss_offs = 0x0014, |
| 1885 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY | |
| 1886 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE | |
| 1887 | SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), |
| 1888 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1889 | SIDLE_SMART_WKUP), |
| 1890 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1891 | }; |
| 1892 | |
| 1893 | static struct omap_hwmod_class omap44xx_spinlock_hwmod_class = { |
| 1894 | .name = "spinlock", |
| 1895 | .sysc = &omap44xx_spinlock_sysc, |
| 1896 | }; |
| 1897 | |
| 1898 | /* spinlock */ |
| 1899 | static struct omap_hwmod omap44xx_spinlock_hwmod; |
| 1900 | static struct omap_hwmod_addr_space omap44xx_spinlock_addrs[] = { |
| 1901 | { |
| 1902 | .pa_start = 0x4a0f6000, |
| 1903 | .pa_end = 0x4a0f6fff, |
| 1904 | .flags = ADDR_TYPE_RT |
| 1905 | }, |
| 1906 | }; |
| 1907 | |
| 1908 | /* l4_cfg -> spinlock */ |
| 1909 | static struct omap_hwmod_ocp_if omap44xx_l4_cfg__spinlock = { |
| 1910 | .master = &omap44xx_l4_cfg_hwmod, |
| 1911 | .slave = &omap44xx_spinlock_hwmod, |
| 1912 | .clk = "l4_div_ck", |
| 1913 | .addr = omap44xx_spinlock_addrs, |
| 1914 | .addr_cnt = ARRAY_SIZE(omap44xx_spinlock_addrs), |
| 1915 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1916 | }; |
| 1917 | |
| 1918 | /* spinlock slave ports */ |
| 1919 | static struct omap_hwmod_ocp_if *omap44xx_spinlock_slaves[] = { |
| 1920 | &omap44xx_l4_cfg__spinlock, |
| 1921 | }; |
| 1922 | |
| 1923 | static struct omap_hwmod omap44xx_spinlock_hwmod = { |
| 1924 | .name = "spinlock", |
| 1925 | .class = &omap44xx_spinlock_hwmod_class, |
| 1926 | .prcm = { |
| 1927 | .omap4 = { |
| 1928 | .clkctrl_reg = OMAP4430_CM_L4CFG_HW_SEM_CLKCTRL, |
| 1929 | }, |
| 1930 | }, |
| 1931 | .slaves = omap44xx_spinlock_slaves, |
| 1932 | .slaves_cnt = ARRAY_SIZE(omap44xx_spinlock_slaves), |
| 1933 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 1934 | }; |
| 1935 | |
| 1936 | /* |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 1937 | * 'uart' class |
| 1938 | * universal asynchronous receiver/transmitter (uart) |
| 1939 | */ |
| 1940 | |
| 1941 | static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = { |
| 1942 | .rev_offs = 0x0050, |
| 1943 | .sysc_offs = 0x0054, |
| 1944 | .syss_offs = 0x0058, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1945 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP | |
Benoit Cousson | 0cfe875 | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 1946 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | |
| 1947 | SYSS_HAS_RESET_STATUS), |
Benoit Cousson | 7cffa6b | 2010-12-21 21:31:28 -0700 | [diff] [blame] | 1948 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1949 | SIDLE_SMART_WKUP), |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 1950 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1951 | }; |
| 1952 | |
| 1953 | static struct omap_hwmod_class omap44xx_uart_hwmod_class = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 1954 | .name = "uart", |
| 1955 | .sysc = &omap44xx_uart_sysc, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 1956 | }; |
| 1957 | |
| 1958 | /* uart1 */ |
| 1959 | static struct omap_hwmod omap44xx_uart1_hwmod; |
| 1960 | static struct omap_hwmod_irq_info omap44xx_uart1_irqs[] = { |
| 1961 | { .irq = 72 + OMAP44XX_IRQ_GIC_START }, |
| 1962 | }; |
| 1963 | |
| 1964 | static struct omap_hwmod_dma_info omap44xx_uart1_sdma_reqs[] = { |
| 1965 | { .name = "tx", .dma_req = 48 + OMAP44XX_DMA_REQ_START }, |
| 1966 | { .name = "rx", .dma_req = 49 + OMAP44XX_DMA_REQ_START }, |
| 1967 | }; |
| 1968 | |
| 1969 | static struct omap_hwmod_addr_space omap44xx_uart1_addrs[] = { |
| 1970 | { |
| 1971 | .pa_start = 0x4806a000, |
| 1972 | .pa_end = 0x4806a0ff, |
| 1973 | .flags = ADDR_TYPE_RT |
| 1974 | }, |
| 1975 | }; |
| 1976 | |
| 1977 | /* l4_per -> uart1 */ |
| 1978 | static struct omap_hwmod_ocp_if omap44xx_l4_per__uart1 = { |
| 1979 | .master = &omap44xx_l4_per_hwmod, |
| 1980 | .slave = &omap44xx_uart1_hwmod, |
| 1981 | .clk = "l4_div_ck", |
| 1982 | .addr = omap44xx_uart1_addrs, |
| 1983 | .addr_cnt = ARRAY_SIZE(omap44xx_uart1_addrs), |
| 1984 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 1985 | }; |
| 1986 | |
| 1987 | /* uart1 slave ports */ |
| 1988 | static struct omap_hwmod_ocp_if *omap44xx_uart1_slaves[] = { |
| 1989 | &omap44xx_l4_per__uart1, |
| 1990 | }; |
| 1991 | |
| 1992 | static struct omap_hwmod omap44xx_uart1_hwmod = { |
| 1993 | .name = "uart1", |
| 1994 | .class = &omap44xx_uart_hwmod_class, |
| 1995 | .mpu_irqs = omap44xx_uart1_irqs, |
| 1996 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart1_irqs), |
| 1997 | .sdma_reqs = omap44xx_uart1_sdma_reqs, |
| 1998 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart1_sdma_reqs), |
| 1999 | .main_clk = "uart1_fck", |
| 2000 | .prcm = { |
| 2001 | .omap4 = { |
| 2002 | .clkctrl_reg = OMAP4430_CM_L4PER_UART1_CLKCTRL, |
| 2003 | }, |
| 2004 | }, |
| 2005 | .slaves = omap44xx_uart1_slaves, |
| 2006 | .slaves_cnt = ARRAY_SIZE(omap44xx_uart1_slaves), |
| 2007 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 2008 | }; |
| 2009 | |
| 2010 | /* uart2 */ |
| 2011 | static struct omap_hwmod omap44xx_uart2_hwmod; |
| 2012 | static struct omap_hwmod_irq_info omap44xx_uart2_irqs[] = { |
| 2013 | { .irq = 73 + OMAP44XX_IRQ_GIC_START }, |
| 2014 | }; |
| 2015 | |
| 2016 | static struct omap_hwmod_dma_info omap44xx_uart2_sdma_reqs[] = { |
| 2017 | { .name = "tx", .dma_req = 50 + OMAP44XX_DMA_REQ_START }, |
| 2018 | { .name = "rx", .dma_req = 51 + OMAP44XX_DMA_REQ_START }, |
| 2019 | }; |
| 2020 | |
| 2021 | static struct omap_hwmod_addr_space omap44xx_uart2_addrs[] = { |
| 2022 | { |
| 2023 | .pa_start = 0x4806c000, |
| 2024 | .pa_end = 0x4806c0ff, |
| 2025 | .flags = ADDR_TYPE_RT |
| 2026 | }, |
| 2027 | }; |
| 2028 | |
| 2029 | /* l4_per -> uart2 */ |
| 2030 | static struct omap_hwmod_ocp_if omap44xx_l4_per__uart2 = { |
| 2031 | .master = &omap44xx_l4_per_hwmod, |
| 2032 | .slave = &omap44xx_uart2_hwmod, |
| 2033 | .clk = "l4_div_ck", |
| 2034 | .addr = omap44xx_uart2_addrs, |
| 2035 | .addr_cnt = ARRAY_SIZE(omap44xx_uart2_addrs), |
| 2036 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2037 | }; |
| 2038 | |
| 2039 | /* uart2 slave ports */ |
| 2040 | static struct omap_hwmod_ocp_if *omap44xx_uart2_slaves[] = { |
| 2041 | &omap44xx_l4_per__uart2, |
| 2042 | }; |
| 2043 | |
| 2044 | static struct omap_hwmod omap44xx_uart2_hwmod = { |
| 2045 | .name = "uart2", |
| 2046 | .class = &omap44xx_uart_hwmod_class, |
| 2047 | .mpu_irqs = omap44xx_uart2_irqs, |
| 2048 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart2_irqs), |
| 2049 | .sdma_reqs = omap44xx_uart2_sdma_reqs, |
| 2050 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart2_sdma_reqs), |
| 2051 | .main_clk = "uart2_fck", |
| 2052 | .prcm = { |
| 2053 | .omap4 = { |
| 2054 | .clkctrl_reg = OMAP4430_CM_L4PER_UART2_CLKCTRL, |
| 2055 | }, |
| 2056 | }, |
| 2057 | .slaves = omap44xx_uart2_slaves, |
| 2058 | .slaves_cnt = ARRAY_SIZE(omap44xx_uart2_slaves), |
| 2059 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 2060 | }; |
| 2061 | |
| 2062 | /* uart3 */ |
| 2063 | static struct omap_hwmod omap44xx_uart3_hwmod; |
| 2064 | static struct omap_hwmod_irq_info omap44xx_uart3_irqs[] = { |
| 2065 | { .irq = 74 + OMAP44XX_IRQ_GIC_START }, |
| 2066 | }; |
| 2067 | |
| 2068 | static struct omap_hwmod_dma_info omap44xx_uart3_sdma_reqs[] = { |
| 2069 | { .name = "tx", .dma_req = 52 + OMAP44XX_DMA_REQ_START }, |
| 2070 | { .name = "rx", .dma_req = 53 + OMAP44XX_DMA_REQ_START }, |
| 2071 | }; |
| 2072 | |
| 2073 | static struct omap_hwmod_addr_space omap44xx_uart3_addrs[] = { |
| 2074 | { |
| 2075 | .pa_start = 0x48020000, |
| 2076 | .pa_end = 0x480200ff, |
| 2077 | .flags = ADDR_TYPE_RT |
| 2078 | }, |
| 2079 | }; |
| 2080 | |
| 2081 | /* l4_per -> uart3 */ |
| 2082 | static struct omap_hwmod_ocp_if omap44xx_l4_per__uart3 = { |
| 2083 | .master = &omap44xx_l4_per_hwmod, |
| 2084 | .slave = &omap44xx_uart3_hwmod, |
| 2085 | .clk = "l4_div_ck", |
| 2086 | .addr = omap44xx_uart3_addrs, |
| 2087 | .addr_cnt = ARRAY_SIZE(omap44xx_uart3_addrs), |
| 2088 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2089 | }; |
| 2090 | |
| 2091 | /* uart3 slave ports */ |
| 2092 | static struct omap_hwmod_ocp_if *omap44xx_uart3_slaves[] = { |
| 2093 | &omap44xx_l4_per__uart3, |
| 2094 | }; |
| 2095 | |
| 2096 | static struct omap_hwmod omap44xx_uart3_hwmod = { |
| 2097 | .name = "uart3", |
| 2098 | .class = &omap44xx_uart_hwmod_class, |
| 2099 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 2100 | .mpu_irqs = omap44xx_uart3_irqs, |
| 2101 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart3_irqs), |
| 2102 | .sdma_reqs = omap44xx_uart3_sdma_reqs, |
| 2103 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart3_sdma_reqs), |
| 2104 | .main_clk = "uart3_fck", |
| 2105 | .prcm = { |
| 2106 | .omap4 = { |
| 2107 | .clkctrl_reg = OMAP4430_CM_L4PER_UART3_CLKCTRL, |
| 2108 | }, |
| 2109 | }, |
| 2110 | .slaves = omap44xx_uart3_slaves, |
| 2111 | .slaves_cnt = ARRAY_SIZE(omap44xx_uart3_slaves), |
| 2112 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 2113 | }; |
| 2114 | |
| 2115 | /* uart4 */ |
| 2116 | static struct omap_hwmod omap44xx_uart4_hwmod; |
| 2117 | static struct omap_hwmod_irq_info omap44xx_uart4_irqs[] = { |
| 2118 | { .irq = 70 + OMAP44XX_IRQ_GIC_START }, |
| 2119 | }; |
| 2120 | |
| 2121 | static struct omap_hwmod_dma_info omap44xx_uart4_sdma_reqs[] = { |
| 2122 | { .name = "tx", .dma_req = 54 + OMAP44XX_DMA_REQ_START }, |
| 2123 | { .name = "rx", .dma_req = 55 + OMAP44XX_DMA_REQ_START }, |
| 2124 | }; |
| 2125 | |
| 2126 | static struct omap_hwmod_addr_space omap44xx_uart4_addrs[] = { |
| 2127 | { |
| 2128 | .pa_start = 0x4806e000, |
| 2129 | .pa_end = 0x4806e0ff, |
| 2130 | .flags = ADDR_TYPE_RT |
| 2131 | }, |
| 2132 | }; |
| 2133 | |
| 2134 | /* l4_per -> uart4 */ |
| 2135 | static struct omap_hwmod_ocp_if omap44xx_l4_per__uart4 = { |
| 2136 | .master = &omap44xx_l4_per_hwmod, |
| 2137 | .slave = &omap44xx_uart4_hwmod, |
| 2138 | .clk = "l4_div_ck", |
| 2139 | .addr = omap44xx_uart4_addrs, |
| 2140 | .addr_cnt = ARRAY_SIZE(omap44xx_uart4_addrs), |
| 2141 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2142 | }; |
| 2143 | |
| 2144 | /* uart4 slave ports */ |
| 2145 | static struct omap_hwmod_ocp_if *omap44xx_uart4_slaves[] = { |
| 2146 | &omap44xx_l4_per__uart4, |
| 2147 | }; |
| 2148 | |
| 2149 | static struct omap_hwmod omap44xx_uart4_hwmod = { |
| 2150 | .name = "uart4", |
| 2151 | .class = &omap44xx_uart_hwmod_class, |
| 2152 | .mpu_irqs = omap44xx_uart4_irqs, |
| 2153 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_uart4_irqs), |
| 2154 | .sdma_reqs = omap44xx_uart4_sdma_reqs, |
| 2155 | .sdma_reqs_cnt = ARRAY_SIZE(omap44xx_uart4_sdma_reqs), |
| 2156 | .main_clk = "uart4_fck", |
| 2157 | .prcm = { |
| 2158 | .omap4 = { |
| 2159 | .clkctrl_reg = OMAP4430_CM_L4PER_UART4_CLKCTRL, |
| 2160 | }, |
| 2161 | }, |
| 2162 | .slaves = omap44xx_uart4_slaves, |
| 2163 | .slaves_cnt = ARRAY_SIZE(omap44xx_uart4_slaves), |
| 2164 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 2165 | }; |
| 2166 | |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2167 | /* |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2168 | * 'wd_timer' class |
| 2169 | * 32-bit watchdog upward counter that generates a pulse on the reset pin on |
| 2170 | * overflow condition |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2171 | */ |
| 2172 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2173 | static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = { |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2174 | .rev_offs = 0x0000, |
| 2175 | .sysc_offs = 0x0010, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2176 | .syss_offs = 0x0014, |
| 2177 | .sysc_flags = (SYSC_HAS_EMUFREE | SYSC_HAS_SIDLEMODE | |
Benoit Cousson | 0cfe875 | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2178 | SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), |
Benoit Cousson | 7cffa6b | 2010-12-21 21:31:28 -0700 | [diff] [blame] | 2179 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 2180 | SIDLE_SMART_WKUP), |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2181 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 2182 | }; |
| 2183 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2184 | static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = { |
| 2185 | .name = "wd_timer", |
| 2186 | .sysc = &omap44xx_wd_timer_sysc, |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 2187 | .pre_shutdown = &omap2_wd_timer_disable, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2188 | }; |
| 2189 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2190 | /* wd_timer2 */ |
| 2191 | static struct omap_hwmod omap44xx_wd_timer2_hwmod; |
| 2192 | static struct omap_hwmod_irq_info omap44xx_wd_timer2_irqs[] = { |
| 2193 | { .irq = 80 + OMAP44XX_IRQ_GIC_START }, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2194 | }; |
| 2195 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2196 | static struct omap_hwmod_addr_space omap44xx_wd_timer2_addrs[] = { |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2197 | { |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2198 | .pa_start = 0x4a314000, |
| 2199 | .pa_end = 0x4a31407f, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2200 | .flags = ADDR_TYPE_RT |
| 2201 | }, |
| 2202 | }; |
| 2203 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2204 | /* l4_wkup -> wd_timer2 */ |
| 2205 | static struct omap_hwmod_ocp_if omap44xx_l4_wkup__wd_timer2 = { |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2206 | .master = &omap44xx_l4_wkup_hwmod, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2207 | .slave = &omap44xx_wd_timer2_hwmod, |
| 2208 | .clk = "l4_wkup_clk_mux_ck", |
| 2209 | .addr = omap44xx_wd_timer2_addrs, |
| 2210 | .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer2_addrs), |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2211 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2212 | }; |
| 2213 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2214 | /* wd_timer2 slave ports */ |
| 2215 | static struct omap_hwmod_ocp_if *omap44xx_wd_timer2_slaves[] = { |
| 2216 | &omap44xx_l4_wkup__wd_timer2, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2217 | }; |
| 2218 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2219 | static struct omap_hwmod omap44xx_wd_timer2_hwmod = { |
| 2220 | .name = "wd_timer2", |
| 2221 | .class = &omap44xx_wd_timer_hwmod_class, |
| 2222 | .mpu_irqs = omap44xx_wd_timer2_irqs, |
| 2223 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer2_irqs), |
| 2224 | .main_clk = "wd_timer2_fck", |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2225 | .prcm = { |
| 2226 | .omap4 = { |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2227 | .clkctrl_reg = OMAP4430_CM_WKUP_WDT2_CLKCTRL, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2228 | }, |
| 2229 | }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2230 | .slaves = omap44xx_wd_timer2_slaves, |
| 2231 | .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer2_slaves), |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2232 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 2233 | }; |
| 2234 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2235 | /* wd_timer3 */ |
| 2236 | static struct omap_hwmod omap44xx_wd_timer3_hwmod; |
| 2237 | static struct omap_hwmod_irq_info omap44xx_wd_timer3_irqs[] = { |
| 2238 | { .irq = 36 + OMAP44XX_IRQ_GIC_START }, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2239 | }; |
| 2240 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2241 | static struct omap_hwmod_addr_space omap44xx_wd_timer3_addrs[] = { |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2242 | { |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2243 | .pa_start = 0x40130000, |
| 2244 | .pa_end = 0x4013007f, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2245 | .flags = ADDR_TYPE_RT |
| 2246 | }, |
| 2247 | }; |
| 2248 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2249 | /* l4_abe -> wd_timer3 */ |
| 2250 | static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3 = { |
| 2251 | .master = &omap44xx_l4_abe_hwmod, |
| 2252 | .slave = &omap44xx_wd_timer3_hwmod, |
| 2253 | .clk = "ocp_abe_iclk", |
| 2254 | .addr = omap44xx_wd_timer3_addrs, |
| 2255 | .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_addrs), |
| 2256 | .user = OCP_USER_MPU, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2257 | }; |
| 2258 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2259 | static struct omap_hwmod_addr_space omap44xx_wd_timer3_dma_addrs[] = { |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2260 | { |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2261 | .pa_start = 0x49030000, |
| 2262 | .pa_end = 0x4903007f, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2263 | .flags = ADDR_TYPE_RT |
| 2264 | }, |
| 2265 | }; |
| 2266 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2267 | /* l4_abe -> wd_timer3 (dma) */ |
| 2268 | static struct omap_hwmod_ocp_if omap44xx_l4_abe__wd_timer3_dma = { |
| 2269 | .master = &omap44xx_l4_abe_hwmod, |
| 2270 | .slave = &omap44xx_wd_timer3_hwmod, |
| 2271 | .clk = "ocp_abe_iclk", |
| 2272 | .addr = omap44xx_wd_timer3_dma_addrs, |
| 2273 | .addr_cnt = ARRAY_SIZE(omap44xx_wd_timer3_dma_addrs), |
| 2274 | .user = OCP_USER_SDMA, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2275 | }; |
| 2276 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2277 | /* wd_timer3 slave ports */ |
| 2278 | static struct omap_hwmod_ocp_if *omap44xx_wd_timer3_slaves[] = { |
| 2279 | &omap44xx_l4_abe__wd_timer3, |
| 2280 | &omap44xx_l4_abe__wd_timer3_dma, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2281 | }; |
| 2282 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2283 | static struct omap_hwmod omap44xx_wd_timer3_hwmod = { |
| 2284 | .name = "wd_timer3", |
| 2285 | .class = &omap44xx_wd_timer_hwmod_class, |
| 2286 | .mpu_irqs = omap44xx_wd_timer3_irqs, |
| 2287 | .mpu_irqs_cnt = ARRAY_SIZE(omap44xx_wd_timer3_irqs), |
| 2288 | .main_clk = "wd_timer3_fck", |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2289 | .prcm = { |
| 2290 | .omap4 = { |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2291 | .clkctrl_reg = OMAP4430_CM1_ABE_WDT3_CLKCTRL, |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2292 | }, |
| 2293 | }, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2294 | .slaves = omap44xx_wd_timer3_slaves, |
| 2295 | .slaves_cnt = ARRAY_SIZE(omap44xx_wd_timer3_slaves), |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2296 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 2297 | }; |
| 2298 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2299 | static __initdata struct omap_hwmod *omap44xx_hwmods[] = { |
Benoit Cousson | fe13471 | 2010-12-23 22:30:32 +0000 | [diff] [blame] | 2300 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2301 | /* dmm class */ |
| 2302 | &omap44xx_dmm_hwmod, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2303 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2304 | /* emif_fw class */ |
| 2305 | &omap44xx_emif_fw_hwmod, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2306 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2307 | /* l3 class */ |
| 2308 | &omap44xx_l3_instr_hwmod, |
| 2309 | &omap44xx_l3_main_1_hwmod, |
| 2310 | &omap44xx_l3_main_2_hwmod, |
| 2311 | &omap44xx_l3_main_3_hwmod, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2312 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2313 | /* l4 class */ |
| 2314 | &omap44xx_l4_abe_hwmod, |
| 2315 | &omap44xx_l4_cfg_hwmod, |
| 2316 | &omap44xx_l4_per_hwmod, |
| 2317 | &omap44xx_l4_wkup_hwmod, |
Benoit Cousson | 531ce0d | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 2318 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2319 | /* mpu_bus class */ |
| 2320 | &omap44xx_mpu_private_hwmod, |
| 2321 | |
Benoit Cousson | d7cf5f3 | 2010-12-23 22:30:31 +0000 | [diff] [blame] | 2322 | /* dma class */ |
| 2323 | &omap44xx_dma_system_hwmod, |
| 2324 | |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 2325 | /* dsp class */ |
| 2326 | &omap44xx_dsp_hwmod, |
| 2327 | &omap44xx_dsp_c0_hwmod, |
| 2328 | |
Benoit Cousson | 9780a9c | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2329 | /* gpio class */ |
| 2330 | &omap44xx_gpio1_hwmod, |
| 2331 | &omap44xx_gpio2_hwmod, |
| 2332 | &omap44xx_gpio3_hwmod, |
| 2333 | &omap44xx_gpio4_hwmod, |
| 2334 | &omap44xx_gpio5_hwmod, |
| 2335 | &omap44xx_gpio6_hwmod, |
| 2336 | |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2337 | /* i2c class */ |
| 2338 | &omap44xx_i2c1_hwmod, |
| 2339 | &omap44xx_i2c2_hwmod, |
| 2340 | &omap44xx_i2c3_hwmod, |
| 2341 | &omap44xx_i2c4_hwmod, |
| 2342 | |
Benoit Cousson | 8f25bdc | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 2343 | /* iva class */ |
| 2344 | &omap44xx_iva_hwmod, |
| 2345 | &omap44xx_iva_seq0_hwmod, |
| 2346 | &omap44xx_iva_seq1_hwmod, |
| 2347 | |
Benoit Cousson | 9bcbd7f | 2011-02-02 17:52:13 +0530 | [diff] [blame^] | 2348 | /* mcspi class */ |
| 2349 | &omap44xx_mcspi1_hwmod, |
| 2350 | &omap44xx_mcspi2_hwmod, |
| 2351 | &omap44xx_mcspi3_hwmod, |
| 2352 | &omap44xx_mcspi4_hwmod, |
| 2353 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2354 | /* mpu class */ |
| 2355 | &omap44xx_mpu_hwmod, |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 2356 | |
Benoit Cousson | 1f6a717 | 2010-12-23 22:30:30 +0000 | [diff] [blame] | 2357 | /* smartreflex class */ |
| 2358 | &omap44xx_smartreflex_core_hwmod, |
| 2359 | &omap44xx_smartreflex_iva_hwmod, |
| 2360 | &omap44xx_smartreflex_mpu_hwmod, |
| 2361 | |
Benoit Cousson | d11c217 | 2011-02-02 12:04:36 +0000 | [diff] [blame] | 2362 | /* spinlock class */ |
| 2363 | &omap44xx_spinlock_hwmod, |
| 2364 | |
Benoit Cousson | db12ba5 | 2010-09-27 20:19:19 +0530 | [diff] [blame] | 2365 | /* uart class */ |
| 2366 | &omap44xx_uart1_hwmod, |
| 2367 | &omap44xx_uart2_hwmod, |
| 2368 | &omap44xx_uart3_hwmod, |
| 2369 | &omap44xx_uart4_hwmod, |
Benoit Cousson | 3b54baa | 2010-12-21 21:08:33 -0700 | [diff] [blame] | 2370 | |
| 2371 | /* wd_timer class */ |
| 2372 | &omap44xx_wd_timer2_hwmod, |
| 2373 | &omap44xx_wd_timer3_hwmod, |
| 2374 | |
Benoit Cousson | 55d2cb0 | 2010-05-12 17:54:36 +0200 | [diff] [blame] | 2375 | NULL, |
| 2376 | }; |
| 2377 | |
| 2378 | int __init omap44xx_hwmod_init(void) |
| 2379 | { |
| 2380 | return omap_hwmod_init(omap44xx_hwmods); |
| 2381 | } |
| 2382 | |