Vaibhav Hiremath | a2cfc50 | 2012-07-25 13:51:13 -0600 | [diff] [blame] | 1 | /* |
| 2 | * omap_hwmod_33xx_data.c: Hardware modules present on the AM33XX chips |
| 3 | * |
| 4 | * Copyright (C) {2012} Texas Instruments Incorporated - http://www.ti.com/ |
| 5 | * |
| 6 | * This file is automatically generated from the AM33XX hardware databases. |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation version 2. |
| 10 | * |
| 11 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any |
| 12 | * kind, whether express or implied; without even the implied warranty |
| 13 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
Tony Lindgren | 3a8761c | 2012-10-08 09:11:22 -0700 | [diff] [blame] | 17 | #include <linux/i2c-omap.h> |
| 18 | |
Tony Lindgren | 2a296c8 | 2012-10-02 17:41:35 -0700 | [diff] [blame^] | 19 | #include "omap_hwmod.h" |
Vaibhav Hiremath | a2cfc50 | 2012-07-25 13:51:13 -0600 | [diff] [blame] | 20 | #include <plat/cpu.h> |
Tony Lindgren | 11964f5 | 2012-09-12 21:29:07 -0700 | [diff] [blame] | 21 | #include <linux/platform_data/gpio-omap.h> |
Kevin Hilman | aa817b2 | 2012-09-20 09:38:14 -0700 | [diff] [blame] | 22 | #include <linux/platform_data/spi-omap2-mcspi.h> |
Vaibhav Hiremath | a2cfc50 | 2012-07-25 13:51:13 -0600 | [diff] [blame] | 23 | |
| 24 | #include "omap_hwmod_common_data.h" |
| 25 | |
| 26 | #include "control.h" |
| 27 | #include "cm33xx.h" |
| 28 | #include "prm33xx.h" |
| 29 | #include "prm-regbits-33xx.h" |
Tony Lindgren | 3a8761c | 2012-10-08 09:11:22 -0700 | [diff] [blame] | 30 | #include "i2c.h" |
Tony Lindgren | 68f39e7 | 2012-10-15 12:09:43 -0700 | [diff] [blame] | 31 | #include "mmc.h" |
Vaibhav Hiremath | a2cfc50 | 2012-07-25 13:51:13 -0600 | [diff] [blame] | 32 | |
Vaibhav Hiremath | a2cfc50 | 2012-07-25 13:51:13 -0600 | [diff] [blame] | 33 | /* |
| 34 | * IP blocks |
| 35 | */ |
| 36 | |
| 37 | /* |
| 38 | * 'emif_fw' class |
| 39 | * instance(s): emif_fw |
| 40 | */ |
| 41 | static struct omap_hwmod_class am33xx_emif_fw_hwmod_class = { |
| 42 | .name = "emif_fw", |
| 43 | }; |
| 44 | |
| 45 | /* emif_fw */ |
| 46 | static struct omap_hwmod am33xx_emif_fw_hwmod = { |
| 47 | .name = "emif_fw", |
| 48 | .class = &am33xx_emif_fw_hwmod_class, |
| 49 | .clkdm_name = "l4fw_clkdm", |
| 50 | .main_clk = "l4fw_gclk", |
| 51 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 52 | .prcm = { |
| 53 | .omap4 = { |
| 54 | .clkctrl_offs = AM33XX_CM_PER_EMIF_FW_CLKCTRL_OFFSET, |
| 55 | .modulemode = MODULEMODE_SWCTRL, |
| 56 | }, |
| 57 | }, |
| 58 | }; |
| 59 | |
| 60 | /* |
| 61 | * 'emif' class |
| 62 | * instance(s): emif |
| 63 | */ |
| 64 | static struct omap_hwmod_class_sysconfig am33xx_emif_sysc = { |
| 65 | .rev_offs = 0x0000, |
| 66 | }; |
| 67 | |
| 68 | static struct omap_hwmod_class am33xx_emif_hwmod_class = { |
| 69 | .name = "emif", |
| 70 | .sysc = &am33xx_emif_sysc, |
| 71 | }; |
| 72 | |
| 73 | static struct omap_hwmod_irq_info am33xx_emif_irqs[] = { |
| 74 | { .name = "ddrerr0", .irq = 101 + OMAP_INTC_START, }, |
| 75 | { .irq = -1 }, |
| 76 | }; |
| 77 | |
| 78 | /* emif */ |
| 79 | static struct omap_hwmod am33xx_emif_hwmod = { |
| 80 | .name = "emif", |
| 81 | .class = &am33xx_emif_hwmod_class, |
| 82 | .clkdm_name = "l3_clkdm", |
| 83 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 84 | .mpu_irqs = am33xx_emif_irqs, |
| 85 | .main_clk = "dpll_ddr_m2_div2_ck", |
| 86 | .prcm = { |
| 87 | .omap4 = { |
| 88 | .clkctrl_offs = AM33XX_CM_PER_EMIF_CLKCTRL_OFFSET, |
| 89 | .modulemode = MODULEMODE_SWCTRL, |
| 90 | }, |
| 91 | }, |
| 92 | }; |
| 93 | |
| 94 | /* |
| 95 | * 'l3' class |
| 96 | * instance(s): l3_main, l3_s, l3_instr |
| 97 | */ |
| 98 | static struct omap_hwmod_class am33xx_l3_hwmod_class = { |
| 99 | .name = "l3", |
| 100 | }; |
| 101 | |
| 102 | /* l3_main (l3_fast) */ |
| 103 | static struct omap_hwmod_irq_info am33xx_l3_main_irqs[] = { |
| 104 | { .name = "l3debug", .irq = 9 + OMAP_INTC_START, }, |
| 105 | { .name = "l3appint", .irq = 10 + OMAP_INTC_START, }, |
| 106 | { .irq = -1 }, |
| 107 | }; |
| 108 | |
| 109 | static struct omap_hwmod am33xx_l3_main_hwmod = { |
| 110 | .name = "l3_main", |
| 111 | .class = &am33xx_l3_hwmod_class, |
| 112 | .clkdm_name = "l3_clkdm", |
| 113 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 114 | .mpu_irqs = am33xx_l3_main_irqs, |
| 115 | .main_clk = "l3_gclk", |
| 116 | .prcm = { |
| 117 | .omap4 = { |
| 118 | .clkctrl_offs = AM33XX_CM_PER_L3_CLKCTRL_OFFSET, |
| 119 | .modulemode = MODULEMODE_SWCTRL, |
| 120 | }, |
| 121 | }, |
| 122 | }; |
| 123 | |
| 124 | /* l3_s */ |
| 125 | static struct omap_hwmod am33xx_l3_s_hwmod = { |
| 126 | .name = "l3_s", |
| 127 | .class = &am33xx_l3_hwmod_class, |
| 128 | .clkdm_name = "l3s_clkdm", |
| 129 | }; |
| 130 | |
| 131 | /* l3_instr */ |
| 132 | static struct omap_hwmod am33xx_l3_instr_hwmod = { |
| 133 | .name = "l3_instr", |
| 134 | .class = &am33xx_l3_hwmod_class, |
| 135 | .clkdm_name = "l3_clkdm", |
| 136 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 137 | .main_clk = "l3_gclk", |
| 138 | .prcm = { |
| 139 | .omap4 = { |
| 140 | .clkctrl_offs = AM33XX_CM_PER_L3_INSTR_CLKCTRL_OFFSET, |
| 141 | .modulemode = MODULEMODE_SWCTRL, |
| 142 | }, |
| 143 | }, |
| 144 | }; |
| 145 | |
| 146 | /* |
| 147 | * 'l4' class |
| 148 | * instance(s): l4_ls, l4_hs, l4_wkup, l4_fw |
| 149 | */ |
| 150 | static struct omap_hwmod_class am33xx_l4_hwmod_class = { |
| 151 | .name = "l4", |
| 152 | }; |
| 153 | |
| 154 | /* l4_ls */ |
| 155 | static struct omap_hwmod am33xx_l4_ls_hwmod = { |
| 156 | .name = "l4_ls", |
| 157 | .class = &am33xx_l4_hwmod_class, |
| 158 | .clkdm_name = "l4ls_clkdm", |
| 159 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 160 | .main_clk = "l4ls_gclk", |
| 161 | .prcm = { |
| 162 | .omap4 = { |
| 163 | .clkctrl_offs = AM33XX_CM_PER_L4LS_CLKCTRL_OFFSET, |
| 164 | .modulemode = MODULEMODE_SWCTRL, |
| 165 | }, |
| 166 | }, |
| 167 | }; |
| 168 | |
| 169 | /* l4_hs */ |
| 170 | static struct omap_hwmod am33xx_l4_hs_hwmod = { |
| 171 | .name = "l4_hs", |
| 172 | .class = &am33xx_l4_hwmod_class, |
| 173 | .clkdm_name = "l4hs_clkdm", |
| 174 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 175 | .main_clk = "l4hs_gclk", |
| 176 | .prcm = { |
| 177 | .omap4 = { |
| 178 | .clkctrl_offs = AM33XX_CM_PER_L4HS_CLKCTRL_OFFSET, |
| 179 | .modulemode = MODULEMODE_SWCTRL, |
| 180 | }, |
| 181 | }, |
| 182 | }; |
| 183 | |
| 184 | |
| 185 | /* l4_wkup */ |
| 186 | static struct omap_hwmod am33xx_l4_wkup_hwmod = { |
| 187 | .name = "l4_wkup", |
| 188 | .class = &am33xx_l4_hwmod_class, |
| 189 | .clkdm_name = "l4_wkup_clkdm", |
| 190 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 191 | .prcm = { |
| 192 | .omap4 = { |
| 193 | .clkctrl_offs = AM33XX_CM_WKUP_L4WKUP_CLKCTRL_OFFSET, |
| 194 | .modulemode = MODULEMODE_SWCTRL, |
| 195 | }, |
| 196 | }, |
| 197 | }; |
| 198 | |
| 199 | /* l4_fw */ |
| 200 | static struct omap_hwmod am33xx_l4_fw_hwmod = { |
| 201 | .name = "l4_fw", |
| 202 | .class = &am33xx_l4_hwmod_class, |
| 203 | .clkdm_name = "l4fw_clkdm", |
| 204 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 205 | .prcm = { |
| 206 | .omap4 = { |
| 207 | .clkctrl_offs = AM33XX_CM_PER_L4FW_CLKCTRL_OFFSET, |
| 208 | .modulemode = MODULEMODE_SWCTRL, |
| 209 | }, |
| 210 | }, |
| 211 | }; |
| 212 | |
| 213 | /* |
| 214 | * 'mpu' class |
| 215 | */ |
| 216 | static struct omap_hwmod_class am33xx_mpu_hwmod_class = { |
| 217 | .name = "mpu", |
| 218 | }; |
| 219 | |
| 220 | /* mpu */ |
| 221 | static struct omap_hwmod_irq_info am33xx_mpu_irqs[] = { |
| 222 | { .name = "emuint", .irq = 0 + OMAP_INTC_START, }, |
| 223 | { .name = "commtx", .irq = 1 + OMAP_INTC_START, }, |
| 224 | { .name = "commrx", .irq = 2 + OMAP_INTC_START, }, |
| 225 | { .name = "bench", .irq = 3 + OMAP_INTC_START, }, |
| 226 | { .irq = -1 }, |
| 227 | }; |
| 228 | |
| 229 | static struct omap_hwmod am33xx_mpu_hwmod = { |
| 230 | .name = "mpu", |
| 231 | .class = &am33xx_mpu_hwmod_class, |
| 232 | .clkdm_name = "mpu_clkdm", |
| 233 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 234 | .mpu_irqs = am33xx_mpu_irqs, |
| 235 | .main_clk = "dpll_mpu_m2_ck", |
| 236 | .prcm = { |
| 237 | .omap4 = { |
| 238 | .clkctrl_offs = AM33XX_CM_MPU_MPU_CLKCTRL_OFFSET, |
| 239 | .modulemode = MODULEMODE_SWCTRL, |
| 240 | }, |
| 241 | }, |
| 242 | }; |
| 243 | |
| 244 | /* |
| 245 | * 'wakeup m3' class |
| 246 | * Wakeup controller sub-system under wakeup domain |
| 247 | */ |
| 248 | static struct omap_hwmod_class am33xx_wkup_m3_hwmod_class = { |
| 249 | .name = "wkup_m3", |
| 250 | }; |
| 251 | |
| 252 | static struct omap_hwmod_rst_info am33xx_wkup_m3_resets[] = { |
| 253 | { .name = "wkup_m3", .rst_shift = 3, .st_shift = 5 }, |
| 254 | }; |
| 255 | |
| 256 | static struct omap_hwmod_irq_info am33xx_wkup_m3_irqs[] = { |
| 257 | { .name = "txev", .irq = 78 + OMAP_INTC_START, }, |
| 258 | { .irq = -1 }, |
| 259 | }; |
| 260 | |
| 261 | /* wkup_m3 */ |
| 262 | static struct omap_hwmod am33xx_wkup_m3_hwmod = { |
| 263 | .name = "wkup_m3", |
| 264 | .class = &am33xx_wkup_m3_hwmod_class, |
| 265 | .clkdm_name = "l4_wkup_aon_clkdm", |
| 266 | .flags = HWMOD_INIT_NO_RESET, /* Keep hardreset asserted */ |
| 267 | .mpu_irqs = am33xx_wkup_m3_irqs, |
| 268 | .main_clk = "dpll_core_m4_div2_ck", |
| 269 | .prcm = { |
| 270 | .omap4 = { |
| 271 | .clkctrl_offs = AM33XX_CM_WKUP_WKUP_M3_CLKCTRL_OFFSET, |
| 272 | .rstctrl_offs = AM33XX_RM_WKUP_RSTCTRL_OFFSET, |
| 273 | .modulemode = MODULEMODE_SWCTRL, |
| 274 | }, |
| 275 | }, |
| 276 | .rst_lines = am33xx_wkup_m3_resets, |
| 277 | .rst_lines_cnt = ARRAY_SIZE(am33xx_wkup_m3_resets), |
| 278 | }; |
| 279 | |
| 280 | /* |
| 281 | * 'pru-icss' class |
| 282 | * Programmable Real-Time Unit and Industrial Communication Subsystem |
| 283 | */ |
| 284 | static struct omap_hwmod_class am33xx_pruss_hwmod_class = { |
| 285 | .name = "pruss", |
| 286 | }; |
| 287 | |
| 288 | static struct omap_hwmod_rst_info am33xx_pruss_resets[] = { |
| 289 | { .name = "pruss", .rst_shift = 1 }, |
| 290 | }; |
| 291 | |
| 292 | static struct omap_hwmod_irq_info am33xx_pruss_irqs[] = { |
| 293 | { .name = "evtout0", .irq = 20 + OMAP_INTC_START, }, |
| 294 | { .name = "evtout1", .irq = 21 + OMAP_INTC_START, }, |
| 295 | { .name = "evtout2", .irq = 22 + OMAP_INTC_START, }, |
| 296 | { .name = "evtout3", .irq = 23 + OMAP_INTC_START, }, |
| 297 | { .name = "evtout4", .irq = 24 + OMAP_INTC_START, }, |
| 298 | { .name = "evtout5", .irq = 25 + OMAP_INTC_START, }, |
| 299 | { .name = "evtout6", .irq = 26 + OMAP_INTC_START, }, |
| 300 | { .name = "evtout7", .irq = 27 + OMAP_INTC_START, }, |
| 301 | { .irq = -1 }, |
| 302 | }; |
| 303 | |
| 304 | /* pru-icss */ |
| 305 | /* Pseudo hwmod for reset control purpose only */ |
| 306 | static struct omap_hwmod am33xx_pruss_hwmod = { |
| 307 | .name = "pruss", |
| 308 | .class = &am33xx_pruss_hwmod_class, |
| 309 | .clkdm_name = "pruss_ocp_clkdm", |
| 310 | .mpu_irqs = am33xx_pruss_irqs, |
| 311 | .main_clk = "pruss_ocp_gclk", |
| 312 | .prcm = { |
| 313 | .omap4 = { |
| 314 | .clkctrl_offs = AM33XX_CM_PER_PRUSS_CLKCTRL_OFFSET, |
| 315 | .rstctrl_offs = AM33XX_RM_PER_RSTCTRL_OFFSET, |
| 316 | .modulemode = MODULEMODE_SWCTRL, |
| 317 | }, |
| 318 | }, |
| 319 | .rst_lines = am33xx_pruss_resets, |
| 320 | .rst_lines_cnt = ARRAY_SIZE(am33xx_pruss_resets), |
| 321 | }; |
| 322 | |
| 323 | /* gfx */ |
| 324 | /* Pseudo hwmod for reset control purpose only */ |
| 325 | static struct omap_hwmod_class am33xx_gfx_hwmod_class = { |
| 326 | .name = "gfx", |
| 327 | }; |
| 328 | |
| 329 | static struct omap_hwmod_rst_info am33xx_gfx_resets[] = { |
| 330 | { .name = "gfx", .rst_shift = 0 }, |
| 331 | }; |
| 332 | |
| 333 | static struct omap_hwmod_irq_info am33xx_gfx_irqs[] = { |
| 334 | { .name = "gfxint", .irq = 37 + OMAP_INTC_START, }, |
| 335 | { .irq = -1 }, |
| 336 | }; |
| 337 | |
| 338 | static struct omap_hwmod am33xx_gfx_hwmod = { |
| 339 | .name = "gfx", |
| 340 | .class = &am33xx_gfx_hwmod_class, |
| 341 | .clkdm_name = "gfx_l3_clkdm", |
| 342 | .mpu_irqs = am33xx_gfx_irqs, |
| 343 | .main_clk = "gfx_fck_div_ck", |
| 344 | .prcm = { |
| 345 | .omap4 = { |
| 346 | .clkctrl_offs = AM33XX_CM_GFX_GFX_CLKCTRL_OFFSET, |
| 347 | .rstctrl_offs = AM33XX_RM_GFX_RSTCTRL_OFFSET, |
| 348 | .modulemode = MODULEMODE_SWCTRL, |
| 349 | }, |
| 350 | }, |
| 351 | .rst_lines = am33xx_gfx_resets, |
| 352 | .rst_lines_cnt = ARRAY_SIZE(am33xx_gfx_resets), |
| 353 | }; |
| 354 | |
| 355 | /* |
| 356 | * 'prcm' class |
| 357 | * power and reset manager (whole prcm infrastructure) |
| 358 | */ |
| 359 | static struct omap_hwmod_class am33xx_prcm_hwmod_class = { |
| 360 | .name = "prcm", |
| 361 | }; |
| 362 | |
| 363 | /* prcm */ |
| 364 | static struct omap_hwmod am33xx_prcm_hwmod = { |
| 365 | .name = "prcm", |
| 366 | .class = &am33xx_prcm_hwmod_class, |
| 367 | .clkdm_name = "l4_wkup_clkdm", |
| 368 | }; |
| 369 | |
| 370 | /* |
| 371 | * 'adc/tsc' class |
| 372 | * TouchScreen Controller (Anolog-To-Digital Converter) |
| 373 | */ |
| 374 | static struct omap_hwmod_class_sysconfig am33xx_adc_tsc_sysc = { |
| 375 | .rev_offs = 0x00, |
| 376 | .sysc_offs = 0x10, |
| 377 | .sysc_flags = SYSC_HAS_SIDLEMODE, |
| 378 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 379 | SIDLE_SMART_WKUP), |
| 380 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 381 | }; |
| 382 | |
| 383 | static struct omap_hwmod_class am33xx_adc_tsc_hwmod_class = { |
| 384 | .name = "adc_tsc", |
| 385 | .sysc = &am33xx_adc_tsc_sysc, |
| 386 | }; |
| 387 | |
| 388 | static struct omap_hwmod_irq_info am33xx_adc_tsc_irqs[] = { |
| 389 | { .irq = 16 + OMAP_INTC_START, }, |
| 390 | { .irq = -1 }, |
| 391 | }; |
| 392 | |
| 393 | static struct omap_hwmod am33xx_adc_tsc_hwmod = { |
| 394 | .name = "adc_tsc", |
| 395 | .class = &am33xx_adc_tsc_hwmod_class, |
| 396 | .clkdm_name = "l4_wkup_clkdm", |
| 397 | .mpu_irqs = am33xx_adc_tsc_irqs, |
| 398 | .main_clk = "adc_tsc_fck", |
| 399 | .prcm = { |
| 400 | .omap4 = { |
| 401 | .clkctrl_offs = AM33XX_CM_WKUP_ADC_TSC_CLKCTRL_OFFSET, |
| 402 | .modulemode = MODULEMODE_SWCTRL, |
| 403 | }, |
| 404 | }, |
| 405 | }; |
| 406 | |
| 407 | /* |
| 408 | * Modules omap_hwmod structures |
| 409 | * |
| 410 | * The following IPs are excluded for the moment because: |
| 411 | * - They do not need an explicit SW control using omap_hwmod API. |
| 412 | * - They still need to be validated with the driver |
| 413 | * properly adapted to omap_hwmod / omap_device |
| 414 | * |
| 415 | * - cEFUSE (doesn't fall under any ocp_if) |
| 416 | * - clkdiv32k |
| 417 | * - debugss |
| 418 | * - ocmc ram |
| 419 | * - ocp watch point |
| 420 | * - aes0 |
| 421 | * - sha0 |
| 422 | */ |
| 423 | #if 0 |
| 424 | /* |
| 425 | * 'cefuse' class |
| 426 | */ |
| 427 | static struct omap_hwmod_class am33xx_cefuse_hwmod_class = { |
| 428 | .name = "cefuse", |
| 429 | }; |
| 430 | |
| 431 | static struct omap_hwmod am33xx_cefuse_hwmod = { |
| 432 | .name = "cefuse", |
| 433 | .class = &am33xx_cefuse_hwmod_class, |
| 434 | .clkdm_name = "l4_cefuse_clkdm", |
| 435 | .main_clk = "cefuse_fck", |
| 436 | .prcm = { |
| 437 | .omap4 = { |
| 438 | .clkctrl_offs = AM33XX_CM_CEFUSE_CEFUSE_CLKCTRL_OFFSET, |
| 439 | .modulemode = MODULEMODE_SWCTRL, |
| 440 | }, |
| 441 | }, |
| 442 | }; |
| 443 | |
| 444 | /* |
| 445 | * 'clkdiv32k' class |
| 446 | */ |
| 447 | static struct omap_hwmod_class am33xx_clkdiv32k_hwmod_class = { |
| 448 | .name = "clkdiv32k", |
| 449 | }; |
| 450 | |
| 451 | static struct omap_hwmod am33xx_clkdiv32k_hwmod = { |
| 452 | .name = "clkdiv32k", |
| 453 | .class = &am33xx_clkdiv32k_hwmod_class, |
| 454 | .clkdm_name = "clk_24mhz_clkdm", |
| 455 | .main_clk = "clkdiv32k_ick", |
| 456 | .prcm = { |
| 457 | .omap4 = { |
| 458 | .clkctrl_offs = AM33XX_CM_PER_CLKDIV32K_CLKCTRL_OFFSET, |
| 459 | .modulemode = MODULEMODE_SWCTRL, |
| 460 | }, |
| 461 | }, |
| 462 | }; |
| 463 | |
| 464 | /* |
| 465 | * 'debugss' class |
| 466 | * debug sub system |
| 467 | */ |
| 468 | static struct omap_hwmod_class am33xx_debugss_hwmod_class = { |
| 469 | .name = "debugss", |
| 470 | }; |
| 471 | |
| 472 | static struct omap_hwmod am33xx_debugss_hwmod = { |
| 473 | .name = "debugss", |
| 474 | .class = &am33xx_debugss_hwmod_class, |
| 475 | .clkdm_name = "l3_aon_clkdm", |
| 476 | .main_clk = "debugss_ick", |
| 477 | .prcm = { |
| 478 | .omap4 = { |
| 479 | .clkctrl_offs = AM33XX_CM_WKUP_DEBUGSS_CLKCTRL_OFFSET, |
| 480 | .modulemode = MODULEMODE_SWCTRL, |
| 481 | }, |
| 482 | }, |
| 483 | }; |
| 484 | |
| 485 | /* ocmcram */ |
| 486 | static struct omap_hwmod_class am33xx_ocmcram_hwmod_class = { |
| 487 | .name = "ocmcram", |
| 488 | }; |
| 489 | |
| 490 | static struct omap_hwmod am33xx_ocmcram_hwmod = { |
| 491 | .name = "ocmcram", |
| 492 | .class = &am33xx_ocmcram_hwmod_class, |
| 493 | .clkdm_name = "l3_clkdm", |
| 494 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 495 | .main_clk = "l3_gclk", |
| 496 | .prcm = { |
| 497 | .omap4 = { |
| 498 | .clkctrl_offs = AM33XX_CM_PER_OCMCRAM_CLKCTRL_OFFSET, |
| 499 | .modulemode = MODULEMODE_SWCTRL, |
| 500 | }, |
| 501 | }, |
| 502 | }; |
| 503 | |
| 504 | /* ocpwp */ |
| 505 | static struct omap_hwmod_class am33xx_ocpwp_hwmod_class = { |
| 506 | .name = "ocpwp", |
| 507 | }; |
| 508 | |
| 509 | static struct omap_hwmod am33xx_ocpwp_hwmod = { |
| 510 | .name = "ocpwp", |
| 511 | .class = &am33xx_ocpwp_hwmod_class, |
| 512 | .clkdm_name = "l4ls_clkdm", |
| 513 | .main_clk = "l4ls_gclk", |
| 514 | .prcm = { |
| 515 | .omap4 = { |
| 516 | .clkctrl_offs = AM33XX_CM_PER_OCPWP_CLKCTRL_OFFSET, |
| 517 | .modulemode = MODULEMODE_SWCTRL, |
| 518 | }, |
| 519 | }, |
| 520 | }; |
| 521 | |
| 522 | /* |
| 523 | * 'aes' class |
| 524 | */ |
| 525 | static struct omap_hwmod_class am33xx_aes_hwmod_class = { |
| 526 | .name = "aes", |
| 527 | }; |
| 528 | |
| 529 | static struct omap_hwmod_irq_info am33xx_aes0_irqs[] = { |
| 530 | { .irq = 102 + OMAP_INTC_START, }, |
| 531 | { .irq = -1 }, |
| 532 | }; |
| 533 | |
| 534 | static struct omap_hwmod am33xx_aes0_hwmod = { |
| 535 | .name = "aes0", |
| 536 | .class = &am33xx_aes_hwmod_class, |
| 537 | .clkdm_name = "l3_clkdm", |
| 538 | .mpu_irqs = am33xx_aes0_irqs, |
| 539 | .main_clk = "l3_gclk", |
| 540 | .prcm = { |
| 541 | .omap4 = { |
| 542 | .clkctrl_offs = AM33XX_CM_PER_AES0_CLKCTRL_OFFSET, |
| 543 | .modulemode = MODULEMODE_SWCTRL, |
| 544 | }, |
| 545 | }, |
| 546 | }; |
| 547 | |
| 548 | /* sha0 */ |
| 549 | static struct omap_hwmod_class am33xx_sha0_hwmod_class = { |
| 550 | .name = "sha0", |
| 551 | }; |
| 552 | |
| 553 | static struct omap_hwmod_irq_info am33xx_sha0_irqs[] = { |
| 554 | { .irq = 108 + OMAP_INTC_START, }, |
| 555 | { .irq = -1 }, |
| 556 | }; |
| 557 | |
| 558 | static struct omap_hwmod am33xx_sha0_hwmod = { |
| 559 | .name = "sha0", |
| 560 | .class = &am33xx_sha0_hwmod_class, |
| 561 | .clkdm_name = "l3_clkdm", |
| 562 | .mpu_irqs = am33xx_sha0_irqs, |
| 563 | .main_clk = "l3_gclk", |
| 564 | .prcm = { |
| 565 | .omap4 = { |
| 566 | .clkctrl_offs = AM33XX_CM_PER_SHA0_CLKCTRL_OFFSET, |
| 567 | .modulemode = MODULEMODE_SWCTRL, |
| 568 | }, |
| 569 | }, |
| 570 | }; |
| 571 | |
| 572 | #endif |
| 573 | |
| 574 | /* 'smartreflex' class */ |
| 575 | static struct omap_hwmod_class am33xx_smartreflex_hwmod_class = { |
| 576 | .name = "smartreflex", |
| 577 | }; |
| 578 | |
| 579 | /* smartreflex0 */ |
| 580 | static struct omap_hwmod_irq_info am33xx_smartreflex0_irqs[] = { |
| 581 | { .irq = 120 + OMAP_INTC_START, }, |
| 582 | { .irq = -1 }, |
| 583 | }; |
| 584 | |
| 585 | static struct omap_hwmod am33xx_smartreflex0_hwmod = { |
| 586 | .name = "smartreflex0", |
| 587 | .class = &am33xx_smartreflex_hwmod_class, |
| 588 | .clkdm_name = "l4_wkup_clkdm", |
| 589 | .mpu_irqs = am33xx_smartreflex0_irqs, |
| 590 | .main_clk = "smartreflex0_fck", |
| 591 | .prcm = { |
| 592 | .omap4 = { |
| 593 | .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX0_CLKCTRL_OFFSET, |
| 594 | .modulemode = MODULEMODE_SWCTRL, |
| 595 | }, |
| 596 | }, |
| 597 | }; |
| 598 | |
| 599 | /* smartreflex1 */ |
| 600 | static struct omap_hwmod_irq_info am33xx_smartreflex1_irqs[] = { |
| 601 | { .irq = 121 + OMAP_INTC_START, }, |
| 602 | { .irq = -1 }, |
| 603 | }; |
| 604 | |
| 605 | static struct omap_hwmod am33xx_smartreflex1_hwmod = { |
| 606 | .name = "smartreflex1", |
| 607 | .class = &am33xx_smartreflex_hwmod_class, |
| 608 | .clkdm_name = "l4_wkup_clkdm", |
| 609 | .mpu_irqs = am33xx_smartreflex1_irqs, |
| 610 | .main_clk = "smartreflex1_fck", |
| 611 | .prcm = { |
| 612 | .omap4 = { |
| 613 | .clkctrl_offs = AM33XX_CM_WKUP_SMARTREFLEX1_CLKCTRL_OFFSET, |
| 614 | .modulemode = MODULEMODE_SWCTRL, |
| 615 | }, |
| 616 | }, |
| 617 | }; |
| 618 | |
| 619 | /* |
| 620 | * 'control' module class |
| 621 | */ |
| 622 | static struct omap_hwmod_class am33xx_control_hwmod_class = { |
| 623 | .name = "control", |
| 624 | }; |
| 625 | |
| 626 | static struct omap_hwmod_irq_info am33xx_control_irqs[] = { |
| 627 | { .irq = 8 + OMAP_INTC_START, }, |
| 628 | { .irq = -1 }, |
| 629 | }; |
| 630 | |
| 631 | static struct omap_hwmod am33xx_control_hwmod = { |
| 632 | .name = "control", |
| 633 | .class = &am33xx_control_hwmod_class, |
| 634 | .clkdm_name = "l4_wkup_clkdm", |
| 635 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 636 | .mpu_irqs = am33xx_control_irqs, |
| 637 | .main_clk = "dpll_core_m4_div2_ck", |
| 638 | .prcm = { |
| 639 | .omap4 = { |
| 640 | .clkctrl_offs = AM33XX_CM_WKUP_CONTROL_CLKCTRL_OFFSET, |
| 641 | .modulemode = MODULEMODE_SWCTRL, |
| 642 | }, |
| 643 | }, |
| 644 | }; |
| 645 | |
| 646 | /* |
| 647 | * 'cpgmac' class |
| 648 | * cpsw/cpgmac sub system |
| 649 | */ |
| 650 | static struct omap_hwmod_class_sysconfig am33xx_cpgmac_sysc = { |
| 651 | .rev_offs = 0x0, |
| 652 | .sysc_offs = 0x8, |
| 653 | .syss_offs = 0x4, |
| 654 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE | |
| 655 | SYSS_HAS_RESET_STATUS), |
| 656 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | MSTANDBY_FORCE | |
| 657 | MSTANDBY_NO), |
| 658 | .sysc_fields = &omap_hwmod_sysc_type3, |
| 659 | }; |
| 660 | |
| 661 | static struct omap_hwmod_class am33xx_cpgmac0_hwmod_class = { |
| 662 | .name = "cpgmac0", |
| 663 | .sysc = &am33xx_cpgmac_sysc, |
| 664 | }; |
| 665 | |
| 666 | static struct omap_hwmod_irq_info am33xx_cpgmac0_irqs[] = { |
| 667 | { .name = "c0_rx_thresh_pend", .irq = 40 + OMAP_INTC_START, }, |
| 668 | { .name = "c0_rx_pend", .irq = 41 + OMAP_INTC_START, }, |
| 669 | { .name = "c0_tx_pend", .irq = 42 + OMAP_INTC_START, }, |
| 670 | { .name = "c0_misc_pend", .irq = 43 + OMAP_INTC_START, }, |
| 671 | { .irq = -1 }, |
| 672 | }; |
| 673 | |
| 674 | static struct omap_hwmod am33xx_cpgmac0_hwmod = { |
| 675 | .name = "cpgmac0", |
| 676 | .class = &am33xx_cpgmac0_hwmod_class, |
| 677 | .clkdm_name = "cpsw_125mhz_clkdm", |
| 678 | .mpu_irqs = am33xx_cpgmac0_irqs, |
| 679 | .main_clk = "cpsw_125mhz_gclk", |
| 680 | .prcm = { |
| 681 | .omap4 = { |
| 682 | .clkctrl_offs = AM33XX_CM_PER_CPGMAC0_CLKCTRL_OFFSET, |
| 683 | .modulemode = MODULEMODE_SWCTRL, |
| 684 | }, |
| 685 | }, |
| 686 | }; |
| 687 | |
| 688 | /* |
| 689 | * dcan class |
| 690 | */ |
| 691 | static struct omap_hwmod_class am33xx_dcan_hwmod_class = { |
| 692 | .name = "d_can", |
| 693 | }; |
| 694 | |
| 695 | /* dcan0 */ |
| 696 | static struct omap_hwmod_irq_info am33xx_dcan0_irqs[] = { |
| 697 | { .name = "d_can_ms", .irq = 52 + OMAP_INTC_START, }, |
| 698 | { .name = "d_can_mo", .irq = 53 + OMAP_INTC_START, }, |
| 699 | { .irq = -1 }, |
| 700 | }; |
| 701 | |
| 702 | static struct omap_hwmod am33xx_dcan0_hwmod = { |
| 703 | .name = "d_can0", |
| 704 | .class = &am33xx_dcan_hwmod_class, |
| 705 | .clkdm_name = "l4ls_clkdm", |
| 706 | .mpu_irqs = am33xx_dcan0_irqs, |
| 707 | .main_clk = "dcan0_fck", |
| 708 | .prcm = { |
| 709 | .omap4 = { |
| 710 | .clkctrl_offs = AM33XX_CM_PER_DCAN0_CLKCTRL_OFFSET, |
| 711 | .modulemode = MODULEMODE_SWCTRL, |
| 712 | }, |
| 713 | }, |
| 714 | }; |
| 715 | |
| 716 | /* dcan1 */ |
| 717 | static struct omap_hwmod_irq_info am33xx_dcan1_irqs[] = { |
| 718 | { .name = "d_can_ms", .irq = 55 + OMAP_INTC_START, }, |
| 719 | { .name = "d_can_mo", .irq = 56 + OMAP_INTC_START, }, |
| 720 | { .irq = -1 }, |
| 721 | }; |
| 722 | static struct omap_hwmod am33xx_dcan1_hwmod = { |
| 723 | .name = "d_can1", |
| 724 | .class = &am33xx_dcan_hwmod_class, |
| 725 | .clkdm_name = "l4ls_clkdm", |
| 726 | .mpu_irqs = am33xx_dcan1_irqs, |
| 727 | .main_clk = "dcan1_fck", |
| 728 | .prcm = { |
| 729 | .omap4 = { |
| 730 | .clkctrl_offs = AM33XX_CM_PER_DCAN1_CLKCTRL_OFFSET, |
| 731 | .modulemode = MODULEMODE_SWCTRL, |
| 732 | }, |
| 733 | }, |
| 734 | }; |
| 735 | |
| 736 | /* elm */ |
| 737 | static struct omap_hwmod_class_sysconfig am33xx_elm_sysc = { |
| 738 | .rev_offs = 0x0000, |
| 739 | .sysc_offs = 0x0010, |
| 740 | .syss_offs = 0x0014, |
| 741 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 742 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE | |
| 743 | SYSS_HAS_RESET_STATUS), |
| 744 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 745 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 746 | }; |
| 747 | |
| 748 | static struct omap_hwmod_class am33xx_elm_hwmod_class = { |
| 749 | .name = "elm", |
| 750 | .sysc = &am33xx_elm_sysc, |
| 751 | }; |
| 752 | |
| 753 | static struct omap_hwmod_irq_info am33xx_elm_irqs[] = { |
| 754 | { .irq = 4 + OMAP_INTC_START, }, |
| 755 | { .irq = -1 }, |
| 756 | }; |
| 757 | |
| 758 | static struct omap_hwmod am33xx_elm_hwmod = { |
| 759 | .name = "elm", |
| 760 | .class = &am33xx_elm_hwmod_class, |
| 761 | .clkdm_name = "l4ls_clkdm", |
| 762 | .mpu_irqs = am33xx_elm_irqs, |
| 763 | .main_clk = "l4ls_gclk", |
| 764 | .prcm = { |
| 765 | .omap4 = { |
| 766 | .clkctrl_offs = AM33XX_CM_PER_ELM_CLKCTRL_OFFSET, |
| 767 | .modulemode = MODULEMODE_SWCTRL, |
| 768 | }, |
| 769 | }, |
| 770 | }; |
| 771 | |
| 772 | /* |
| 773 | * 'epwmss' class: ecap0,1,2, ehrpwm0,1,2 |
| 774 | */ |
| 775 | static struct omap_hwmod_class_sysconfig am33xx_epwmss_sysc = { |
| 776 | .rev_offs = 0x0, |
| 777 | .sysc_offs = 0x4, |
| 778 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE), |
| 779 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 780 | SIDLE_SMART_WKUP | MSTANDBY_FORCE | MSTANDBY_NO | |
| 781 | MSTANDBY_SMART | MSTANDBY_SMART_WKUP), |
| 782 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 783 | }; |
| 784 | |
| 785 | static struct omap_hwmod_class am33xx_epwmss_hwmod_class = { |
| 786 | .name = "epwmss", |
| 787 | .sysc = &am33xx_epwmss_sysc, |
| 788 | }; |
| 789 | |
| 790 | /* ehrpwm0 */ |
| 791 | static struct omap_hwmod_irq_info am33xx_ehrpwm0_irqs[] = { |
| 792 | { .name = "int", .irq = 86 + OMAP_INTC_START, }, |
| 793 | { .name = "tzint", .irq = 58 + OMAP_INTC_START, }, |
| 794 | { .irq = -1 }, |
| 795 | }; |
| 796 | |
| 797 | static struct omap_hwmod am33xx_ehrpwm0_hwmod = { |
| 798 | .name = "ehrpwm0", |
| 799 | .class = &am33xx_epwmss_hwmod_class, |
| 800 | .clkdm_name = "l4ls_clkdm", |
| 801 | .mpu_irqs = am33xx_ehrpwm0_irqs, |
| 802 | .main_clk = "l4ls_gclk", |
| 803 | .prcm = { |
| 804 | .omap4 = { |
| 805 | .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET, |
| 806 | .modulemode = MODULEMODE_SWCTRL, |
| 807 | }, |
| 808 | }, |
| 809 | }; |
| 810 | |
| 811 | /* ehrpwm1 */ |
| 812 | static struct omap_hwmod_irq_info am33xx_ehrpwm1_irqs[] = { |
| 813 | { .name = "int", .irq = 87 + OMAP_INTC_START, }, |
| 814 | { .name = "tzint", .irq = 59 + OMAP_INTC_START, }, |
| 815 | { .irq = -1 }, |
| 816 | }; |
| 817 | |
| 818 | static struct omap_hwmod am33xx_ehrpwm1_hwmod = { |
| 819 | .name = "ehrpwm1", |
| 820 | .class = &am33xx_epwmss_hwmod_class, |
| 821 | .clkdm_name = "l4ls_clkdm", |
| 822 | .mpu_irqs = am33xx_ehrpwm1_irqs, |
| 823 | .main_clk = "l4ls_gclk", |
| 824 | .prcm = { |
| 825 | .omap4 = { |
| 826 | .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET, |
| 827 | .modulemode = MODULEMODE_SWCTRL, |
| 828 | }, |
| 829 | }, |
| 830 | }; |
| 831 | |
| 832 | /* ehrpwm2 */ |
| 833 | static struct omap_hwmod_irq_info am33xx_ehrpwm2_irqs[] = { |
| 834 | { .name = "int", .irq = 39 + OMAP_INTC_START, }, |
| 835 | { .name = "tzint", .irq = 60 + OMAP_INTC_START, }, |
| 836 | { .irq = -1 }, |
| 837 | }; |
| 838 | |
| 839 | static struct omap_hwmod am33xx_ehrpwm2_hwmod = { |
| 840 | .name = "ehrpwm2", |
| 841 | .class = &am33xx_epwmss_hwmod_class, |
| 842 | .clkdm_name = "l4ls_clkdm", |
| 843 | .mpu_irqs = am33xx_ehrpwm2_irqs, |
| 844 | .main_clk = "l4ls_gclk", |
| 845 | .prcm = { |
| 846 | .omap4 = { |
| 847 | .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET, |
| 848 | .modulemode = MODULEMODE_SWCTRL, |
| 849 | }, |
| 850 | }, |
| 851 | }; |
| 852 | |
| 853 | /* ecap0 */ |
| 854 | static struct omap_hwmod_irq_info am33xx_ecap0_irqs[] = { |
| 855 | { .irq = 31 + OMAP_INTC_START, }, |
| 856 | { .irq = -1 }, |
| 857 | }; |
| 858 | |
| 859 | static struct omap_hwmod am33xx_ecap0_hwmod = { |
| 860 | .name = "ecap0", |
| 861 | .class = &am33xx_epwmss_hwmod_class, |
| 862 | .clkdm_name = "l4ls_clkdm", |
| 863 | .mpu_irqs = am33xx_ecap0_irqs, |
| 864 | .main_clk = "l4ls_gclk", |
| 865 | .prcm = { |
| 866 | .omap4 = { |
| 867 | .clkctrl_offs = AM33XX_CM_PER_EPWMSS0_CLKCTRL_OFFSET, |
| 868 | .modulemode = MODULEMODE_SWCTRL, |
| 869 | }, |
| 870 | }, |
| 871 | }; |
| 872 | |
| 873 | /* ecap1 */ |
| 874 | static struct omap_hwmod_irq_info am33xx_ecap1_irqs[] = { |
| 875 | { .irq = 47 + OMAP_INTC_START, }, |
| 876 | { .irq = -1 }, |
| 877 | }; |
| 878 | |
| 879 | static struct omap_hwmod am33xx_ecap1_hwmod = { |
| 880 | .name = "ecap1", |
| 881 | .class = &am33xx_epwmss_hwmod_class, |
| 882 | .clkdm_name = "l4ls_clkdm", |
| 883 | .mpu_irqs = am33xx_ecap1_irqs, |
| 884 | .main_clk = "l4ls_gclk", |
| 885 | .prcm = { |
| 886 | .omap4 = { |
| 887 | .clkctrl_offs = AM33XX_CM_PER_EPWMSS1_CLKCTRL_OFFSET, |
| 888 | .modulemode = MODULEMODE_SWCTRL, |
| 889 | }, |
| 890 | }, |
| 891 | }; |
| 892 | |
| 893 | /* ecap2 */ |
| 894 | static struct omap_hwmod_irq_info am33xx_ecap2_irqs[] = { |
| 895 | { .irq = 61 + OMAP_INTC_START, }, |
| 896 | { .irq = -1 }, |
| 897 | }; |
| 898 | |
| 899 | static struct omap_hwmod am33xx_ecap2_hwmod = { |
| 900 | .name = "ecap2", |
| 901 | .mpu_irqs = am33xx_ecap2_irqs, |
| 902 | .class = &am33xx_epwmss_hwmod_class, |
| 903 | .clkdm_name = "l4ls_clkdm", |
| 904 | .main_clk = "l4ls_gclk", |
| 905 | .prcm = { |
| 906 | .omap4 = { |
| 907 | .clkctrl_offs = AM33XX_CM_PER_EPWMSS2_CLKCTRL_OFFSET, |
| 908 | .modulemode = MODULEMODE_SWCTRL, |
| 909 | }, |
| 910 | }, |
| 911 | }; |
| 912 | |
| 913 | /* |
| 914 | * 'gpio' class: for gpio 0,1,2,3 |
| 915 | */ |
| 916 | static struct omap_hwmod_class_sysconfig am33xx_gpio_sysc = { |
| 917 | .rev_offs = 0x0000, |
| 918 | .sysc_offs = 0x0010, |
| 919 | .syss_offs = 0x0114, |
| 920 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_ENAWAKEUP | |
| 921 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | |
| 922 | SYSS_HAS_RESET_STATUS), |
| 923 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 924 | SIDLE_SMART_WKUP), |
| 925 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 926 | }; |
| 927 | |
| 928 | static struct omap_hwmod_class am33xx_gpio_hwmod_class = { |
| 929 | .name = "gpio", |
| 930 | .sysc = &am33xx_gpio_sysc, |
| 931 | .rev = 2, |
| 932 | }; |
| 933 | |
| 934 | static struct omap_gpio_dev_attr gpio_dev_attr = { |
| 935 | .bank_width = 32, |
| 936 | .dbck_flag = true, |
| 937 | }; |
| 938 | |
| 939 | /* gpio0 */ |
| 940 | static struct omap_hwmod_opt_clk gpio0_opt_clks[] = { |
| 941 | { .role = "dbclk", .clk = "gpio0_dbclk" }, |
| 942 | }; |
| 943 | |
| 944 | static struct omap_hwmod_irq_info am33xx_gpio0_irqs[] = { |
| 945 | { .irq = 96 + OMAP_INTC_START, }, |
| 946 | { .irq = -1 }, |
| 947 | }; |
| 948 | |
| 949 | static struct omap_hwmod am33xx_gpio0_hwmod = { |
| 950 | .name = "gpio1", |
| 951 | .class = &am33xx_gpio_hwmod_class, |
| 952 | .clkdm_name = "l4_wkup_clkdm", |
| 953 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 954 | .mpu_irqs = am33xx_gpio0_irqs, |
| 955 | .main_clk = "dpll_core_m4_div2_ck", |
| 956 | .prcm = { |
| 957 | .omap4 = { |
| 958 | .clkctrl_offs = AM33XX_CM_WKUP_GPIO0_CLKCTRL_OFFSET, |
| 959 | .modulemode = MODULEMODE_SWCTRL, |
| 960 | }, |
| 961 | }, |
| 962 | .opt_clks = gpio0_opt_clks, |
| 963 | .opt_clks_cnt = ARRAY_SIZE(gpio0_opt_clks), |
| 964 | .dev_attr = &gpio_dev_attr, |
| 965 | }; |
| 966 | |
| 967 | /* gpio1 */ |
| 968 | static struct omap_hwmod_irq_info am33xx_gpio1_irqs[] = { |
| 969 | { .irq = 98 + OMAP_INTC_START, }, |
| 970 | { .irq = -1 }, |
| 971 | }; |
| 972 | |
| 973 | static struct omap_hwmod_opt_clk gpio1_opt_clks[] = { |
| 974 | { .role = "dbclk", .clk = "gpio1_dbclk" }, |
| 975 | }; |
| 976 | |
| 977 | static struct omap_hwmod am33xx_gpio1_hwmod = { |
| 978 | .name = "gpio2", |
| 979 | .class = &am33xx_gpio_hwmod_class, |
| 980 | .clkdm_name = "l4ls_clkdm", |
| 981 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 982 | .mpu_irqs = am33xx_gpio1_irqs, |
| 983 | .main_clk = "l4ls_gclk", |
| 984 | .prcm = { |
| 985 | .omap4 = { |
| 986 | .clkctrl_offs = AM33XX_CM_PER_GPIO1_CLKCTRL_OFFSET, |
| 987 | .modulemode = MODULEMODE_SWCTRL, |
| 988 | }, |
| 989 | }, |
| 990 | .opt_clks = gpio1_opt_clks, |
| 991 | .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks), |
| 992 | .dev_attr = &gpio_dev_attr, |
| 993 | }; |
| 994 | |
| 995 | /* gpio2 */ |
| 996 | static struct omap_hwmod_irq_info am33xx_gpio2_irqs[] = { |
| 997 | { .irq = 32 + OMAP_INTC_START, }, |
| 998 | { .irq = -1 }, |
| 999 | }; |
| 1000 | |
| 1001 | static struct omap_hwmod_opt_clk gpio2_opt_clks[] = { |
| 1002 | { .role = "dbclk", .clk = "gpio2_dbclk" }, |
| 1003 | }; |
| 1004 | |
| 1005 | static struct omap_hwmod am33xx_gpio2_hwmod = { |
| 1006 | .name = "gpio3", |
| 1007 | .class = &am33xx_gpio_hwmod_class, |
| 1008 | .clkdm_name = "l4ls_clkdm", |
| 1009 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 1010 | .mpu_irqs = am33xx_gpio2_irqs, |
| 1011 | .main_clk = "l4ls_gclk", |
| 1012 | .prcm = { |
| 1013 | .omap4 = { |
| 1014 | .clkctrl_offs = AM33XX_CM_PER_GPIO2_CLKCTRL_OFFSET, |
| 1015 | .modulemode = MODULEMODE_SWCTRL, |
| 1016 | }, |
| 1017 | }, |
| 1018 | .opt_clks = gpio2_opt_clks, |
| 1019 | .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks), |
| 1020 | .dev_attr = &gpio_dev_attr, |
| 1021 | }; |
| 1022 | |
| 1023 | /* gpio3 */ |
| 1024 | static struct omap_hwmod_irq_info am33xx_gpio3_irqs[] = { |
| 1025 | { .irq = 62 + OMAP_INTC_START, }, |
| 1026 | { .irq = -1 }, |
| 1027 | }; |
| 1028 | |
| 1029 | static struct omap_hwmod_opt_clk gpio3_opt_clks[] = { |
| 1030 | { .role = "dbclk", .clk = "gpio3_dbclk" }, |
| 1031 | }; |
| 1032 | |
| 1033 | static struct omap_hwmod am33xx_gpio3_hwmod = { |
| 1034 | .name = "gpio4", |
| 1035 | .class = &am33xx_gpio_hwmod_class, |
| 1036 | .clkdm_name = "l4ls_clkdm", |
| 1037 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 1038 | .mpu_irqs = am33xx_gpio3_irqs, |
| 1039 | .main_clk = "l4ls_gclk", |
| 1040 | .prcm = { |
| 1041 | .omap4 = { |
| 1042 | .clkctrl_offs = AM33XX_CM_PER_GPIO3_CLKCTRL_OFFSET, |
| 1043 | .modulemode = MODULEMODE_SWCTRL, |
| 1044 | }, |
| 1045 | }, |
| 1046 | .opt_clks = gpio3_opt_clks, |
| 1047 | .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks), |
| 1048 | .dev_attr = &gpio_dev_attr, |
| 1049 | }; |
| 1050 | |
| 1051 | /* gpmc */ |
| 1052 | static struct omap_hwmod_class_sysconfig gpmc_sysc = { |
| 1053 | .rev_offs = 0x0, |
| 1054 | .sysc_offs = 0x10, |
| 1055 | .syss_offs = 0x14, |
| 1056 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE | |
| 1057 | SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), |
| 1058 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1059 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1060 | }; |
| 1061 | |
| 1062 | static struct omap_hwmod_class am33xx_gpmc_hwmod_class = { |
| 1063 | .name = "gpmc", |
| 1064 | .sysc = &gpmc_sysc, |
| 1065 | }; |
| 1066 | |
| 1067 | static struct omap_hwmod_irq_info am33xx_gpmc_irqs[] = { |
| 1068 | { .irq = 100 + OMAP_INTC_START, }, |
| 1069 | { .irq = -1 }, |
| 1070 | }; |
| 1071 | |
| 1072 | static struct omap_hwmod am33xx_gpmc_hwmod = { |
| 1073 | .name = "gpmc", |
| 1074 | .class = &am33xx_gpmc_hwmod_class, |
| 1075 | .clkdm_name = "l3s_clkdm", |
| 1076 | .flags = (HWMOD_INIT_NO_IDLE | HWMOD_INIT_NO_RESET), |
| 1077 | .mpu_irqs = am33xx_gpmc_irqs, |
| 1078 | .main_clk = "l3s_gclk", |
| 1079 | .prcm = { |
| 1080 | .omap4 = { |
| 1081 | .clkctrl_offs = AM33XX_CM_PER_GPMC_CLKCTRL_OFFSET, |
| 1082 | .modulemode = MODULEMODE_SWCTRL, |
| 1083 | }, |
| 1084 | }, |
| 1085 | }; |
| 1086 | |
| 1087 | /* 'i2c' class */ |
| 1088 | static struct omap_hwmod_class_sysconfig am33xx_i2c_sysc = { |
| 1089 | .sysc_offs = 0x0010, |
| 1090 | .syss_offs = 0x0090, |
| 1091 | .sysc_flags = (SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY | |
| 1092 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE | |
| 1093 | SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), |
| 1094 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1095 | SIDLE_SMART_WKUP), |
| 1096 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1097 | }; |
| 1098 | |
| 1099 | static struct omap_hwmod_class i2c_class = { |
| 1100 | .name = "i2c", |
| 1101 | .sysc = &am33xx_i2c_sysc, |
| 1102 | .rev = OMAP_I2C_IP_VERSION_2, |
| 1103 | .reset = &omap_i2c_reset, |
| 1104 | }; |
| 1105 | |
| 1106 | static struct omap_i2c_dev_attr i2c_dev_attr = { |
| 1107 | .flags = OMAP_I2C_FLAG_BUS_SHIFT_NONE | |
| 1108 | OMAP_I2C_FLAG_RESET_REGS_POSTIDLE, |
| 1109 | }; |
| 1110 | |
| 1111 | /* i2c1 */ |
| 1112 | static struct omap_hwmod_irq_info i2c1_mpu_irqs[] = { |
| 1113 | { .irq = 70 + OMAP_INTC_START, }, |
| 1114 | { .irq = -1 }, |
| 1115 | }; |
| 1116 | |
| 1117 | static struct omap_hwmod_dma_info i2c1_edma_reqs[] = { |
| 1118 | { .name = "tx", .dma_req = 0, }, |
| 1119 | { .name = "rx", .dma_req = 0, }, |
| 1120 | { .dma_req = -1 } |
| 1121 | }; |
| 1122 | |
| 1123 | static struct omap_hwmod am33xx_i2c1_hwmod = { |
| 1124 | .name = "i2c1", |
| 1125 | .class = &i2c_class, |
| 1126 | .clkdm_name = "l4_wkup_clkdm", |
| 1127 | .mpu_irqs = i2c1_mpu_irqs, |
| 1128 | .sdma_reqs = i2c1_edma_reqs, |
| 1129 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
| 1130 | .main_clk = "dpll_per_m2_div4_wkupdm_ck", |
| 1131 | .prcm = { |
| 1132 | .omap4 = { |
| 1133 | .clkctrl_offs = AM33XX_CM_WKUP_I2C0_CLKCTRL_OFFSET, |
| 1134 | .modulemode = MODULEMODE_SWCTRL, |
| 1135 | }, |
| 1136 | }, |
| 1137 | .dev_attr = &i2c_dev_attr, |
| 1138 | }; |
| 1139 | |
| 1140 | /* i2c1 */ |
| 1141 | static struct omap_hwmod_irq_info i2c2_mpu_irqs[] = { |
| 1142 | { .irq = 71 + OMAP_INTC_START, }, |
| 1143 | { .irq = -1 }, |
| 1144 | }; |
| 1145 | |
| 1146 | static struct omap_hwmod_dma_info i2c2_edma_reqs[] = { |
| 1147 | { .name = "tx", .dma_req = 0, }, |
| 1148 | { .name = "rx", .dma_req = 0, }, |
| 1149 | { .dma_req = -1 } |
| 1150 | }; |
| 1151 | |
| 1152 | static struct omap_hwmod am33xx_i2c2_hwmod = { |
| 1153 | .name = "i2c2", |
| 1154 | .class = &i2c_class, |
| 1155 | .clkdm_name = "l4ls_clkdm", |
| 1156 | .mpu_irqs = i2c2_mpu_irqs, |
| 1157 | .sdma_reqs = i2c2_edma_reqs, |
| 1158 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
| 1159 | .main_clk = "dpll_per_m2_div4_ck", |
| 1160 | .prcm = { |
| 1161 | .omap4 = { |
| 1162 | .clkctrl_offs = AM33XX_CM_PER_I2C1_CLKCTRL_OFFSET, |
| 1163 | .modulemode = MODULEMODE_SWCTRL, |
| 1164 | }, |
| 1165 | }, |
| 1166 | .dev_attr = &i2c_dev_attr, |
| 1167 | }; |
| 1168 | |
| 1169 | /* i2c3 */ |
| 1170 | static struct omap_hwmod_dma_info i2c3_edma_reqs[] = { |
| 1171 | { .name = "tx", .dma_req = 0, }, |
| 1172 | { .name = "rx", .dma_req = 0, }, |
| 1173 | { .dma_req = -1 } |
| 1174 | }; |
| 1175 | |
| 1176 | static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = { |
| 1177 | { .irq = 30 + OMAP_INTC_START, }, |
| 1178 | { .irq = -1 }, |
| 1179 | }; |
| 1180 | |
| 1181 | static struct omap_hwmod am33xx_i2c3_hwmod = { |
| 1182 | .name = "i2c3", |
| 1183 | .class = &i2c_class, |
| 1184 | .clkdm_name = "l4ls_clkdm", |
| 1185 | .mpu_irqs = i2c3_mpu_irqs, |
| 1186 | .sdma_reqs = i2c3_edma_reqs, |
| 1187 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
| 1188 | .main_clk = "dpll_per_m2_div4_ck", |
| 1189 | .prcm = { |
| 1190 | .omap4 = { |
| 1191 | .clkctrl_offs = AM33XX_CM_PER_I2C2_CLKCTRL_OFFSET, |
| 1192 | .modulemode = MODULEMODE_SWCTRL, |
| 1193 | }, |
| 1194 | }, |
| 1195 | .dev_attr = &i2c_dev_attr, |
| 1196 | }; |
| 1197 | |
| 1198 | |
| 1199 | /* lcdc */ |
| 1200 | static struct omap_hwmod_class_sysconfig lcdc_sysc = { |
| 1201 | .rev_offs = 0x0, |
| 1202 | .sysc_offs = 0x54, |
| 1203 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE), |
| 1204 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1205 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 1206 | }; |
| 1207 | |
| 1208 | static struct omap_hwmod_class am33xx_lcdc_hwmod_class = { |
| 1209 | .name = "lcdc", |
| 1210 | .sysc = &lcdc_sysc, |
| 1211 | }; |
| 1212 | |
| 1213 | static struct omap_hwmod_irq_info am33xx_lcdc_irqs[] = { |
| 1214 | { .irq = 36 + OMAP_INTC_START, }, |
| 1215 | { .irq = -1 }, |
| 1216 | }; |
| 1217 | |
| 1218 | static struct omap_hwmod am33xx_lcdc_hwmod = { |
| 1219 | .name = "lcdc", |
| 1220 | .class = &am33xx_lcdc_hwmod_class, |
| 1221 | .clkdm_name = "lcdc_clkdm", |
| 1222 | .mpu_irqs = am33xx_lcdc_irqs, |
| 1223 | .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY, |
| 1224 | .main_clk = "lcd_gclk", |
| 1225 | .prcm = { |
| 1226 | .omap4 = { |
| 1227 | .clkctrl_offs = AM33XX_CM_PER_LCDC_CLKCTRL_OFFSET, |
| 1228 | .modulemode = MODULEMODE_SWCTRL, |
| 1229 | }, |
| 1230 | }, |
| 1231 | }; |
| 1232 | |
| 1233 | /* |
| 1234 | * 'mailbox' class |
| 1235 | * mailbox module allowing communication between the on-chip processors using a |
| 1236 | * queued mailbox-interrupt mechanism. |
| 1237 | */ |
| 1238 | static struct omap_hwmod_class_sysconfig am33xx_mailbox_sysc = { |
| 1239 | .rev_offs = 0x0000, |
| 1240 | .sysc_offs = 0x0010, |
| 1241 | .sysc_flags = (SYSC_HAS_RESET_STATUS | SYSC_HAS_SIDLEMODE | |
| 1242 | SYSC_HAS_SOFTRESET), |
| 1243 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1244 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 1245 | }; |
| 1246 | |
| 1247 | static struct omap_hwmod_class am33xx_mailbox_hwmod_class = { |
| 1248 | .name = "mailbox", |
| 1249 | .sysc = &am33xx_mailbox_sysc, |
| 1250 | }; |
| 1251 | |
| 1252 | static struct omap_hwmod_irq_info am33xx_mailbox_irqs[] = { |
| 1253 | { .irq = 77 + OMAP_INTC_START, }, |
| 1254 | { .irq = -1 }, |
| 1255 | }; |
| 1256 | |
| 1257 | static struct omap_hwmod am33xx_mailbox_hwmod = { |
| 1258 | .name = "mailbox", |
| 1259 | .class = &am33xx_mailbox_hwmod_class, |
| 1260 | .clkdm_name = "l4ls_clkdm", |
| 1261 | .mpu_irqs = am33xx_mailbox_irqs, |
| 1262 | .main_clk = "l4ls_gclk", |
| 1263 | .prcm = { |
| 1264 | .omap4 = { |
| 1265 | .clkctrl_offs = AM33XX_CM_PER_MAILBOX0_CLKCTRL_OFFSET, |
| 1266 | .modulemode = MODULEMODE_SWCTRL, |
| 1267 | }, |
| 1268 | }, |
| 1269 | }; |
| 1270 | |
| 1271 | /* |
| 1272 | * 'mcasp' class |
| 1273 | */ |
| 1274 | static struct omap_hwmod_class_sysconfig am33xx_mcasp_sysc = { |
| 1275 | .rev_offs = 0x0, |
| 1276 | .sysc_offs = 0x4, |
| 1277 | .sysc_flags = SYSC_HAS_SIDLEMODE, |
| 1278 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1279 | .sysc_fields = &omap_hwmod_sysc_type3, |
| 1280 | }; |
| 1281 | |
| 1282 | static struct omap_hwmod_class am33xx_mcasp_hwmod_class = { |
| 1283 | .name = "mcasp", |
| 1284 | .sysc = &am33xx_mcasp_sysc, |
| 1285 | }; |
| 1286 | |
| 1287 | /* mcasp0 */ |
| 1288 | static struct omap_hwmod_irq_info am33xx_mcasp0_irqs[] = { |
| 1289 | { .name = "ax", .irq = 80 + OMAP_INTC_START, }, |
| 1290 | { .name = "ar", .irq = 81 + OMAP_INTC_START, }, |
| 1291 | { .irq = -1 }, |
| 1292 | }; |
| 1293 | |
| 1294 | static struct omap_hwmod_dma_info am33xx_mcasp0_edma_reqs[] = { |
| 1295 | { .name = "tx", .dma_req = 8, }, |
| 1296 | { .name = "rx", .dma_req = 9, }, |
| 1297 | { .dma_req = -1 } |
| 1298 | }; |
| 1299 | |
| 1300 | static struct omap_hwmod am33xx_mcasp0_hwmod = { |
| 1301 | .name = "mcasp0", |
| 1302 | .class = &am33xx_mcasp_hwmod_class, |
| 1303 | .clkdm_name = "l3s_clkdm", |
| 1304 | .mpu_irqs = am33xx_mcasp0_irqs, |
| 1305 | .sdma_reqs = am33xx_mcasp0_edma_reqs, |
| 1306 | .main_clk = "mcasp0_fck", |
| 1307 | .prcm = { |
| 1308 | .omap4 = { |
| 1309 | .clkctrl_offs = AM33XX_CM_PER_MCASP0_CLKCTRL_OFFSET, |
| 1310 | .modulemode = MODULEMODE_SWCTRL, |
| 1311 | }, |
| 1312 | }, |
| 1313 | }; |
| 1314 | |
| 1315 | /* mcasp1 */ |
| 1316 | static struct omap_hwmod_irq_info am33xx_mcasp1_irqs[] = { |
| 1317 | { .name = "ax", .irq = 82 + OMAP_INTC_START, }, |
| 1318 | { .name = "ar", .irq = 83 + OMAP_INTC_START, }, |
| 1319 | { .irq = -1 }, |
| 1320 | }; |
| 1321 | |
| 1322 | static struct omap_hwmod_dma_info am33xx_mcasp1_edma_reqs[] = { |
| 1323 | { .name = "tx", .dma_req = 10, }, |
| 1324 | { .name = "rx", .dma_req = 11, }, |
| 1325 | { .dma_req = -1 } |
| 1326 | }; |
| 1327 | |
| 1328 | static struct omap_hwmod am33xx_mcasp1_hwmod = { |
| 1329 | .name = "mcasp1", |
| 1330 | .class = &am33xx_mcasp_hwmod_class, |
| 1331 | .clkdm_name = "l3s_clkdm", |
| 1332 | .mpu_irqs = am33xx_mcasp1_irqs, |
| 1333 | .sdma_reqs = am33xx_mcasp1_edma_reqs, |
| 1334 | .main_clk = "mcasp1_fck", |
| 1335 | .prcm = { |
| 1336 | .omap4 = { |
| 1337 | .clkctrl_offs = AM33XX_CM_PER_MCASP1_CLKCTRL_OFFSET, |
| 1338 | .modulemode = MODULEMODE_SWCTRL, |
| 1339 | }, |
| 1340 | }, |
| 1341 | }; |
| 1342 | |
| 1343 | /* 'mmc' class */ |
| 1344 | static struct omap_hwmod_class_sysconfig am33xx_mmc_sysc = { |
| 1345 | .rev_offs = 0x1fc, |
| 1346 | .sysc_offs = 0x10, |
| 1347 | .syss_offs = 0x14, |
| 1348 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 1349 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 1350 | SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS), |
| 1351 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1352 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1353 | }; |
| 1354 | |
| 1355 | static struct omap_hwmod_class am33xx_mmc_hwmod_class = { |
| 1356 | .name = "mmc", |
| 1357 | .sysc = &am33xx_mmc_sysc, |
| 1358 | }; |
| 1359 | |
| 1360 | /* mmc0 */ |
| 1361 | static struct omap_hwmod_irq_info am33xx_mmc0_irqs[] = { |
| 1362 | { .irq = 64 + OMAP_INTC_START, }, |
| 1363 | { .irq = -1 }, |
| 1364 | }; |
| 1365 | |
| 1366 | static struct omap_hwmod_dma_info am33xx_mmc0_edma_reqs[] = { |
| 1367 | { .name = "tx", .dma_req = 24, }, |
| 1368 | { .name = "rx", .dma_req = 25, }, |
| 1369 | { .dma_req = -1 } |
| 1370 | }; |
| 1371 | |
| 1372 | static struct omap_mmc_dev_attr am33xx_mmc0_dev_attr = { |
| 1373 | .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT, |
| 1374 | }; |
| 1375 | |
| 1376 | static struct omap_hwmod am33xx_mmc0_hwmod = { |
| 1377 | .name = "mmc1", |
| 1378 | .class = &am33xx_mmc_hwmod_class, |
| 1379 | .clkdm_name = "l4ls_clkdm", |
| 1380 | .mpu_irqs = am33xx_mmc0_irqs, |
| 1381 | .sdma_reqs = am33xx_mmc0_edma_reqs, |
| 1382 | .main_clk = "mmc_clk", |
| 1383 | .prcm = { |
| 1384 | .omap4 = { |
| 1385 | .clkctrl_offs = AM33XX_CM_PER_MMC0_CLKCTRL_OFFSET, |
| 1386 | .modulemode = MODULEMODE_SWCTRL, |
| 1387 | }, |
| 1388 | }, |
| 1389 | .dev_attr = &am33xx_mmc0_dev_attr, |
| 1390 | }; |
| 1391 | |
| 1392 | /* mmc1 */ |
| 1393 | static struct omap_hwmod_irq_info am33xx_mmc1_irqs[] = { |
| 1394 | { .irq = 28 + OMAP_INTC_START, }, |
| 1395 | { .irq = -1 }, |
| 1396 | }; |
| 1397 | |
| 1398 | static struct omap_hwmod_dma_info am33xx_mmc1_edma_reqs[] = { |
| 1399 | { .name = "tx", .dma_req = 2, }, |
| 1400 | { .name = "rx", .dma_req = 3, }, |
| 1401 | { .dma_req = -1 } |
| 1402 | }; |
| 1403 | |
| 1404 | static struct omap_mmc_dev_attr am33xx_mmc1_dev_attr = { |
| 1405 | .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT, |
| 1406 | }; |
| 1407 | |
| 1408 | static struct omap_hwmod am33xx_mmc1_hwmod = { |
| 1409 | .name = "mmc2", |
| 1410 | .class = &am33xx_mmc_hwmod_class, |
| 1411 | .clkdm_name = "l4ls_clkdm", |
| 1412 | .mpu_irqs = am33xx_mmc1_irqs, |
| 1413 | .sdma_reqs = am33xx_mmc1_edma_reqs, |
| 1414 | .main_clk = "mmc_clk", |
| 1415 | .prcm = { |
| 1416 | .omap4 = { |
| 1417 | .clkctrl_offs = AM33XX_CM_PER_MMC1_CLKCTRL_OFFSET, |
| 1418 | .modulemode = MODULEMODE_SWCTRL, |
| 1419 | }, |
| 1420 | }, |
| 1421 | .dev_attr = &am33xx_mmc1_dev_attr, |
| 1422 | }; |
| 1423 | |
| 1424 | /* mmc2 */ |
| 1425 | static struct omap_hwmod_irq_info am33xx_mmc2_irqs[] = { |
| 1426 | { .irq = 29 + OMAP_INTC_START, }, |
| 1427 | { .irq = -1 }, |
| 1428 | }; |
| 1429 | |
| 1430 | static struct omap_hwmod_dma_info am33xx_mmc2_edma_reqs[] = { |
| 1431 | { .name = "tx", .dma_req = 64, }, |
| 1432 | { .name = "rx", .dma_req = 65, }, |
| 1433 | { .dma_req = -1 } |
| 1434 | }; |
| 1435 | |
| 1436 | static struct omap_mmc_dev_attr am33xx_mmc2_dev_attr = { |
| 1437 | .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT, |
| 1438 | }; |
| 1439 | static struct omap_hwmod am33xx_mmc2_hwmod = { |
| 1440 | .name = "mmc3", |
| 1441 | .class = &am33xx_mmc_hwmod_class, |
| 1442 | .clkdm_name = "l3s_clkdm", |
| 1443 | .mpu_irqs = am33xx_mmc2_irqs, |
| 1444 | .sdma_reqs = am33xx_mmc2_edma_reqs, |
| 1445 | .main_clk = "mmc_clk", |
| 1446 | .prcm = { |
| 1447 | .omap4 = { |
| 1448 | .clkctrl_offs = AM33XX_CM_PER_MMC2_CLKCTRL_OFFSET, |
| 1449 | .modulemode = MODULEMODE_SWCTRL, |
| 1450 | }, |
| 1451 | }, |
| 1452 | .dev_attr = &am33xx_mmc2_dev_attr, |
| 1453 | }; |
| 1454 | |
| 1455 | /* |
| 1456 | * 'rtc' class |
| 1457 | * rtc subsystem |
| 1458 | */ |
| 1459 | static struct omap_hwmod_class_sysconfig am33xx_rtc_sysc = { |
| 1460 | .rev_offs = 0x0074, |
| 1461 | .sysc_offs = 0x0078, |
| 1462 | .sysc_flags = SYSC_HAS_SIDLEMODE, |
| 1463 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | |
| 1464 | SIDLE_SMART | SIDLE_SMART_WKUP), |
| 1465 | .sysc_fields = &omap_hwmod_sysc_type3, |
| 1466 | }; |
| 1467 | |
| 1468 | static struct omap_hwmod_class am33xx_rtc_hwmod_class = { |
| 1469 | .name = "rtc", |
| 1470 | .sysc = &am33xx_rtc_sysc, |
| 1471 | }; |
| 1472 | |
| 1473 | static struct omap_hwmod_irq_info am33xx_rtc_irqs[] = { |
| 1474 | { .name = "rtcint", .irq = 75 + OMAP_INTC_START, }, |
| 1475 | { .name = "rtcalarmint", .irq = 76 + OMAP_INTC_START, }, |
| 1476 | { .irq = -1 }, |
| 1477 | }; |
| 1478 | |
| 1479 | static struct omap_hwmod am33xx_rtc_hwmod = { |
| 1480 | .name = "rtc", |
| 1481 | .class = &am33xx_rtc_hwmod_class, |
| 1482 | .clkdm_name = "l4_rtc_clkdm", |
| 1483 | .mpu_irqs = am33xx_rtc_irqs, |
| 1484 | .main_clk = "clk_32768_ck", |
| 1485 | .prcm = { |
| 1486 | .omap4 = { |
| 1487 | .clkctrl_offs = AM33XX_CM_RTC_RTC_CLKCTRL_OFFSET, |
| 1488 | .modulemode = MODULEMODE_SWCTRL, |
| 1489 | }, |
| 1490 | }, |
| 1491 | }; |
| 1492 | |
| 1493 | /* 'spi' class */ |
| 1494 | static struct omap_hwmod_class_sysconfig am33xx_mcspi_sysc = { |
| 1495 | .rev_offs = 0x0000, |
| 1496 | .sysc_offs = 0x0110, |
| 1497 | .syss_offs = 0x0114, |
| 1498 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 1499 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE | |
| 1500 | SYSS_HAS_RESET_STATUS), |
| 1501 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1502 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1503 | }; |
| 1504 | |
| 1505 | static struct omap_hwmod_class am33xx_spi_hwmod_class = { |
| 1506 | .name = "mcspi", |
| 1507 | .sysc = &am33xx_mcspi_sysc, |
| 1508 | .rev = OMAP4_MCSPI_REV, |
| 1509 | }; |
| 1510 | |
| 1511 | /* spi0 */ |
| 1512 | static struct omap_hwmod_irq_info am33xx_spi0_irqs[] = { |
| 1513 | { .irq = 65 + OMAP_INTC_START, }, |
| 1514 | { .irq = -1 }, |
| 1515 | }; |
| 1516 | |
| 1517 | static struct omap_hwmod_dma_info am33xx_mcspi0_edma_reqs[] = { |
| 1518 | { .name = "rx0", .dma_req = 17 }, |
| 1519 | { .name = "tx0", .dma_req = 16 }, |
| 1520 | { .name = "rx1", .dma_req = 19 }, |
| 1521 | { .name = "tx1", .dma_req = 18 }, |
| 1522 | { .dma_req = -1 } |
| 1523 | }; |
| 1524 | |
| 1525 | static struct omap2_mcspi_dev_attr mcspi_attrib = { |
| 1526 | .num_chipselect = 2, |
| 1527 | }; |
| 1528 | static struct omap_hwmod am33xx_spi0_hwmod = { |
| 1529 | .name = "spi0", |
| 1530 | .class = &am33xx_spi_hwmod_class, |
| 1531 | .clkdm_name = "l4ls_clkdm", |
| 1532 | .mpu_irqs = am33xx_spi0_irqs, |
| 1533 | .sdma_reqs = am33xx_mcspi0_edma_reqs, |
| 1534 | .main_clk = "dpll_per_m2_div4_ck", |
| 1535 | .prcm = { |
| 1536 | .omap4 = { |
| 1537 | .clkctrl_offs = AM33XX_CM_PER_SPI0_CLKCTRL_OFFSET, |
| 1538 | .modulemode = MODULEMODE_SWCTRL, |
| 1539 | }, |
| 1540 | }, |
| 1541 | .dev_attr = &mcspi_attrib, |
| 1542 | }; |
| 1543 | |
| 1544 | /* spi1 */ |
| 1545 | static struct omap_hwmod_irq_info am33xx_spi1_irqs[] = { |
| 1546 | { .irq = 125 + OMAP_INTC_START, }, |
| 1547 | { .irq = -1 }, |
| 1548 | }; |
| 1549 | |
| 1550 | static struct omap_hwmod_dma_info am33xx_mcspi1_edma_reqs[] = { |
| 1551 | { .name = "rx0", .dma_req = 43 }, |
| 1552 | { .name = "tx0", .dma_req = 42 }, |
| 1553 | { .name = "rx1", .dma_req = 45 }, |
| 1554 | { .name = "tx1", .dma_req = 44 }, |
| 1555 | { .dma_req = -1 } |
| 1556 | }; |
| 1557 | |
| 1558 | static struct omap_hwmod am33xx_spi1_hwmod = { |
| 1559 | .name = "spi1", |
| 1560 | .class = &am33xx_spi_hwmod_class, |
| 1561 | .clkdm_name = "l4ls_clkdm", |
| 1562 | .mpu_irqs = am33xx_spi1_irqs, |
| 1563 | .sdma_reqs = am33xx_mcspi1_edma_reqs, |
| 1564 | .main_clk = "dpll_per_m2_div4_ck", |
| 1565 | .prcm = { |
| 1566 | .omap4 = { |
| 1567 | .clkctrl_offs = AM33XX_CM_PER_SPI1_CLKCTRL_OFFSET, |
| 1568 | .modulemode = MODULEMODE_SWCTRL, |
| 1569 | }, |
| 1570 | }, |
| 1571 | .dev_attr = &mcspi_attrib, |
| 1572 | }; |
| 1573 | |
| 1574 | /* |
| 1575 | * 'spinlock' class |
| 1576 | * spinlock provides hardware assistance for synchronizing the |
| 1577 | * processes running on multiple processors |
| 1578 | */ |
| 1579 | static struct omap_hwmod_class am33xx_spinlock_hwmod_class = { |
| 1580 | .name = "spinlock", |
| 1581 | }; |
| 1582 | |
| 1583 | static struct omap_hwmod am33xx_spinlock_hwmod = { |
| 1584 | .name = "spinlock", |
| 1585 | .class = &am33xx_spinlock_hwmod_class, |
| 1586 | .clkdm_name = "l4ls_clkdm", |
| 1587 | .main_clk = "l4ls_gclk", |
| 1588 | .prcm = { |
| 1589 | .omap4 = { |
| 1590 | .clkctrl_offs = AM33XX_CM_PER_SPINLOCK_CLKCTRL_OFFSET, |
| 1591 | .modulemode = MODULEMODE_SWCTRL, |
| 1592 | }, |
| 1593 | }, |
| 1594 | }; |
| 1595 | |
| 1596 | /* 'timer 2-7' class */ |
| 1597 | static struct omap_hwmod_class_sysconfig am33xx_timer_sysc = { |
| 1598 | .rev_offs = 0x0000, |
| 1599 | .sysc_offs = 0x0010, |
| 1600 | .syss_offs = 0x0014, |
| 1601 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET), |
| 1602 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1603 | SIDLE_SMART_WKUP), |
| 1604 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 1605 | }; |
| 1606 | |
| 1607 | static struct omap_hwmod_class am33xx_timer_hwmod_class = { |
| 1608 | .name = "timer", |
| 1609 | .sysc = &am33xx_timer_sysc, |
| 1610 | }; |
| 1611 | |
| 1612 | /* timer1 1ms */ |
| 1613 | static struct omap_hwmod_class_sysconfig am33xx_timer1ms_sysc = { |
| 1614 | .rev_offs = 0x0000, |
| 1615 | .sysc_offs = 0x0010, |
| 1616 | .syss_offs = 0x0014, |
| 1617 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 1618 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE | |
| 1619 | SYSS_HAS_RESET_STATUS), |
| 1620 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1621 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1622 | }; |
| 1623 | |
| 1624 | static struct omap_hwmod_class am33xx_timer1ms_hwmod_class = { |
| 1625 | .name = "timer", |
| 1626 | .sysc = &am33xx_timer1ms_sysc, |
| 1627 | }; |
| 1628 | |
| 1629 | static struct omap_hwmod_irq_info am33xx_timer1_irqs[] = { |
| 1630 | { .irq = 67 + OMAP_INTC_START, }, |
| 1631 | { .irq = -1 }, |
| 1632 | }; |
| 1633 | |
| 1634 | static struct omap_hwmod am33xx_timer1_hwmod = { |
| 1635 | .name = "timer1", |
| 1636 | .class = &am33xx_timer1ms_hwmod_class, |
| 1637 | .clkdm_name = "l4_wkup_clkdm", |
| 1638 | .mpu_irqs = am33xx_timer1_irqs, |
| 1639 | .main_clk = "timer1_fck", |
| 1640 | .prcm = { |
| 1641 | .omap4 = { |
| 1642 | .clkctrl_offs = AM33XX_CM_WKUP_TIMER1_CLKCTRL_OFFSET, |
| 1643 | .modulemode = MODULEMODE_SWCTRL, |
| 1644 | }, |
| 1645 | }, |
| 1646 | }; |
| 1647 | |
| 1648 | static struct omap_hwmod_irq_info am33xx_timer2_irqs[] = { |
| 1649 | { .irq = 68 + OMAP_INTC_START, }, |
| 1650 | { .irq = -1 }, |
| 1651 | }; |
| 1652 | |
| 1653 | static struct omap_hwmod am33xx_timer2_hwmod = { |
| 1654 | .name = "timer2", |
| 1655 | .class = &am33xx_timer_hwmod_class, |
| 1656 | .clkdm_name = "l4ls_clkdm", |
| 1657 | .mpu_irqs = am33xx_timer2_irqs, |
| 1658 | .main_clk = "timer2_fck", |
| 1659 | .prcm = { |
| 1660 | .omap4 = { |
| 1661 | .clkctrl_offs = AM33XX_CM_PER_TIMER2_CLKCTRL_OFFSET, |
| 1662 | .modulemode = MODULEMODE_SWCTRL, |
| 1663 | }, |
| 1664 | }, |
| 1665 | }; |
| 1666 | |
| 1667 | static struct omap_hwmod_irq_info am33xx_timer3_irqs[] = { |
| 1668 | { .irq = 69 + OMAP_INTC_START, }, |
| 1669 | { .irq = -1 }, |
| 1670 | }; |
| 1671 | |
| 1672 | static struct omap_hwmod am33xx_timer3_hwmod = { |
| 1673 | .name = "timer3", |
| 1674 | .class = &am33xx_timer_hwmod_class, |
| 1675 | .clkdm_name = "l4ls_clkdm", |
| 1676 | .mpu_irqs = am33xx_timer3_irqs, |
| 1677 | .main_clk = "timer3_fck", |
| 1678 | .prcm = { |
| 1679 | .omap4 = { |
| 1680 | .clkctrl_offs = AM33XX_CM_PER_TIMER3_CLKCTRL_OFFSET, |
| 1681 | .modulemode = MODULEMODE_SWCTRL, |
| 1682 | }, |
| 1683 | }, |
| 1684 | }; |
| 1685 | |
| 1686 | static struct omap_hwmod_irq_info am33xx_timer4_irqs[] = { |
| 1687 | { .irq = 92 + OMAP_INTC_START, }, |
| 1688 | { .irq = -1 }, |
| 1689 | }; |
| 1690 | |
| 1691 | static struct omap_hwmod am33xx_timer4_hwmod = { |
| 1692 | .name = "timer4", |
| 1693 | .class = &am33xx_timer_hwmod_class, |
| 1694 | .clkdm_name = "l4ls_clkdm", |
| 1695 | .mpu_irqs = am33xx_timer4_irqs, |
| 1696 | .main_clk = "timer4_fck", |
| 1697 | .prcm = { |
| 1698 | .omap4 = { |
| 1699 | .clkctrl_offs = AM33XX_CM_PER_TIMER4_CLKCTRL_OFFSET, |
| 1700 | .modulemode = MODULEMODE_SWCTRL, |
| 1701 | }, |
| 1702 | }, |
| 1703 | }; |
| 1704 | |
| 1705 | static struct omap_hwmod_irq_info am33xx_timer5_irqs[] = { |
| 1706 | { .irq = 93 + OMAP_INTC_START, }, |
| 1707 | { .irq = -1 }, |
| 1708 | }; |
| 1709 | |
| 1710 | static struct omap_hwmod am33xx_timer5_hwmod = { |
| 1711 | .name = "timer5", |
| 1712 | .class = &am33xx_timer_hwmod_class, |
| 1713 | .clkdm_name = "l4ls_clkdm", |
| 1714 | .mpu_irqs = am33xx_timer5_irqs, |
| 1715 | .main_clk = "timer5_fck", |
| 1716 | .prcm = { |
| 1717 | .omap4 = { |
| 1718 | .clkctrl_offs = AM33XX_CM_PER_TIMER5_CLKCTRL_OFFSET, |
| 1719 | .modulemode = MODULEMODE_SWCTRL, |
| 1720 | }, |
| 1721 | }, |
| 1722 | }; |
| 1723 | |
| 1724 | static struct omap_hwmod_irq_info am33xx_timer6_irqs[] = { |
| 1725 | { .irq = 94 + OMAP_INTC_START, }, |
| 1726 | { .irq = -1 }, |
| 1727 | }; |
| 1728 | |
| 1729 | static struct omap_hwmod am33xx_timer6_hwmod = { |
| 1730 | .name = "timer6", |
| 1731 | .class = &am33xx_timer_hwmod_class, |
| 1732 | .clkdm_name = "l4ls_clkdm", |
| 1733 | .mpu_irqs = am33xx_timer6_irqs, |
| 1734 | .main_clk = "timer6_fck", |
| 1735 | .prcm = { |
| 1736 | .omap4 = { |
| 1737 | .clkctrl_offs = AM33XX_CM_PER_TIMER6_CLKCTRL_OFFSET, |
| 1738 | .modulemode = MODULEMODE_SWCTRL, |
| 1739 | }, |
| 1740 | }, |
| 1741 | }; |
| 1742 | |
| 1743 | static struct omap_hwmod_irq_info am33xx_timer7_irqs[] = { |
| 1744 | { .irq = 95 + OMAP_INTC_START, }, |
| 1745 | { .irq = -1 }, |
| 1746 | }; |
| 1747 | |
| 1748 | static struct omap_hwmod am33xx_timer7_hwmod = { |
| 1749 | .name = "timer7", |
| 1750 | .class = &am33xx_timer_hwmod_class, |
| 1751 | .clkdm_name = "l4ls_clkdm", |
| 1752 | .mpu_irqs = am33xx_timer7_irqs, |
| 1753 | .main_clk = "timer7_fck", |
| 1754 | .prcm = { |
| 1755 | .omap4 = { |
| 1756 | .clkctrl_offs = AM33XX_CM_PER_TIMER7_CLKCTRL_OFFSET, |
| 1757 | .modulemode = MODULEMODE_SWCTRL, |
| 1758 | }, |
| 1759 | }, |
| 1760 | }; |
| 1761 | |
| 1762 | /* tpcc */ |
| 1763 | static struct omap_hwmod_class am33xx_tpcc_hwmod_class = { |
| 1764 | .name = "tpcc", |
| 1765 | }; |
| 1766 | |
| 1767 | static struct omap_hwmod_irq_info am33xx_tpcc_irqs[] = { |
| 1768 | { .name = "edma0", .irq = 12 + OMAP_INTC_START, }, |
| 1769 | { .name = "edma0_mperr", .irq = 13 + OMAP_INTC_START, }, |
| 1770 | { .name = "edma0_err", .irq = 14 + OMAP_INTC_START, }, |
| 1771 | { .irq = -1 }, |
| 1772 | }; |
| 1773 | |
| 1774 | static struct omap_hwmod am33xx_tpcc_hwmod = { |
| 1775 | .name = "tpcc", |
| 1776 | .class = &am33xx_tpcc_hwmod_class, |
| 1777 | .clkdm_name = "l3_clkdm", |
| 1778 | .mpu_irqs = am33xx_tpcc_irqs, |
| 1779 | .main_clk = "l3_gclk", |
| 1780 | .prcm = { |
| 1781 | .omap4 = { |
| 1782 | .clkctrl_offs = AM33XX_CM_PER_TPCC_CLKCTRL_OFFSET, |
| 1783 | .modulemode = MODULEMODE_SWCTRL, |
| 1784 | }, |
| 1785 | }, |
| 1786 | }; |
| 1787 | |
| 1788 | static struct omap_hwmod_class_sysconfig am33xx_tptc_sysc = { |
| 1789 | .rev_offs = 0x0, |
| 1790 | .sysc_offs = 0x10, |
| 1791 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | |
| 1792 | SYSC_HAS_MIDLEMODE), |
| 1793 | .idlemodes = (SIDLE_FORCE | SIDLE_SMART | MSTANDBY_FORCE), |
| 1794 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 1795 | }; |
| 1796 | |
| 1797 | /* 'tptc' class */ |
| 1798 | static struct omap_hwmod_class am33xx_tptc_hwmod_class = { |
| 1799 | .name = "tptc", |
| 1800 | .sysc = &am33xx_tptc_sysc, |
| 1801 | }; |
| 1802 | |
| 1803 | /* tptc0 */ |
| 1804 | static struct omap_hwmod_irq_info am33xx_tptc0_irqs[] = { |
| 1805 | { .irq = 112 + OMAP_INTC_START, }, |
| 1806 | { .irq = -1 }, |
| 1807 | }; |
| 1808 | |
| 1809 | static struct omap_hwmod am33xx_tptc0_hwmod = { |
| 1810 | .name = "tptc0", |
| 1811 | .class = &am33xx_tptc_hwmod_class, |
| 1812 | .clkdm_name = "l3_clkdm", |
| 1813 | .mpu_irqs = am33xx_tptc0_irqs, |
| 1814 | .main_clk = "l3_gclk", |
| 1815 | .prcm = { |
| 1816 | .omap4 = { |
| 1817 | .clkctrl_offs = AM33XX_CM_PER_TPTC0_CLKCTRL_OFFSET, |
| 1818 | .modulemode = MODULEMODE_SWCTRL, |
| 1819 | }, |
| 1820 | }, |
| 1821 | }; |
| 1822 | |
| 1823 | /* tptc1 */ |
| 1824 | static struct omap_hwmod_irq_info am33xx_tptc1_irqs[] = { |
| 1825 | { .irq = 113 + OMAP_INTC_START, }, |
| 1826 | { .irq = -1 }, |
| 1827 | }; |
| 1828 | |
| 1829 | static struct omap_hwmod am33xx_tptc1_hwmod = { |
| 1830 | .name = "tptc1", |
| 1831 | .class = &am33xx_tptc_hwmod_class, |
| 1832 | .clkdm_name = "l3_clkdm", |
| 1833 | .mpu_irqs = am33xx_tptc1_irqs, |
| 1834 | .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY), |
| 1835 | .main_clk = "l3_gclk", |
| 1836 | .prcm = { |
| 1837 | .omap4 = { |
| 1838 | .clkctrl_offs = AM33XX_CM_PER_TPTC1_CLKCTRL_OFFSET, |
| 1839 | .modulemode = MODULEMODE_SWCTRL, |
| 1840 | }, |
| 1841 | }, |
| 1842 | }; |
| 1843 | |
| 1844 | /* tptc2 */ |
| 1845 | static struct omap_hwmod_irq_info am33xx_tptc2_irqs[] = { |
| 1846 | { .irq = 114 + OMAP_INTC_START, }, |
| 1847 | { .irq = -1 }, |
| 1848 | }; |
| 1849 | |
| 1850 | static struct omap_hwmod am33xx_tptc2_hwmod = { |
| 1851 | .name = "tptc2", |
| 1852 | .class = &am33xx_tptc_hwmod_class, |
| 1853 | .clkdm_name = "l3_clkdm", |
| 1854 | .mpu_irqs = am33xx_tptc2_irqs, |
| 1855 | .flags = (HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY), |
| 1856 | .main_clk = "l3_gclk", |
| 1857 | .prcm = { |
| 1858 | .omap4 = { |
| 1859 | .clkctrl_offs = AM33XX_CM_PER_TPTC2_CLKCTRL_OFFSET, |
| 1860 | .modulemode = MODULEMODE_SWCTRL, |
| 1861 | }, |
| 1862 | }, |
| 1863 | }; |
| 1864 | |
| 1865 | /* 'uart' class */ |
| 1866 | static struct omap_hwmod_class_sysconfig uart_sysc = { |
| 1867 | .rev_offs = 0x50, |
| 1868 | .sysc_offs = 0x54, |
| 1869 | .syss_offs = 0x58, |
| 1870 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP | |
| 1871 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), |
| 1872 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1873 | SIDLE_SMART_WKUP), |
| 1874 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1875 | }; |
| 1876 | |
| 1877 | static struct omap_hwmod_class uart_class = { |
| 1878 | .name = "uart", |
| 1879 | .sysc = &uart_sysc, |
| 1880 | }; |
| 1881 | |
| 1882 | /* uart1 */ |
| 1883 | static struct omap_hwmod_dma_info uart1_edma_reqs[] = { |
| 1884 | { .name = "tx", .dma_req = 26, }, |
| 1885 | { .name = "rx", .dma_req = 27, }, |
| 1886 | { .dma_req = -1 } |
| 1887 | }; |
| 1888 | |
| 1889 | static struct omap_hwmod_irq_info am33xx_uart1_irqs[] = { |
| 1890 | { .irq = 72 + OMAP_INTC_START, }, |
| 1891 | { .irq = -1 }, |
| 1892 | }; |
| 1893 | |
| 1894 | static struct omap_hwmod am33xx_uart1_hwmod = { |
| 1895 | .name = "uart1", |
| 1896 | .class = &uart_class, |
| 1897 | .clkdm_name = "l4_wkup_clkdm", |
| 1898 | .mpu_irqs = am33xx_uart1_irqs, |
| 1899 | .sdma_reqs = uart1_edma_reqs, |
| 1900 | .main_clk = "dpll_per_m2_div4_wkupdm_ck", |
| 1901 | .prcm = { |
| 1902 | .omap4 = { |
| 1903 | .clkctrl_offs = AM33XX_CM_WKUP_UART0_CLKCTRL_OFFSET, |
| 1904 | .modulemode = MODULEMODE_SWCTRL, |
| 1905 | }, |
| 1906 | }, |
| 1907 | }; |
| 1908 | |
| 1909 | static struct omap_hwmod_irq_info am33xx_uart2_irqs[] = { |
| 1910 | { .irq = 73 + OMAP_INTC_START, }, |
| 1911 | { .irq = -1 }, |
| 1912 | }; |
| 1913 | |
| 1914 | static struct omap_hwmod am33xx_uart2_hwmod = { |
| 1915 | .name = "uart2", |
| 1916 | .class = &uart_class, |
| 1917 | .clkdm_name = "l4ls_clkdm", |
| 1918 | .mpu_irqs = am33xx_uart2_irqs, |
| 1919 | .sdma_reqs = uart1_edma_reqs, |
| 1920 | .main_clk = "dpll_per_m2_div4_ck", |
| 1921 | .prcm = { |
| 1922 | .omap4 = { |
| 1923 | .clkctrl_offs = AM33XX_CM_PER_UART1_CLKCTRL_OFFSET, |
| 1924 | .modulemode = MODULEMODE_SWCTRL, |
| 1925 | }, |
| 1926 | }, |
| 1927 | }; |
| 1928 | |
| 1929 | /* uart3 */ |
| 1930 | static struct omap_hwmod_dma_info uart3_edma_reqs[] = { |
| 1931 | { .name = "tx", .dma_req = 30, }, |
| 1932 | { .name = "rx", .dma_req = 31, }, |
| 1933 | { .dma_req = -1 } |
| 1934 | }; |
| 1935 | |
| 1936 | static struct omap_hwmod_irq_info am33xx_uart3_irqs[] = { |
| 1937 | { .irq = 74 + OMAP_INTC_START, }, |
| 1938 | { .irq = -1 }, |
| 1939 | }; |
| 1940 | |
| 1941 | static struct omap_hwmod am33xx_uart3_hwmod = { |
| 1942 | .name = "uart3", |
| 1943 | .class = &uart_class, |
| 1944 | .clkdm_name = "l4ls_clkdm", |
| 1945 | .mpu_irqs = am33xx_uart3_irqs, |
| 1946 | .sdma_reqs = uart3_edma_reqs, |
| 1947 | .main_clk = "dpll_per_m2_div4_ck", |
| 1948 | .prcm = { |
| 1949 | .omap4 = { |
| 1950 | .clkctrl_offs = AM33XX_CM_PER_UART2_CLKCTRL_OFFSET, |
| 1951 | .modulemode = MODULEMODE_SWCTRL, |
| 1952 | }, |
| 1953 | }, |
| 1954 | }; |
| 1955 | |
| 1956 | static struct omap_hwmod_irq_info am33xx_uart4_irqs[] = { |
| 1957 | { .irq = 44 + OMAP_INTC_START, }, |
| 1958 | { .irq = -1 }, |
| 1959 | }; |
| 1960 | |
| 1961 | static struct omap_hwmod am33xx_uart4_hwmod = { |
| 1962 | .name = "uart4", |
| 1963 | .class = &uart_class, |
| 1964 | .clkdm_name = "l4ls_clkdm", |
| 1965 | .mpu_irqs = am33xx_uart4_irqs, |
| 1966 | .sdma_reqs = uart1_edma_reqs, |
| 1967 | .main_clk = "dpll_per_m2_div4_ck", |
| 1968 | .prcm = { |
| 1969 | .omap4 = { |
| 1970 | .clkctrl_offs = AM33XX_CM_PER_UART3_CLKCTRL_OFFSET, |
| 1971 | .modulemode = MODULEMODE_SWCTRL, |
| 1972 | }, |
| 1973 | }, |
| 1974 | }; |
| 1975 | |
| 1976 | static struct omap_hwmod_irq_info am33xx_uart5_irqs[] = { |
| 1977 | { .irq = 45 + OMAP_INTC_START, }, |
| 1978 | { .irq = -1 }, |
| 1979 | }; |
| 1980 | |
| 1981 | static struct omap_hwmod am33xx_uart5_hwmod = { |
| 1982 | .name = "uart5", |
| 1983 | .class = &uart_class, |
| 1984 | .clkdm_name = "l4ls_clkdm", |
| 1985 | .mpu_irqs = am33xx_uart5_irqs, |
| 1986 | .sdma_reqs = uart1_edma_reqs, |
| 1987 | .main_clk = "dpll_per_m2_div4_ck", |
| 1988 | .prcm = { |
| 1989 | .omap4 = { |
| 1990 | .clkctrl_offs = AM33XX_CM_PER_UART4_CLKCTRL_OFFSET, |
| 1991 | .modulemode = MODULEMODE_SWCTRL, |
| 1992 | }, |
| 1993 | }, |
| 1994 | }; |
| 1995 | |
| 1996 | static struct omap_hwmod_irq_info am33xx_uart6_irqs[] = { |
| 1997 | { .irq = 46 + OMAP_INTC_START, }, |
| 1998 | { .irq = -1 }, |
| 1999 | }; |
| 2000 | |
| 2001 | static struct omap_hwmod am33xx_uart6_hwmod = { |
| 2002 | .name = "uart6", |
| 2003 | .class = &uart_class, |
| 2004 | .clkdm_name = "l4ls_clkdm", |
| 2005 | .mpu_irqs = am33xx_uart6_irqs, |
| 2006 | .sdma_reqs = uart1_edma_reqs, |
| 2007 | .main_clk = "dpll_per_m2_div4_ck", |
| 2008 | .prcm = { |
| 2009 | .omap4 = { |
| 2010 | .clkctrl_offs = AM33XX_CM_PER_UART5_CLKCTRL_OFFSET, |
| 2011 | .modulemode = MODULEMODE_SWCTRL, |
| 2012 | }, |
| 2013 | }, |
| 2014 | }; |
| 2015 | |
| 2016 | /* 'wd_timer' class */ |
| 2017 | static struct omap_hwmod_class am33xx_wd_timer_hwmod_class = { |
| 2018 | .name = "wd_timer", |
| 2019 | }; |
| 2020 | |
| 2021 | /* |
| 2022 | * XXX: device.c file uses hardcoded name for watchdog timer |
| 2023 | * driver "wd_timer2, so we are also using same name as of now... |
| 2024 | */ |
| 2025 | static struct omap_hwmod am33xx_wd_timer1_hwmod = { |
| 2026 | .name = "wd_timer2", |
| 2027 | .class = &am33xx_wd_timer_hwmod_class, |
| 2028 | .clkdm_name = "l4_wkup_clkdm", |
| 2029 | .main_clk = "wdt1_fck", |
| 2030 | .prcm = { |
| 2031 | .omap4 = { |
| 2032 | .clkctrl_offs = AM33XX_CM_WKUP_WDT1_CLKCTRL_OFFSET, |
| 2033 | .modulemode = MODULEMODE_SWCTRL, |
| 2034 | }, |
| 2035 | }, |
| 2036 | }; |
| 2037 | |
| 2038 | /* |
| 2039 | * 'usb_otg' class |
| 2040 | * high-speed on-the-go universal serial bus (usb_otg) controller |
| 2041 | */ |
| 2042 | static struct omap_hwmod_class_sysconfig am33xx_usbhsotg_sysc = { |
| 2043 | .rev_offs = 0x0, |
| 2044 | .sysc_offs = 0x10, |
| 2045 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE), |
| 2046 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 2047 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), |
| 2048 | .sysc_fields = &omap_hwmod_sysc_type2, |
| 2049 | }; |
| 2050 | |
| 2051 | static struct omap_hwmod_class am33xx_usbotg_class = { |
| 2052 | .name = "usbotg", |
| 2053 | .sysc = &am33xx_usbhsotg_sysc, |
| 2054 | }; |
| 2055 | |
| 2056 | static struct omap_hwmod_irq_info am33xx_usbss_mpu_irqs[] = { |
| 2057 | { .name = "usbss-irq", .irq = 17 + OMAP_INTC_START, }, |
| 2058 | { .name = "musb0-irq", .irq = 18 + OMAP_INTC_START, }, |
| 2059 | { .name = "musb1-irq", .irq = 19 + OMAP_INTC_START, }, |
| 2060 | { .irq = -1 + OMAP_INTC_START, }, |
| 2061 | }; |
| 2062 | |
| 2063 | static struct omap_hwmod am33xx_usbss_hwmod = { |
| 2064 | .name = "usb_otg_hs", |
| 2065 | .class = &am33xx_usbotg_class, |
| 2066 | .clkdm_name = "l3s_clkdm", |
| 2067 | .mpu_irqs = am33xx_usbss_mpu_irqs, |
| 2068 | .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY, |
| 2069 | .main_clk = "usbotg_fck", |
| 2070 | .prcm = { |
| 2071 | .omap4 = { |
| 2072 | .clkctrl_offs = AM33XX_CM_PER_USB0_CLKCTRL_OFFSET, |
| 2073 | .modulemode = MODULEMODE_SWCTRL, |
| 2074 | }, |
| 2075 | }, |
| 2076 | }; |
| 2077 | |
| 2078 | |
| 2079 | /* |
| 2080 | * Interfaces |
| 2081 | */ |
| 2082 | |
| 2083 | /* l4 fw -> emif fw */ |
| 2084 | static struct omap_hwmod_ocp_if am33xx_l4_fw__emif_fw = { |
| 2085 | .master = &am33xx_l4_fw_hwmod, |
| 2086 | .slave = &am33xx_emif_fw_hwmod, |
| 2087 | .clk = "l4fw_gclk", |
| 2088 | .user = OCP_USER_MPU, |
| 2089 | }; |
| 2090 | |
| 2091 | static struct omap_hwmod_addr_space am33xx_emif_addrs[] = { |
| 2092 | { |
| 2093 | .pa_start = 0x4c000000, |
| 2094 | .pa_end = 0x4c000fff, |
| 2095 | .flags = ADDR_TYPE_RT |
| 2096 | }, |
| 2097 | { } |
| 2098 | }; |
| 2099 | /* l3 main -> emif */ |
| 2100 | static struct omap_hwmod_ocp_if am33xx_l3_main__emif = { |
| 2101 | .master = &am33xx_l3_main_hwmod, |
| 2102 | .slave = &am33xx_emif_hwmod, |
| 2103 | .clk = "dpll_core_m4_ck", |
| 2104 | .addr = am33xx_emif_addrs, |
| 2105 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2106 | }; |
| 2107 | |
| 2108 | /* mpu -> l3 main */ |
| 2109 | static struct omap_hwmod_ocp_if am33xx_mpu__l3_main = { |
| 2110 | .master = &am33xx_mpu_hwmod, |
| 2111 | .slave = &am33xx_l3_main_hwmod, |
| 2112 | .clk = "dpll_mpu_m2_ck", |
| 2113 | .user = OCP_USER_MPU, |
| 2114 | }; |
| 2115 | |
| 2116 | /* l3 main -> l4 hs */ |
| 2117 | static struct omap_hwmod_ocp_if am33xx_l3_main__l4_hs = { |
| 2118 | .master = &am33xx_l3_main_hwmod, |
| 2119 | .slave = &am33xx_l4_hs_hwmod, |
| 2120 | .clk = "l3s_gclk", |
| 2121 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2122 | }; |
| 2123 | |
| 2124 | /* l3 main -> l3 s */ |
| 2125 | static struct omap_hwmod_ocp_if am33xx_l3_main__l3_s = { |
| 2126 | .master = &am33xx_l3_main_hwmod, |
| 2127 | .slave = &am33xx_l3_s_hwmod, |
| 2128 | .clk = "l3s_gclk", |
| 2129 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2130 | }; |
| 2131 | |
| 2132 | /* l3 s -> l4 per/ls */ |
| 2133 | static struct omap_hwmod_ocp_if am33xx_l3_s__l4_ls = { |
| 2134 | .master = &am33xx_l3_s_hwmod, |
| 2135 | .slave = &am33xx_l4_ls_hwmod, |
| 2136 | .clk = "l3s_gclk", |
| 2137 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2138 | }; |
| 2139 | |
| 2140 | /* l3 s -> l4 wkup */ |
| 2141 | static struct omap_hwmod_ocp_if am33xx_l3_s__l4_wkup = { |
| 2142 | .master = &am33xx_l3_s_hwmod, |
| 2143 | .slave = &am33xx_l4_wkup_hwmod, |
| 2144 | .clk = "l3s_gclk", |
| 2145 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2146 | }; |
| 2147 | |
| 2148 | /* l3 s -> l4 fw */ |
| 2149 | static struct omap_hwmod_ocp_if am33xx_l3_s__l4_fw = { |
| 2150 | .master = &am33xx_l3_s_hwmod, |
| 2151 | .slave = &am33xx_l4_fw_hwmod, |
| 2152 | .clk = "l3s_gclk", |
| 2153 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2154 | }; |
| 2155 | |
| 2156 | /* l3 main -> l3 instr */ |
| 2157 | static struct omap_hwmod_ocp_if am33xx_l3_main__l3_instr = { |
| 2158 | .master = &am33xx_l3_main_hwmod, |
| 2159 | .slave = &am33xx_l3_instr_hwmod, |
| 2160 | .clk = "l3s_gclk", |
| 2161 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2162 | }; |
| 2163 | |
| 2164 | /* mpu -> prcm */ |
| 2165 | static struct omap_hwmod_ocp_if am33xx_mpu__prcm = { |
| 2166 | .master = &am33xx_mpu_hwmod, |
| 2167 | .slave = &am33xx_prcm_hwmod, |
| 2168 | .clk = "dpll_mpu_m2_ck", |
| 2169 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2170 | }; |
| 2171 | |
| 2172 | /* l3 s -> l3 main*/ |
| 2173 | static struct omap_hwmod_ocp_if am33xx_l3_s__l3_main = { |
| 2174 | .master = &am33xx_l3_s_hwmod, |
| 2175 | .slave = &am33xx_l3_main_hwmod, |
| 2176 | .clk = "l3s_gclk", |
| 2177 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2178 | }; |
| 2179 | |
| 2180 | /* pru-icss -> l3 main */ |
| 2181 | static struct omap_hwmod_ocp_if am33xx_pruss__l3_main = { |
| 2182 | .master = &am33xx_pruss_hwmod, |
| 2183 | .slave = &am33xx_l3_main_hwmod, |
| 2184 | .clk = "l3_gclk", |
| 2185 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2186 | }; |
| 2187 | |
| 2188 | /* wkup m3 -> l4 wkup */ |
| 2189 | static struct omap_hwmod_ocp_if am33xx_wkup_m3__l4_wkup = { |
| 2190 | .master = &am33xx_wkup_m3_hwmod, |
| 2191 | .slave = &am33xx_l4_wkup_hwmod, |
| 2192 | .clk = "dpll_core_m4_div2_ck", |
| 2193 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2194 | }; |
| 2195 | |
| 2196 | /* gfx -> l3 main */ |
| 2197 | static struct omap_hwmod_ocp_if am33xx_gfx__l3_main = { |
| 2198 | .master = &am33xx_gfx_hwmod, |
| 2199 | .slave = &am33xx_l3_main_hwmod, |
| 2200 | .clk = "dpll_core_m4_ck", |
| 2201 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2202 | }; |
| 2203 | |
| 2204 | /* l4 wkup -> wkup m3 */ |
| 2205 | static struct omap_hwmod_addr_space am33xx_wkup_m3_addrs[] = { |
| 2206 | { |
| 2207 | .name = "umem", |
| 2208 | .pa_start = 0x44d00000, |
| 2209 | .pa_end = 0x44d00000 + SZ_16K - 1, |
| 2210 | .flags = ADDR_TYPE_RT |
| 2211 | }, |
| 2212 | { |
| 2213 | .name = "dmem", |
| 2214 | .pa_start = 0x44d80000, |
| 2215 | .pa_end = 0x44d80000 + SZ_8K - 1, |
| 2216 | .flags = ADDR_TYPE_RT |
| 2217 | }, |
| 2218 | { } |
| 2219 | }; |
| 2220 | |
| 2221 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__wkup_m3 = { |
| 2222 | .master = &am33xx_l4_wkup_hwmod, |
| 2223 | .slave = &am33xx_wkup_m3_hwmod, |
| 2224 | .clk = "dpll_core_m4_div2_ck", |
| 2225 | .addr = am33xx_wkup_m3_addrs, |
| 2226 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2227 | }; |
| 2228 | |
| 2229 | /* l4 hs -> pru-icss */ |
| 2230 | static struct omap_hwmod_addr_space am33xx_pruss_addrs[] = { |
| 2231 | { |
| 2232 | .pa_start = 0x4a300000, |
| 2233 | .pa_end = 0x4a300000 + SZ_512K - 1, |
| 2234 | .flags = ADDR_TYPE_RT |
| 2235 | }, |
| 2236 | { } |
| 2237 | }; |
| 2238 | |
| 2239 | static struct omap_hwmod_ocp_if am33xx_l4_hs__pruss = { |
| 2240 | .master = &am33xx_l4_hs_hwmod, |
| 2241 | .slave = &am33xx_pruss_hwmod, |
| 2242 | .clk = "dpll_core_m4_ck", |
| 2243 | .addr = am33xx_pruss_addrs, |
| 2244 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2245 | }; |
| 2246 | |
| 2247 | /* l3 main -> gfx */ |
| 2248 | static struct omap_hwmod_addr_space am33xx_gfx_addrs[] = { |
| 2249 | { |
| 2250 | .pa_start = 0x56000000, |
| 2251 | .pa_end = 0x56000000 + SZ_16M - 1, |
| 2252 | .flags = ADDR_TYPE_RT |
| 2253 | }, |
| 2254 | { } |
| 2255 | }; |
| 2256 | |
| 2257 | static struct omap_hwmod_ocp_if am33xx_l3_main__gfx = { |
| 2258 | .master = &am33xx_l3_main_hwmod, |
| 2259 | .slave = &am33xx_gfx_hwmod, |
| 2260 | .clk = "dpll_core_m4_ck", |
| 2261 | .addr = am33xx_gfx_addrs, |
| 2262 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2263 | }; |
| 2264 | |
| 2265 | /* l4 wkup -> smartreflex0 */ |
| 2266 | static struct omap_hwmod_addr_space am33xx_smartreflex0_addrs[] = { |
| 2267 | { |
| 2268 | .pa_start = 0x44e37000, |
| 2269 | .pa_end = 0x44e37000 + SZ_4K - 1, |
| 2270 | .flags = ADDR_TYPE_RT |
| 2271 | }, |
| 2272 | { } |
| 2273 | }; |
| 2274 | |
| 2275 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex0 = { |
| 2276 | .master = &am33xx_l4_wkup_hwmod, |
| 2277 | .slave = &am33xx_smartreflex0_hwmod, |
| 2278 | .clk = "dpll_core_m4_div2_ck", |
| 2279 | .addr = am33xx_smartreflex0_addrs, |
| 2280 | .user = OCP_USER_MPU, |
| 2281 | }; |
| 2282 | |
| 2283 | /* l4 wkup -> smartreflex1 */ |
| 2284 | static struct omap_hwmod_addr_space am33xx_smartreflex1_addrs[] = { |
| 2285 | { |
| 2286 | .pa_start = 0x44e39000, |
| 2287 | .pa_end = 0x44e39000 + SZ_4K - 1, |
| 2288 | .flags = ADDR_TYPE_RT |
| 2289 | }, |
| 2290 | { } |
| 2291 | }; |
| 2292 | |
| 2293 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__smartreflex1 = { |
| 2294 | .master = &am33xx_l4_wkup_hwmod, |
| 2295 | .slave = &am33xx_smartreflex1_hwmod, |
| 2296 | .clk = "dpll_core_m4_div2_ck", |
| 2297 | .addr = am33xx_smartreflex1_addrs, |
| 2298 | .user = OCP_USER_MPU, |
| 2299 | }; |
| 2300 | |
| 2301 | /* l4 wkup -> control */ |
| 2302 | static struct omap_hwmod_addr_space am33xx_control_addrs[] = { |
| 2303 | { |
| 2304 | .pa_start = 0x44e10000, |
| 2305 | .pa_end = 0x44e10000 + SZ_8K - 1, |
| 2306 | .flags = ADDR_TYPE_RT |
| 2307 | }, |
| 2308 | { } |
| 2309 | }; |
| 2310 | |
| 2311 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__control = { |
| 2312 | .master = &am33xx_l4_wkup_hwmod, |
| 2313 | .slave = &am33xx_control_hwmod, |
| 2314 | .clk = "dpll_core_m4_div2_ck", |
| 2315 | .addr = am33xx_control_addrs, |
| 2316 | .user = OCP_USER_MPU, |
| 2317 | }; |
| 2318 | |
| 2319 | /* l4 wkup -> rtc */ |
| 2320 | static struct omap_hwmod_addr_space am33xx_rtc_addrs[] = { |
| 2321 | { |
| 2322 | .pa_start = 0x44e3e000, |
| 2323 | .pa_end = 0x44e3e000 + SZ_4K - 1, |
| 2324 | .flags = ADDR_TYPE_RT |
| 2325 | }, |
| 2326 | { } |
| 2327 | }; |
| 2328 | |
| 2329 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__rtc = { |
| 2330 | .master = &am33xx_l4_wkup_hwmod, |
| 2331 | .slave = &am33xx_rtc_hwmod, |
| 2332 | .clk = "clkdiv32k_ick", |
| 2333 | .addr = am33xx_rtc_addrs, |
| 2334 | .user = OCP_USER_MPU, |
| 2335 | }; |
| 2336 | |
| 2337 | /* l4 per/ls -> DCAN0 */ |
| 2338 | static struct omap_hwmod_addr_space am33xx_dcan0_addrs[] = { |
| 2339 | { |
| 2340 | .pa_start = 0x481CC000, |
| 2341 | .pa_end = 0x481CC000 + SZ_4K - 1, |
| 2342 | .flags = ADDR_TYPE_RT |
| 2343 | }, |
| 2344 | { } |
| 2345 | }; |
| 2346 | |
| 2347 | static struct omap_hwmod_ocp_if am33xx_l4_per__dcan0 = { |
| 2348 | .master = &am33xx_l4_ls_hwmod, |
| 2349 | .slave = &am33xx_dcan0_hwmod, |
| 2350 | .clk = "l4ls_gclk", |
| 2351 | .addr = am33xx_dcan0_addrs, |
| 2352 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2353 | }; |
| 2354 | |
| 2355 | /* l4 per/ls -> DCAN1 */ |
| 2356 | static struct omap_hwmod_addr_space am33xx_dcan1_addrs[] = { |
| 2357 | { |
| 2358 | .pa_start = 0x481D0000, |
| 2359 | .pa_end = 0x481D0000 + SZ_4K - 1, |
| 2360 | .flags = ADDR_TYPE_RT |
| 2361 | }, |
| 2362 | { } |
| 2363 | }; |
| 2364 | |
| 2365 | static struct omap_hwmod_ocp_if am33xx_l4_per__dcan1 = { |
| 2366 | .master = &am33xx_l4_ls_hwmod, |
| 2367 | .slave = &am33xx_dcan1_hwmod, |
| 2368 | .clk = "l4ls_gclk", |
| 2369 | .addr = am33xx_dcan1_addrs, |
| 2370 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2371 | }; |
| 2372 | |
| 2373 | /* l4 per/ls -> GPIO2 */ |
| 2374 | static struct omap_hwmod_addr_space am33xx_gpio1_addrs[] = { |
| 2375 | { |
| 2376 | .pa_start = 0x4804C000, |
| 2377 | .pa_end = 0x4804C000 + SZ_4K - 1, |
| 2378 | .flags = ADDR_TYPE_RT, |
| 2379 | }, |
| 2380 | { } |
| 2381 | }; |
| 2382 | |
| 2383 | static struct omap_hwmod_ocp_if am33xx_l4_per__gpio1 = { |
| 2384 | .master = &am33xx_l4_ls_hwmod, |
| 2385 | .slave = &am33xx_gpio1_hwmod, |
| 2386 | .clk = "l4ls_gclk", |
| 2387 | .addr = am33xx_gpio1_addrs, |
| 2388 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2389 | }; |
| 2390 | |
| 2391 | /* l4 per/ls -> gpio3 */ |
| 2392 | static struct omap_hwmod_addr_space am33xx_gpio2_addrs[] = { |
| 2393 | { |
| 2394 | .pa_start = 0x481AC000, |
| 2395 | .pa_end = 0x481AC000 + SZ_4K - 1, |
| 2396 | .flags = ADDR_TYPE_RT, |
| 2397 | }, |
| 2398 | { } |
| 2399 | }; |
| 2400 | |
| 2401 | static struct omap_hwmod_ocp_if am33xx_l4_per__gpio2 = { |
| 2402 | .master = &am33xx_l4_ls_hwmod, |
| 2403 | .slave = &am33xx_gpio2_hwmod, |
| 2404 | .clk = "l4ls_gclk", |
| 2405 | .addr = am33xx_gpio2_addrs, |
| 2406 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2407 | }; |
| 2408 | |
| 2409 | /* l4 per/ls -> gpio4 */ |
| 2410 | static struct omap_hwmod_addr_space am33xx_gpio3_addrs[] = { |
| 2411 | { |
| 2412 | .pa_start = 0x481AE000, |
| 2413 | .pa_end = 0x481AE000 + SZ_4K - 1, |
| 2414 | .flags = ADDR_TYPE_RT, |
| 2415 | }, |
| 2416 | { } |
| 2417 | }; |
| 2418 | |
| 2419 | static struct omap_hwmod_ocp_if am33xx_l4_per__gpio3 = { |
| 2420 | .master = &am33xx_l4_ls_hwmod, |
| 2421 | .slave = &am33xx_gpio3_hwmod, |
| 2422 | .clk = "l4ls_gclk", |
| 2423 | .addr = am33xx_gpio3_addrs, |
| 2424 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2425 | }; |
| 2426 | |
| 2427 | /* L4 WKUP -> I2C1 */ |
| 2428 | static struct omap_hwmod_addr_space am33xx_i2c1_addr_space[] = { |
| 2429 | { |
| 2430 | .pa_start = 0x44E0B000, |
| 2431 | .pa_end = 0x44E0B000 + SZ_4K - 1, |
| 2432 | .flags = ADDR_TYPE_RT, |
| 2433 | }, |
| 2434 | { } |
| 2435 | }; |
| 2436 | |
| 2437 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__i2c1 = { |
| 2438 | .master = &am33xx_l4_wkup_hwmod, |
| 2439 | .slave = &am33xx_i2c1_hwmod, |
| 2440 | .clk = "dpll_core_m4_div2_ck", |
| 2441 | .addr = am33xx_i2c1_addr_space, |
| 2442 | .user = OCP_USER_MPU, |
| 2443 | }; |
| 2444 | |
| 2445 | /* L4 WKUP -> GPIO1 */ |
| 2446 | static struct omap_hwmod_addr_space am33xx_gpio0_addrs[] = { |
| 2447 | { |
| 2448 | .pa_start = 0x44E07000, |
| 2449 | .pa_end = 0x44E07000 + SZ_4K - 1, |
| 2450 | .flags = ADDR_TYPE_RT, |
| 2451 | }, |
| 2452 | { } |
| 2453 | }; |
| 2454 | |
| 2455 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__gpio0 = { |
| 2456 | .master = &am33xx_l4_wkup_hwmod, |
| 2457 | .slave = &am33xx_gpio0_hwmod, |
| 2458 | .clk = "dpll_core_m4_div2_ck", |
| 2459 | .addr = am33xx_gpio0_addrs, |
| 2460 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2461 | }; |
| 2462 | |
| 2463 | /* L4 WKUP -> ADC_TSC */ |
| 2464 | static struct omap_hwmod_addr_space am33xx_adc_tsc_addrs[] = { |
| 2465 | { |
| 2466 | .pa_start = 0x44E0D000, |
| 2467 | .pa_end = 0x44E0D000 + SZ_8K - 1, |
| 2468 | .flags = ADDR_TYPE_RT |
| 2469 | }, |
| 2470 | { } |
| 2471 | }; |
| 2472 | |
| 2473 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__adc_tsc = { |
| 2474 | .master = &am33xx_l4_wkup_hwmod, |
| 2475 | .slave = &am33xx_adc_tsc_hwmod, |
| 2476 | .clk = "dpll_core_m4_div2_ck", |
| 2477 | .addr = am33xx_adc_tsc_addrs, |
| 2478 | .user = OCP_USER_MPU, |
| 2479 | }; |
| 2480 | |
| 2481 | static struct omap_hwmod_addr_space am33xx_cpgmac0_addr_space[] = { |
| 2482 | /* cpsw ss */ |
| 2483 | { |
| 2484 | .pa_start = 0x4a100000, |
| 2485 | .pa_end = 0x4a100000 + SZ_2K - 1, |
| 2486 | .flags = ADDR_TYPE_RT, |
| 2487 | }, |
| 2488 | /* cpsw wr */ |
| 2489 | { |
| 2490 | .pa_start = 0x4a101200, |
| 2491 | .pa_end = 0x4a101200 + SZ_256 - 1, |
| 2492 | .flags = ADDR_TYPE_RT, |
| 2493 | }, |
| 2494 | { } |
| 2495 | }; |
| 2496 | |
| 2497 | static struct omap_hwmod_ocp_if am33xx_l4_hs__cpgmac0 = { |
| 2498 | .master = &am33xx_l4_hs_hwmod, |
| 2499 | .slave = &am33xx_cpgmac0_hwmod, |
| 2500 | .clk = "cpsw_125mhz_gclk", |
| 2501 | .addr = am33xx_cpgmac0_addr_space, |
| 2502 | .user = OCP_USER_MPU, |
| 2503 | }; |
| 2504 | |
| 2505 | static struct omap_hwmod_addr_space am33xx_elm_addr_space[] = { |
| 2506 | { |
| 2507 | .pa_start = 0x48080000, |
| 2508 | .pa_end = 0x48080000 + SZ_8K - 1, |
| 2509 | .flags = ADDR_TYPE_RT |
| 2510 | }, |
| 2511 | { } |
| 2512 | }; |
| 2513 | |
| 2514 | static struct omap_hwmod_ocp_if am33xx_l4_ls__elm = { |
| 2515 | .master = &am33xx_l4_ls_hwmod, |
| 2516 | .slave = &am33xx_elm_hwmod, |
| 2517 | .clk = "l4ls_gclk", |
| 2518 | .addr = am33xx_elm_addr_space, |
| 2519 | .user = OCP_USER_MPU, |
| 2520 | }; |
| 2521 | |
| 2522 | /* |
| 2523 | * Splitting the resources to handle access of PWMSS config space |
| 2524 | * and module specific part independently |
| 2525 | */ |
| 2526 | static struct omap_hwmod_addr_space am33xx_ehrpwm0_addr_space[] = { |
| 2527 | { |
| 2528 | .pa_start = 0x48300000, |
| 2529 | .pa_end = 0x48300000 + SZ_16 - 1, |
| 2530 | .flags = ADDR_TYPE_RT |
| 2531 | }, |
| 2532 | { |
| 2533 | .pa_start = 0x48300200, |
| 2534 | .pa_end = 0x48300200 + SZ_256 - 1, |
| 2535 | .flags = ADDR_TYPE_RT |
| 2536 | }, |
| 2537 | { } |
| 2538 | }; |
| 2539 | |
| 2540 | static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm0 = { |
| 2541 | .master = &am33xx_l4_ls_hwmod, |
| 2542 | .slave = &am33xx_ehrpwm0_hwmod, |
| 2543 | .clk = "l4ls_gclk", |
| 2544 | .addr = am33xx_ehrpwm0_addr_space, |
| 2545 | .user = OCP_USER_MPU, |
| 2546 | }; |
| 2547 | |
| 2548 | /* |
| 2549 | * Splitting the resources to handle access of PWMSS config space |
| 2550 | * and module specific part independently |
| 2551 | */ |
| 2552 | static struct omap_hwmod_addr_space am33xx_ehrpwm1_addr_space[] = { |
| 2553 | { |
| 2554 | .pa_start = 0x48302000, |
| 2555 | .pa_end = 0x48302000 + SZ_16 - 1, |
| 2556 | .flags = ADDR_TYPE_RT |
| 2557 | }, |
| 2558 | { |
| 2559 | .pa_start = 0x48302200, |
| 2560 | .pa_end = 0x48302200 + SZ_256 - 1, |
| 2561 | .flags = ADDR_TYPE_RT |
| 2562 | }, |
| 2563 | { } |
| 2564 | }; |
| 2565 | |
| 2566 | static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm1 = { |
| 2567 | .master = &am33xx_l4_ls_hwmod, |
| 2568 | .slave = &am33xx_ehrpwm1_hwmod, |
| 2569 | .clk = "l4ls_gclk", |
| 2570 | .addr = am33xx_ehrpwm1_addr_space, |
| 2571 | .user = OCP_USER_MPU, |
| 2572 | }; |
| 2573 | |
| 2574 | /* |
| 2575 | * Splitting the resources to handle access of PWMSS config space |
| 2576 | * and module specific part independently |
| 2577 | */ |
| 2578 | static struct omap_hwmod_addr_space am33xx_ehrpwm2_addr_space[] = { |
| 2579 | { |
| 2580 | .pa_start = 0x48304000, |
| 2581 | .pa_end = 0x48304000 + SZ_16 - 1, |
| 2582 | .flags = ADDR_TYPE_RT |
| 2583 | }, |
| 2584 | { |
| 2585 | .pa_start = 0x48304200, |
| 2586 | .pa_end = 0x48304200 + SZ_256 - 1, |
| 2587 | .flags = ADDR_TYPE_RT |
| 2588 | }, |
| 2589 | { } |
| 2590 | }; |
| 2591 | |
| 2592 | static struct omap_hwmod_ocp_if am33xx_l4_ls__ehrpwm2 = { |
| 2593 | .master = &am33xx_l4_ls_hwmod, |
| 2594 | .slave = &am33xx_ehrpwm2_hwmod, |
| 2595 | .clk = "l4ls_gclk", |
| 2596 | .addr = am33xx_ehrpwm2_addr_space, |
| 2597 | .user = OCP_USER_MPU, |
| 2598 | }; |
| 2599 | |
| 2600 | /* |
| 2601 | * Splitting the resources to handle access of PWMSS config space |
| 2602 | * and module specific part independently |
| 2603 | */ |
| 2604 | static struct omap_hwmod_addr_space am33xx_ecap0_addr_space[] = { |
| 2605 | { |
| 2606 | .pa_start = 0x48300000, |
| 2607 | .pa_end = 0x48300000 + SZ_16 - 1, |
| 2608 | .flags = ADDR_TYPE_RT |
| 2609 | }, |
| 2610 | { |
| 2611 | .pa_start = 0x48300100, |
| 2612 | .pa_end = 0x48300100 + SZ_256 - 1, |
| 2613 | .flags = ADDR_TYPE_RT |
| 2614 | }, |
| 2615 | { } |
| 2616 | }; |
| 2617 | |
| 2618 | static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap0 = { |
| 2619 | .master = &am33xx_l4_ls_hwmod, |
| 2620 | .slave = &am33xx_ecap0_hwmod, |
| 2621 | .clk = "l4ls_gclk", |
| 2622 | .addr = am33xx_ecap0_addr_space, |
| 2623 | .user = OCP_USER_MPU, |
| 2624 | }; |
| 2625 | |
| 2626 | /* |
| 2627 | * Splitting the resources to handle access of PWMSS config space |
| 2628 | * and module specific part independently |
| 2629 | */ |
| 2630 | static struct omap_hwmod_addr_space am33xx_ecap1_addr_space[] = { |
| 2631 | { |
| 2632 | .pa_start = 0x48302000, |
| 2633 | .pa_end = 0x48302000 + SZ_16 - 1, |
| 2634 | .flags = ADDR_TYPE_RT |
| 2635 | }, |
| 2636 | { |
| 2637 | .pa_start = 0x48302100, |
| 2638 | .pa_end = 0x48302100 + SZ_256 - 1, |
| 2639 | .flags = ADDR_TYPE_RT |
| 2640 | }, |
| 2641 | { } |
| 2642 | }; |
| 2643 | |
| 2644 | static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap1 = { |
| 2645 | .master = &am33xx_l4_ls_hwmod, |
| 2646 | .slave = &am33xx_ecap1_hwmod, |
| 2647 | .clk = "l4ls_gclk", |
| 2648 | .addr = am33xx_ecap1_addr_space, |
| 2649 | .user = OCP_USER_MPU, |
| 2650 | }; |
| 2651 | |
| 2652 | /* |
| 2653 | * Splitting the resources to handle access of PWMSS config space |
| 2654 | * and module specific part independently |
| 2655 | */ |
| 2656 | static struct omap_hwmod_addr_space am33xx_ecap2_addr_space[] = { |
| 2657 | { |
| 2658 | .pa_start = 0x48304000, |
| 2659 | .pa_end = 0x48304000 + SZ_16 - 1, |
| 2660 | .flags = ADDR_TYPE_RT |
| 2661 | }, |
| 2662 | { |
| 2663 | .pa_start = 0x48304100, |
| 2664 | .pa_end = 0x48304100 + SZ_256 - 1, |
| 2665 | .flags = ADDR_TYPE_RT |
| 2666 | }, |
| 2667 | { } |
| 2668 | }; |
| 2669 | |
| 2670 | static struct omap_hwmod_ocp_if am33xx_l4_ls__ecap2 = { |
| 2671 | .master = &am33xx_l4_ls_hwmod, |
| 2672 | .slave = &am33xx_ecap2_hwmod, |
| 2673 | .clk = "l4ls_gclk", |
| 2674 | .addr = am33xx_ecap2_addr_space, |
| 2675 | .user = OCP_USER_MPU, |
| 2676 | }; |
| 2677 | |
| 2678 | /* l3s cfg -> gpmc */ |
| 2679 | static struct omap_hwmod_addr_space am33xx_gpmc_addr_space[] = { |
| 2680 | { |
| 2681 | .pa_start = 0x50000000, |
| 2682 | .pa_end = 0x50000000 + SZ_8K - 1, |
| 2683 | .flags = ADDR_TYPE_RT, |
| 2684 | }, |
| 2685 | { } |
| 2686 | }; |
| 2687 | |
| 2688 | static struct omap_hwmod_ocp_if am33xx_l3_s__gpmc = { |
| 2689 | .master = &am33xx_l3_s_hwmod, |
| 2690 | .slave = &am33xx_gpmc_hwmod, |
| 2691 | .clk = "l3s_gclk", |
| 2692 | .addr = am33xx_gpmc_addr_space, |
| 2693 | .user = OCP_USER_MPU, |
| 2694 | }; |
| 2695 | |
| 2696 | /* i2c2 */ |
| 2697 | static struct omap_hwmod_addr_space am33xx_i2c2_addr_space[] = { |
| 2698 | { |
| 2699 | .pa_start = 0x4802A000, |
| 2700 | .pa_end = 0x4802A000 + SZ_4K - 1, |
| 2701 | .flags = ADDR_TYPE_RT, |
| 2702 | }, |
| 2703 | { } |
| 2704 | }; |
| 2705 | |
| 2706 | static struct omap_hwmod_ocp_if am33xx_l4_per__i2c2 = { |
| 2707 | .master = &am33xx_l4_ls_hwmod, |
| 2708 | .slave = &am33xx_i2c2_hwmod, |
| 2709 | .clk = "l4ls_gclk", |
| 2710 | .addr = am33xx_i2c2_addr_space, |
| 2711 | .user = OCP_USER_MPU, |
| 2712 | }; |
| 2713 | |
| 2714 | static struct omap_hwmod_addr_space am33xx_i2c3_addr_space[] = { |
| 2715 | { |
| 2716 | .pa_start = 0x4819C000, |
| 2717 | .pa_end = 0x4819C000 + SZ_4K - 1, |
| 2718 | .flags = ADDR_TYPE_RT |
| 2719 | }, |
| 2720 | { } |
| 2721 | }; |
| 2722 | |
| 2723 | static struct omap_hwmod_ocp_if am33xx_l4_per__i2c3 = { |
| 2724 | .master = &am33xx_l4_ls_hwmod, |
| 2725 | .slave = &am33xx_i2c3_hwmod, |
| 2726 | .clk = "l4ls_gclk", |
| 2727 | .addr = am33xx_i2c3_addr_space, |
| 2728 | .user = OCP_USER_MPU, |
| 2729 | }; |
| 2730 | |
| 2731 | static struct omap_hwmod_addr_space am33xx_lcdc_addr_space[] = { |
| 2732 | { |
| 2733 | .pa_start = 0x4830E000, |
| 2734 | .pa_end = 0x4830E000 + SZ_8K - 1, |
| 2735 | .flags = ADDR_TYPE_RT, |
| 2736 | }, |
| 2737 | { } |
| 2738 | }; |
| 2739 | |
| 2740 | static struct omap_hwmod_ocp_if am33xx_l3_main__lcdc = { |
| 2741 | .master = &am33xx_l3_main_hwmod, |
| 2742 | .slave = &am33xx_lcdc_hwmod, |
| 2743 | .clk = "dpll_core_m4_ck", |
| 2744 | .addr = am33xx_lcdc_addr_space, |
| 2745 | .user = OCP_USER_MPU, |
| 2746 | }; |
| 2747 | |
| 2748 | static struct omap_hwmod_addr_space am33xx_mailbox_addrs[] = { |
| 2749 | { |
| 2750 | .pa_start = 0x480C8000, |
| 2751 | .pa_end = 0x480C8000 + (SZ_4K - 1), |
| 2752 | .flags = ADDR_TYPE_RT |
| 2753 | }, |
| 2754 | { } |
| 2755 | }; |
| 2756 | |
| 2757 | /* l4 ls -> mailbox */ |
| 2758 | static struct omap_hwmod_ocp_if am33xx_l4_per__mailbox = { |
| 2759 | .master = &am33xx_l4_ls_hwmod, |
| 2760 | .slave = &am33xx_mailbox_hwmod, |
| 2761 | .clk = "l4ls_gclk", |
| 2762 | .addr = am33xx_mailbox_addrs, |
| 2763 | .user = OCP_USER_MPU, |
| 2764 | }; |
| 2765 | |
| 2766 | /* l4 ls -> spinlock */ |
| 2767 | static struct omap_hwmod_addr_space am33xx_spinlock_addrs[] = { |
| 2768 | { |
| 2769 | .pa_start = 0x480Ca000, |
| 2770 | .pa_end = 0x480Ca000 + SZ_4K - 1, |
| 2771 | .flags = ADDR_TYPE_RT |
| 2772 | }, |
| 2773 | { } |
| 2774 | }; |
| 2775 | |
| 2776 | static struct omap_hwmod_ocp_if am33xx_l4_ls__spinlock = { |
| 2777 | .master = &am33xx_l4_ls_hwmod, |
| 2778 | .slave = &am33xx_spinlock_hwmod, |
| 2779 | .clk = "l4ls_gclk", |
| 2780 | .addr = am33xx_spinlock_addrs, |
| 2781 | .user = OCP_USER_MPU, |
| 2782 | }; |
| 2783 | |
| 2784 | /* l4 ls -> mcasp0 */ |
| 2785 | static struct omap_hwmod_addr_space am33xx_mcasp0_addr_space[] = { |
| 2786 | { |
| 2787 | .pa_start = 0x48038000, |
| 2788 | .pa_end = 0x48038000 + SZ_8K - 1, |
| 2789 | .flags = ADDR_TYPE_RT |
| 2790 | }, |
| 2791 | { } |
| 2792 | }; |
| 2793 | |
| 2794 | static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp0 = { |
| 2795 | .master = &am33xx_l4_ls_hwmod, |
| 2796 | .slave = &am33xx_mcasp0_hwmod, |
| 2797 | .clk = "l4ls_gclk", |
| 2798 | .addr = am33xx_mcasp0_addr_space, |
| 2799 | .user = OCP_USER_MPU, |
| 2800 | }; |
| 2801 | |
| 2802 | /* l3 s -> mcasp0 data */ |
| 2803 | static struct omap_hwmod_addr_space am33xx_mcasp0_data_addr_space[] = { |
| 2804 | { |
| 2805 | .pa_start = 0x46000000, |
| 2806 | .pa_end = 0x46000000 + SZ_4M - 1, |
| 2807 | .flags = ADDR_TYPE_RT |
| 2808 | }, |
| 2809 | { } |
| 2810 | }; |
| 2811 | |
| 2812 | static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp0_data = { |
| 2813 | .master = &am33xx_l3_s_hwmod, |
| 2814 | .slave = &am33xx_mcasp0_hwmod, |
| 2815 | .clk = "l3s_gclk", |
| 2816 | .addr = am33xx_mcasp0_data_addr_space, |
| 2817 | .user = OCP_USER_SDMA, |
| 2818 | }; |
| 2819 | |
| 2820 | /* l4 ls -> mcasp1 */ |
| 2821 | static struct omap_hwmod_addr_space am33xx_mcasp1_addr_space[] = { |
| 2822 | { |
| 2823 | .pa_start = 0x4803C000, |
| 2824 | .pa_end = 0x4803C000 + SZ_8K - 1, |
| 2825 | .flags = ADDR_TYPE_RT |
| 2826 | }, |
| 2827 | { } |
| 2828 | }; |
| 2829 | |
| 2830 | static struct omap_hwmod_ocp_if am33xx_l4_ls__mcasp1 = { |
| 2831 | .master = &am33xx_l4_ls_hwmod, |
| 2832 | .slave = &am33xx_mcasp1_hwmod, |
| 2833 | .clk = "l4ls_gclk", |
| 2834 | .addr = am33xx_mcasp1_addr_space, |
| 2835 | .user = OCP_USER_MPU, |
| 2836 | }; |
| 2837 | |
| 2838 | /* l3 s -> mcasp1 data */ |
| 2839 | static struct omap_hwmod_addr_space am33xx_mcasp1_data_addr_space[] = { |
| 2840 | { |
| 2841 | .pa_start = 0x46400000, |
| 2842 | .pa_end = 0x46400000 + SZ_4M - 1, |
| 2843 | .flags = ADDR_TYPE_RT |
| 2844 | }, |
| 2845 | { } |
| 2846 | }; |
| 2847 | |
| 2848 | static struct omap_hwmod_ocp_if am33xx_l3_s__mcasp1_data = { |
| 2849 | .master = &am33xx_l3_s_hwmod, |
| 2850 | .slave = &am33xx_mcasp1_hwmod, |
| 2851 | .clk = "l3s_gclk", |
| 2852 | .addr = am33xx_mcasp1_data_addr_space, |
| 2853 | .user = OCP_USER_SDMA, |
| 2854 | }; |
| 2855 | |
| 2856 | /* l4 ls -> mmc0 */ |
| 2857 | static struct omap_hwmod_addr_space am33xx_mmc0_addr_space[] = { |
| 2858 | { |
| 2859 | .pa_start = 0x48060100, |
| 2860 | .pa_end = 0x48060100 + SZ_4K - 1, |
| 2861 | .flags = ADDR_TYPE_RT, |
| 2862 | }, |
| 2863 | { } |
| 2864 | }; |
| 2865 | |
| 2866 | static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc0 = { |
| 2867 | .master = &am33xx_l4_ls_hwmod, |
| 2868 | .slave = &am33xx_mmc0_hwmod, |
| 2869 | .clk = "l4ls_gclk", |
| 2870 | .addr = am33xx_mmc0_addr_space, |
| 2871 | .user = OCP_USER_MPU, |
| 2872 | }; |
| 2873 | |
| 2874 | /* l4 ls -> mmc1 */ |
| 2875 | static struct omap_hwmod_addr_space am33xx_mmc1_addr_space[] = { |
| 2876 | { |
| 2877 | .pa_start = 0x481d8100, |
| 2878 | .pa_end = 0x481d8100 + SZ_4K - 1, |
| 2879 | .flags = ADDR_TYPE_RT, |
| 2880 | }, |
| 2881 | { } |
| 2882 | }; |
| 2883 | |
| 2884 | static struct omap_hwmod_ocp_if am33xx_l4_ls__mmc1 = { |
| 2885 | .master = &am33xx_l4_ls_hwmod, |
| 2886 | .slave = &am33xx_mmc1_hwmod, |
| 2887 | .clk = "l4ls_gclk", |
| 2888 | .addr = am33xx_mmc1_addr_space, |
| 2889 | .user = OCP_USER_MPU, |
| 2890 | }; |
| 2891 | |
| 2892 | /* l3 s -> mmc2 */ |
| 2893 | static struct omap_hwmod_addr_space am33xx_mmc2_addr_space[] = { |
| 2894 | { |
| 2895 | .pa_start = 0x47810100, |
| 2896 | .pa_end = 0x47810100 + SZ_64K - 1, |
| 2897 | .flags = ADDR_TYPE_RT, |
| 2898 | }, |
| 2899 | { } |
| 2900 | }; |
| 2901 | |
| 2902 | static struct omap_hwmod_ocp_if am33xx_l3_s__mmc2 = { |
| 2903 | .master = &am33xx_l3_s_hwmod, |
| 2904 | .slave = &am33xx_mmc2_hwmod, |
| 2905 | .clk = "l3s_gclk", |
| 2906 | .addr = am33xx_mmc2_addr_space, |
| 2907 | .user = OCP_USER_MPU, |
| 2908 | }; |
| 2909 | |
| 2910 | /* l4 ls -> mcspi0 */ |
| 2911 | static struct omap_hwmod_addr_space am33xx_mcspi0_addr_space[] = { |
| 2912 | { |
| 2913 | .pa_start = 0x48030000, |
| 2914 | .pa_end = 0x48030000 + SZ_1K - 1, |
| 2915 | .flags = ADDR_TYPE_RT, |
| 2916 | }, |
| 2917 | { } |
| 2918 | }; |
| 2919 | |
| 2920 | static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi0 = { |
| 2921 | .master = &am33xx_l4_ls_hwmod, |
| 2922 | .slave = &am33xx_spi0_hwmod, |
| 2923 | .clk = "l4ls_gclk", |
| 2924 | .addr = am33xx_mcspi0_addr_space, |
| 2925 | .user = OCP_USER_MPU, |
| 2926 | }; |
| 2927 | |
| 2928 | /* l4 ls -> mcspi1 */ |
| 2929 | static struct omap_hwmod_addr_space am33xx_mcspi1_addr_space[] = { |
| 2930 | { |
| 2931 | .pa_start = 0x481A0000, |
| 2932 | .pa_end = 0x481A0000 + SZ_1K - 1, |
| 2933 | .flags = ADDR_TYPE_RT, |
| 2934 | }, |
| 2935 | { } |
| 2936 | }; |
| 2937 | |
| 2938 | static struct omap_hwmod_ocp_if am33xx_l4_ls__mcspi1 = { |
| 2939 | .master = &am33xx_l4_ls_hwmod, |
| 2940 | .slave = &am33xx_spi1_hwmod, |
| 2941 | .clk = "l4ls_gclk", |
| 2942 | .addr = am33xx_mcspi1_addr_space, |
| 2943 | .user = OCP_USER_MPU, |
| 2944 | }; |
| 2945 | |
| 2946 | /* l4 wkup -> timer1 */ |
| 2947 | static struct omap_hwmod_addr_space am33xx_timer1_addr_space[] = { |
| 2948 | { |
| 2949 | .pa_start = 0x44E31000, |
| 2950 | .pa_end = 0x44E31000 + SZ_1K - 1, |
| 2951 | .flags = ADDR_TYPE_RT |
| 2952 | }, |
| 2953 | { } |
| 2954 | }; |
| 2955 | |
| 2956 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__timer1 = { |
| 2957 | .master = &am33xx_l4_wkup_hwmod, |
| 2958 | .slave = &am33xx_timer1_hwmod, |
| 2959 | .clk = "dpll_core_m4_div2_ck", |
| 2960 | .addr = am33xx_timer1_addr_space, |
| 2961 | .user = OCP_USER_MPU, |
| 2962 | }; |
| 2963 | |
| 2964 | /* l4 per -> timer2 */ |
| 2965 | static struct omap_hwmod_addr_space am33xx_timer2_addr_space[] = { |
| 2966 | { |
| 2967 | .pa_start = 0x48040000, |
| 2968 | .pa_end = 0x48040000 + SZ_1K - 1, |
| 2969 | .flags = ADDR_TYPE_RT |
| 2970 | }, |
| 2971 | { } |
| 2972 | }; |
| 2973 | |
| 2974 | static struct omap_hwmod_ocp_if am33xx_l4_ls__timer2 = { |
| 2975 | .master = &am33xx_l4_ls_hwmod, |
| 2976 | .slave = &am33xx_timer2_hwmod, |
| 2977 | .clk = "l4ls_gclk", |
| 2978 | .addr = am33xx_timer2_addr_space, |
| 2979 | .user = OCP_USER_MPU, |
| 2980 | }; |
| 2981 | |
| 2982 | /* l4 per -> timer3 */ |
| 2983 | static struct omap_hwmod_addr_space am33xx_timer3_addr_space[] = { |
| 2984 | { |
| 2985 | .pa_start = 0x48042000, |
| 2986 | .pa_end = 0x48042000 + SZ_1K - 1, |
| 2987 | .flags = ADDR_TYPE_RT |
| 2988 | }, |
| 2989 | { } |
| 2990 | }; |
| 2991 | |
| 2992 | static struct omap_hwmod_ocp_if am33xx_l4_ls__timer3 = { |
| 2993 | .master = &am33xx_l4_ls_hwmod, |
| 2994 | .slave = &am33xx_timer3_hwmod, |
| 2995 | .clk = "l4ls_gclk", |
| 2996 | .addr = am33xx_timer3_addr_space, |
| 2997 | .user = OCP_USER_MPU, |
| 2998 | }; |
| 2999 | |
| 3000 | /* l4 per -> timer4 */ |
| 3001 | static struct omap_hwmod_addr_space am33xx_timer4_addr_space[] = { |
| 3002 | { |
| 3003 | .pa_start = 0x48044000, |
| 3004 | .pa_end = 0x48044000 + SZ_1K - 1, |
| 3005 | .flags = ADDR_TYPE_RT |
| 3006 | }, |
| 3007 | { } |
| 3008 | }; |
| 3009 | |
| 3010 | static struct omap_hwmod_ocp_if am33xx_l4_ls__timer4 = { |
| 3011 | .master = &am33xx_l4_ls_hwmod, |
| 3012 | .slave = &am33xx_timer4_hwmod, |
| 3013 | .clk = "l4ls_gclk", |
| 3014 | .addr = am33xx_timer4_addr_space, |
| 3015 | .user = OCP_USER_MPU, |
| 3016 | }; |
| 3017 | |
| 3018 | /* l4 per -> timer5 */ |
| 3019 | static struct omap_hwmod_addr_space am33xx_timer5_addr_space[] = { |
| 3020 | { |
| 3021 | .pa_start = 0x48046000, |
| 3022 | .pa_end = 0x48046000 + SZ_1K - 1, |
| 3023 | .flags = ADDR_TYPE_RT |
| 3024 | }, |
| 3025 | { } |
| 3026 | }; |
| 3027 | |
| 3028 | static struct omap_hwmod_ocp_if am33xx_l4_ls__timer5 = { |
| 3029 | .master = &am33xx_l4_ls_hwmod, |
| 3030 | .slave = &am33xx_timer5_hwmod, |
| 3031 | .clk = "l4ls_gclk", |
| 3032 | .addr = am33xx_timer5_addr_space, |
| 3033 | .user = OCP_USER_MPU, |
| 3034 | }; |
| 3035 | |
| 3036 | /* l4 per -> timer6 */ |
| 3037 | static struct omap_hwmod_addr_space am33xx_timer6_addr_space[] = { |
| 3038 | { |
| 3039 | .pa_start = 0x48048000, |
| 3040 | .pa_end = 0x48048000 + SZ_1K - 1, |
| 3041 | .flags = ADDR_TYPE_RT |
| 3042 | }, |
| 3043 | { } |
| 3044 | }; |
| 3045 | |
| 3046 | static struct omap_hwmod_ocp_if am33xx_l4_ls__timer6 = { |
| 3047 | .master = &am33xx_l4_ls_hwmod, |
| 3048 | .slave = &am33xx_timer6_hwmod, |
| 3049 | .clk = "l4ls_gclk", |
| 3050 | .addr = am33xx_timer6_addr_space, |
| 3051 | .user = OCP_USER_MPU, |
| 3052 | }; |
| 3053 | |
| 3054 | /* l4 per -> timer7 */ |
| 3055 | static struct omap_hwmod_addr_space am33xx_timer7_addr_space[] = { |
| 3056 | { |
| 3057 | .pa_start = 0x4804A000, |
| 3058 | .pa_end = 0x4804A000 + SZ_1K - 1, |
| 3059 | .flags = ADDR_TYPE_RT |
| 3060 | }, |
| 3061 | { } |
| 3062 | }; |
| 3063 | |
| 3064 | static struct omap_hwmod_ocp_if am33xx_l4_ls__timer7 = { |
| 3065 | .master = &am33xx_l4_ls_hwmod, |
| 3066 | .slave = &am33xx_timer7_hwmod, |
| 3067 | .clk = "l4ls_gclk", |
| 3068 | .addr = am33xx_timer7_addr_space, |
| 3069 | .user = OCP_USER_MPU, |
| 3070 | }; |
| 3071 | |
| 3072 | /* l3 main -> tpcc */ |
| 3073 | static struct omap_hwmod_addr_space am33xx_tpcc_addr_space[] = { |
| 3074 | { |
| 3075 | .pa_start = 0x49000000, |
| 3076 | .pa_end = 0x49000000 + SZ_32K - 1, |
| 3077 | .flags = ADDR_TYPE_RT |
| 3078 | }, |
| 3079 | { } |
| 3080 | }; |
| 3081 | |
| 3082 | static struct omap_hwmod_ocp_if am33xx_l3_main__tpcc = { |
| 3083 | .master = &am33xx_l3_main_hwmod, |
| 3084 | .slave = &am33xx_tpcc_hwmod, |
| 3085 | .clk = "l3_gclk", |
| 3086 | .addr = am33xx_tpcc_addr_space, |
| 3087 | .user = OCP_USER_MPU, |
| 3088 | }; |
| 3089 | |
| 3090 | /* l3 main -> tpcc0 */ |
| 3091 | static struct omap_hwmod_addr_space am33xx_tptc0_addr_space[] = { |
| 3092 | { |
| 3093 | .pa_start = 0x49800000, |
| 3094 | .pa_end = 0x49800000 + SZ_8K - 1, |
| 3095 | .flags = ADDR_TYPE_RT, |
| 3096 | }, |
| 3097 | { } |
| 3098 | }; |
| 3099 | |
| 3100 | static struct omap_hwmod_ocp_if am33xx_l3_main__tptc0 = { |
| 3101 | .master = &am33xx_l3_main_hwmod, |
| 3102 | .slave = &am33xx_tptc0_hwmod, |
| 3103 | .clk = "l3_gclk", |
| 3104 | .addr = am33xx_tptc0_addr_space, |
| 3105 | .user = OCP_USER_MPU, |
| 3106 | }; |
| 3107 | |
| 3108 | /* l3 main -> tpcc1 */ |
| 3109 | static struct omap_hwmod_addr_space am33xx_tptc1_addr_space[] = { |
| 3110 | { |
| 3111 | .pa_start = 0x49900000, |
| 3112 | .pa_end = 0x49900000 + SZ_8K - 1, |
| 3113 | .flags = ADDR_TYPE_RT, |
| 3114 | }, |
| 3115 | { } |
| 3116 | }; |
| 3117 | |
| 3118 | static struct omap_hwmod_ocp_if am33xx_l3_main__tptc1 = { |
| 3119 | .master = &am33xx_l3_main_hwmod, |
| 3120 | .slave = &am33xx_tptc1_hwmod, |
| 3121 | .clk = "l3_gclk", |
| 3122 | .addr = am33xx_tptc1_addr_space, |
| 3123 | .user = OCP_USER_MPU, |
| 3124 | }; |
| 3125 | |
| 3126 | /* l3 main -> tpcc2 */ |
| 3127 | static struct omap_hwmod_addr_space am33xx_tptc2_addr_space[] = { |
| 3128 | { |
| 3129 | .pa_start = 0x49a00000, |
| 3130 | .pa_end = 0x49a00000 + SZ_8K - 1, |
| 3131 | .flags = ADDR_TYPE_RT, |
| 3132 | }, |
| 3133 | { } |
| 3134 | }; |
| 3135 | |
| 3136 | static struct omap_hwmod_ocp_if am33xx_l3_main__tptc2 = { |
| 3137 | .master = &am33xx_l3_main_hwmod, |
| 3138 | .slave = &am33xx_tptc2_hwmod, |
| 3139 | .clk = "l3_gclk", |
| 3140 | .addr = am33xx_tptc2_addr_space, |
| 3141 | .user = OCP_USER_MPU, |
| 3142 | }; |
| 3143 | |
| 3144 | /* l4 wkup -> uart1 */ |
| 3145 | static struct omap_hwmod_addr_space am33xx_uart1_addr_space[] = { |
| 3146 | { |
| 3147 | .pa_start = 0x44E09000, |
| 3148 | .pa_end = 0x44E09000 + SZ_8K - 1, |
| 3149 | .flags = ADDR_TYPE_RT, |
| 3150 | }, |
| 3151 | { } |
| 3152 | }; |
| 3153 | |
| 3154 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__uart1 = { |
| 3155 | .master = &am33xx_l4_wkup_hwmod, |
| 3156 | .slave = &am33xx_uart1_hwmod, |
| 3157 | .clk = "dpll_core_m4_div2_ck", |
| 3158 | .addr = am33xx_uart1_addr_space, |
| 3159 | .user = OCP_USER_MPU, |
| 3160 | }; |
| 3161 | |
| 3162 | /* l4 ls -> uart2 */ |
| 3163 | static struct omap_hwmod_addr_space am33xx_uart2_addr_space[] = { |
| 3164 | { |
| 3165 | .pa_start = 0x48022000, |
| 3166 | .pa_end = 0x48022000 + SZ_8K - 1, |
| 3167 | .flags = ADDR_TYPE_RT, |
| 3168 | }, |
| 3169 | { } |
| 3170 | }; |
| 3171 | |
| 3172 | static struct omap_hwmod_ocp_if am33xx_l4_ls__uart2 = { |
| 3173 | .master = &am33xx_l4_ls_hwmod, |
| 3174 | .slave = &am33xx_uart2_hwmod, |
| 3175 | .clk = "l4ls_gclk", |
| 3176 | .addr = am33xx_uart2_addr_space, |
| 3177 | .user = OCP_USER_MPU, |
| 3178 | }; |
| 3179 | |
| 3180 | /* l4 ls -> uart3 */ |
| 3181 | static struct omap_hwmod_addr_space am33xx_uart3_addr_space[] = { |
| 3182 | { |
| 3183 | .pa_start = 0x48024000, |
| 3184 | .pa_end = 0x48024000 + SZ_8K - 1, |
| 3185 | .flags = ADDR_TYPE_RT, |
| 3186 | }, |
| 3187 | { } |
| 3188 | }; |
| 3189 | |
| 3190 | static struct omap_hwmod_ocp_if am33xx_l4_ls__uart3 = { |
| 3191 | .master = &am33xx_l4_ls_hwmod, |
| 3192 | .slave = &am33xx_uart3_hwmod, |
| 3193 | .clk = "l4ls_gclk", |
| 3194 | .addr = am33xx_uart3_addr_space, |
| 3195 | .user = OCP_USER_MPU, |
| 3196 | }; |
| 3197 | |
| 3198 | /* l4 ls -> uart4 */ |
| 3199 | static struct omap_hwmod_addr_space am33xx_uart4_addr_space[] = { |
| 3200 | { |
| 3201 | .pa_start = 0x481A6000, |
| 3202 | .pa_end = 0x481A6000 + SZ_8K - 1, |
| 3203 | .flags = ADDR_TYPE_RT, |
| 3204 | }, |
| 3205 | { } |
| 3206 | }; |
| 3207 | |
| 3208 | static struct omap_hwmod_ocp_if am33xx_l4_ls__uart4 = { |
| 3209 | .master = &am33xx_l4_ls_hwmod, |
| 3210 | .slave = &am33xx_uart4_hwmod, |
| 3211 | .clk = "l4ls_gclk", |
| 3212 | .addr = am33xx_uart4_addr_space, |
| 3213 | .user = OCP_USER_MPU, |
| 3214 | }; |
| 3215 | |
| 3216 | /* l4 ls -> uart5 */ |
| 3217 | static struct omap_hwmod_addr_space am33xx_uart5_addr_space[] = { |
| 3218 | { |
| 3219 | .pa_start = 0x481A8000, |
| 3220 | .pa_end = 0x481A8000 + SZ_8K - 1, |
| 3221 | .flags = ADDR_TYPE_RT, |
| 3222 | }, |
| 3223 | { } |
| 3224 | }; |
| 3225 | |
| 3226 | static struct omap_hwmod_ocp_if am33xx_l4_ls__uart5 = { |
| 3227 | .master = &am33xx_l4_ls_hwmod, |
| 3228 | .slave = &am33xx_uart5_hwmod, |
| 3229 | .clk = "l4ls_gclk", |
| 3230 | .addr = am33xx_uart5_addr_space, |
| 3231 | .user = OCP_USER_MPU, |
| 3232 | }; |
| 3233 | |
| 3234 | /* l4 ls -> uart6 */ |
| 3235 | static struct omap_hwmod_addr_space am33xx_uart6_addr_space[] = { |
| 3236 | { |
| 3237 | .pa_start = 0x481aa000, |
| 3238 | .pa_end = 0x481aa000 + SZ_8K - 1, |
| 3239 | .flags = ADDR_TYPE_RT, |
| 3240 | }, |
| 3241 | { } |
| 3242 | }; |
| 3243 | |
| 3244 | static struct omap_hwmod_ocp_if am33xx_l4_ls__uart6 = { |
| 3245 | .master = &am33xx_l4_ls_hwmod, |
| 3246 | .slave = &am33xx_uart6_hwmod, |
| 3247 | .clk = "l4ls_gclk", |
| 3248 | .addr = am33xx_uart6_addr_space, |
| 3249 | .user = OCP_USER_MPU, |
| 3250 | }; |
| 3251 | |
| 3252 | /* l4 wkup -> wd_timer1 */ |
| 3253 | static struct omap_hwmod_addr_space am33xx_wd_timer1_addrs[] = { |
| 3254 | { |
| 3255 | .pa_start = 0x44e35000, |
| 3256 | .pa_end = 0x44e35000 + SZ_4K - 1, |
| 3257 | .flags = ADDR_TYPE_RT |
| 3258 | }, |
| 3259 | { } |
| 3260 | }; |
| 3261 | |
| 3262 | static struct omap_hwmod_ocp_if am33xx_l4_wkup__wd_timer1 = { |
| 3263 | .master = &am33xx_l4_wkup_hwmod, |
| 3264 | .slave = &am33xx_wd_timer1_hwmod, |
| 3265 | .clk = "dpll_core_m4_div2_ck", |
| 3266 | .addr = am33xx_wd_timer1_addrs, |
| 3267 | .user = OCP_USER_MPU, |
| 3268 | }; |
| 3269 | |
| 3270 | /* usbss */ |
| 3271 | /* l3 s -> USBSS interface */ |
| 3272 | static struct omap_hwmod_addr_space am33xx_usbss_addr_space[] = { |
| 3273 | { |
| 3274 | .name = "usbss", |
| 3275 | .pa_start = 0x47400000, |
| 3276 | .pa_end = 0x47400000 + SZ_4K - 1, |
| 3277 | .flags = ADDR_TYPE_RT |
| 3278 | }, |
| 3279 | { |
| 3280 | .name = "musb0", |
| 3281 | .pa_start = 0x47401000, |
| 3282 | .pa_end = 0x47401000 + SZ_2K - 1, |
| 3283 | .flags = ADDR_TYPE_RT |
| 3284 | }, |
| 3285 | { |
| 3286 | .name = "musb1", |
| 3287 | .pa_start = 0x47401800, |
| 3288 | .pa_end = 0x47401800 + SZ_2K - 1, |
| 3289 | .flags = ADDR_TYPE_RT |
| 3290 | }, |
| 3291 | { } |
| 3292 | }; |
| 3293 | |
| 3294 | static struct omap_hwmod_ocp_if am33xx_l3_s__usbss = { |
| 3295 | .master = &am33xx_l3_s_hwmod, |
| 3296 | .slave = &am33xx_usbss_hwmod, |
| 3297 | .clk = "l3s_gclk", |
| 3298 | .addr = am33xx_usbss_addr_space, |
| 3299 | .user = OCP_USER_MPU, |
| 3300 | .flags = OCPIF_SWSUP_IDLE, |
| 3301 | }; |
| 3302 | |
| 3303 | static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = { |
| 3304 | &am33xx_l4_fw__emif_fw, |
| 3305 | &am33xx_l3_main__emif, |
| 3306 | &am33xx_mpu__l3_main, |
| 3307 | &am33xx_mpu__prcm, |
| 3308 | &am33xx_l3_s__l4_ls, |
| 3309 | &am33xx_l3_s__l4_wkup, |
| 3310 | &am33xx_l3_s__l4_fw, |
| 3311 | &am33xx_l3_main__l4_hs, |
| 3312 | &am33xx_l3_main__l3_s, |
| 3313 | &am33xx_l3_main__l3_instr, |
| 3314 | &am33xx_l3_main__gfx, |
| 3315 | &am33xx_l3_s__l3_main, |
| 3316 | &am33xx_pruss__l3_main, |
| 3317 | &am33xx_wkup_m3__l4_wkup, |
| 3318 | &am33xx_gfx__l3_main, |
| 3319 | &am33xx_l4_wkup__wkup_m3, |
| 3320 | &am33xx_l4_wkup__control, |
| 3321 | &am33xx_l4_wkup__smartreflex0, |
| 3322 | &am33xx_l4_wkup__smartreflex1, |
| 3323 | &am33xx_l4_wkup__uart1, |
| 3324 | &am33xx_l4_wkup__timer1, |
| 3325 | &am33xx_l4_wkup__rtc, |
| 3326 | &am33xx_l4_wkup__i2c1, |
| 3327 | &am33xx_l4_wkup__gpio0, |
| 3328 | &am33xx_l4_wkup__adc_tsc, |
| 3329 | &am33xx_l4_wkup__wd_timer1, |
| 3330 | &am33xx_l4_hs__pruss, |
| 3331 | &am33xx_l4_per__dcan0, |
| 3332 | &am33xx_l4_per__dcan1, |
| 3333 | &am33xx_l4_per__gpio1, |
| 3334 | &am33xx_l4_per__gpio2, |
| 3335 | &am33xx_l4_per__gpio3, |
| 3336 | &am33xx_l4_per__i2c2, |
| 3337 | &am33xx_l4_per__i2c3, |
| 3338 | &am33xx_l4_per__mailbox, |
| 3339 | &am33xx_l4_ls__mcasp0, |
| 3340 | &am33xx_l3_s__mcasp0_data, |
| 3341 | &am33xx_l4_ls__mcasp1, |
| 3342 | &am33xx_l3_s__mcasp1_data, |
| 3343 | &am33xx_l4_ls__mmc0, |
| 3344 | &am33xx_l4_ls__mmc1, |
| 3345 | &am33xx_l3_s__mmc2, |
| 3346 | &am33xx_l4_ls__timer2, |
| 3347 | &am33xx_l4_ls__timer3, |
| 3348 | &am33xx_l4_ls__timer4, |
| 3349 | &am33xx_l4_ls__timer5, |
| 3350 | &am33xx_l4_ls__timer6, |
| 3351 | &am33xx_l4_ls__timer7, |
| 3352 | &am33xx_l3_main__tpcc, |
| 3353 | &am33xx_l4_ls__uart2, |
| 3354 | &am33xx_l4_ls__uart3, |
| 3355 | &am33xx_l4_ls__uart4, |
| 3356 | &am33xx_l4_ls__uart5, |
| 3357 | &am33xx_l4_ls__uart6, |
| 3358 | &am33xx_l4_ls__spinlock, |
| 3359 | &am33xx_l4_ls__elm, |
| 3360 | &am33xx_l4_ls__ehrpwm0, |
| 3361 | &am33xx_l4_ls__ehrpwm1, |
| 3362 | &am33xx_l4_ls__ehrpwm2, |
| 3363 | &am33xx_l4_ls__ecap0, |
| 3364 | &am33xx_l4_ls__ecap1, |
| 3365 | &am33xx_l4_ls__ecap2, |
| 3366 | &am33xx_l3_s__gpmc, |
| 3367 | &am33xx_l3_main__lcdc, |
| 3368 | &am33xx_l4_ls__mcspi0, |
| 3369 | &am33xx_l4_ls__mcspi1, |
| 3370 | &am33xx_l3_main__tptc0, |
| 3371 | &am33xx_l3_main__tptc1, |
| 3372 | &am33xx_l3_main__tptc2, |
| 3373 | &am33xx_l3_s__usbss, |
| 3374 | &am33xx_l4_hs__cpgmac0, |
| 3375 | NULL, |
| 3376 | }; |
| 3377 | |
| 3378 | int __init am33xx_hwmod_init(void) |
| 3379 | { |
| 3380 | omap_hwmod_init(); |
| 3381 | return omap_hwmod_register_links(am33xx_hwmod_ocp_ifs); |
| 3382 | } |