Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 1 | /* |
| 2 | * omap_hwmod_3xxx_data.c - hardware modules present on the OMAP3xxx chips |
| 3 | * |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 4 | * Copyright (C) 2009-2011 Nokia Corporation |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 5 | * Copyright (C) 2012 Texas Instruments, Inc. |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 6 | * Paul Walmsley |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | * |
| 12 | * The data in this file should be completely autogeneratable from |
| 13 | * the TI hardware database or other technical documentation. |
| 14 | * |
| 15 | * XXX these should be marked initdata for multi-OMAP kernels |
| 16 | */ |
| 17 | #include <plat/omap_hwmod.h> |
| 18 | #include <mach/irqs.h> |
| 19 | #include <plat/cpu.h> |
| 20 | #include <plat/dma.h> |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 21 | #include <plat/serial.h> |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 22 | #include <plat/l3_3xxx.h> |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 23 | #include <plat/l4_3xxx.h> |
| 24 | #include <plat/i2c.h> |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 25 | #include <plat/gpio.h> |
Kishore Kadiyala | 6ab8946 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 26 | #include <plat/mmc.h> |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 27 | #include <plat/mcbsp.h> |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 28 | #include <plat/mcspi.h> |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 29 | #include <plat/dmtimer.h> |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 30 | |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 31 | #include "omap_hwmod_common_data.h" |
| 32 | |
Shweta Gulati | cea6b94 | 2012-02-29 23:33:37 +0100 | [diff] [blame] | 33 | #include "smartreflex.h" |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 34 | #include "prm-regbits-34xx.h" |
Varadarajan, Charulatha | 6b667f8 | 2010-09-23 20:02:38 +0530 | [diff] [blame] | 35 | #include "cm-regbits-34xx.h" |
Paul Walmsley | ff2516f | 2010-12-21 15:39:15 -0700 | [diff] [blame] | 36 | #include "wd_timer.h" |
Hema HK | 273ff8c | 2011-02-17 12:07:19 +0530 | [diff] [blame] | 37 | #include <mach/am35xx.h> |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 38 | |
| 39 | /* |
| 40 | * OMAP3xxx hardware module integration data |
| 41 | * |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 42 | * All of the data in this section should be autogeneratable from the |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 43 | * TI hardware database or other technical documentation. Data that |
| 44 | * is driver-specific or driver-kernel integration-specific belongs |
| 45 | * elsewhere. |
| 46 | */ |
| 47 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 48 | /* |
| 49 | * IP blocks |
| 50 | */ |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 51 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 52 | /* L3 */ |
| 53 | static struct omap_hwmod_irq_info omap3xxx_l3_main_irqs[] = { |
| 54 | { .irq = INT_34XX_L3_DBG_IRQ }, |
| 55 | { .irq = INT_34XX_L3_APP_IRQ }, |
| 56 | { .irq = -1 } |
| 57 | }; |
G, Manjunath Kondaiah | 01438ab | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 58 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 59 | static struct omap_hwmod omap3xxx_l3_main_hwmod = { |
| 60 | .name = "l3_main", |
| 61 | .class = &l3_hwmod_class, |
| 62 | .mpu_irqs = omap3xxx_l3_main_irqs, |
| 63 | .flags = HWMOD_NO_IDLEST, |
| 64 | }; |
| 65 | |
| 66 | /* L4 CORE */ |
| 67 | static struct omap_hwmod omap3xxx_l4_core_hwmod = { |
| 68 | .name = "l4_core", |
| 69 | .class = &l4_hwmod_class, |
| 70 | .flags = HWMOD_NO_IDLEST, |
| 71 | }; |
| 72 | |
| 73 | /* L4 PER */ |
| 74 | static struct omap_hwmod omap3xxx_l4_per_hwmod = { |
| 75 | .name = "l4_per", |
| 76 | .class = &l4_hwmod_class, |
| 77 | .flags = HWMOD_NO_IDLEST, |
| 78 | }; |
| 79 | |
| 80 | /* L4 WKUP */ |
| 81 | static struct omap_hwmod omap3xxx_l4_wkup_hwmod = { |
| 82 | .name = "l4_wkup", |
| 83 | .class = &l4_hwmod_class, |
| 84 | .flags = HWMOD_NO_IDLEST, |
| 85 | }; |
| 86 | |
| 87 | /* L4 SEC */ |
| 88 | static struct omap_hwmod omap3xxx_l4_sec_hwmod = { |
| 89 | .name = "l4_sec", |
| 90 | .class = &l4_hwmod_class, |
| 91 | .flags = HWMOD_NO_IDLEST, |
| 92 | }; |
| 93 | |
| 94 | /* MPU */ |
| 95 | static struct omap_hwmod omap3xxx_mpu_hwmod = { |
| 96 | .name = "mpu", |
| 97 | .class = &mpu_hwmod_class, |
| 98 | .main_clk = "arm_fck", |
| 99 | }; |
| 100 | |
| 101 | /* IVA2 (IVA2) */ |
Paul Walmsley | f42c549 | 2012-04-19 04:04:37 -0600 | [diff] [blame] | 102 | static struct omap_hwmod_rst_info omap3xxx_iva_resets[] = { |
| 103 | { .name = "logic", .rst_shift = 0 }, |
| 104 | { .name = "seq0", .rst_shift = 1 }, |
| 105 | { .name = "seq1", .rst_shift = 2 }, |
| 106 | }; |
| 107 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 108 | static struct omap_hwmod omap3xxx_iva_hwmod = { |
| 109 | .name = "iva", |
| 110 | .class = &iva_hwmod_class, |
Paul Walmsley | f42c549 | 2012-04-19 04:04:37 -0600 | [diff] [blame] | 111 | .clkdm_name = "iva2_clkdm", |
| 112 | .rst_lines = omap3xxx_iva_resets, |
| 113 | .rst_lines_cnt = ARRAY_SIZE(omap3xxx_iva_resets), |
| 114 | .main_clk = "iva2_ck", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | /* timer class */ |
| 118 | static struct omap_hwmod_class_sysconfig omap3xxx_timer_1ms_sysc = { |
| 119 | .rev_offs = 0x0000, |
| 120 | .sysc_offs = 0x0010, |
| 121 | .syss_offs = 0x0014, |
| 122 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_CLOCKACTIVITY | |
| 123 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 124 | SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE), |
| 125 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 126 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 127 | }; |
| 128 | |
| 129 | static struct omap_hwmod_class omap3xxx_timer_1ms_hwmod_class = { |
| 130 | .name = "timer", |
| 131 | .sysc = &omap3xxx_timer_1ms_sysc, |
| 132 | .rev = OMAP_TIMER_IP_VERSION_1, |
| 133 | }; |
| 134 | |
| 135 | static struct omap_hwmod_class_sysconfig omap3xxx_timer_sysc = { |
| 136 | .rev_offs = 0x0000, |
| 137 | .sysc_offs = 0x0010, |
| 138 | .syss_offs = 0x0014, |
| 139 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP | |
| 140 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), |
| 141 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 142 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 143 | }; |
| 144 | |
| 145 | static struct omap_hwmod_class omap3xxx_timer_hwmod_class = { |
| 146 | .name = "timer", |
| 147 | .sysc = &omap3xxx_timer_sysc, |
| 148 | .rev = OMAP_TIMER_IP_VERSION_1, |
| 149 | }; |
| 150 | |
| 151 | /* secure timers dev attribute */ |
| 152 | static struct omap_timer_capability_dev_attr capability_secure_dev_attr = { |
| 153 | .timer_capability = OMAP_TIMER_SECURE, |
| 154 | }; |
| 155 | |
| 156 | /* always-on timers dev attribute */ |
| 157 | static struct omap_timer_capability_dev_attr capability_alwon_dev_attr = { |
| 158 | .timer_capability = OMAP_TIMER_ALWON, |
| 159 | }; |
| 160 | |
| 161 | /* pwm timers dev attribute */ |
| 162 | static struct omap_timer_capability_dev_attr capability_pwm_dev_attr = { |
| 163 | .timer_capability = OMAP_TIMER_HAS_PWM, |
| 164 | }; |
| 165 | |
| 166 | /* timer1 */ |
| 167 | static struct omap_hwmod omap3xxx_timer1_hwmod = { |
| 168 | .name = "timer1", |
| 169 | .mpu_irqs = omap2_timer1_mpu_irqs, |
| 170 | .main_clk = "gpt1_fck", |
| 171 | .prcm = { |
| 172 | .omap2 = { |
| 173 | .prcm_reg_id = 1, |
| 174 | .module_bit = OMAP3430_EN_GPT1_SHIFT, |
| 175 | .module_offs = WKUP_MOD, |
| 176 | .idlest_reg_id = 1, |
| 177 | .idlest_idle_bit = OMAP3430_ST_GPT1_SHIFT, |
| 178 | }, |
| 179 | }, |
| 180 | .dev_attr = &capability_alwon_dev_attr, |
| 181 | .class = &omap3xxx_timer_1ms_hwmod_class, |
| 182 | }; |
| 183 | |
| 184 | /* timer2 */ |
| 185 | static struct omap_hwmod omap3xxx_timer2_hwmod = { |
| 186 | .name = "timer2", |
| 187 | .mpu_irqs = omap2_timer2_mpu_irqs, |
| 188 | .main_clk = "gpt2_fck", |
| 189 | .prcm = { |
| 190 | .omap2 = { |
| 191 | .prcm_reg_id = 1, |
| 192 | .module_bit = OMAP3430_EN_GPT2_SHIFT, |
| 193 | .module_offs = OMAP3430_PER_MOD, |
| 194 | .idlest_reg_id = 1, |
| 195 | .idlest_idle_bit = OMAP3430_ST_GPT2_SHIFT, |
| 196 | }, |
| 197 | }, |
| 198 | .dev_attr = &capability_alwon_dev_attr, |
| 199 | .class = &omap3xxx_timer_1ms_hwmod_class, |
| 200 | }; |
| 201 | |
| 202 | /* timer3 */ |
| 203 | static struct omap_hwmod omap3xxx_timer3_hwmod = { |
| 204 | .name = "timer3", |
| 205 | .mpu_irqs = omap2_timer3_mpu_irqs, |
| 206 | .main_clk = "gpt3_fck", |
| 207 | .prcm = { |
| 208 | .omap2 = { |
| 209 | .prcm_reg_id = 1, |
| 210 | .module_bit = OMAP3430_EN_GPT3_SHIFT, |
| 211 | .module_offs = OMAP3430_PER_MOD, |
| 212 | .idlest_reg_id = 1, |
| 213 | .idlest_idle_bit = OMAP3430_ST_GPT3_SHIFT, |
| 214 | }, |
| 215 | }, |
| 216 | .dev_attr = &capability_alwon_dev_attr, |
| 217 | .class = &omap3xxx_timer_hwmod_class, |
| 218 | }; |
| 219 | |
| 220 | /* timer4 */ |
| 221 | static struct omap_hwmod omap3xxx_timer4_hwmod = { |
| 222 | .name = "timer4", |
| 223 | .mpu_irqs = omap2_timer4_mpu_irqs, |
| 224 | .main_clk = "gpt4_fck", |
| 225 | .prcm = { |
| 226 | .omap2 = { |
| 227 | .prcm_reg_id = 1, |
| 228 | .module_bit = OMAP3430_EN_GPT4_SHIFT, |
| 229 | .module_offs = OMAP3430_PER_MOD, |
| 230 | .idlest_reg_id = 1, |
| 231 | .idlest_idle_bit = OMAP3430_ST_GPT4_SHIFT, |
| 232 | }, |
| 233 | }, |
| 234 | .dev_attr = &capability_alwon_dev_attr, |
| 235 | .class = &omap3xxx_timer_hwmod_class, |
| 236 | }; |
| 237 | |
| 238 | /* timer5 */ |
| 239 | static struct omap_hwmod omap3xxx_timer5_hwmod = { |
| 240 | .name = "timer5", |
| 241 | .mpu_irqs = omap2_timer5_mpu_irqs, |
| 242 | .main_clk = "gpt5_fck", |
| 243 | .prcm = { |
| 244 | .omap2 = { |
| 245 | .prcm_reg_id = 1, |
| 246 | .module_bit = OMAP3430_EN_GPT5_SHIFT, |
| 247 | .module_offs = OMAP3430_PER_MOD, |
| 248 | .idlest_reg_id = 1, |
| 249 | .idlest_idle_bit = OMAP3430_ST_GPT5_SHIFT, |
| 250 | }, |
| 251 | }, |
| 252 | .dev_attr = &capability_alwon_dev_attr, |
| 253 | .class = &omap3xxx_timer_hwmod_class, |
| 254 | }; |
| 255 | |
| 256 | /* timer6 */ |
| 257 | static struct omap_hwmod omap3xxx_timer6_hwmod = { |
| 258 | .name = "timer6", |
| 259 | .mpu_irqs = omap2_timer6_mpu_irqs, |
| 260 | .main_clk = "gpt6_fck", |
| 261 | .prcm = { |
| 262 | .omap2 = { |
| 263 | .prcm_reg_id = 1, |
| 264 | .module_bit = OMAP3430_EN_GPT6_SHIFT, |
| 265 | .module_offs = OMAP3430_PER_MOD, |
| 266 | .idlest_reg_id = 1, |
| 267 | .idlest_idle_bit = OMAP3430_ST_GPT6_SHIFT, |
| 268 | }, |
| 269 | }, |
| 270 | .dev_attr = &capability_alwon_dev_attr, |
| 271 | .class = &omap3xxx_timer_hwmod_class, |
| 272 | }; |
| 273 | |
| 274 | /* timer7 */ |
| 275 | static struct omap_hwmod omap3xxx_timer7_hwmod = { |
| 276 | .name = "timer7", |
| 277 | .mpu_irqs = omap2_timer7_mpu_irqs, |
| 278 | .main_clk = "gpt7_fck", |
| 279 | .prcm = { |
| 280 | .omap2 = { |
| 281 | .prcm_reg_id = 1, |
| 282 | .module_bit = OMAP3430_EN_GPT7_SHIFT, |
| 283 | .module_offs = OMAP3430_PER_MOD, |
| 284 | .idlest_reg_id = 1, |
| 285 | .idlest_idle_bit = OMAP3430_ST_GPT7_SHIFT, |
| 286 | }, |
| 287 | }, |
| 288 | .dev_attr = &capability_alwon_dev_attr, |
| 289 | .class = &omap3xxx_timer_hwmod_class, |
| 290 | }; |
| 291 | |
| 292 | /* timer8 */ |
| 293 | static struct omap_hwmod omap3xxx_timer8_hwmod = { |
| 294 | .name = "timer8", |
| 295 | .mpu_irqs = omap2_timer8_mpu_irqs, |
| 296 | .main_clk = "gpt8_fck", |
| 297 | .prcm = { |
| 298 | .omap2 = { |
| 299 | .prcm_reg_id = 1, |
| 300 | .module_bit = OMAP3430_EN_GPT8_SHIFT, |
| 301 | .module_offs = OMAP3430_PER_MOD, |
| 302 | .idlest_reg_id = 1, |
| 303 | .idlest_idle_bit = OMAP3430_ST_GPT8_SHIFT, |
| 304 | }, |
| 305 | }, |
| 306 | .dev_attr = &capability_pwm_dev_attr, |
| 307 | .class = &omap3xxx_timer_hwmod_class, |
| 308 | }; |
| 309 | |
| 310 | /* timer9 */ |
| 311 | static struct omap_hwmod omap3xxx_timer9_hwmod = { |
| 312 | .name = "timer9", |
| 313 | .mpu_irqs = omap2_timer9_mpu_irqs, |
| 314 | .main_clk = "gpt9_fck", |
| 315 | .prcm = { |
| 316 | .omap2 = { |
| 317 | .prcm_reg_id = 1, |
| 318 | .module_bit = OMAP3430_EN_GPT9_SHIFT, |
| 319 | .module_offs = OMAP3430_PER_MOD, |
| 320 | .idlest_reg_id = 1, |
| 321 | .idlest_idle_bit = OMAP3430_ST_GPT9_SHIFT, |
| 322 | }, |
| 323 | }, |
| 324 | .dev_attr = &capability_pwm_dev_attr, |
| 325 | .class = &omap3xxx_timer_hwmod_class, |
| 326 | }; |
| 327 | |
| 328 | /* timer10 */ |
| 329 | static struct omap_hwmod omap3xxx_timer10_hwmod = { |
| 330 | .name = "timer10", |
| 331 | .mpu_irqs = omap2_timer10_mpu_irqs, |
| 332 | .main_clk = "gpt10_fck", |
| 333 | .prcm = { |
| 334 | .omap2 = { |
| 335 | .prcm_reg_id = 1, |
| 336 | .module_bit = OMAP3430_EN_GPT10_SHIFT, |
| 337 | .module_offs = CORE_MOD, |
| 338 | .idlest_reg_id = 1, |
| 339 | .idlest_idle_bit = OMAP3430_ST_GPT10_SHIFT, |
| 340 | }, |
| 341 | }, |
| 342 | .dev_attr = &capability_pwm_dev_attr, |
| 343 | .class = &omap3xxx_timer_1ms_hwmod_class, |
| 344 | }; |
| 345 | |
| 346 | /* timer11 */ |
| 347 | static struct omap_hwmod omap3xxx_timer11_hwmod = { |
| 348 | .name = "timer11", |
| 349 | .mpu_irqs = omap2_timer11_mpu_irqs, |
| 350 | .main_clk = "gpt11_fck", |
| 351 | .prcm = { |
| 352 | .omap2 = { |
| 353 | .prcm_reg_id = 1, |
| 354 | .module_bit = OMAP3430_EN_GPT11_SHIFT, |
| 355 | .module_offs = CORE_MOD, |
| 356 | .idlest_reg_id = 1, |
| 357 | .idlest_idle_bit = OMAP3430_ST_GPT11_SHIFT, |
| 358 | }, |
| 359 | }, |
| 360 | .dev_attr = &capability_pwm_dev_attr, |
| 361 | .class = &omap3xxx_timer_hwmod_class, |
| 362 | }; |
| 363 | |
| 364 | /* timer12 */ |
| 365 | static struct omap_hwmod_irq_info omap3xxx_timer12_mpu_irqs[] = { |
| 366 | { .irq = 95, }, |
| 367 | { .irq = -1 } |
| 368 | }; |
| 369 | |
| 370 | static struct omap_hwmod omap3xxx_timer12_hwmod = { |
| 371 | .name = "timer12", |
| 372 | .mpu_irqs = omap3xxx_timer12_mpu_irqs, |
| 373 | .main_clk = "gpt12_fck", |
| 374 | .prcm = { |
| 375 | .omap2 = { |
| 376 | .prcm_reg_id = 1, |
| 377 | .module_bit = OMAP3430_EN_GPT12_SHIFT, |
| 378 | .module_offs = WKUP_MOD, |
| 379 | .idlest_reg_id = 1, |
| 380 | .idlest_idle_bit = OMAP3430_ST_GPT12_SHIFT, |
| 381 | }, |
| 382 | }, |
| 383 | .dev_attr = &capability_secure_dev_attr, |
| 384 | .class = &omap3xxx_timer_hwmod_class, |
| 385 | }; |
| 386 | |
| 387 | /* |
| 388 | * 'wd_timer' class |
| 389 | * 32-bit watchdog upward counter that generates a pulse on the reset pin on |
| 390 | * overflow condition |
| 391 | */ |
| 392 | |
| 393 | static struct omap_hwmod_class_sysconfig omap3xxx_wd_timer_sysc = { |
| 394 | .rev_offs = 0x0000, |
| 395 | .sysc_offs = 0x0010, |
| 396 | .syss_offs = 0x0014, |
| 397 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_EMUFREE | |
| 398 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 399 | SYSC_HAS_AUTOIDLE | SYSC_HAS_CLOCKACTIVITY | |
| 400 | SYSS_HAS_RESET_STATUS), |
| 401 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 402 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 403 | }; |
| 404 | |
| 405 | /* I2C common */ |
| 406 | static struct omap_hwmod_class_sysconfig i2c_sysc = { |
| 407 | .rev_offs = 0x00, |
| 408 | .sysc_offs = 0x20, |
| 409 | .syss_offs = 0x10, |
| 410 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 411 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 412 | SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS), |
| 413 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 414 | .clockact = CLOCKACT_TEST_ICLK, |
| 415 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 416 | }; |
| 417 | |
| 418 | static struct omap_hwmod_class omap3xxx_wd_timer_hwmod_class = { |
| 419 | .name = "wd_timer", |
| 420 | .sysc = &omap3xxx_wd_timer_sysc, |
| 421 | .pre_shutdown = &omap2_wd_timer_disable |
| 422 | }; |
| 423 | |
| 424 | static struct omap_hwmod omap3xxx_wd_timer2_hwmod = { |
| 425 | .name = "wd_timer2", |
| 426 | .class = &omap3xxx_wd_timer_hwmod_class, |
| 427 | .main_clk = "wdt2_fck", |
| 428 | .prcm = { |
| 429 | .omap2 = { |
| 430 | .prcm_reg_id = 1, |
| 431 | .module_bit = OMAP3430_EN_WDT2_SHIFT, |
| 432 | .module_offs = WKUP_MOD, |
| 433 | .idlest_reg_id = 1, |
| 434 | .idlest_idle_bit = OMAP3430_ST_WDT2_SHIFT, |
| 435 | }, |
| 436 | }, |
| 437 | /* |
| 438 | * XXX: Use software supervised mode, HW supervised smartidle seems to |
| 439 | * block CORE power domain idle transitions. Maybe a HW bug in wdt2? |
| 440 | */ |
| 441 | .flags = HWMOD_SWSUP_SIDLE, |
| 442 | }; |
| 443 | |
| 444 | /* UART1 */ |
| 445 | static struct omap_hwmod omap3xxx_uart1_hwmod = { |
| 446 | .name = "uart1", |
| 447 | .mpu_irqs = omap2_uart1_mpu_irqs, |
| 448 | .sdma_reqs = omap2_uart1_sdma_reqs, |
| 449 | .main_clk = "uart1_fck", |
| 450 | .prcm = { |
| 451 | .omap2 = { |
| 452 | .module_offs = CORE_MOD, |
| 453 | .prcm_reg_id = 1, |
| 454 | .module_bit = OMAP3430_EN_UART1_SHIFT, |
| 455 | .idlest_reg_id = 1, |
| 456 | .idlest_idle_bit = OMAP3430_EN_UART1_SHIFT, |
| 457 | }, |
| 458 | }, |
| 459 | .class = &omap2_uart_class, |
| 460 | }; |
| 461 | |
| 462 | /* UART2 */ |
| 463 | static struct omap_hwmod omap3xxx_uart2_hwmod = { |
| 464 | .name = "uart2", |
| 465 | .mpu_irqs = omap2_uart2_mpu_irqs, |
| 466 | .sdma_reqs = omap2_uart2_sdma_reqs, |
| 467 | .main_clk = "uart2_fck", |
| 468 | .prcm = { |
| 469 | .omap2 = { |
| 470 | .module_offs = CORE_MOD, |
| 471 | .prcm_reg_id = 1, |
| 472 | .module_bit = OMAP3430_EN_UART2_SHIFT, |
| 473 | .idlest_reg_id = 1, |
| 474 | .idlest_idle_bit = OMAP3430_EN_UART2_SHIFT, |
| 475 | }, |
| 476 | }, |
| 477 | .class = &omap2_uart_class, |
| 478 | }; |
| 479 | |
| 480 | /* UART3 */ |
| 481 | static struct omap_hwmod omap3xxx_uart3_hwmod = { |
| 482 | .name = "uart3", |
| 483 | .mpu_irqs = omap2_uart3_mpu_irqs, |
| 484 | .sdma_reqs = omap2_uart3_sdma_reqs, |
| 485 | .main_clk = "uart3_fck", |
| 486 | .prcm = { |
| 487 | .omap2 = { |
| 488 | .module_offs = OMAP3430_PER_MOD, |
| 489 | .prcm_reg_id = 1, |
| 490 | .module_bit = OMAP3430_EN_UART3_SHIFT, |
| 491 | .idlest_reg_id = 1, |
| 492 | .idlest_idle_bit = OMAP3430_EN_UART3_SHIFT, |
| 493 | }, |
| 494 | }, |
| 495 | .class = &omap2_uart_class, |
| 496 | }; |
| 497 | |
| 498 | /* UART4 */ |
| 499 | static struct omap_hwmod_irq_info uart4_mpu_irqs[] = { |
| 500 | { .irq = INT_36XX_UART4_IRQ, }, |
| 501 | { .irq = -1 } |
| 502 | }; |
| 503 | |
| 504 | static struct omap_hwmod_dma_info uart4_sdma_reqs[] = { |
| 505 | { .name = "rx", .dma_req = OMAP36XX_DMA_UART4_RX, }, |
| 506 | { .name = "tx", .dma_req = OMAP36XX_DMA_UART4_TX, }, |
| 507 | { .dma_req = -1 } |
| 508 | }; |
| 509 | |
| 510 | static struct omap_hwmod omap36xx_uart4_hwmod = { |
| 511 | .name = "uart4", |
| 512 | .mpu_irqs = uart4_mpu_irqs, |
| 513 | .sdma_reqs = uart4_sdma_reqs, |
| 514 | .main_clk = "uart4_fck", |
| 515 | .prcm = { |
| 516 | .omap2 = { |
| 517 | .module_offs = OMAP3430_PER_MOD, |
| 518 | .prcm_reg_id = 1, |
| 519 | .module_bit = OMAP3630_EN_UART4_SHIFT, |
| 520 | .idlest_reg_id = 1, |
| 521 | .idlest_idle_bit = OMAP3630_EN_UART4_SHIFT, |
| 522 | }, |
| 523 | }, |
| 524 | .class = &omap2_uart_class, |
| 525 | }; |
| 526 | |
| 527 | static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs[] = { |
| 528 | { .irq = INT_35XX_UART4_IRQ, }, |
| 529 | }; |
| 530 | |
| 531 | static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs[] = { |
| 532 | { .name = "rx", .dma_req = AM35XX_DMA_UART4_RX, }, |
| 533 | { .name = "tx", .dma_req = AM35XX_DMA_UART4_TX, }, |
| 534 | }; |
| 535 | |
| 536 | static struct omap_hwmod am35xx_uart4_hwmod = { |
| 537 | .name = "uart4", |
| 538 | .mpu_irqs = am35xx_uart4_mpu_irqs, |
| 539 | .sdma_reqs = am35xx_uart4_sdma_reqs, |
| 540 | .main_clk = "uart4_fck", |
| 541 | .prcm = { |
| 542 | .omap2 = { |
| 543 | .module_offs = CORE_MOD, |
| 544 | .prcm_reg_id = 1, |
| 545 | .module_bit = OMAP3430_EN_UART4_SHIFT, |
| 546 | .idlest_reg_id = 1, |
| 547 | .idlest_idle_bit = OMAP3430_EN_UART4_SHIFT, |
| 548 | }, |
| 549 | }, |
| 550 | .class = &omap2_uart_class, |
| 551 | }; |
| 552 | |
| 553 | static struct omap_hwmod_class i2c_class = { |
| 554 | .name = "i2c", |
| 555 | .sysc = &i2c_sysc, |
| 556 | .rev = OMAP_I2C_IP_VERSION_1, |
| 557 | .reset = &omap_i2c_reset, |
| 558 | }; |
| 559 | |
| 560 | static struct omap_hwmod_dma_info omap3xxx_dss_sdma_chs[] = { |
| 561 | { .name = "dispc", .dma_req = 5 }, |
| 562 | { .name = "dsi1", .dma_req = 74 }, |
| 563 | { .dma_req = -1 } |
| 564 | }; |
| 565 | |
| 566 | /* dss */ |
| 567 | static struct omap_hwmod_opt_clk dss_opt_clks[] = { |
| 568 | /* |
| 569 | * The DSS HW needs all DSS clocks enabled during reset. The dss_core |
| 570 | * driver does not use these clocks. |
| 571 | */ |
| 572 | { .role = "sys_clk", .clk = "dss2_alwon_fck" }, |
| 573 | { .role = "tv_clk", .clk = "dss_tv_fck" }, |
| 574 | /* required only on OMAP3430 */ |
| 575 | { .role = "tv_dac_clk", .clk = "dss_96m_fck" }, |
| 576 | }; |
| 577 | |
| 578 | static struct omap_hwmod omap3430es1_dss_core_hwmod = { |
| 579 | .name = "dss_core", |
| 580 | .class = &omap2_dss_hwmod_class, |
| 581 | .main_clk = "dss1_alwon_fck", /* instead of dss_fck */ |
| 582 | .sdma_reqs = omap3xxx_dss_sdma_chs, |
| 583 | .prcm = { |
| 584 | .omap2 = { |
| 585 | .prcm_reg_id = 1, |
| 586 | .module_bit = OMAP3430_EN_DSS1_SHIFT, |
| 587 | .module_offs = OMAP3430_DSS_MOD, |
| 588 | .idlest_reg_id = 1, |
| 589 | .idlest_stdby_bit = OMAP3430ES1_ST_DSS_SHIFT, |
| 590 | }, |
| 591 | }, |
| 592 | .opt_clks = dss_opt_clks, |
| 593 | .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks), |
| 594 | .flags = HWMOD_NO_IDLEST | HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 595 | }; |
| 596 | |
| 597 | static struct omap_hwmod omap3xxx_dss_core_hwmod = { |
| 598 | .name = "dss_core", |
| 599 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 600 | .class = &omap2_dss_hwmod_class, |
| 601 | .main_clk = "dss1_alwon_fck", /* instead of dss_fck */ |
| 602 | .sdma_reqs = omap3xxx_dss_sdma_chs, |
| 603 | .prcm = { |
| 604 | .omap2 = { |
| 605 | .prcm_reg_id = 1, |
| 606 | .module_bit = OMAP3430_EN_DSS1_SHIFT, |
| 607 | .module_offs = OMAP3430_DSS_MOD, |
| 608 | .idlest_reg_id = 1, |
| 609 | .idlest_idle_bit = OMAP3430ES2_ST_DSS_IDLE_SHIFT, |
| 610 | .idlest_stdby_bit = OMAP3430ES2_ST_DSS_STDBY_SHIFT, |
| 611 | }, |
| 612 | }, |
| 613 | .opt_clks = dss_opt_clks, |
| 614 | .opt_clks_cnt = ARRAY_SIZE(dss_opt_clks), |
| 615 | }; |
| 616 | |
| 617 | /* |
| 618 | * 'dispc' class |
| 619 | * display controller |
| 620 | */ |
| 621 | |
| 622 | static struct omap_hwmod_class_sysconfig omap3_dispc_sysc = { |
| 623 | .rev_offs = 0x0000, |
| 624 | .sysc_offs = 0x0010, |
| 625 | .syss_offs = 0x0014, |
| 626 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE | |
| 627 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE | |
| 628 | SYSC_HAS_ENAWAKEUP), |
| 629 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 630 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), |
| 631 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 632 | }; |
| 633 | |
| 634 | static struct omap_hwmod_class omap3_dispc_hwmod_class = { |
| 635 | .name = "dispc", |
| 636 | .sysc = &omap3_dispc_sysc, |
| 637 | }; |
| 638 | |
| 639 | static struct omap_hwmod omap3xxx_dss_dispc_hwmod = { |
| 640 | .name = "dss_dispc", |
| 641 | .class = &omap3_dispc_hwmod_class, |
| 642 | .mpu_irqs = omap2_dispc_irqs, |
| 643 | .main_clk = "dss1_alwon_fck", |
| 644 | .prcm = { |
| 645 | .omap2 = { |
| 646 | .prcm_reg_id = 1, |
| 647 | .module_bit = OMAP3430_EN_DSS1_SHIFT, |
| 648 | .module_offs = OMAP3430_DSS_MOD, |
| 649 | }, |
| 650 | }, |
| 651 | .flags = HWMOD_NO_IDLEST, |
| 652 | .dev_attr = &omap2_3_dss_dispc_dev_attr |
| 653 | }; |
| 654 | |
| 655 | /* |
| 656 | * 'dsi' class |
| 657 | * display serial interface controller |
| 658 | */ |
| 659 | |
| 660 | static struct omap_hwmod_class omap3xxx_dsi_hwmod_class = { |
| 661 | .name = "dsi", |
| 662 | }; |
| 663 | |
| 664 | static struct omap_hwmod_irq_info omap3xxx_dsi1_irqs[] = { |
| 665 | { .irq = 25 }, |
| 666 | { .irq = -1 } |
| 667 | }; |
| 668 | |
| 669 | /* dss_dsi1 */ |
| 670 | static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = { |
| 671 | { .role = "sys_clk", .clk = "dss2_alwon_fck" }, |
| 672 | }; |
| 673 | |
| 674 | static struct omap_hwmod omap3xxx_dss_dsi1_hwmod = { |
| 675 | .name = "dss_dsi1", |
| 676 | .class = &omap3xxx_dsi_hwmod_class, |
| 677 | .mpu_irqs = omap3xxx_dsi1_irqs, |
| 678 | .main_clk = "dss1_alwon_fck", |
| 679 | .prcm = { |
| 680 | .omap2 = { |
| 681 | .prcm_reg_id = 1, |
| 682 | .module_bit = OMAP3430_EN_DSS1_SHIFT, |
| 683 | .module_offs = OMAP3430_DSS_MOD, |
| 684 | }, |
| 685 | }, |
| 686 | .opt_clks = dss_dsi1_opt_clks, |
| 687 | .opt_clks_cnt = ARRAY_SIZE(dss_dsi1_opt_clks), |
| 688 | .flags = HWMOD_NO_IDLEST, |
| 689 | }; |
| 690 | |
| 691 | static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = { |
| 692 | { .role = "ick", .clk = "dss_ick" }, |
| 693 | }; |
| 694 | |
| 695 | static struct omap_hwmod omap3xxx_dss_rfbi_hwmod = { |
| 696 | .name = "dss_rfbi", |
| 697 | .class = &omap2_rfbi_hwmod_class, |
| 698 | .main_clk = "dss1_alwon_fck", |
| 699 | .prcm = { |
| 700 | .omap2 = { |
| 701 | .prcm_reg_id = 1, |
| 702 | .module_bit = OMAP3430_EN_DSS1_SHIFT, |
| 703 | .module_offs = OMAP3430_DSS_MOD, |
| 704 | }, |
| 705 | }, |
| 706 | .opt_clks = dss_rfbi_opt_clks, |
| 707 | .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks), |
| 708 | .flags = HWMOD_NO_IDLEST, |
| 709 | }; |
| 710 | |
| 711 | static struct omap_hwmod_opt_clk dss_venc_opt_clks[] = { |
| 712 | /* required only on OMAP3430 */ |
| 713 | { .role = "tv_dac_clk", .clk = "dss_96m_fck" }, |
| 714 | }; |
| 715 | |
| 716 | static struct omap_hwmod omap3xxx_dss_venc_hwmod = { |
| 717 | .name = "dss_venc", |
| 718 | .class = &omap2_venc_hwmod_class, |
| 719 | .main_clk = "dss_tv_fck", |
| 720 | .prcm = { |
| 721 | .omap2 = { |
| 722 | .prcm_reg_id = 1, |
| 723 | .module_bit = OMAP3430_EN_DSS1_SHIFT, |
| 724 | .module_offs = OMAP3430_DSS_MOD, |
| 725 | }, |
| 726 | }, |
| 727 | .opt_clks = dss_venc_opt_clks, |
| 728 | .opt_clks_cnt = ARRAY_SIZE(dss_venc_opt_clks), |
| 729 | .flags = HWMOD_NO_IDLEST, |
| 730 | }; |
| 731 | |
| 732 | /* I2C1 */ |
| 733 | static struct omap_i2c_dev_attr i2c1_dev_attr = { |
| 734 | .fifo_depth = 8, /* bytes */ |
| 735 | .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 | |
| 736 | OMAP_I2C_FLAG_RESET_REGS_POSTIDLE | |
| 737 | OMAP_I2C_FLAG_BUS_SHIFT_2, |
| 738 | }; |
| 739 | |
| 740 | static struct omap_hwmod omap3xxx_i2c1_hwmod = { |
| 741 | .name = "i2c1", |
| 742 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
| 743 | .mpu_irqs = omap2_i2c1_mpu_irqs, |
| 744 | .sdma_reqs = omap2_i2c1_sdma_reqs, |
| 745 | .main_clk = "i2c1_fck", |
| 746 | .prcm = { |
| 747 | .omap2 = { |
| 748 | .module_offs = CORE_MOD, |
| 749 | .prcm_reg_id = 1, |
| 750 | .module_bit = OMAP3430_EN_I2C1_SHIFT, |
| 751 | .idlest_reg_id = 1, |
| 752 | .idlest_idle_bit = OMAP3430_ST_I2C1_SHIFT, |
| 753 | }, |
| 754 | }, |
| 755 | .class = &i2c_class, |
| 756 | .dev_attr = &i2c1_dev_attr, |
| 757 | }; |
| 758 | |
| 759 | /* I2C2 */ |
| 760 | static struct omap_i2c_dev_attr i2c2_dev_attr = { |
| 761 | .fifo_depth = 8, /* bytes */ |
| 762 | .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 | |
| 763 | OMAP_I2C_FLAG_RESET_REGS_POSTIDLE | |
| 764 | OMAP_I2C_FLAG_BUS_SHIFT_2, |
| 765 | }; |
| 766 | |
| 767 | static struct omap_hwmod omap3xxx_i2c2_hwmod = { |
| 768 | .name = "i2c2", |
| 769 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
| 770 | .mpu_irqs = omap2_i2c2_mpu_irqs, |
| 771 | .sdma_reqs = omap2_i2c2_sdma_reqs, |
| 772 | .main_clk = "i2c2_fck", |
| 773 | .prcm = { |
| 774 | .omap2 = { |
| 775 | .module_offs = CORE_MOD, |
| 776 | .prcm_reg_id = 1, |
| 777 | .module_bit = OMAP3430_EN_I2C2_SHIFT, |
| 778 | .idlest_reg_id = 1, |
| 779 | .idlest_idle_bit = OMAP3430_ST_I2C2_SHIFT, |
| 780 | }, |
| 781 | }, |
| 782 | .class = &i2c_class, |
| 783 | .dev_attr = &i2c2_dev_attr, |
| 784 | }; |
| 785 | |
| 786 | /* I2C3 */ |
| 787 | static struct omap_i2c_dev_attr i2c3_dev_attr = { |
| 788 | .fifo_depth = 64, /* bytes */ |
| 789 | .flags = OMAP_I2C_FLAG_APPLY_ERRATA_I207 | |
| 790 | OMAP_I2C_FLAG_RESET_REGS_POSTIDLE | |
| 791 | OMAP_I2C_FLAG_BUS_SHIFT_2, |
| 792 | }; |
| 793 | |
| 794 | static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = { |
| 795 | { .irq = INT_34XX_I2C3_IRQ, }, |
| 796 | { .irq = -1 } |
| 797 | }; |
| 798 | |
| 799 | static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = { |
| 800 | { .name = "tx", .dma_req = OMAP34XX_DMA_I2C3_TX }, |
| 801 | { .name = "rx", .dma_req = OMAP34XX_DMA_I2C3_RX }, |
| 802 | { .dma_req = -1 } |
| 803 | }; |
| 804 | |
| 805 | static struct omap_hwmod omap3xxx_i2c3_hwmod = { |
| 806 | .name = "i2c3", |
| 807 | .flags = HWMOD_16BIT_REG | HWMOD_SET_DEFAULT_CLOCKACT, |
| 808 | .mpu_irqs = i2c3_mpu_irqs, |
| 809 | .sdma_reqs = i2c3_sdma_reqs, |
| 810 | .main_clk = "i2c3_fck", |
| 811 | .prcm = { |
| 812 | .omap2 = { |
| 813 | .module_offs = CORE_MOD, |
| 814 | .prcm_reg_id = 1, |
| 815 | .module_bit = OMAP3430_EN_I2C3_SHIFT, |
| 816 | .idlest_reg_id = 1, |
| 817 | .idlest_idle_bit = OMAP3430_ST_I2C3_SHIFT, |
| 818 | }, |
| 819 | }, |
| 820 | .class = &i2c_class, |
| 821 | .dev_attr = &i2c3_dev_attr, |
| 822 | }; |
| 823 | |
| 824 | /* |
| 825 | * 'gpio' class |
| 826 | * general purpose io module |
| 827 | */ |
| 828 | |
| 829 | static struct omap_hwmod_class_sysconfig omap3xxx_gpio_sysc = { |
| 830 | .rev_offs = 0x0000, |
| 831 | .sysc_offs = 0x0010, |
| 832 | .syss_offs = 0x0014, |
| 833 | .sysc_flags = (SYSC_HAS_ENAWAKEUP | SYSC_HAS_SIDLEMODE | |
| 834 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE | |
| 835 | SYSS_HAS_RESET_STATUS), |
| 836 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 837 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 838 | }; |
| 839 | |
| 840 | static struct omap_hwmod_class omap3xxx_gpio_hwmod_class = { |
| 841 | .name = "gpio", |
| 842 | .sysc = &omap3xxx_gpio_sysc, |
| 843 | .rev = 1, |
| 844 | }; |
| 845 | |
| 846 | /* gpio_dev_attr */ |
| 847 | static struct omap_gpio_dev_attr gpio_dev_attr = { |
| 848 | .bank_width = 32, |
| 849 | .dbck_flag = true, |
| 850 | }; |
| 851 | |
| 852 | /* gpio1 */ |
| 853 | static struct omap_hwmod_opt_clk gpio1_opt_clks[] = { |
| 854 | { .role = "dbclk", .clk = "gpio1_dbck", }, |
| 855 | }; |
| 856 | |
| 857 | static struct omap_hwmod omap3xxx_gpio1_hwmod = { |
| 858 | .name = "gpio1", |
| 859 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 860 | .mpu_irqs = omap2_gpio1_irqs, |
| 861 | .main_clk = "gpio1_ick", |
| 862 | .opt_clks = gpio1_opt_clks, |
| 863 | .opt_clks_cnt = ARRAY_SIZE(gpio1_opt_clks), |
| 864 | .prcm = { |
| 865 | .omap2 = { |
| 866 | .prcm_reg_id = 1, |
| 867 | .module_bit = OMAP3430_EN_GPIO1_SHIFT, |
| 868 | .module_offs = WKUP_MOD, |
| 869 | .idlest_reg_id = 1, |
| 870 | .idlest_idle_bit = OMAP3430_ST_GPIO1_SHIFT, |
| 871 | }, |
| 872 | }, |
| 873 | .class = &omap3xxx_gpio_hwmod_class, |
| 874 | .dev_attr = &gpio_dev_attr, |
| 875 | }; |
| 876 | |
| 877 | /* gpio2 */ |
| 878 | static struct omap_hwmod_opt_clk gpio2_opt_clks[] = { |
| 879 | { .role = "dbclk", .clk = "gpio2_dbck", }, |
| 880 | }; |
| 881 | |
| 882 | static struct omap_hwmod omap3xxx_gpio2_hwmod = { |
| 883 | .name = "gpio2", |
| 884 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 885 | .mpu_irqs = omap2_gpio2_irqs, |
| 886 | .main_clk = "gpio2_ick", |
| 887 | .opt_clks = gpio2_opt_clks, |
| 888 | .opt_clks_cnt = ARRAY_SIZE(gpio2_opt_clks), |
| 889 | .prcm = { |
| 890 | .omap2 = { |
| 891 | .prcm_reg_id = 1, |
| 892 | .module_bit = OMAP3430_EN_GPIO2_SHIFT, |
| 893 | .module_offs = OMAP3430_PER_MOD, |
| 894 | .idlest_reg_id = 1, |
| 895 | .idlest_idle_bit = OMAP3430_ST_GPIO2_SHIFT, |
| 896 | }, |
| 897 | }, |
| 898 | .class = &omap3xxx_gpio_hwmod_class, |
| 899 | .dev_attr = &gpio_dev_attr, |
| 900 | }; |
| 901 | |
| 902 | /* gpio3 */ |
| 903 | static struct omap_hwmod_opt_clk gpio3_opt_clks[] = { |
| 904 | { .role = "dbclk", .clk = "gpio3_dbck", }, |
| 905 | }; |
| 906 | |
| 907 | static struct omap_hwmod omap3xxx_gpio3_hwmod = { |
| 908 | .name = "gpio3", |
| 909 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 910 | .mpu_irqs = omap2_gpio3_irqs, |
| 911 | .main_clk = "gpio3_ick", |
| 912 | .opt_clks = gpio3_opt_clks, |
| 913 | .opt_clks_cnt = ARRAY_SIZE(gpio3_opt_clks), |
| 914 | .prcm = { |
| 915 | .omap2 = { |
| 916 | .prcm_reg_id = 1, |
| 917 | .module_bit = OMAP3430_EN_GPIO3_SHIFT, |
| 918 | .module_offs = OMAP3430_PER_MOD, |
| 919 | .idlest_reg_id = 1, |
| 920 | .idlest_idle_bit = OMAP3430_ST_GPIO3_SHIFT, |
| 921 | }, |
| 922 | }, |
| 923 | .class = &omap3xxx_gpio_hwmod_class, |
| 924 | .dev_attr = &gpio_dev_attr, |
| 925 | }; |
| 926 | |
| 927 | /* gpio4 */ |
| 928 | static struct omap_hwmod_opt_clk gpio4_opt_clks[] = { |
| 929 | { .role = "dbclk", .clk = "gpio4_dbck", }, |
| 930 | }; |
| 931 | |
| 932 | static struct omap_hwmod omap3xxx_gpio4_hwmod = { |
| 933 | .name = "gpio4", |
| 934 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 935 | .mpu_irqs = omap2_gpio4_irqs, |
| 936 | .main_clk = "gpio4_ick", |
| 937 | .opt_clks = gpio4_opt_clks, |
| 938 | .opt_clks_cnt = ARRAY_SIZE(gpio4_opt_clks), |
| 939 | .prcm = { |
| 940 | .omap2 = { |
| 941 | .prcm_reg_id = 1, |
| 942 | .module_bit = OMAP3430_EN_GPIO4_SHIFT, |
| 943 | .module_offs = OMAP3430_PER_MOD, |
| 944 | .idlest_reg_id = 1, |
| 945 | .idlest_idle_bit = OMAP3430_ST_GPIO4_SHIFT, |
| 946 | }, |
| 947 | }, |
| 948 | .class = &omap3xxx_gpio_hwmod_class, |
| 949 | .dev_attr = &gpio_dev_attr, |
| 950 | }; |
| 951 | |
| 952 | /* gpio5 */ |
| 953 | static struct omap_hwmod_irq_info omap3xxx_gpio5_irqs[] = { |
| 954 | { .irq = 33 }, /* INT_34XX_GPIO_BANK5 */ |
| 955 | { .irq = -1 } |
| 956 | }; |
| 957 | |
| 958 | static struct omap_hwmod_opt_clk gpio5_opt_clks[] = { |
| 959 | { .role = "dbclk", .clk = "gpio5_dbck", }, |
| 960 | }; |
| 961 | |
| 962 | static struct omap_hwmod omap3xxx_gpio5_hwmod = { |
| 963 | .name = "gpio5", |
| 964 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 965 | .mpu_irqs = omap3xxx_gpio5_irqs, |
| 966 | .main_clk = "gpio5_ick", |
| 967 | .opt_clks = gpio5_opt_clks, |
| 968 | .opt_clks_cnt = ARRAY_SIZE(gpio5_opt_clks), |
| 969 | .prcm = { |
| 970 | .omap2 = { |
| 971 | .prcm_reg_id = 1, |
| 972 | .module_bit = OMAP3430_EN_GPIO5_SHIFT, |
| 973 | .module_offs = OMAP3430_PER_MOD, |
| 974 | .idlest_reg_id = 1, |
| 975 | .idlest_idle_bit = OMAP3430_ST_GPIO5_SHIFT, |
| 976 | }, |
| 977 | }, |
| 978 | .class = &omap3xxx_gpio_hwmod_class, |
| 979 | .dev_attr = &gpio_dev_attr, |
| 980 | }; |
| 981 | |
| 982 | /* gpio6 */ |
| 983 | static struct omap_hwmod_irq_info omap3xxx_gpio6_irqs[] = { |
| 984 | { .irq = 34 }, /* INT_34XX_GPIO_BANK6 */ |
| 985 | { .irq = -1 } |
| 986 | }; |
| 987 | |
| 988 | static struct omap_hwmod_opt_clk gpio6_opt_clks[] = { |
| 989 | { .role = "dbclk", .clk = "gpio6_dbck", }, |
| 990 | }; |
| 991 | |
| 992 | static struct omap_hwmod omap3xxx_gpio6_hwmod = { |
| 993 | .name = "gpio6", |
| 994 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| 995 | .mpu_irqs = omap3xxx_gpio6_irqs, |
| 996 | .main_clk = "gpio6_ick", |
| 997 | .opt_clks = gpio6_opt_clks, |
| 998 | .opt_clks_cnt = ARRAY_SIZE(gpio6_opt_clks), |
| 999 | .prcm = { |
| 1000 | .omap2 = { |
| 1001 | .prcm_reg_id = 1, |
| 1002 | .module_bit = OMAP3430_EN_GPIO6_SHIFT, |
| 1003 | .module_offs = OMAP3430_PER_MOD, |
| 1004 | .idlest_reg_id = 1, |
| 1005 | .idlest_idle_bit = OMAP3430_ST_GPIO6_SHIFT, |
| 1006 | }, |
| 1007 | }, |
| 1008 | .class = &omap3xxx_gpio_hwmod_class, |
| 1009 | .dev_attr = &gpio_dev_attr, |
| 1010 | }; |
| 1011 | |
| 1012 | /* dma attributes */ |
| 1013 | static struct omap_dma_dev_attr dma_dev_attr = { |
| 1014 | .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY | |
| 1015 | IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY, |
| 1016 | .lch_count = 32, |
| 1017 | }; |
| 1018 | |
| 1019 | static struct omap_hwmod_class_sysconfig omap3xxx_dma_sysc = { |
| 1020 | .rev_offs = 0x0000, |
| 1021 | .sysc_offs = 0x002c, |
| 1022 | .syss_offs = 0x0028, |
| 1023 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET | |
| 1024 | SYSC_HAS_MIDLEMODE | SYSC_HAS_CLOCKACTIVITY | |
| 1025 | SYSC_HAS_EMUFREE | SYSC_HAS_AUTOIDLE | |
| 1026 | SYSS_HAS_RESET_STATUS), |
| 1027 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1028 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), |
| 1029 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1030 | }; |
| 1031 | |
| 1032 | static struct omap_hwmod_class omap3xxx_dma_hwmod_class = { |
| 1033 | .name = "dma", |
| 1034 | .sysc = &omap3xxx_dma_sysc, |
| 1035 | }; |
| 1036 | |
| 1037 | /* dma_system */ |
| 1038 | static struct omap_hwmod omap3xxx_dma_system_hwmod = { |
| 1039 | .name = "dma", |
| 1040 | .class = &omap3xxx_dma_hwmod_class, |
| 1041 | .mpu_irqs = omap2_dma_system_irqs, |
| 1042 | .main_clk = "core_l3_ick", |
| 1043 | .prcm = { |
| 1044 | .omap2 = { |
| 1045 | .module_offs = CORE_MOD, |
| 1046 | .prcm_reg_id = 1, |
| 1047 | .module_bit = OMAP3430_ST_SDMA_SHIFT, |
| 1048 | .idlest_reg_id = 1, |
| 1049 | .idlest_idle_bit = OMAP3430_ST_SDMA_SHIFT, |
| 1050 | }, |
| 1051 | }, |
| 1052 | .dev_attr = &dma_dev_attr, |
| 1053 | .flags = HWMOD_NO_IDLEST, |
| 1054 | }; |
| 1055 | |
| 1056 | /* |
| 1057 | * 'mcbsp' class |
| 1058 | * multi channel buffered serial port controller |
| 1059 | */ |
| 1060 | |
| 1061 | static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sysc = { |
| 1062 | .sysc_offs = 0x008c, |
| 1063 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_ENAWAKEUP | |
| 1064 | SYSC_HAS_SIDLEMODE | SYSC_HAS_SOFTRESET), |
| 1065 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1066 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1067 | .clockact = 0x2, |
| 1068 | }; |
| 1069 | |
| 1070 | static struct omap_hwmod_class omap3xxx_mcbsp_hwmod_class = { |
| 1071 | .name = "mcbsp", |
| 1072 | .sysc = &omap3xxx_mcbsp_sysc, |
| 1073 | .rev = MCBSP_CONFIG_TYPE3, |
| 1074 | }; |
| 1075 | |
| 1076 | /* mcbsp1 */ |
| 1077 | static struct omap_hwmod_irq_info omap3xxx_mcbsp1_irqs[] = { |
Peter Ujfalusi | 1c2badc | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 1078 | { .name = "common", .irq = 16 }, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 1079 | { .name = "tx", .irq = 59 }, |
| 1080 | { .name = "rx", .irq = 60 }, |
| 1081 | { .irq = -1 } |
| 1082 | }; |
| 1083 | |
| 1084 | static struct omap_hwmod omap3xxx_mcbsp1_hwmod = { |
| 1085 | .name = "mcbsp1", |
| 1086 | .class = &omap3xxx_mcbsp_hwmod_class, |
| 1087 | .mpu_irqs = omap3xxx_mcbsp1_irqs, |
| 1088 | .sdma_reqs = omap2_mcbsp1_sdma_reqs, |
| 1089 | .main_clk = "mcbsp1_fck", |
| 1090 | .prcm = { |
| 1091 | .omap2 = { |
| 1092 | .prcm_reg_id = 1, |
| 1093 | .module_bit = OMAP3430_EN_MCBSP1_SHIFT, |
| 1094 | .module_offs = CORE_MOD, |
| 1095 | .idlest_reg_id = 1, |
| 1096 | .idlest_idle_bit = OMAP3430_ST_MCBSP1_SHIFT, |
| 1097 | }, |
| 1098 | }, |
| 1099 | }; |
| 1100 | |
| 1101 | /* mcbsp2 */ |
| 1102 | static struct omap_hwmod_irq_info omap3xxx_mcbsp2_irqs[] = { |
Peter Ujfalusi | 1c2badc | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 1103 | { .name = "common", .irq = 17 }, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 1104 | { .name = "tx", .irq = 62 }, |
| 1105 | { .name = "rx", .irq = 63 }, |
| 1106 | { .irq = -1 } |
| 1107 | }; |
| 1108 | |
| 1109 | static struct omap_mcbsp_dev_attr omap34xx_mcbsp2_dev_attr = { |
| 1110 | .sidetone = "mcbsp2_sidetone", |
| 1111 | }; |
| 1112 | |
| 1113 | static struct omap_hwmod omap3xxx_mcbsp2_hwmod = { |
| 1114 | .name = "mcbsp2", |
| 1115 | .class = &omap3xxx_mcbsp_hwmod_class, |
| 1116 | .mpu_irqs = omap3xxx_mcbsp2_irqs, |
| 1117 | .sdma_reqs = omap2_mcbsp2_sdma_reqs, |
| 1118 | .main_clk = "mcbsp2_fck", |
| 1119 | .prcm = { |
| 1120 | .omap2 = { |
| 1121 | .prcm_reg_id = 1, |
| 1122 | .module_bit = OMAP3430_EN_MCBSP2_SHIFT, |
| 1123 | .module_offs = OMAP3430_PER_MOD, |
| 1124 | .idlest_reg_id = 1, |
| 1125 | .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT, |
| 1126 | }, |
| 1127 | }, |
| 1128 | .dev_attr = &omap34xx_mcbsp2_dev_attr, |
| 1129 | }; |
| 1130 | |
| 1131 | /* mcbsp3 */ |
| 1132 | static struct omap_hwmod_irq_info omap3xxx_mcbsp3_irqs[] = { |
Peter Ujfalusi | 1c2badc | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 1133 | { .name = "common", .irq = 22 }, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 1134 | { .name = "tx", .irq = 89 }, |
| 1135 | { .name = "rx", .irq = 90 }, |
| 1136 | { .irq = -1 } |
| 1137 | }; |
| 1138 | |
| 1139 | static struct omap_mcbsp_dev_attr omap34xx_mcbsp3_dev_attr = { |
| 1140 | .sidetone = "mcbsp3_sidetone", |
| 1141 | }; |
| 1142 | |
| 1143 | static struct omap_hwmod omap3xxx_mcbsp3_hwmod = { |
| 1144 | .name = "mcbsp3", |
| 1145 | .class = &omap3xxx_mcbsp_hwmod_class, |
| 1146 | .mpu_irqs = omap3xxx_mcbsp3_irqs, |
| 1147 | .sdma_reqs = omap2_mcbsp3_sdma_reqs, |
| 1148 | .main_clk = "mcbsp3_fck", |
| 1149 | .prcm = { |
| 1150 | .omap2 = { |
| 1151 | .prcm_reg_id = 1, |
| 1152 | .module_bit = OMAP3430_EN_MCBSP3_SHIFT, |
| 1153 | .module_offs = OMAP3430_PER_MOD, |
| 1154 | .idlest_reg_id = 1, |
| 1155 | .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT, |
| 1156 | }, |
| 1157 | }, |
| 1158 | .dev_attr = &omap34xx_mcbsp3_dev_attr, |
| 1159 | }; |
| 1160 | |
| 1161 | /* mcbsp4 */ |
| 1162 | static struct omap_hwmod_irq_info omap3xxx_mcbsp4_irqs[] = { |
Peter Ujfalusi | 1c2badc | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 1163 | { .name = "common", .irq = 23 }, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 1164 | { .name = "tx", .irq = 54 }, |
| 1165 | { .name = "rx", .irq = 55 }, |
| 1166 | { .irq = -1 } |
| 1167 | }; |
| 1168 | |
| 1169 | static struct omap_hwmod_dma_info omap3xxx_mcbsp4_sdma_chs[] = { |
| 1170 | { .name = "rx", .dma_req = 20 }, |
| 1171 | { .name = "tx", .dma_req = 19 }, |
| 1172 | { .dma_req = -1 } |
| 1173 | }; |
| 1174 | |
| 1175 | static struct omap_hwmod omap3xxx_mcbsp4_hwmod = { |
| 1176 | .name = "mcbsp4", |
| 1177 | .class = &omap3xxx_mcbsp_hwmod_class, |
| 1178 | .mpu_irqs = omap3xxx_mcbsp4_irqs, |
| 1179 | .sdma_reqs = omap3xxx_mcbsp4_sdma_chs, |
| 1180 | .main_clk = "mcbsp4_fck", |
| 1181 | .prcm = { |
| 1182 | .omap2 = { |
| 1183 | .prcm_reg_id = 1, |
| 1184 | .module_bit = OMAP3430_EN_MCBSP4_SHIFT, |
| 1185 | .module_offs = OMAP3430_PER_MOD, |
| 1186 | .idlest_reg_id = 1, |
| 1187 | .idlest_idle_bit = OMAP3430_ST_MCBSP4_SHIFT, |
| 1188 | }, |
| 1189 | }, |
| 1190 | }; |
| 1191 | |
| 1192 | /* mcbsp5 */ |
| 1193 | static struct omap_hwmod_irq_info omap3xxx_mcbsp5_irqs[] = { |
Peter Ujfalusi | 1c2badc | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 1194 | { .name = "common", .irq = 27 }, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 1195 | { .name = "tx", .irq = 81 }, |
| 1196 | { .name = "rx", .irq = 82 }, |
| 1197 | { .irq = -1 } |
| 1198 | }; |
| 1199 | |
| 1200 | static struct omap_hwmod_dma_info omap3xxx_mcbsp5_sdma_chs[] = { |
| 1201 | { .name = "rx", .dma_req = 22 }, |
| 1202 | { .name = "tx", .dma_req = 21 }, |
| 1203 | { .dma_req = -1 } |
| 1204 | }; |
| 1205 | |
| 1206 | static struct omap_hwmod omap3xxx_mcbsp5_hwmod = { |
| 1207 | .name = "mcbsp5", |
| 1208 | .class = &omap3xxx_mcbsp_hwmod_class, |
| 1209 | .mpu_irqs = omap3xxx_mcbsp5_irqs, |
| 1210 | .sdma_reqs = omap3xxx_mcbsp5_sdma_chs, |
| 1211 | .main_clk = "mcbsp5_fck", |
| 1212 | .prcm = { |
| 1213 | .omap2 = { |
| 1214 | .prcm_reg_id = 1, |
| 1215 | .module_bit = OMAP3430_EN_MCBSP5_SHIFT, |
| 1216 | .module_offs = CORE_MOD, |
| 1217 | .idlest_reg_id = 1, |
| 1218 | .idlest_idle_bit = OMAP3430_ST_MCBSP5_SHIFT, |
| 1219 | }, |
| 1220 | }, |
| 1221 | }; |
| 1222 | |
| 1223 | /* 'mcbsp sidetone' class */ |
| 1224 | static struct omap_hwmod_class_sysconfig omap3xxx_mcbsp_sidetone_sysc = { |
| 1225 | .sysc_offs = 0x0010, |
| 1226 | .sysc_flags = SYSC_HAS_AUTOIDLE, |
| 1227 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1228 | }; |
| 1229 | |
| 1230 | static struct omap_hwmod_class omap3xxx_mcbsp_sidetone_hwmod_class = { |
| 1231 | .name = "mcbsp_sidetone", |
| 1232 | .sysc = &omap3xxx_mcbsp_sidetone_sysc, |
| 1233 | }; |
| 1234 | |
| 1235 | /* mcbsp2_sidetone */ |
| 1236 | static struct omap_hwmod_irq_info omap3xxx_mcbsp2_sidetone_irqs[] = { |
| 1237 | { .name = "irq", .irq = 4 }, |
| 1238 | { .irq = -1 } |
| 1239 | }; |
| 1240 | |
| 1241 | static struct omap_hwmod omap3xxx_mcbsp2_sidetone_hwmod = { |
| 1242 | .name = "mcbsp2_sidetone", |
| 1243 | .class = &omap3xxx_mcbsp_sidetone_hwmod_class, |
| 1244 | .mpu_irqs = omap3xxx_mcbsp2_sidetone_irqs, |
| 1245 | .main_clk = "mcbsp2_fck", |
| 1246 | .prcm = { |
| 1247 | .omap2 = { |
| 1248 | .prcm_reg_id = 1, |
| 1249 | .module_bit = OMAP3430_EN_MCBSP2_SHIFT, |
| 1250 | .module_offs = OMAP3430_PER_MOD, |
| 1251 | .idlest_reg_id = 1, |
| 1252 | .idlest_idle_bit = OMAP3430_ST_MCBSP2_SHIFT, |
| 1253 | }, |
| 1254 | }, |
| 1255 | }; |
| 1256 | |
| 1257 | /* mcbsp3_sidetone */ |
| 1258 | static struct omap_hwmod_irq_info omap3xxx_mcbsp3_sidetone_irqs[] = { |
| 1259 | { .name = "irq", .irq = 5 }, |
| 1260 | { .irq = -1 } |
| 1261 | }; |
| 1262 | |
| 1263 | static struct omap_hwmod omap3xxx_mcbsp3_sidetone_hwmod = { |
| 1264 | .name = "mcbsp3_sidetone", |
| 1265 | .class = &omap3xxx_mcbsp_sidetone_hwmod_class, |
| 1266 | .mpu_irqs = omap3xxx_mcbsp3_sidetone_irqs, |
| 1267 | .main_clk = "mcbsp3_fck", |
| 1268 | .prcm = { |
| 1269 | .omap2 = { |
| 1270 | .prcm_reg_id = 1, |
| 1271 | .module_bit = OMAP3430_EN_MCBSP3_SHIFT, |
| 1272 | .module_offs = OMAP3430_PER_MOD, |
| 1273 | .idlest_reg_id = 1, |
| 1274 | .idlest_idle_bit = OMAP3430_ST_MCBSP3_SHIFT, |
| 1275 | }, |
| 1276 | }, |
| 1277 | }; |
| 1278 | |
| 1279 | /* SR common */ |
| 1280 | static struct omap_hwmod_sysc_fields omap34xx_sr_sysc_fields = { |
| 1281 | .clkact_shift = 20, |
| 1282 | }; |
| 1283 | |
| 1284 | static struct omap_hwmod_class_sysconfig omap34xx_sr_sysc = { |
| 1285 | .sysc_offs = 0x24, |
| 1286 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_NO_CACHE), |
| 1287 | .clockact = CLOCKACT_TEST_ICLK, |
| 1288 | .sysc_fields = &omap34xx_sr_sysc_fields, |
| 1289 | }; |
| 1290 | |
| 1291 | static struct omap_hwmod_class omap34xx_smartreflex_hwmod_class = { |
| 1292 | .name = "smartreflex", |
| 1293 | .sysc = &omap34xx_sr_sysc, |
| 1294 | .rev = 1, |
| 1295 | }; |
| 1296 | |
| 1297 | static struct omap_hwmod_sysc_fields omap36xx_sr_sysc_fields = { |
| 1298 | .sidle_shift = 24, |
| 1299 | .enwkup_shift = 26, |
| 1300 | }; |
| 1301 | |
| 1302 | static struct omap_hwmod_class_sysconfig omap36xx_sr_sysc = { |
| 1303 | .sysc_offs = 0x38, |
| 1304 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1305 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP | |
| 1306 | SYSC_NO_CACHE), |
| 1307 | .sysc_fields = &omap36xx_sr_sysc_fields, |
| 1308 | }; |
| 1309 | |
| 1310 | static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class = { |
| 1311 | .name = "smartreflex", |
| 1312 | .sysc = &omap36xx_sr_sysc, |
| 1313 | .rev = 2, |
| 1314 | }; |
| 1315 | |
| 1316 | /* SR1 */ |
| 1317 | static struct omap_smartreflex_dev_attr sr1_dev_attr = { |
| 1318 | .sensor_voltdm_name = "mpu_iva", |
| 1319 | }; |
| 1320 | |
| 1321 | static struct omap_hwmod_irq_info omap3_smartreflex_mpu_irqs[] = { |
| 1322 | { .irq = 18 }, |
| 1323 | { .irq = -1 } |
| 1324 | }; |
| 1325 | |
| 1326 | static struct omap_hwmod omap34xx_sr1_hwmod = { |
| 1327 | .name = "sr1", |
| 1328 | .class = &omap34xx_smartreflex_hwmod_class, |
| 1329 | .main_clk = "sr1_fck", |
| 1330 | .prcm = { |
| 1331 | .omap2 = { |
| 1332 | .prcm_reg_id = 1, |
| 1333 | .module_bit = OMAP3430_EN_SR1_SHIFT, |
| 1334 | .module_offs = WKUP_MOD, |
| 1335 | .idlest_reg_id = 1, |
| 1336 | .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT, |
| 1337 | }, |
| 1338 | }, |
| 1339 | .dev_attr = &sr1_dev_attr, |
| 1340 | .mpu_irqs = omap3_smartreflex_mpu_irqs, |
| 1341 | .flags = HWMOD_SET_DEFAULT_CLOCKACT, |
| 1342 | }; |
| 1343 | |
| 1344 | static struct omap_hwmod omap36xx_sr1_hwmod = { |
| 1345 | .name = "sr1", |
| 1346 | .class = &omap36xx_smartreflex_hwmod_class, |
| 1347 | .main_clk = "sr1_fck", |
| 1348 | .prcm = { |
| 1349 | .omap2 = { |
| 1350 | .prcm_reg_id = 1, |
| 1351 | .module_bit = OMAP3430_EN_SR1_SHIFT, |
| 1352 | .module_offs = WKUP_MOD, |
| 1353 | .idlest_reg_id = 1, |
| 1354 | .idlest_idle_bit = OMAP3430_EN_SR1_SHIFT, |
| 1355 | }, |
| 1356 | }, |
| 1357 | .dev_attr = &sr1_dev_attr, |
| 1358 | .mpu_irqs = omap3_smartreflex_mpu_irqs, |
| 1359 | }; |
| 1360 | |
| 1361 | /* SR2 */ |
| 1362 | static struct omap_smartreflex_dev_attr sr2_dev_attr = { |
| 1363 | .sensor_voltdm_name = "core", |
| 1364 | }; |
| 1365 | |
| 1366 | static struct omap_hwmod_irq_info omap3_smartreflex_core_irqs[] = { |
| 1367 | { .irq = 19 }, |
| 1368 | { .irq = -1 } |
| 1369 | }; |
| 1370 | |
| 1371 | static struct omap_hwmod omap34xx_sr2_hwmod = { |
| 1372 | .name = "sr2", |
| 1373 | .class = &omap34xx_smartreflex_hwmod_class, |
| 1374 | .main_clk = "sr2_fck", |
| 1375 | .prcm = { |
| 1376 | .omap2 = { |
| 1377 | .prcm_reg_id = 1, |
| 1378 | .module_bit = OMAP3430_EN_SR2_SHIFT, |
| 1379 | .module_offs = WKUP_MOD, |
| 1380 | .idlest_reg_id = 1, |
| 1381 | .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT, |
| 1382 | }, |
| 1383 | }, |
| 1384 | .dev_attr = &sr2_dev_attr, |
| 1385 | .mpu_irqs = omap3_smartreflex_core_irqs, |
| 1386 | .flags = HWMOD_SET_DEFAULT_CLOCKACT, |
| 1387 | }; |
| 1388 | |
| 1389 | static struct omap_hwmod omap36xx_sr2_hwmod = { |
| 1390 | .name = "sr2", |
| 1391 | .class = &omap36xx_smartreflex_hwmod_class, |
| 1392 | .main_clk = "sr2_fck", |
| 1393 | .prcm = { |
| 1394 | .omap2 = { |
| 1395 | .prcm_reg_id = 1, |
| 1396 | .module_bit = OMAP3430_EN_SR2_SHIFT, |
| 1397 | .module_offs = WKUP_MOD, |
| 1398 | .idlest_reg_id = 1, |
| 1399 | .idlest_idle_bit = OMAP3430_EN_SR2_SHIFT, |
| 1400 | }, |
| 1401 | }, |
| 1402 | .dev_attr = &sr2_dev_attr, |
| 1403 | .mpu_irqs = omap3_smartreflex_core_irqs, |
| 1404 | }; |
| 1405 | |
| 1406 | /* |
| 1407 | * 'mailbox' class |
| 1408 | * mailbox module allowing communication between the on-chip processors |
| 1409 | * using a queued mailbox-interrupt mechanism. |
| 1410 | */ |
| 1411 | |
| 1412 | static struct omap_hwmod_class_sysconfig omap3xxx_mailbox_sysc = { |
| 1413 | .rev_offs = 0x000, |
| 1414 | .sysc_offs = 0x010, |
| 1415 | .syss_offs = 0x014, |
| 1416 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 1417 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), |
| 1418 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1419 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1420 | }; |
| 1421 | |
| 1422 | static struct omap_hwmod_class omap3xxx_mailbox_hwmod_class = { |
| 1423 | .name = "mailbox", |
| 1424 | .sysc = &omap3xxx_mailbox_sysc, |
| 1425 | }; |
| 1426 | |
| 1427 | static struct omap_hwmod_irq_info omap3xxx_mailbox_irqs[] = { |
| 1428 | { .irq = 26 }, |
| 1429 | { .irq = -1 } |
| 1430 | }; |
| 1431 | |
| 1432 | static struct omap_hwmod omap3xxx_mailbox_hwmod = { |
| 1433 | .name = "mailbox", |
| 1434 | .class = &omap3xxx_mailbox_hwmod_class, |
| 1435 | .mpu_irqs = omap3xxx_mailbox_irqs, |
| 1436 | .main_clk = "mailboxes_ick", |
| 1437 | .prcm = { |
| 1438 | .omap2 = { |
| 1439 | .prcm_reg_id = 1, |
| 1440 | .module_bit = OMAP3430_EN_MAILBOXES_SHIFT, |
| 1441 | .module_offs = CORE_MOD, |
| 1442 | .idlest_reg_id = 1, |
| 1443 | .idlest_idle_bit = OMAP3430_ST_MAILBOXES_SHIFT, |
| 1444 | }, |
| 1445 | }, |
| 1446 | }; |
| 1447 | |
| 1448 | /* |
| 1449 | * 'mcspi' class |
| 1450 | * multichannel serial port interface (mcspi) / master/slave synchronous serial |
| 1451 | * bus |
| 1452 | */ |
| 1453 | |
| 1454 | static struct omap_hwmod_class_sysconfig omap34xx_mcspi_sysc = { |
| 1455 | .rev_offs = 0x0000, |
| 1456 | .sysc_offs = 0x0010, |
| 1457 | .syss_offs = 0x0014, |
| 1458 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 1459 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 1460 | SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS), |
| 1461 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1462 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1463 | }; |
| 1464 | |
| 1465 | static struct omap_hwmod_class omap34xx_mcspi_class = { |
| 1466 | .name = "mcspi", |
| 1467 | .sysc = &omap34xx_mcspi_sysc, |
| 1468 | .rev = OMAP3_MCSPI_REV, |
| 1469 | }; |
| 1470 | |
| 1471 | /* mcspi1 */ |
| 1472 | static struct omap2_mcspi_dev_attr omap_mcspi1_dev_attr = { |
| 1473 | .num_chipselect = 4, |
| 1474 | }; |
| 1475 | |
| 1476 | static struct omap_hwmod omap34xx_mcspi1 = { |
| 1477 | .name = "mcspi1", |
| 1478 | .mpu_irqs = omap2_mcspi1_mpu_irqs, |
| 1479 | .sdma_reqs = omap2_mcspi1_sdma_reqs, |
| 1480 | .main_clk = "mcspi1_fck", |
| 1481 | .prcm = { |
| 1482 | .omap2 = { |
| 1483 | .module_offs = CORE_MOD, |
| 1484 | .prcm_reg_id = 1, |
| 1485 | .module_bit = OMAP3430_EN_MCSPI1_SHIFT, |
| 1486 | .idlest_reg_id = 1, |
| 1487 | .idlest_idle_bit = OMAP3430_ST_MCSPI1_SHIFT, |
| 1488 | }, |
| 1489 | }, |
| 1490 | .class = &omap34xx_mcspi_class, |
| 1491 | .dev_attr = &omap_mcspi1_dev_attr, |
| 1492 | }; |
| 1493 | |
| 1494 | /* mcspi2 */ |
| 1495 | static struct omap2_mcspi_dev_attr omap_mcspi2_dev_attr = { |
| 1496 | .num_chipselect = 2, |
| 1497 | }; |
| 1498 | |
| 1499 | static struct omap_hwmod omap34xx_mcspi2 = { |
| 1500 | .name = "mcspi2", |
| 1501 | .mpu_irqs = omap2_mcspi2_mpu_irqs, |
| 1502 | .sdma_reqs = omap2_mcspi2_sdma_reqs, |
| 1503 | .main_clk = "mcspi2_fck", |
| 1504 | .prcm = { |
| 1505 | .omap2 = { |
| 1506 | .module_offs = CORE_MOD, |
| 1507 | .prcm_reg_id = 1, |
| 1508 | .module_bit = OMAP3430_EN_MCSPI2_SHIFT, |
| 1509 | .idlest_reg_id = 1, |
| 1510 | .idlest_idle_bit = OMAP3430_ST_MCSPI2_SHIFT, |
| 1511 | }, |
| 1512 | }, |
| 1513 | .class = &omap34xx_mcspi_class, |
| 1514 | .dev_attr = &omap_mcspi2_dev_attr, |
| 1515 | }; |
| 1516 | |
| 1517 | /* mcspi3 */ |
| 1518 | static struct omap_hwmod_irq_info omap34xx_mcspi3_mpu_irqs[] = { |
| 1519 | { .name = "irq", .irq = 91 }, /* 91 */ |
| 1520 | { .irq = -1 } |
| 1521 | }; |
| 1522 | |
| 1523 | static struct omap_hwmod_dma_info omap34xx_mcspi3_sdma_reqs[] = { |
| 1524 | { .name = "tx0", .dma_req = 15 }, |
| 1525 | { .name = "rx0", .dma_req = 16 }, |
| 1526 | { .name = "tx1", .dma_req = 23 }, |
| 1527 | { .name = "rx1", .dma_req = 24 }, |
| 1528 | { .dma_req = -1 } |
| 1529 | }; |
| 1530 | |
| 1531 | static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = { |
| 1532 | .num_chipselect = 2, |
| 1533 | }; |
| 1534 | |
| 1535 | static struct omap_hwmod omap34xx_mcspi3 = { |
| 1536 | .name = "mcspi3", |
| 1537 | .mpu_irqs = omap34xx_mcspi3_mpu_irqs, |
| 1538 | .sdma_reqs = omap34xx_mcspi3_sdma_reqs, |
| 1539 | .main_clk = "mcspi3_fck", |
| 1540 | .prcm = { |
| 1541 | .omap2 = { |
| 1542 | .module_offs = CORE_MOD, |
| 1543 | .prcm_reg_id = 1, |
| 1544 | .module_bit = OMAP3430_EN_MCSPI3_SHIFT, |
| 1545 | .idlest_reg_id = 1, |
| 1546 | .idlest_idle_bit = OMAP3430_ST_MCSPI3_SHIFT, |
| 1547 | }, |
| 1548 | }, |
| 1549 | .class = &omap34xx_mcspi_class, |
| 1550 | .dev_attr = &omap_mcspi3_dev_attr, |
| 1551 | }; |
| 1552 | |
| 1553 | /* mcspi4 */ |
| 1554 | static struct omap_hwmod_irq_info omap34xx_mcspi4_mpu_irqs[] = { |
| 1555 | { .name = "irq", .irq = INT_34XX_SPI4_IRQ }, /* 48 */ |
| 1556 | { .irq = -1 } |
| 1557 | }; |
| 1558 | |
| 1559 | static struct omap_hwmod_dma_info omap34xx_mcspi4_sdma_reqs[] = { |
| 1560 | { .name = "tx0", .dma_req = 70 }, /* DMA_SPI4_TX0 */ |
| 1561 | { .name = "rx0", .dma_req = 71 }, /* DMA_SPI4_RX0 */ |
| 1562 | { .dma_req = -1 } |
| 1563 | }; |
| 1564 | |
| 1565 | static struct omap2_mcspi_dev_attr omap_mcspi4_dev_attr = { |
| 1566 | .num_chipselect = 1, |
| 1567 | }; |
| 1568 | |
| 1569 | static struct omap_hwmod omap34xx_mcspi4 = { |
| 1570 | .name = "mcspi4", |
| 1571 | .mpu_irqs = omap34xx_mcspi4_mpu_irqs, |
| 1572 | .sdma_reqs = omap34xx_mcspi4_sdma_reqs, |
| 1573 | .main_clk = "mcspi4_fck", |
| 1574 | .prcm = { |
| 1575 | .omap2 = { |
| 1576 | .module_offs = CORE_MOD, |
| 1577 | .prcm_reg_id = 1, |
| 1578 | .module_bit = OMAP3430_EN_MCSPI4_SHIFT, |
| 1579 | .idlest_reg_id = 1, |
| 1580 | .idlest_idle_bit = OMAP3430_ST_MCSPI4_SHIFT, |
| 1581 | }, |
| 1582 | }, |
| 1583 | .class = &omap34xx_mcspi_class, |
| 1584 | .dev_attr = &omap_mcspi4_dev_attr, |
| 1585 | }; |
| 1586 | |
| 1587 | /* usbhsotg */ |
| 1588 | static struct omap_hwmod_class_sysconfig omap3xxx_usbhsotg_sysc = { |
| 1589 | .rev_offs = 0x0400, |
| 1590 | .sysc_offs = 0x0404, |
| 1591 | .syss_offs = 0x0408, |
| 1592 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE| |
| 1593 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 1594 | SYSC_HAS_AUTOIDLE), |
| 1595 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1596 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), |
| 1597 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1598 | }; |
| 1599 | |
| 1600 | static struct omap_hwmod_class usbotg_class = { |
| 1601 | .name = "usbotg", |
| 1602 | .sysc = &omap3xxx_usbhsotg_sysc, |
| 1603 | }; |
| 1604 | |
| 1605 | /* usb_otg_hs */ |
| 1606 | static struct omap_hwmod_irq_info omap3xxx_usbhsotg_mpu_irqs[] = { |
| 1607 | |
| 1608 | { .name = "mc", .irq = 92 }, |
| 1609 | { .name = "dma", .irq = 93 }, |
| 1610 | { .irq = -1 } |
| 1611 | }; |
| 1612 | |
| 1613 | static struct omap_hwmod omap3xxx_usbhsotg_hwmod = { |
| 1614 | .name = "usb_otg_hs", |
| 1615 | .mpu_irqs = omap3xxx_usbhsotg_mpu_irqs, |
| 1616 | .main_clk = "hsotgusb_ick", |
| 1617 | .prcm = { |
| 1618 | .omap2 = { |
| 1619 | .prcm_reg_id = 1, |
| 1620 | .module_bit = OMAP3430_EN_HSOTGUSB_SHIFT, |
| 1621 | .module_offs = CORE_MOD, |
| 1622 | .idlest_reg_id = 1, |
| 1623 | .idlest_idle_bit = OMAP3430ES2_ST_HSOTGUSB_IDLE_SHIFT, |
| 1624 | .idlest_stdby_bit = OMAP3430ES2_ST_HSOTGUSB_STDBY_SHIFT |
| 1625 | }, |
| 1626 | }, |
| 1627 | .class = &usbotg_class, |
| 1628 | |
| 1629 | /* |
| 1630 | * Erratum ID: i479 idle_req / idle_ack mechanism potentially |
| 1631 | * broken when autoidle is enabled |
| 1632 | * workaround is to disable the autoidle bit at module level. |
| 1633 | */ |
| 1634 | .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE |
| 1635 | | HWMOD_SWSUP_MSTANDBY, |
| 1636 | }; |
| 1637 | |
| 1638 | /* usb_otg_hs */ |
| 1639 | static struct omap_hwmod_irq_info am35xx_usbhsotg_mpu_irqs[] = { |
| 1640 | |
| 1641 | { .name = "mc", .irq = 71 }, |
| 1642 | { .irq = -1 } |
| 1643 | }; |
| 1644 | |
| 1645 | static struct omap_hwmod_class am35xx_usbotg_class = { |
| 1646 | .name = "am35xx_usbotg", |
| 1647 | .sysc = NULL, |
| 1648 | }; |
| 1649 | |
| 1650 | static struct omap_hwmod am35xx_usbhsotg_hwmod = { |
| 1651 | .name = "am35x_otg_hs", |
| 1652 | .mpu_irqs = am35xx_usbhsotg_mpu_irqs, |
| 1653 | .main_clk = NULL, |
| 1654 | .prcm = { |
| 1655 | .omap2 = { |
| 1656 | }, |
| 1657 | }, |
| 1658 | .class = &am35xx_usbotg_class, |
| 1659 | }; |
| 1660 | |
| 1661 | /* MMC/SD/SDIO common */ |
| 1662 | static struct omap_hwmod_class_sysconfig omap34xx_mmc_sysc = { |
| 1663 | .rev_offs = 0x1fc, |
| 1664 | .sysc_offs = 0x10, |
| 1665 | .syss_offs = 0x14, |
| 1666 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 1667 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 1668 | SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS), |
| 1669 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1670 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1671 | }; |
| 1672 | |
| 1673 | static struct omap_hwmod_class omap34xx_mmc_class = { |
| 1674 | .name = "mmc", |
| 1675 | .sysc = &omap34xx_mmc_sysc, |
| 1676 | }; |
| 1677 | |
| 1678 | /* MMC/SD/SDIO1 */ |
| 1679 | |
| 1680 | static struct omap_hwmod_irq_info omap34xx_mmc1_mpu_irqs[] = { |
| 1681 | { .irq = 83, }, |
| 1682 | { .irq = -1 } |
| 1683 | }; |
| 1684 | |
| 1685 | static struct omap_hwmod_dma_info omap34xx_mmc1_sdma_reqs[] = { |
| 1686 | { .name = "tx", .dma_req = 61, }, |
| 1687 | { .name = "rx", .dma_req = 62, }, |
| 1688 | { .dma_req = -1 } |
| 1689 | }; |
| 1690 | |
| 1691 | static struct omap_hwmod_opt_clk omap34xx_mmc1_opt_clks[] = { |
| 1692 | { .role = "dbck", .clk = "omap_32k_fck", }, |
| 1693 | }; |
| 1694 | |
| 1695 | static struct omap_mmc_dev_attr mmc1_dev_attr = { |
| 1696 | .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT, |
| 1697 | }; |
| 1698 | |
| 1699 | /* See 35xx errata 2.1.1.128 in SPRZ278F */ |
| 1700 | static struct omap_mmc_dev_attr mmc1_pre_es3_dev_attr = { |
| 1701 | .flags = (OMAP_HSMMC_SUPPORTS_DUAL_VOLT | |
| 1702 | OMAP_HSMMC_BROKEN_MULTIBLOCK_READ), |
| 1703 | }; |
| 1704 | |
| 1705 | static struct omap_hwmod omap3xxx_pre_es3_mmc1_hwmod = { |
| 1706 | .name = "mmc1", |
| 1707 | .mpu_irqs = omap34xx_mmc1_mpu_irqs, |
| 1708 | .sdma_reqs = omap34xx_mmc1_sdma_reqs, |
| 1709 | .opt_clks = omap34xx_mmc1_opt_clks, |
| 1710 | .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks), |
| 1711 | .main_clk = "mmchs1_fck", |
| 1712 | .prcm = { |
| 1713 | .omap2 = { |
| 1714 | .module_offs = CORE_MOD, |
| 1715 | .prcm_reg_id = 1, |
| 1716 | .module_bit = OMAP3430_EN_MMC1_SHIFT, |
| 1717 | .idlest_reg_id = 1, |
| 1718 | .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT, |
| 1719 | }, |
| 1720 | }, |
| 1721 | .dev_attr = &mmc1_pre_es3_dev_attr, |
| 1722 | .class = &omap34xx_mmc_class, |
| 1723 | }; |
| 1724 | |
| 1725 | static struct omap_hwmod omap3xxx_es3plus_mmc1_hwmod = { |
| 1726 | .name = "mmc1", |
| 1727 | .mpu_irqs = omap34xx_mmc1_mpu_irqs, |
| 1728 | .sdma_reqs = omap34xx_mmc1_sdma_reqs, |
| 1729 | .opt_clks = omap34xx_mmc1_opt_clks, |
| 1730 | .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc1_opt_clks), |
| 1731 | .main_clk = "mmchs1_fck", |
| 1732 | .prcm = { |
| 1733 | .omap2 = { |
| 1734 | .module_offs = CORE_MOD, |
| 1735 | .prcm_reg_id = 1, |
| 1736 | .module_bit = OMAP3430_EN_MMC1_SHIFT, |
| 1737 | .idlest_reg_id = 1, |
| 1738 | .idlest_idle_bit = OMAP3430_ST_MMC1_SHIFT, |
| 1739 | }, |
| 1740 | }, |
| 1741 | .dev_attr = &mmc1_dev_attr, |
| 1742 | .class = &omap34xx_mmc_class, |
| 1743 | }; |
| 1744 | |
| 1745 | /* MMC/SD/SDIO2 */ |
| 1746 | |
| 1747 | static struct omap_hwmod_irq_info omap34xx_mmc2_mpu_irqs[] = { |
| 1748 | { .irq = INT_24XX_MMC2_IRQ, }, |
| 1749 | { .irq = -1 } |
| 1750 | }; |
| 1751 | |
| 1752 | static struct omap_hwmod_dma_info omap34xx_mmc2_sdma_reqs[] = { |
| 1753 | { .name = "tx", .dma_req = 47, }, |
| 1754 | { .name = "rx", .dma_req = 48, }, |
| 1755 | { .dma_req = -1 } |
| 1756 | }; |
| 1757 | |
| 1758 | static struct omap_hwmod_opt_clk omap34xx_mmc2_opt_clks[] = { |
| 1759 | { .role = "dbck", .clk = "omap_32k_fck", }, |
| 1760 | }; |
| 1761 | |
| 1762 | /* See 35xx errata 2.1.1.128 in SPRZ278F */ |
| 1763 | static struct omap_mmc_dev_attr mmc2_pre_es3_dev_attr = { |
| 1764 | .flags = OMAP_HSMMC_BROKEN_MULTIBLOCK_READ, |
| 1765 | }; |
| 1766 | |
| 1767 | static struct omap_hwmod omap3xxx_pre_es3_mmc2_hwmod = { |
| 1768 | .name = "mmc2", |
| 1769 | .mpu_irqs = omap34xx_mmc2_mpu_irqs, |
| 1770 | .sdma_reqs = omap34xx_mmc2_sdma_reqs, |
| 1771 | .opt_clks = omap34xx_mmc2_opt_clks, |
| 1772 | .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks), |
| 1773 | .main_clk = "mmchs2_fck", |
| 1774 | .prcm = { |
| 1775 | .omap2 = { |
| 1776 | .module_offs = CORE_MOD, |
| 1777 | .prcm_reg_id = 1, |
| 1778 | .module_bit = OMAP3430_EN_MMC2_SHIFT, |
| 1779 | .idlest_reg_id = 1, |
| 1780 | .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT, |
| 1781 | }, |
| 1782 | }, |
| 1783 | .dev_attr = &mmc2_pre_es3_dev_attr, |
| 1784 | .class = &omap34xx_mmc_class, |
| 1785 | }; |
| 1786 | |
| 1787 | static struct omap_hwmod omap3xxx_es3plus_mmc2_hwmod = { |
| 1788 | .name = "mmc2", |
| 1789 | .mpu_irqs = omap34xx_mmc2_mpu_irqs, |
| 1790 | .sdma_reqs = omap34xx_mmc2_sdma_reqs, |
| 1791 | .opt_clks = omap34xx_mmc2_opt_clks, |
| 1792 | .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc2_opt_clks), |
| 1793 | .main_clk = "mmchs2_fck", |
| 1794 | .prcm = { |
| 1795 | .omap2 = { |
| 1796 | .module_offs = CORE_MOD, |
| 1797 | .prcm_reg_id = 1, |
| 1798 | .module_bit = OMAP3430_EN_MMC2_SHIFT, |
| 1799 | .idlest_reg_id = 1, |
| 1800 | .idlest_idle_bit = OMAP3430_ST_MMC2_SHIFT, |
| 1801 | }, |
| 1802 | }, |
| 1803 | .class = &omap34xx_mmc_class, |
| 1804 | }; |
| 1805 | |
| 1806 | /* MMC/SD/SDIO3 */ |
| 1807 | |
| 1808 | static struct omap_hwmod_irq_info omap34xx_mmc3_mpu_irqs[] = { |
| 1809 | { .irq = 94, }, |
| 1810 | { .irq = -1 } |
| 1811 | }; |
| 1812 | |
| 1813 | static struct omap_hwmod_dma_info omap34xx_mmc3_sdma_reqs[] = { |
| 1814 | { .name = "tx", .dma_req = 77, }, |
| 1815 | { .name = "rx", .dma_req = 78, }, |
| 1816 | { .dma_req = -1 } |
| 1817 | }; |
| 1818 | |
| 1819 | static struct omap_hwmod_opt_clk omap34xx_mmc3_opt_clks[] = { |
| 1820 | { .role = "dbck", .clk = "omap_32k_fck", }, |
| 1821 | }; |
| 1822 | |
| 1823 | static struct omap_hwmod omap3xxx_mmc3_hwmod = { |
| 1824 | .name = "mmc3", |
| 1825 | .mpu_irqs = omap34xx_mmc3_mpu_irqs, |
| 1826 | .sdma_reqs = omap34xx_mmc3_sdma_reqs, |
| 1827 | .opt_clks = omap34xx_mmc3_opt_clks, |
| 1828 | .opt_clks_cnt = ARRAY_SIZE(omap34xx_mmc3_opt_clks), |
| 1829 | .main_clk = "mmchs3_fck", |
| 1830 | .prcm = { |
| 1831 | .omap2 = { |
| 1832 | .prcm_reg_id = 1, |
| 1833 | .module_bit = OMAP3430_EN_MMC3_SHIFT, |
| 1834 | .idlest_reg_id = 1, |
| 1835 | .idlest_idle_bit = OMAP3430_ST_MMC3_SHIFT, |
| 1836 | }, |
| 1837 | }, |
| 1838 | .class = &omap34xx_mmc_class, |
| 1839 | }; |
| 1840 | |
| 1841 | /* |
| 1842 | * 'usb_host_hs' class |
| 1843 | * high-speed multi-port usb host controller |
| 1844 | */ |
| 1845 | |
| 1846 | static struct omap_hwmod_class_sysconfig omap3xxx_usb_host_hs_sysc = { |
| 1847 | .rev_offs = 0x0000, |
| 1848 | .sysc_offs = 0x0010, |
| 1849 | .syss_offs = 0x0014, |
| 1850 | .sysc_flags = (SYSC_HAS_MIDLEMODE | SYSC_HAS_CLOCKACTIVITY | |
| 1851 | SYSC_HAS_SIDLEMODE | SYSC_HAS_ENAWAKEUP | |
| 1852 | SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE), |
| 1853 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 1854 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), |
| 1855 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1856 | }; |
| 1857 | |
| 1858 | static struct omap_hwmod_class omap3xxx_usb_host_hs_hwmod_class = { |
| 1859 | .name = "usb_host_hs", |
| 1860 | .sysc = &omap3xxx_usb_host_hs_sysc, |
| 1861 | }; |
| 1862 | |
| 1863 | static struct omap_hwmod_opt_clk omap3xxx_usb_host_hs_opt_clks[] = { |
| 1864 | { .role = "ehci_logic_fck", .clk = "usbhost_120m_fck", }, |
| 1865 | }; |
| 1866 | |
| 1867 | static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs[] = { |
| 1868 | { .name = "ohci-irq", .irq = 76 }, |
| 1869 | { .name = "ehci-irq", .irq = 77 }, |
| 1870 | { .irq = -1 } |
| 1871 | }; |
| 1872 | |
| 1873 | static struct omap_hwmod omap3xxx_usb_host_hs_hwmod = { |
| 1874 | .name = "usb_host_hs", |
| 1875 | .class = &omap3xxx_usb_host_hs_hwmod_class, |
| 1876 | .clkdm_name = "l3_init_clkdm", |
| 1877 | .mpu_irqs = omap3xxx_usb_host_hs_irqs, |
| 1878 | .main_clk = "usbhost_48m_fck", |
| 1879 | .prcm = { |
| 1880 | .omap2 = { |
| 1881 | .module_offs = OMAP3430ES2_USBHOST_MOD, |
| 1882 | .prcm_reg_id = 1, |
| 1883 | .module_bit = OMAP3430ES2_EN_USBHOST1_SHIFT, |
| 1884 | .idlest_reg_id = 1, |
| 1885 | .idlest_idle_bit = OMAP3430ES2_ST_USBHOST_IDLE_SHIFT, |
| 1886 | .idlest_stdby_bit = OMAP3430ES2_ST_USBHOST_STDBY_SHIFT, |
| 1887 | }, |
| 1888 | }, |
| 1889 | .opt_clks = omap3xxx_usb_host_hs_opt_clks, |
| 1890 | .opt_clks_cnt = ARRAY_SIZE(omap3xxx_usb_host_hs_opt_clks), |
| 1891 | |
| 1892 | /* |
| 1893 | * Errata: USBHOST Configured In Smart-Idle Can Lead To a Deadlock |
| 1894 | * id: i660 |
| 1895 | * |
| 1896 | * Description: |
| 1897 | * In the following configuration : |
| 1898 | * - USBHOST module is set to smart-idle mode |
| 1899 | * - PRCM asserts idle_req to the USBHOST module ( This typically |
| 1900 | * happens when the system is going to a low power mode : all ports |
| 1901 | * have been suspended, the master part of the USBHOST module has |
| 1902 | * entered the standby state, and SW has cut the functional clocks) |
| 1903 | * - an USBHOST interrupt occurs before the module is able to answer |
| 1904 | * idle_ack, typically a remote wakeup IRQ. |
| 1905 | * Then the USB HOST module will enter a deadlock situation where it |
| 1906 | * is no more accessible nor functional. |
| 1907 | * |
| 1908 | * Workaround: |
| 1909 | * Don't use smart idle; use only force idle, hence HWMOD_SWSUP_SIDLE |
| 1910 | */ |
| 1911 | |
| 1912 | /* |
| 1913 | * Errata: USB host EHCI may stall when entering smart-standby mode |
| 1914 | * Id: i571 |
| 1915 | * |
| 1916 | * Description: |
| 1917 | * When the USBHOST module is set to smart-standby mode, and when it is |
| 1918 | * ready to enter the standby state (i.e. all ports are suspended and |
| 1919 | * all attached devices are in suspend mode), then it can wrongly assert |
| 1920 | * the Mstandby signal too early while there are still some residual OCP |
| 1921 | * transactions ongoing. If this condition occurs, the internal state |
| 1922 | * machine may go to an undefined state and the USB link may be stuck |
| 1923 | * upon the next resume. |
| 1924 | * |
| 1925 | * Workaround: |
| 1926 | * Don't use smart standby; use only force standby, |
| 1927 | * hence HWMOD_SWSUP_MSTANDBY |
| 1928 | */ |
| 1929 | |
| 1930 | /* |
| 1931 | * During system boot; If the hwmod framework resets the module |
| 1932 | * the module will have smart idle settings; which can lead to deadlock |
| 1933 | * (above Errata Id:i660); so, dont reset the module during boot; |
| 1934 | * Use HWMOD_INIT_NO_RESET. |
| 1935 | */ |
| 1936 | |
| 1937 | .flags = HWMOD_SWSUP_SIDLE | HWMOD_SWSUP_MSTANDBY | |
| 1938 | HWMOD_INIT_NO_RESET, |
| 1939 | }; |
| 1940 | |
| 1941 | /* |
| 1942 | * 'usb_tll_hs' class |
| 1943 | * usb_tll_hs module is the adapter on the usb_host_hs ports |
| 1944 | */ |
| 1945 | static struct omap_hwmod_class_sysconfig omap3xxx_usb_tll_hs_sysc = { |
| 1946 | .rev_offs = 0x0000, |
| 1947 | .sysc_offs = 0x0010, |
| 1948 | .syss_offs = 0x0014, |
| 1949 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 1950 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 1951 | SYSC_HAS_AUTOIDLE), |
| 1952 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 1953 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 1954 | }; |
| 1955 | |
| 1956 | static struct omap_hwmod_class omap3xxx_usb_tll_hs_hwmod_class = { |
| 1957 | .name = "usb_tll_hs", |
| 1958 | .sysc = &omap3xxx_usb_tll_hs_sysc, |
| 1959 | }; |
| 1960 | |
| 1961 | static struct omap_hwmod_irq_info omap3xxx_usb_tll_hs_irqs[] = { |
| 1962 | { .name = "tll-irq", .irq = 78 }, |
| 1963 | { .irq = -1 } |
| 1964 | }; |
| 1965 | |
| 1966 | static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod = { |
| 1967 | .name = "usb_tll_hs", |
| 1968 | .class = &omap3xxx_usb_tll_hs_hwmod_class, |
| 1969 | .clkdm_name = "l3_init_clkdm", |
| 1970 | .mpu_irqs = omap3xxx_usb_tll_hs_irqs, |
| 1971 | .main_clk = "usbtll_fck", |
| 1972 | .prcm = { |
| 1973 | .omap2 = { |
| 1974 | .module_offs = CORE_MOD, |
| 1975 | .prcm_reg_id = 3, |
| 1976 | .module_bit = OMAP3430ES2_EN_USBTLL_SHIFT, |
| 1977 | .idlest_reg_id = 3, |
| 1978 | .idlest_idle_bit = OMAP3430ES2_ST_USBTLL_SHIFT, |
| 1979 | }, |
| 1980 | }, |
| 1981 | }; |
| 1982 | |
Paul Walmsley | 45a4bb0 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 1983 | static struct omap_hwmod omap3xxx_hdq1w_hwmod = { |
| 1984 | .name = "hdq1w", |
| 1985 | .mpu_irqs = omap2_hdq1w_mpu_irqs, |
| 1986 | .main_clk = "hdq_fck", |
| 1987 | .prcm = { |
| 1988 | .omap2 = { |
| 1989 | .module_offs = CORE_MOD, |
| 1990 | .prcm_reg_id = 1, |
| 1991 | .module_bit = OMAP3430_EN_HDQ_SHIFT, |
| 1992 | .idlest_reg_id = 1, |
| 1993 | .idlest_idle_bit = OMAP3430_ST_HDQ_SHIFT, |
| 1994 | }, |
| 1995 | }, |
| 1996 | .class = &omap2_hdq1w_class, |
| 1997 | }; |
| 1998 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 1999 | /* |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame^] | 2000 | * '32K sync counter' class |
| 2001 | * 32-bit ordinary counter, clocked by the falling edge of the 32 khz clock |
| 2002 | */ |
| 2003 | static struct omap_hwmod_class_sysconfig omap3xxx_counter_sysc = { |
| 2004 | .rev_offs = 0x0000, |
| 2005 | .sysc_offs = 0x0004, |
| 2006 | .sysc_flags = SYSC_HAS_SIDLEMODE, |
| 2007 | .idlemodes = (SIDLE_FORCE | SIDLE_NO), |
| 2008 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 2009 | }; |
| 2010 | |
| 2011 | static struct omap_hwmod_class omap3xxx_counter_hwmod_class = { |
| 2012 | .name = "counter", |
| 2013 | .sysc = &omap3xxx_counter_sysc, |
| 2014 | }; |
| 2015 | |
| 2016 | static struct omap_hwmod omap3xxx_counter_32k_hwmod = { |
| 2017 | .name = "counter_32k", |
| 2018 | .class = &omap3xxx_counter_hwmod_class, |
| 2019 | .clkdm_name = "wkup_clkdm", |
| 2020 | .flags = HWMOD_SWSUP_SIDLE, |
| 2021 | .main_clk = "wkup_32k_fck", |
| 2022 | .prcm = { |
| 2023 | .omap2 = { |
| 2024 | .module_offs = WKUP_MOD, |
| 2025 | .prcm_reg_id = 1, |
| 2026 | .module_bit = OMAP3430_ST_32KSYNC_SHIFT, |
| 2027 | .idlest_reg_id = 1, |
| 2028 | .idlest_idle_bit = OMAP3430_ST_32KSYNC_SHIFT, |
| 2029 | }, |
| 2030 | }, |
| 2031 | }; |
| 2032 | |
| 2033 | /* |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 2034 | * interfaces |
| 2035 | */ |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2036 | |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 2037 | /* L3 -> L4_CORE interface */ |
Kevin Hilman | 4a7cf90 | 2010-07-26 16:34:32 -0600 | [diff] [blame] | 2038 | static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_core = { |
| 2039 | .master = &omap3xxx_l3_main_hwmod, |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 2040 | .slave = &omap3xxx_l4_core_hwmod, |
| 2041 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2042 | }; |
| 2043 | |
| 2044 | /* L3 -> L4_PER interface */ |
Kevin Hilman | 4a7cf90 | 2010-07-26 16:34:32 -0600 | [diff] [blame] | 2045 | static struct omap_hwmod_ocp_if omap3xxx_l3_main__l4_per = { |
| 2046 | .master = &omap3xxx_l3_main_hwmod, |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 2047 | .slave = &omap3xxx_l4_per_hwmod, |
| 2048 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2049 | }; |
| 2050 | |
sricharan | 4bb194d | 2011-02-08 22:13:37 +0530 | [diff] [blame] | 2051 | static struct omap_hwmod_addr_space omap3xxx_l3_main_addrs[] = { |
| 2052 | { |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 2053 | .pa_start = 0x68000000, |
| 2054 | .pa_end = 0x6800ffff, |
| 2055 | .flags = ADDR_TYPE_RT, |
sricharan | 4bb194d | 2011-02-08 22:13:37 +0530 | [diff] [blame] | 2056 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2057 | { } |
sricharan | 4bb194d | 2011-02-08 22:13:37 +0530 | [diff] [blame] | 2058 | }; |
| 2059 | |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 2060 | /* MPU -> L3 interface */ |
Kevin Hilman | 4a7cf90 | 2010-07-26 16:34:32 -0600 | [diff] [blame] | 2061 | static struct omap_hwmod_ocp_if omap3xxx_mpu__l3_main = { |
sricharan | 4bb194d | 2011-02-08 22:13:37 +0530 | [diff] [blame] | 2062 | .master = &omap3xxx_mpu_hwmod, |
| 2063 | .slave = &omap3xxx_l3_main_hwmod, |
| 2064 | .addr = omap3xxx_l3_main_addrs, |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 2065 | .user = OCP_USER_MPU, |
| 2066 | }; |
| 2067 | |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2068 | /* DSS -> l3 */ |
Paul Walmsley | d69dc64 | 2012-04-19 04:03:52 -0600 | [diff] [blame] | 2069 | static struct omap_hwmod_ocp_if omap3430es1_dss__l3 = { |
| 2070 | .master = &omap3430es1_dss_core_hwmod, |
| 2071 | .slave = &omap3xxx_l3_main_hwmod, |
| 2072 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2073 | }; |
| 2074 | |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2075 | static struct omap_hwmod_ocp_if omap3xxx_dss__l3 = { |
| 2076 | .master = &omap3xxx_dss_core_hwmod, |
| 2077 | .slave = &omap3xxx_l3_main_hwmod, |
| 2078 | .fw = { |
| 2079 | .omap2 = { |
| 2080 | .l3_perm_bit = OMAP3_L3_CORE_FW_INIT_ID_DSS, |
| 2081 | .flags = OMAP_FIREWALL_L3, |
| 2082 | } |
| 2083 | }, |
| 2084 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2085 | }; |
| 2086 | |
Hema HK | 870ea2b | 2011-02-17 12:07:18 +0530 | [diff] [blame] | 2087 | /* l3_core -> usbhsotg interface */ |
| 2088 | static struct omap_hwmod_ocp_if omap3xxx_usbhsotg__l3 = { |
| 2089 | .master = &omap3xxx_usbhsotg_hwmod, |
| 2090 | .slave = &omap3xxx_l3_main_hwmod, |
| 2091 | .clk = "core_l3_ick", |
| 2092 | .user = OCP_USER_MPU, |
| 2093 | }; |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 2094 | |
Hema HK | 273ff8c | 2011-02-17 12:07:19 +0530 | [diff] [blame] | 2095 | /* l3_core -> am35xx_usbhsotg interface */ |
| 2096 | static struct omap_hwmod_ocp_if am35xx_usbhsotg__l3 = { |
| 2097 | .master = &am35xx_usbhsotg_hwmod, |
| 2098 | .slave = &omap3xxx_l3_main_hwmod, |
| 2099 | .clk = "core_l3_ick", |
| 2100 | .user = OCP_USER_MPU, |
| 2101 | }; |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 2102 | /* L4_CORE -> L4_WKUP interface */ |
| 2103 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__l4_wkup = { |
| 2104 | .master = &omap3xxx_l4_core_hwmod, |
| 2105 | .slave = &omap3xxx_l4_wkup_hwmod, |
| 2106 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2107 | }; |
| 2108 | |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2109 | /* L4 CORE -> MMC1 interface */ |
Paul Walmsley | 4a9efb6 | 2012-04-19 04:03:51 -0600 | [diff] [blame] | 2110 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc1 = { |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2111 | .master = &omap3xxx_l4_core_hwmod, |
Paul Walmsley | 4a9efb6 | 2012-04-19 04:03:51 -0600 | [diff] [blame] | 2112 | .slave = &omap3xxx_pre_es3_mmc1_hwmod, |
| 2113 | .clk = "mmchs1_ick", |
| 2114 | .addr = omap2430_mmc1_addr_space, |
| 2115 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2116 | .flags = OMAP_FIREWALL_L4 |
| 2117 | }; |
| 2118 | |
| 2119 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc1 = { |
| 2120 | .master = &omap3xxx_l4_core_hwmod, |
| 2121 | .slave = &omap3xxx_es3plus_mmc1_hwmod, |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2122 | .clk = "mmchs1_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2123 | .addr = omap2430_mmc1_addr_space, |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2124 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2125 | .flags = OMAP_FIREWALL_L4 |
| 2126 | }; |
| 2127 | |
| 2128 | /* L4 CORE -> MMC2 interface */ |
Paul Walmsley | 4a9efb6 | 2012-04-19 04:03:51 -0600 | [diff] [blame] | 2129 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__pre_es3_mmc2 = { |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2130 | .master = &omap3xxx_l4_core_hwmod, |
Paul Walmsley | 4a9efb6 | 2012-04-19 04:03:51 -0600 | [diff] [blame] | 2131 | .slave = &omap3xxx_pre_es3_mmc2_hwmod, |
| 2132 | .clk = "mmchs2_ick", |
| 2133 | .addr = omap2430_mmc2_addr_space, |
| 2134 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2135 | .flags = OMAP_FIREWALL_L4 |
| 2136 | }; |
| 2137 | |
| 2138 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__es3plus_mmc2 = { |
| 2139 | .master = &omap3xxx_l4_core_hwmod, |
| 2140 | .slave = &omap3xxx_es3plus_mmc2_hwmod, |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2141 | .clk = "mmchs2_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2142 | .addr = omap2430_mmc2_addr_space, |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2143 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2144 | .flags = OMAP_FIREWALL_L4 |
| 2145 | }; |
| 2146 | |
| 2147 | /* L4 CORE -> MMC3 interface */ |
| 2148 | static struct omap_hwmod_addr_space omap3xxx_mmc3_addr_space[] = { |
| 2149 | { |
| 2150 | .pa_start = 0x480ad000, |
| 2151 | .pa_end = 0x480ad1ff, |
| 2152 | .flags = ADDR_TYPE_RT, |
| 2153 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2154 | { } |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2155 | }; |
| 2156 | |
| 2157 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__mmc3 = { |
| 2158 | .master = &omap3xxx_l4_core_hwmod, |
| 2159 | .slave = &omap3xxx_mmc3_hwmod, |
| 2160 | .clk = "mmchs3_ick", |
| 2161 | .addr = omap3xxx_mmc3_addr_space, |
Paul Walmsley | b163605 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 2162 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2163 | .flags = OMAP_FIREWALL_L4 |
| 2164 | }; |
| 2165 | |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2166 | /* L4 CORE -> UART1 interface */ |
| 2167 | static struct omap_hwmod_addr_space omap3xxx_uart1_addr_space[] = { |
| 2168 | { |
| 2169 | .pa_start = OMAP3_UART1_BASE, |
| 2170 | .pa_end = OMAP3_UART1_BASE + SZ_8K - 1, |
| 2171 | .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT, |
| 2172 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2173 | { } |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2174 | }; |
| 2175 | |
| 2176 | static struct omap_hwmod_ocp_if omap3_l4_core__uart1 = { |
| 2177 | .master = &omap3xxx_l4_core_hwmod, |
| 2178 | .slave = &omap3xxx_uart1_hwmod, |
| 2179 | .clk = "uart1_ick", |
| 2180 | .addr = omap3xxx_uart1_addr_space, |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2181 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2182 | }; |
| 2183 | |
| 2184 | /* L4 CORE -> UART2 interface */ |
| 2185 | static struct omap_hwmod_addr_space omap3xxx_uart2_addr_space[] = { |
| 2186 | { |
| 2187 | .pa_start = OMAP3_UART2_BASE, |
| 2188 | .pa_end = OMAP3_UART2_BASE + SZ_1K - 1, |
| 2189 | .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT, |
| 2190 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2191 | { } |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2192 | }; |
| 2193 | |
| 2194 | static struct omap_hwmod_ocp_if omap3_l4_core__uart2 = { |
| 2195 | .master = &omap3xxx_l4_core_hwmod, |
| 2196 | .slave = &omap3xxx_uart2_hwmod, |
| 2197 | .clk = "uart2_ick", |
| 2198 | .addr = omap3xxx_uart2_addr_space, |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2199 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2200 | }; |
| 2201 | |
| 2202 | /* L4 PER -> UART3 interface */ |
| 2203 | static struct omap_hwmod_addr_space omap3xxx_uart3_addr_space[] = { |
| 2204 | { |
| 2205 | .pa_start = OMAP3_UART3_BASE, |
| 2206 | .pa_end = OMAP3_UART3_BASE + SZ_1K - 1, |
| 2207 | .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT, |
| 2208 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2209 | { } |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2210 | }; |
| 2211 | |
| 2212 | static struct omap_hwmod_ocp_if omap3_l4_per__uart3 = { |
| 2213 | .master = &omap3xxx_l4_per_hwmod, |
| 2214 | .slave = &omap3xxx_uart3_hwmod, |
| 2215 | .clk = "uart3_ick", |
| 2216 | .addr = omap3xxx_uart3_addr_space, |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2217 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2218 | }; |
| 2219 | |
| 2220 | /* L4 PER -> UART4 interface */ |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 2221 | static struct omap_hwmod_addr_space omap36xx_uart4_addr_space[] = { |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2222 | { |
| 2223 | .pa_start = OMAP3_UART4_BASE, |
| 2224 | .pa_end = OMAP3_UART4_BASE + SZ_1K - 1, |
| 2225 | .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT, |
| 2226 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2227 | { } |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2228 | }; |
| 2229 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 2230 | static struct omap_hwmod_ocp_if omap36xx_l4_per__uart4 = { |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2231 | .master = &omap3xxx_l4_per_hwmod, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 2232 | .slave = &omap36xx_uart4_hwmod, |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2233 | .clk = "uart4_ick", |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 2234 | .addr = omap36xx_uart4_addr_space, |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 2235 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2236 | }; |
| 2237 | |
Kyle Manna | 4bf90f6 | 2011-10-18 13:47:41 -0500 | [diff] [blame] | 2238 | /* AM35xx: L4 CORE -> UART4 interface */ |
| 2239 | static struct omap_hwmod_addr_space am35xx_uart4_addr_space[] = { |
| 2240 | { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 2241 | .pa_start = OMAP3_UART4_AM35XX_BASE, |
| 2242 | .pa_end = OMAP3_UART4_AM35XX_BASE + SZ_1K - 1, |
| 2243 | .flags = ADDR_MAP_ON_INIT | ADDR_TYPE_RT, |
Kyle Manna | 4bf90f6 | 2011-10-18 13:47:41 -0500 | [diff] [blame] | 2244 | }, |
| 2245 | }; |
| 2246 | |
| 2247 | static struct omap_hwmod_ocp_if am35xx_l4_core__uart4 = { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 2248 | .master = &omap3xxx_l4_core_hwmod, |
| 2249 | .slave = &am35xx_uart4_hwmod, |
| 2250 | .clk = "uart4_ick", |
| 2251 | .addr = am35xx_uart4_addr_space, |
| 2252 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
Kyle Manna | 4bf90f6 | 2011-10-18 13:47:41 -0500 | [diff] [blame] | 2253 | }; |
| 2254 | |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 2255 | /* L4 CORE -> I2C1 interface */ |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 2256 | static struct omap_hwmod_ocp_if omap3_l4_core__i2c1 = { |
| 2257 | .master = &omap3xxx_l4_core_hwmod, |
| 2258 | .slave = &omap3xxx_i2c1_hwmod, |
| 2259 | .clk = "i2c1_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2260 | .addr = omap2_i2c1_addr_space, |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 2261 | .fw = { |
| 2262 | .omap2 = { |
| 2263 | .l4_fw_region = OMAP3_L4_CORE_FW_I2C1_REGION, |
| 2264 | .l4_prot_group = 7, |
| 2265 | .flags = OMAP_FIREWALL_L4, |
| 2266 | } |
| 2267 | }, |
| 2268 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2269 | }; |
| 2270 | |
| 2271 | /* L4 CORE -> I2C2 interface */ |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 2272 | static struct omap_hwmod_ocp_if omap3_l4_core__i2c2 = { |
| 2273 | .master = &omap3xxx_l4_core_hwmod, |
| 2274 | .slave = &omap3xxx_i2c2_hwmod, |
| 2275 | .clk = "i2c2_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2276 | .addr = omap2_i2c2_addr_space, |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 2277 | .fw = { |
| 2278 | .omap2 = { |
| 2279 | .l4_fw_region = OMAP3_L4_CORE_FW_I2C2_REGION, |
| 2280 | .l4_prot_group = 7, |
| 2281 | .flags = OMAP_FIREWALL_L4, |
| 2282 | } |
| 2283 | }, |
| 2284 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2285 | }; |
| 2286 | |
| 2287 | /* L4 CORE -> I2C3 interface */ |
| 2288 | static struct omap_hwmod_addr_space omap3xxx_i2c3_addr_space[] = { |
| 2289 | { |
| 2290 | .pa_start = 0x48060000, |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2291 | .pa_end = 0x48060000 + SZ_128 - 1, |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 2292 | .flags = ADDR_TYPE_RT, |
| 2293 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2294 | { } |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 2295 | }; |
| 2296 | |
| 2297 | static struct omap_hwmod_ocp_if omap3_l4_core__i2c3 = { |
| 2298 | .master = &omap3xxx_l4_core_hwmod, |
| 2299 | .slave = &omap3xxx_i2c3_hwmod, |
| 2300 | .clk = "i2c3_ick", |
| 2301 | .addr = omap3xxx_i2c3_addr_space, |
Rajendra Nayak | 4fe20e9 | 2010-09-21 19:37:13 +0530 | [diff] [blame] | 2302 | .fw = { |
| 2303 | .omap2 = { |
| 2304 | .l4_fw_region = OMAP3_L4_CORE_FW_I2C3_REGION, |
| 2305 | .l4_prot_group = 7, |
| 2306 | .flags = OMAP_FIREWALL_L4, |
| 2307 | } |
| 2308 | }, |
| 2309 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2310 | }; |
| 2311 | |
Thara Gopinath | d344272 | 2010-05-29 22:02:24 +0530 | [diff] [blame] | 2312 | /* L4 CORE -> SR1 interface */ |
| 2313 | static struct omap_hwmod_addr_space omap3_sr1_addr_space[] = { |
| 2314 | { |
| 2315 | .pa_start = OMAP34XX_SR1_BASE, |
| 2316 | .pa_end = OMAP34XX_SR1_BASE + SZ_1K - 1, |
| 2317 | .flags = ADDR_TYPE_RT, |
| 2318 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2319 | { } |
Thara Gopinath | d344272 | 2010-05-29 22:02:24 +0530 | [diff] [blame] | 2320 | }; |
| 2321 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 2322 | static struct omap_hwmod_ocp_if omap34xx_l4_core__sr1 = { |
Thara Gopinath | d344272 | 2010-05-29 22:02:24 +0530 | [diff] [blame] | 2323 | .master = &omap3xxx_l4_core_hwmod, |
| 2324 | .slave = &omap34xx_sr1_hwmod, |
| 2325 | .clk = "sr_l4_ick", |
| 2326 | .addr = omap3_sr1_addr_space, |
Thara Gopinath | d344272 | 2010-05-29 22:02:24 +0530 | [diff] [blame] | 2327 | .user = OCP_USER_MPU, |
| 2328 | }; |
| 2329 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 2330 | static struct omap_hwmod_ocp_if omap36xx_l4_core__sr1 = { |
| 2331 | .master = &omap3xxx_l4_core_hwmod, |
| 2332 | .slave = &omap36xx_sr1_hwmod, |
| 2333 | .clk = "sr_l4_ick", |
| 2334 | .addr = omap3_sr1_addr_space, |
| 2335 | .user = OCP_USER_MPU, |
| 2336 | }; |
| 2337 | |
Thara Gopinath | d344272 | 2010-05-29 22:02:24 +0530 | [diff] [blame] | 2338 | /* L4 CORE -> SR1 interface */ |
| 2339 | static struct omap_hwmod_addr_space omap3_sr2_addr_space[] = { |
| 2340 | { |
| 2341 | .pa_start = OMAP34XX_SR2_BASE, |
| 2342 | .pa_end = OMAP34XX_SR2_BASE + SZ_1K - 1, |
| 2343 | .flags = ADDR_TYPE_RT, |
| 2344 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2345 | { } |
Thara Gopinath | d344272 | 2010-05-29 22:02:24 +0530 | [diff] [blame] | 2346 | }; |
| 2347 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 2348 | static struct omap_hwmod_ocp_if omap34xx_l4_core__sr2 = { |
Thara Gopinath | d344272 | 2010-05-29 22:02:24 +0530 | [diff] [blame] | 2349 | .master = &omap3xxx_l4_core_hwmod, |
| 2350 | .slave = &omap34xx_sr2_hwmod, |
| 2351 | .clk = "sr_l4_ick", |
| 2352 | .addr = omap3_sr2_addr_space, |
Thara Gopinath | d344272 | 2010-05-29 22:02:24 +0530 | [diff] [blame] | 2353 | .user = OCP_USER_MPU, |
| 2354 | }; |
| 2355 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 2356 | static struct omap_hwmod_ocp_if omap36xx_l4_core__sr2 = { |
| 2357 | .master = &omap3xxx_l4_core_hwmod, |
| 2358 | .slave = &omap36xx_sr2_hwmod, |
| 2359 | .clk = "sr_l4_ick", |
| 2360 | .addr = omap3_sr2_addr_space, |
| 2361 | .user = OCP_USER_MPU, |
| 2362 | }; |
Hema HK | 870ea2b | 2011-02-17 12:07:18 +0530 | [diff] [blame] | 2363 | |
| 2364 | static struct omap_hwmod_addr_space omap3xxx_usbhsotg_addrs[] = { |
| 2365 | { |
| 2366 | .pa_start = OMAP34XX_HSUSB_OTG_BASE, |
| 2367 | .pa_end = OMAP34XX_HSUSB_OTG_BASE + SZ_4K - 1, |
| 2368 | .flags = ADDR_TYPE_RT |
| 2369 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2370 | { } |
Hema HK | 870ea2b | 2011-02-17 12:07:18 +0530 | [diff] [blame] | 2371 | }; |
| 2372 | |
| 2373 | /* l4_core -> usbhsotg */ |
| 2374 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__usbhsotg = { |
| 2375 | .master = &omap3xxx_l4_core_hwmod, |
| 2376 | .slave = &omap3xxx_usbhsotg_hwmod, |
| 2377 | .clk = "l4_ick", |
| 2378 | .addr = omap3xxx_usbhsotg_addrs, |
Hema HK | 870ea2b | 2011-02-17 12:07:18 +0530 | [diff] [blame] | 2379 | .user = OCP_USER_MPU, |
| 2380 | }; |
| 2381 | |
Hema HK | 273ff8c | 2011-02-17 12:07:19 +0530 | [diff] [blame] | 2382 | static struct omap_hwmod_addr_space am35xx_usbhsotg_addrs[] = { |
| 2383 | { |
| 2384 | .pa_start = AM35XX_IPSS_USBOTGSS_BASE, |
| 2385 | .pa_end = AM35XX_IPSS_USBOTGSS_BASE + SZ_4K - 1, |
| 2386 | .flags = ADDR_TYPE_RT |
| 2387 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2388 | { } |
Hema HK | 273ff8c | 2011-02-17 12:07:19 +0530 | [diff] [blame] | 2389 | }; |
| 2390 | |
| 2391 | /* l4_core -> usbhsotg */ |
| 2392 | static struct omap_hwmod_ocp_if am35xx_l4_core__usbhsotg = { |
| 2393 | .master = &omap3xxx_l4_core_hwmod, |
| 2394 | .slave = &am35xx_usbhsotg_hwmod, |
| 2395 | .clk = "l4_ick", |
| 2396 | .addr = am35xx_usbhsotg_addrs, |
Hema HK | 273ff8c | 2011-02-17 12:07:19 +0530 | [diff] [blame] | 2397 | .user = OCP_USER_MPU, |
| 2398 | }; |
| 2399 | |
Paul Walmsley | 4308570 | 2012-04-19 04:03:53 -0600 | [diff] [blame] | 2400 | /* L4_WKUP -> L4_SEC interface */ |
| 2401 | static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__l4_sec = { |
| 2402 | .master = &omap3xxx_l4_wkup_hwmod, |
| 2403 | .slave = &omap3xxx_l4_sec_hwmod, |
| 2404 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2405 | }; |
| 2406 | |
Kevin Hilman | 540064b | 2010-07-26 16:34:32 -0600 | [diff] [blame] | 2407 | /* IVA2 <- L3 interface */ |
| 2408 | static struct omap_hwmod_ocp_if omap3xxx_l3__iva = { |
| 2409 | .master = &omap3xxx_l3_main_hwmod, |
| 2410 | .slave = &omap3xxx_iva_hwmod, |
Paul Walmsley | 064931a | 2012-04-19 04:04:35 -0600 | [diff] [blame] | 2411 | .clk = "core_l3_ick", |
Kevin Hilman | 540064b | 2010-07-26 16:34:32 -0600 | [diff] [blame] | 2412 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2413 | }; |
| 2414 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2415 | static struct omap_hwmod_addr_space omap3xxx_timer1_addrs[] = { |
| 2416 | { |
| 2417 | .pa_start = 0x48318000, |
| 2418 | .pa_end = 0x48318000 + SZ_1K - 1, |
| 2419 | .flags = ADDR_TYPE_RT |
| 2420 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2421 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2422 | }; |
| 2423 | |
| 2424 | /* l4_wkup -> timer1 */ |
| 2425 | static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__timer1 = { |
| 2426 | .master = &omap3xxx_l4_wkup_hwmod, |
| 2427 | .slave = &omap3xxx_timer1_hwmod, |
| 2428 | .clk = "gpt1_ick", |
| 2429 | .addr = omap3xxx_timer1_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2430 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2431 | }; |
| 2432 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2433 | static struct omap_hwmod_addr_space omap3xxx_timer2_addrs[] = { |
| 2434 | { |
| 2435 | .pa_start = 0x49032000, |
| 2436 | .pa_end = 0x49032000 + SZ_1K - 1, |
| 2437 | .flags = ADDR_TYPE_RT |
| 2438 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2439 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2440 | }; |
| 2441 | |
| 2442 | /* l4_per -> timer2 */ |
| 2443 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer2 = { |
| 2444 | .master = &omap3xxx_l4_per_hwmod, |
| 2445 | .slave = &omap3xxx_timer2_hwmod, |
| 2446 | .clk = "gpt2_ick", |
| 2447 | .addr = omap3xxx_timer2_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2448 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2449 | }; |
| 2450 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2451 | static struct omap_hwmod_addr_space omap3xxx_timer3_addrs[] = { |
| 2452 | { |
| 2453 | .pa_start = 0x49034000, |
| 2454 | .pa_end = 0x49034000 + SZ_1K - 1, |
| 2455 | .flags = ADDR_TYPE_RT |
| 2456 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2457 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2458 | }; |
| 2459 | |
| 2460 | /* l4_per -> timer3 */ |
| 2461 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer3 = { |
| 2462 | .master = &omap3xxx_l4_per_hwmod, |
| 2463 | .slave = &omap3xxx_timer3_hwmod, |
| 2464 | .clk = "gpt3_ick", |
| 2465 | .addr = omap3xxx_timer3_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2466 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2467 | }; |
| 2468 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2469 | static struct omap_hwmod_addr_space omap3xxx_timer4_addrs[] = { |
| 2470 | { |
| 2471 | .pa_start = 0x49036000, |
| 2472 | .pa_end = 0x49036000 + SZ_1K - 1, |
| 2473 | .flags = ADDR_TYPE_RT |
| 2474 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2475 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2476 | }; |
| 2477 | |
| 2478 | /* l4_per -> timer4 */ |
| 2479 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer4 = { |
| 2480 | .master = &omap3xxx_l4_per_hwmod, |
| 2481 | .slave = &omap3xxx_timer4_hwmod, |
| 2482 | .clk = "gpt4_ick", |
| 2483 | .addr = omap3xxx_timer4_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2484 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2485 | }; |
| 2486 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2487 | static struct omap_hwmod_addr_space omap3xxx_timer5_addrs[] = { |
| 2488 | { |
| 2489 | .pa_start = 0x49038000, |
| 2490 | .pa_end = 0x49038000 + SZ_1K - 1, |
| 2491 | .flags = ADDR_TYPE_RT |
| 2492 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2493 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2494 | }; |
| 2495 | |
| 2496 | /* l4_per -> timer5 */ |
| 2497 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer5 = { |
| 2498 | .master = &omap3xxx_l4_per_hwmod, |
| 2499 | .slave = &omap3xxx_timer5_hwmod, |
| 2500 | .clk = "gpt5_ick", |
| 2501 | .addr = omap3xxx_timer5_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2502 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2503 | }; |
| 2504 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2505 | static struct omap_hwmod_addr_space omap3xxx_timer6_addrs[] = { |
| 2506 | { |
| 2507 | .pa_start = 0x4903A000, |
| 2508 | .pa_end = 0x4903A000 + SZ_1K - 1, |
| 2509 | .flags = ADDR_TYPE_RT |
| 2510 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2511 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2512 | }; |
| 2513 | |
| 2514 | /* l4_per -> timer6 */ |
| 2515 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer6 = { |
| 2516 | .master = &omap3xxx_l4_per_hwmod, |
| 2517 | .slave = &omap3xxx_timer6_hwmod, |
| 2518 | .clk = "gpt6_ick", |
| 2519 | .addr = omap3xxx_timer6_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2520 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2521 | }; |
| 2522 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2523 | static struct omap_hwmod_addr_space omap3xxx_timer7_addrs[] = { |
| 2524 | { |
| 2525 | .pa_start = 0x4903C000, |
| 2526 | .pa_end = 0x4903C000 + SZ_1K - 1, |
| 2527 | .flags = ADDR_TYPE_RT |
| 2528 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2529 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2530 | }; |
| 2531 | |
| 2532 | /* l4_per -> timer7 */ |
| 2533 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer7 = { |
| 2534 | .master = &omap3xxx_l4_per_hwmod, |
| 2535 | .slave = &omap3xxx_timer7_hwmod, |
| 2536 | .clk = "gpt7_ick", |
| 2537 | .addr = omap3xxx_timer7_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2538 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2539 | }; |
| 2540 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2541 | static struct omap_hwmod_addr_space omap3xxx_timer8_addrs[] = { |
| 2542 | { |
| 2543 | .pa_start = 0x4903E000, |
| 2544 | .pa_end = 0x4903E000 + SZ_1K - 1, |
| 2545 | .flags = ADDR_TYPE_RT |
| 2546 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2547 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2548 | }; |
| 2549 | |
| 2550 | /* l4_per -> timer8 */ |
| 2551 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer8 = { |
| 2552 | .master = &omap3xxx_l4_per_hwmod, |
| 2553 | .slave = &omap3xxx_timer8_hwmod, |
| 2554 | .clk = "gpt8_ick", |
| 2555 | .addr = omap3xxx_timer8_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2556 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2557 | }; |
| 2558 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2559 | static struct omap_hwmod_addr_space omap3xxx_timer9_addrs[] = { |
| 2560 | { |
| 2561 | .pa_start = 0x49040000, |
| 2562 | .pa_end = 0x49040000 + SZ_1K - 1, |
| 2563 | .flags = ADDR_TYPE_RT |
| 2564 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2565 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2566 | }; |
| 2567 | |
| 2568 | /* l4_per -> timer9 */ |
| 2569 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__timer9 = { |
| 2570 | .master = &omap3xxx_l4_per_hwmod, |
| 2571 | .slave = &omap3xxx_timer9_hwmod, |
| 2572 | .clk = "gpt9_ick", |
| 2573 | .addr = omap3xxx_timer9_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2574 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2575 | }; |
| 2576 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2577 | /* l4_core -> timer10 */ |
| 2578 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer10 = { |
| 2579 | .master = &omap3xxx_l4_core_hwmod, |
| 2580 | .slave = &omap3xxx_timer10_hwmod, |
| 2581 | .clk = "gpt10_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2582 | .addr = omap2_timer10_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2583 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2584 | }; |
| 2585 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2586 | /* l4_core -> timer11 */ |
| 2587 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__timer11 = { |
| 2588 | .master = &omap3xxx_l4_core_hwmod, |
| 2589 | .slave = &omap3xxx_timer11_hwmod, |
| 2590 | .clk = "gpt11_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2591 | .addr = omap2_timer11_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2592 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2593 | }; |
| 2594 | |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2595 | static struct omap_hwmod_addr_space omap3xxx_timer12_addrs[] = { |
| 2596 | { |
| 2597 | .pa_start = 0x48304000, |
| 2598 | .pa_end = 0x48304000 + SZ_1K - 1, |
| 2599 | .flags = ADDR_TYPE_RT |
| 2600 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2601 | { } |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2602 | }; |
| 2603 | |
| 2604 | /* l4_core -> timer12 */ |
Paul Walmsley | 4308570 | 2012-04-19 04:03:53 -0600 | [diff] [blame] | 2605 | static struct omap_hwmod_ocp_if omap3xxx_l4_sec__timer12 = { |
| 2606 | .master = &omap3xxx_l4_sec_hwmod, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2607 | .slave = &omap3xxx_timer12_hwmod, |
| 2608 | .clk = "gpt12_ick", |
| 2609 | .addr = omap3xxx_timer12_addrs, |
Thara Gopinath | ce722d2 | 2011-02-23 00:14:05 -0700 | [diff] [blame] | 2610 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2611 | }; |
| 2612 | |
Varadarajan, Charulatha | 6b667f8 | 2010-09-23 20:02:38 +0530 | [diff] [blame] | 2613 | /* l4_wkup -> wd_timer2 */ |
| 2614 | static struct omap_hwmod_addr_space omap3xxx_wd_timer2_addrs[] = { |
| 2615 | { |
| 2616 | .pa_start = 0x48314000, |
| 2617 | .pa_end = 0x4831407f, |
| 2618 | .flags = ADDR_TYPE_RT |
| 2619 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2620 | { } |
Varadarajan, Charulatha | 6b667f8 | 2010-09-23 20:02:38 +0530 | [diff] [blame] | 2621 | }; |
| 2622 | |
| 2623 | static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__wd_timer2 = { |
| 2624 | .master = &omap3xxx_l4_wkup_hwmod, |
| 2625 | .slave = &omap3xxx_wd_timer2_hwmod, |
| 2626 | .clk = "wdt2_ick", |
| 2627 | .addr = omap3xxx_wd_timer2_addrs, |
Varadarajan, Charulatha | 6b667f8 | 2010-09-23 20:02:38 +0530 | [diff] [blame] | 2628 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2629 | }; |
| 2630 | |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2631 | /* l4_core -> dss */ |
| 2632 | static struct omap_hwmod_ocp_if omap3430es1_l4_core__dss = { |
| 2633 | .master = &omap3xxx_l4_core_hwmod, |
| 2634 | .slave = &omap3430es1_dss_core_hwmod, |
| 2635 | .clk = "dss_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2636 | .addr = omap2_dss_addrs, |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2637 | .fw = { |
| 2638 | .omap2 = { |
| 2639 | .l4_fw_region = OMAP3ES1_L4_CORE_FW_DSS_CORE_REGION, |
| 2640 | .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP, |
| 2641 | .flags = OMAP_FIREWALL_L4, |
| 2642 | } |
| 2643 | }, |
| 2644 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2645 | }; |
| 2646 | |
| 2647 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss = { |
| 2648 | .master = &omap3xxx_l4_core_hwmod, |
| 2649 | .slave = &omap3xxx_dss_core_hwmod, |
| 2650 | .clk = "dss_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2651 | .addr = omap2_dss_addrs, |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2652 | .fw = { |
| 2653 | .omap2 = { |
| 2654 | .l4_fw_region = OMAP3_L4_CORE_FW_DSS_CORE_REGION, |
| 2655 | .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP, |
| 2656 | .flags = OMAP_FIREWALL_L4, |
| 2657 | } |
| 2658 | }, |
| 2659 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2660 | }; |
| 2661 | |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2662 | /* l4_core -> dss_dispc */ |
| 2663 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dispc = { |
| 2664 | .master = &omap3xxx_l4_core_hwmod, |
| 2665 | .slave = &omap3xxx_dss_dispc_hwmod, |
| 2666 | .clk = "dss_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2667 | .addr = omap2_dss_dispc_addrs, |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2668 | .fw = { |
| 2669 | .omap2 = { |
| 2670 | .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DISPC_REGION, |
| 2671 | .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP, |
| 2672 | .flags = OMAP_FIREWALL_L4, |
| 2673 | } |
| 2674 | }, |
| 2675 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2676 | }; |
| 2677 | |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2678 | static struct omap_hwmod_addr_space omap3xxx_dss_dsi1_addrs[] = { |
| 2679 | { |
| 2680 | .pa_start = 0x4804FC00, |
| 2681 | .pa_end = 0x4804FFFF, |
| 2682 | .flags = ADDR_TYPE_RT |
| 2683 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2684 | { } |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2685 | }; |
| 2686 | |
| 2687 | /* l4_core -> dss_dsi1 */ |
| 2688 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_dsi1 = { |
| 2689 | .master = &omap3xxx_l4_core_hwmod, |
| 2690 | .slave = &omap3xxx_dss_dsi1_hwmod, |
Tomi Valkeinen | 6c3d7e3 | 2011-11-08 03:16:10 -0700 | [diff] [blame] | 2691 | .clk = "dss_ick", |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2692 | .addr = omap3xxx_dss_dsi1_addrs, |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2693 | .fw = { |
| 2694 | .omap2 = { |
| 2695 | .l4_fw_region = OMAP3_L4_CORE_FW_DSS_DSI_REGION, |
| 2696 | .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP, |
| 2697 | .flags = OMAP_FIREWALL_L4, |
| 2698 | } |
| 2699 | }, |
| 2700 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2701 | }; |
| 2702 | |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2703 | /* l4_core -> dss_rfbi */ |
| 2704 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_rfbi = { |
| 2705 | .master = &omap3xxx_l4_core_hwmod, |
| 2706 | .slave = &omap3xxx_dss_rfbi_hwmod, |
| 2707 | .clk = "dss_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2708 | .addr = omap2_dss_rfbi_addrs, |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2709 | .fw = { |
| 2710 | .omap2 = { |
| 2711 | .l4_fw_region = OMAP3_L4_CORE_FW_DSS_RFBI_REGION, |
| 2712 | .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP , |
| 2713 | .flags = OMAP_FIREWALL_L4, |
| 2714 | } |
| 2715 | }, |
| 2716 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2717 | }; |
| 2718 | |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2719 | /* l4_core -> dss_venc */ |
| 2720 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__dss_venc = { |
| 2721 | .master = &omap3xxx_l4_core_hwmod, |
| 2722 | .slave = &omap3xxx_dss_venc_hwmod, |
Tomi Valkeinen | 6c3d7e3 | 2011-11-08 03:16:10 -0700 | [diff] [blame] | 2723 | .clk = "dss_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 2724 | .addr = omap2_dss_venc_addrs, |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2725 | .fw = { |
| 2726 | .omap2 = { |
| 2727 | .l4_fw_region = OMAP3_L4_CORE_FW_DSS_VENC_REGION, |
| 2728 | .l4_prot_group = OMAP3_L4_CORE_FW_DSS_PROT_GROUP, |
| 2729 | .flags = OMAP_FIREWALL_L4, |
| 2730 | } |
| 2731 | }, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 2732 | .flags = OCPIF_SWSUP_IDLE, |
Senthilvadivu Guruswamy | e04d9e1 | 2011-01-24 06:21:51 +0000 | [diff] [blame] | 2733 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2734 | }; |
| 2735 | |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2736 | /* l4_wkup -> gpio1 */ |
| 2737 | static struct omap_hwmod_addr_space omap3xxx_gpio1_addrs[] = { |
| 2738 | { |
| 2739 | .pa_start = 0x48310000, |
| 2740 | .pa_end = 0x483101ff, |
| 2741 | .flags = ADDR_TYPE_RT |
| 2742 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2743 | { } |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2744 | }; |
| 2745 | |
| 2746 | static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__gpio1 = { |
| 2747 | .master = &omap3xxx_l4_wkup_hwmod, |
| 2748 | .slave = &omap3xxx_gpio1_hwmod, |
| 2749 | .addr = omap3xxx_gpio1_addrs, |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2750 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2751 | }; |
| 2752 | |
| 2753 | /* l4_per -> gpio2 */ |
| 2754 | static struct omap_hwmod_addr_space omap3xxx_gpio2_addrs[] = { |
| 2755 | { |
| 2756 | .pa_start = 0x49050000, |
| 2757 | .pa_end = 0x490501ff, |
| 2758 | .flags = ADDR_TYPE_RT |
| 2759 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2760 | { } |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2761 | }; |
| 2762 | |
| 2763 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio2 = { |
| 2764 | .master = &omap3xxx_l4_per_hwmod, |
| 2765 | .slave = &omap3xxx_gpio2_hwmod, |
| 2766 | .addr = omap3xxx_gpio2_addrs, |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2767 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2768 | }; |
| 2769 | |
| 2770 | /* l4_per -> gpio3 */ |
| 2771 | static struct omap_hwmod_addr_space omap3xxx_gpio3_addrs[] = { |
| 2772 | { |
| 2773 | .pa_start = 0x49052000, |
| 2774 | .pa_end = 0x490521ff, |
| 2775 | .flags = ADDR_TYPE_RT |
| 2776 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2777 | { } |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2778 | }; |
| 2779 | |
| 2780 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio3 = { |
| 2781 | .master = &omap3xxx_l4_per_hwmod, |
| 2782 | .slave = &omap3xxx_gpio3_hwmod, |
| 2783 | .addr = omap3xxx_gpio3_addrs, |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2784 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2785 | }; |
| 2786 | |
| 2787 | /* l4_per -> gpio4 */ |
| 2788 | static struct omap_hwmod_addr_space omap3xxx_gpio4_addrs[] = { |
| 2789 | { |
| 2790 | .pa_start = 0x49054000, |
| 2791 | .pa_end = 0x490541ff, |
| 2792 | .flags = ADDR_TYPE_RT |
| 2793 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2794 | { } |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2795 | }; |
| 2796 | |
| 2797 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio4 = { |
| 2798 | .master = &omap3xxx_l4_per_hwmod, |
| 2799 | .slave = &omap3xxx_gpio4_hwmod, |
| 2800 | .addr = omap3xxx_gpio4_addrs, |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2801 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2802 | }; |
| 2803 | |
| 2804 | /* l4_per -> gpio5 */ |
| 2805 | static struct omap_hwmod_addr_space omap3xxx_gpio5_addrs[] = { |
| 2806 | { |
| 2807 | .pa_start = 0x49056000, |
| 2808 | .pa_end = 0x490561ff, |
| 2809 | .flags = ADDR_TYPE_RT |
| 2810 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2811 | { } |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2812 | }; |
| 2813 | |
| 2814 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio5 = { |
| 2815 | .master = &omap3xxx_l4_per_hwmod, |
| 2816 | .slave = &omap3xxx_gpio5_hwmod, |
| 2817 | .addr = omap3xxx_gpio5_addrs, |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2818 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2819 | }; |
| 2820 | |
| 2821 | /* l4_per -> gpio6 */ |
| 2822 | static struct omap_hwmod_addr_space omap3xxx_gpio6_addrs[] = { |
| 2823 | { |
| 2824 | .pa_start = 0x49058000, |
| 2825 | .pa_end = 0x490581ff, |
| 2826 | .flags = ADDR_TYPE_RT |
| 2827 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2828 | { } |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2829 | }; |
| 2830 | |
| 2831 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__gpio6 = { |
| 2832 | .master = &omap3xxx_l4_per_hwmod, |
| 2833 | .slave = &omap3xxx_gpio6_hwmod, |
| 2834 | .addr = omap3xxx_gpio6_addrs, |
Varadarajan, Charulatha | 70034d3 | 2010-12-07 16:26:57 -0800 | [diff] [blame] | 2835 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2836 | }; |
| 2837 | |
G, Manjunath Kondaiah | 01438ab | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 2838 | /* dma_system -> L3 */ |
| 2839 | static struct omap_hwmod_ocp_if omap3xxx_dma_system__l3 = { |
| 2840 | .master = &omap3xxx_dma_system_hwmod, |
| 2841 | .slave = &omap3xxx_l3_main_hwmod, |
| 2842 | .clk = "core_l3_ick", |
| 2843 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2844 | }; |
| 2845 | |
G, Manjunath Kondaiah | 01438ab | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 2846 | static struct omap_hwmod_addr_space omap3xxx_dma_system_addrs[] = { |
| 2847 | { |
| 2848 | .pa_start = 0x48056000, |
Benoit Cousson | 1286eeb | 2011-04-19 10:15:36 -0600 | [diff] [blame] | 2849 | .pa_end = 0x48056fff, |
G, Manjunath Kondaiah | 01438ab | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 2850 | .flags = ADDR_TYPE_RT |
| 2851 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2852 | { } |
G, Manjunath Kondaiah | 01438ab | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 2853 | }; |
| 2854 | |
G, Manjunath Kondaiah | 01438ab | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 2855 | /* l4_cfg -> dma_system */ |
| 2856 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__dma_system = { |
| 2857 | .master = &omap3xxx_l4_core_hwmod, |
| 2858 | .slave = &omap3xxx_dma_system_hwmod, |
| 2859 | .clk = "core_l4_ick", |
| 2860 | .addr = omap3xxx_dma_system_addrs, |
G, Manjunath Kondaiah | 01438ab | 2010-12-20 18:27:19 -0800 | [diff] [blame] | 2861 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2862 | }; |
| 2863 | |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2864 | static struct omap_hwmod_addr_space omap3xxx_mcbsp1_addrs[] = { |
| 2865 | { |
| 2866 | .name = "mpu", |
| 2867 | .pa_start = 0x48074000, |
| 2868 | .pa_end = 0x480740ff, |
| 2869 | .flags = ADDR_TYPE_RT |
| 2870 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2871 | { } |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2872 | }; |
| 2873 | |
| 2874 | /* l4_core -> mcbsp1 */ |
| 2875 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp1 = { |
| 2876 | .master = &omap3xxx_l4_core_hwmod, |
| 2877 | .slave = &omap3xxx_mcbsp1_hwmod, |
| 2878 | .clk = "mcbsp1_ick", |
| 2879 | .addr = omap3xxx_mcbsp1_addrs, |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2880 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2881 | }; |
| 2882 | |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2883 | static struct omap_hwmod_addr_space omap3xxx_mcbsp2_addrs[] = { |
| 2884 | { |
| 2885 | .name = "mpu", |
| 2886 | .pa_start = 0x49022000, |
| 2887 | .pa_end = 0x490220ff, |
| 2888 | .flags = ADDR_TYPE_RT |
| 2889 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2890 | { } |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2891 | }; |
| 2892 | |
| 2893 | /* l4_per -> mcbsp2 */ |
| 2894 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2 = { |
| 2895 | .master = &omap3xxx_l4_per_hwmod, |
| 2896 | .slave = &omap3xxx_mcbsp2_hwmod, |
| 2897 | .clk = "mcbsp2_ick", |
| 2898 | .addr = omap3xxx_mcbsp2_addrs, |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2899 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2900 | }; |
| 2901 | |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2902 | static struct omap_hwmod_addr_space omap3xxx_mcbsp3_addrs[] = { |
| 2903 | { |
| 2904 | .name = "mpu", |
| 2905 | .pa_start = 0x49024000, |
| 2906 | .pa_end = 0x490240ff, |
| 2907 | .flags = ADDR_TYPE_RT |
| 2908 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2909 | { } |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2910 | }; |
| 2911 | |
| 2912 | /* l4_per -> mcbsp3 */ |
| 2913 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3 = { |
| 2914 | .master = &omap3xxx_l4_per_hwmod, |
| 2915 | .slave = &omap3xxx_mcbsp3_hwmod, |
| 2916 | .clk = "mcbsp3_ick", |
| 2917 | .addr = omap3xxx_mcbsp3_addrs, |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2918 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2919 | }; |
| 2920 | |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2921 | static struct omap_hwmod_addr_space omap3xxx_mcbsp4_addrs[] = { |
| 2922 | { |
| 2923 | .name = "mpu", |
| 2924 | .pa_start = 0x49026000, |
| 2925 | .pa_end = 0x490260ff, |
| 2926 | .flags = ADDR_TYPE_RT |
| 2927 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2928 | { } |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2929 | }; |
| 2930 | |
| 2931 | /* l4_per -> mcbsp4 */ |
| 2932 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp4 = { |
| 2933 | .master = &omap3xxx_l4_per_hwmod, |
| 2934 | .slave = &omap3xxx_mcbsp4_hwmod, |
| 2935 | .clk = "mcbsp4_ick", |
| 2936 | .addr = omap3xxx_mcbsp4_addrs, |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2937 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2938 | }; |
| 2939 | |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2940 | static struct omap_hwmod_addr_space omap3xxx_mcbsp5_addrs[] = { |
| 2941 | { |
| 2942 | .name = "mpu", |
| 2943 | .pa_start = 0x48096000, |
| 2944 | .pa_end = 0x480960ff, |
| 2945 | .flags = ADDR_TYPE_RT |
| 2946 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2947 | { } |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2948 | }; |
| 2949 | |
| 2950 | /* l4_core -> mcbsp5 */ |
| 2951 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__mcbsp5 = { |
| 2952 | .master = &omap3xxx_l4_core_hwmod, |
| 2953 | .slave = &omap3xxx_mcbsp5_hwmod, |
| 2954 | .clk = "mcbsp5_ick", |
| 2955 | .addr = omap3xxx_mcbsp5_addrs, |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2956 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 2957 | }; |
| 2958 | |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2959 | static struct omap_hwmod_addr_space omap3xxx_mcbsp2_sidetone_addrs[] = { |
| 2960 | { |
| 2961 | .name = "sidetone", |
| 2962 | .pa_start = 0x49028000, |
| 2963 | .pa_end = 0x490280ff, |
| 2964 | .flags = ADDR_TYPE_RT |
| 2965 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2966 | { } |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2967 | }; |
| 2968 | |
| 2969 | /* l4_per -> mcbsp2_sidetone */ |
| 2970 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp2_sidetone = { |
| 2971 | .master = &omap3xxx_l4_per_hwmod, |
| 2972 | .slave = &omap3xxx_mcbsp2_sidetone_hwmod, |
| 2973 | .clk = "mcbsp2_ick", |
| 2974 | .addr = omap3xxx_mcbsp2_sidetone_addrs, |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2975 | .user = OCP_USER_MPU, |
| 2976 | }; |
| 2977 | |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2978 | static struct omap_hwmod_addr_space omap3xxx_mcbsp3_sidetone_addrs[] = { |
| 2979 | { |
| 2980 | .name = "sidetone", |
| 2981 | .pa_start = 0x4902A000, |
| 2982 | .pa_end = 0x4902A0ff, |
| 2983 | .flags = ADDR_TYPE_RT |
| 2984 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 2985 | { } |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2986 | }; |
| 2987 | |
| 2988 | /* l4_per -> mcbsp3_sidetone */ |
| 2989 | static struct omap_hwmod_ocp_if omap3xxx_l4_per__mcbsp3_sidetone = { |
| 2990 | .master = &omap3xxx_l4_per_hwmod, |
| 2991 | .slave = &omap3xxx_mcbsp3_sidetone_hwmod, |
| 2992 | .clk = "mcbsp3_ick", |
| 2993 | .addr = omap3xxx_mcbsp3_sidetone_addrs, |
Charulatha V | dc48e5f | 2011-02-24 15:16:49 +0530 | [diff] [blame] | 2994 | .user = OCP_USER_MPU, |
| 2995 | }; |
| 2996 | |
Felipe Contreras | 0f9dfdd | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 2997 | static struct omap_hwmod_addr_space omap3xxx_mailbox_addrs[] = { |
| 2998 | { |
| 2999 | .pa_start = 0x48094000, |
| 3000 | .pa_end = 0x480941ff, |
| 3001 | .flags = ADDR_TYPE_RT, |
| 3002 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 3003 | { } |
Felipe Contreras | 0f9dfdd | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 3004 | }; |
| 3005 | |
| 3006 | /* l4_core -> mailbox */ |
| 3007 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__mailbox = { |
| 3008 | .master = &omap3xxx_l4_core_hwmod, |
| 3009 | .slave = &omap3xxx_mailbox_hwmod, |
| 3010 | .addr = omap3xxx_mailbox_addrs, |
Felipe Contreras | 0f9dfdd | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 3011 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3012 | }; |
| 3013 | |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3014 | /* l4 core -> mcspi1 interface */ |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3015 | static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi1 = { |
| 3016 | .master = &omap3xxx_l4_core_hwmod, |
| 3017 | .slave = &omap34xx_mcspi1, |
| 3018 | .clk = "mcspi1_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3019 | .addr = omap2_mcspi1_addr_space, |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3020 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3021 | }; |
| 3022 | |
| 3023 | /* l4 core -> mcspi2 interface */ |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3024 | static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi2 = { |
| 3025 | .master = &omap3xxx_l4_core_hwmod, |
| 3026 | .slave = &omap34xx_mcspi2, |
| 3027 | .clk = "mcspi2_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3028 | .addr = omap2_mcspi2_addr_space, |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3029 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3030 | }; |
| 3031 | |
| 3032 | /* l4 core -> mcspi3 interface */ |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3033 | static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi3 = { |
| 3034 | .master = &omap3xxx_l4_core_hwmod, |
| 3035 | .slave = &omap34xx_mcspi3, |
| 3036 | .clk = "mcspi3_ick", |
Paul Walmsley | ded1138 | 2011-07-09 19:14:06 -0600 | [diff] [blame] | 3037 | .addr = omap2430_mcspi3_addr_space, |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3038 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3039 | }; |
| 3040 | |
| 3041 | /* l4 core -> mcspi4 interface */ |
| 3042 | static struct omap_hwmod_addr_space omap34xx_mcspi4_addr_space[] = { |
| 3043 | { |
| 3044 | .pa_start = 0x480ba000, |
| 3045 | .pa_end = 0x480ba0ff, |
| 3046 | .flags = ADDR_TYPE_RT, |
| 3047 | }, |
Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 3048 | { } |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3049 | }; |
| 3050 | |
| 3051 | static struct omap_hwmod_ocp_if omap34xx_l4_core__mcspi4 = { |
| 3052 | .master = &omap3xxx_l4_core_hwmod, |
| 3053 | .slave = &omap34xx_mcspi4, |
| 3054 | .clk = "mcspi4_ick", |
| 3055 | .addr = omap34xx_mcspi4_addr_space, |
Charulatha V | 0f616a4 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 3056 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3057 | }; |
| 3058 | |
Keshava Munegowda | de23138 | 2011-12-15 23:14:44 -0700 | [diff] [blame] | 3059 | static struct omap_hwmod_ocp_if omap3xxx_usb_host_hs__l3_main_2 = { |
| 3060 | .master = &omap3xxx_usb_host_hs_hwmod, |
| 3061 | .slave = &omap3xxx_l3_main_hwmod, |
| 3062 | .clk = "core_l3_ick", |
| 3063 | .user = OCP_USER_MPU, |
| 3064 | }; |
| 3065 | |
Keshava Munegowda | de23138 | 2011-12-15 23:14:44 -0700 | [diff] [blame] | 3066 | static struct omap_hwmod_addr_space omap3xxx_usb_host_hs_addrs[] = { |
| 3067 | { |
| 3068 | .name = "uhh", |
| 3069 | .pa_start = 0x48064000, |
| 3070 | .pa_end = 0x480643ff, |
| 3071 | .flags = ADDR_TYPE_RT |
| 3072 | }, |
| 3073 | { |
| 3074 | .name = "ohci", |
| 3075 | .pa_start = 0x48064400, |
| 3076 | .pa_end = 0x480647ff, |
| 3077 | }, |
| 3078 | { |
| 3079 | .name = "ehci", |
| 3080 | .pa_start = 0x48064800, |
| 3081 | .pa_end = 0x48064cff, |
| 3082 | }, |
| 3083 | {} |
| 3084 | }; |
| 3085 | |
| 3086 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_host_hs = { |
| 3087 | .master = &omap3xxx_l4_core_hwmod, |
| 3088 | .slave = &omap3xxx_usb_host_hs_hwmod, |
| 3089 | .clk = "usbhost_ick", |
| 3090 | .addr = omap3xxx_usb_host_hs_addrs, |
| 3091 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3092 | }; |
| 3093 | |
Keshava Munegowda | de23138 | 2011-12-15 23:14:44 -0700 | [diff] [blame] | 3094 | static struct omap_hwmod_addr_space omap3xxx_usb_tll_hs_addrs[] = { |
| 3095 | { |
| 3096 | .name = "tll", |
| 3097 | .pa_start = 0x48062000, |
| 3098 | .pa_end = 0x48062fff, |
| 3099 | .flags = ADDR_TYPE_RT |
| 3100 | }, |
| 3101 | {} |
| 3102 | }; |
| 3103 | |
| 3104 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__usb_tll_hs = { |
| 3105 | .master = &omap3xxx_l4_core_hwmod, |
| 3106 | .slave = &omap3xxx_usb_tll_hs_hwmod, |
| 3107 | .clk = "usbtll_ick", |
| 3108 | .addr = omap3xxx_usb_tll_hs_addrs, |
| 3109 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3110 | }; |
| 3111 | |
Paul Walmsley | 45a4bb0 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 3112 | /* l4_core -> hdq1w interface */ |
| 3113 | static struct omap_hwmod_ocp_if omap3xxx_l4_core__hdq1w = { |
| 3114 | .master = &omap3xxx_l4_core_hwmod, |
| 3115 | .slave = &omap3xxx_hdq1w_hwmod, |
| 3116 | .clk = "hdq_ick", |
| 3117 | .addr = omap2_hdq1w_addr_space, |
| 3118 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3119 | .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE, |
| 3120 | }; |
| 3121 | |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame^] | 3122 | /* l4_wkup -> 32ksync_counter */ |
| 3123 | static struct omap_hwmod_addr_space omap3xxx_counter_32k_addrs[] = { |
| 3124 | { |
| 3125 | .pa_start = 0x48320000, |
| 3126 | .pa_end = 0x4832001f, |
| 3127 | .flags = ADDR_TYPE_RT |
| 3128 | }, |
| 3129 | { } |
| 3130 | }; |
| 3131 | |
| 3132 | static struct omap_hwmod_ocp_if omap3xxx_l4_wkup__counter_32k = { |
| 3133 | .master = &omap3xxx_l4_wkup_hwmod, |
| 3134 | .slave = &omap3xxx_counter_32k_hwmod, |
| 3135 | .clk = "omap_32ksync_ick", |
| 3136 | .addr = omap3xxx_counter_32k_addrs, |
| 3137 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 3138 | }; |
| 3139 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3140 | static struct omap_hwmod_ocp_if *omap3xxx_hwmod_ocp_ifs[] __initdata = { |
| 3141 | &omap3xxx_l3_main__l4_core, |
| 3142 | &omap3xxx_l3_main__l4_per, |
| 3143 | &omap3xxx_mpu__l3_main, |
| 3144 | &omap3xxx_l4_core__l4_wkup, |
| 3145 | &omap3xxx_l4_core__mmc3, |
| 3146 | &omap3_l4_core__uart1, |
| 3147 | &omap3_l4_core__uart2, |
| 3148 | &omap3_l4_per__uart3, |
| 3149 | &omap3_l4_core__i2c1, |
| 3150 | &omap3_l4_core__i2c2, |
| 3151 | &omap3_l4_core__i2c3, |
| 3152 | &omap3xxx_l4_wkup__l4_sec, |
| 3153 | &omap3xxx_l4_wkup__timer1, |
| 3154 | &omap3xxx_l4_per__timer2, |
| 3155 | &omap3xxx_l4_per__timer3, |
| 3156 | &omap3xxx_l4_per__timer4, |
| 3157 | &omap3xxx_l4_per__timer5, |
| 3158 | &omap3xxx_l4_per__timer6, |
| 3159 | &omap3xxx_l4_per__timer7, |
| 3160 | &omap3xxx_l4_per__timer8, |
| 3161 | &omap3xxx_l4_per__timer9, |
| 3162 | &omap3xxx_l4_core__timer10, |
| 3163 | &omap3xxx_l4_core__timer11, |
| 3164 | &omap3xxx_l4_wkup__wd_timer2, |
| 3165 | &omap3xxx_l4_wkup__gpio1, |
| 3166 | &omap3xxx_l4_per__gpio2, |
| 3167 | &omap3xxx_l4_per__gpio3, |
| 3168 | &omap3xxx_l4_per__gpio4, |
| 3169 | &omap3xxx_l4_per__gpio5, |
| 3170 | &omap3xxx_l4_per__gpio6, |
| 3171 | &omap3xxx_dma_system__l3, |
| 3172 | &omap3xxx_l4_core__dma_system, |
| 3173 | &omap3xxx_l4_core__mcbsp1, |
| 3174 | &omap3xxx_l4_per__mcbsp2, |
| 3175 | &omap3xxx_l4_per__mcbsp3, |
| 3176 | &omap3xxx_l4_per__mcbsp4, |
| 3177 | &omap3xxx_l4_core__mcbsp5, |
| 3178 | &omap3xxx_l4_per__mcbsp2_sidetone, |
| 3179 | &omap3xxx_l4_per__mcbsp3_sidetone, |
| 3180 | &omap34xx_l4_core__mcspi1, |
| 3181 | &omap34xx_l4_core__mcspi2, |
| 3182 | &omap34xx_l4_core__mcspi3, |
| 3183 | &omap34xx_l4_core__mcspi4, |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame^] | 3184 | &omap3xxx_l4_wkup__counter_32k, |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 3185 | NULL, |
| 3186 | }; |
| 3187 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3188 | /* GP-only hwmod links */ |
| 3189 | static struct omap_hwmod_ocp_if *omap3xxx_gp_hwmod_ocp_ifs[] __initdata = { |
| 3190 | &omap3xxx_l4_sec__timer12, |
Aaro Koskinen | 91a36bd | 2011-12-15 22:38:37 -0700 | [diff] [blame] | 3191 | NULL |
| 3192 | }; |
| 3193 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3194 | /* 3430ES1-only hwmod links */ |
| 3195 | static struct omap_hwmod_ocp_if *omap3430es1_hwmod_ocp_ifs[] __initdata = { |
| 3196 | &omap3430es1_dss__l3, |
| 3197 | &omap3430es1_l4_core__dss, |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3198 | NULL |
| 3199 | }; |
| 3200 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3201 | /* 3430ES2+-only hwmod links */ |
| 3202 | static struct omap_hwmod_ocp_if *omap3430es2plus_hwmod_ocp_ifs[] __initdata = { |
| 3203 | &omap3xxx_dss__l3, |
| 3204 | &omap3xxx_l4_core__dss, |
| 3205 | &omap3xxx_usbhsotg__l3, |
| 3206 | &omap3xxx_l4_core__usbhsotg, |
| 3207 | &omap3xxx_usb_host_hs__l3_main_2, |
| 3208 | &omap3xxx_l4_core__usb_host_hs, |
| 3209 | &omap3xxx_l4_core__usb_tll_hs, |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3210 | NULL |
| 3211 | }; |
| 3212 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3213 | /* <= 3430ES3-only hwmod links */ |
| 3214 | static struct omap_hwmod_ocp_if *omap3430_pre_es3_hwmod_ocp_ifs[] __initdata = { |
| 3215 | &omap3xxx_l4_core__pre_es3_mmc1, |
| 3216 | &omap3xxx_l4_core__pre_es3_mmc2, |
Paul Walmsley | a52e2ab | 2011-12-15 23:30:44 -0700 | [diff] [blame] | 3217 | NULL |
| 3218 | }; |
| 3219 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3220 | /* 3430ES3+-only hwmod links */ |
| 3221 | static struct omap_hwmod_ocp_if *omap3430_es3plus_hwmod_ocp_ifs[] __initdata = { |
| 3222 | &omap3xxx_l4_core__es3plus_mmc1, |
| 3223 | &omap3xxx_l4_core__es3plus_mmc2, |
Paul Walmsley | a52e2ab | 2011-12-15 23:30:44 -0700 | [diff] [blame] | 3224 | NULL |
| 3225 | }; |
| 3226 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3227 | /* 34xx-only hwmod links (all ES revisions) */ |
| 3228 | static struct omap_hwmod_ocp_if *omap34xx_hwmod_ocp_ifs[] __initdata = { |
| 3229 | &omap3xxx_l3__iva, |
| 3230 | &omap34xx_l4_core__sr1, |
| 3231 | &omap34xx_l4_core__sr2, |
| 3232 | &omap3xxx_l4_core__mailbox, |
Paul Walmsley | 45a4bb0 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 3233 | &omap3xxx_l4_core__hdq1w, |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3234 | NULL |
| 3235 | }; |
| 3236 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3237 | /* 36xx-only hwmod links (all ES revisions) */ |
| 3238 | static struct omap_hwmod_ocp_if *omap36xx_hwmod_ocp_ifs[] __initdata = { |
| 3239 | &omap3xxx_l3__iva, |
| 3240 | &omap36xx_l4_per__uart4, |
| 3241 | &omap3xxx_dss__l3, |
| 3242 | &omap3xxx_l4_core__dss, |
| 3243 | &omap36xx_l4_core__sr1, |
| 3244 | &omap36xx_l4_core__sr2, |
| 3245 | &omap3xxx_usbhsotg__l3, |
| 3246 | &omap3xxx_l4_core__usbhsotg, |
| 3247 | &omap3xxx_l4_core__mailbox, |
| 3248 | &omap3xxx_usb_host_hs__l3_main_2, |
| 3249 | &omap3xxx_l4_core__usb_host_hs, |
| 3250 | &omap3xxx_l4_core__usb_tll_hs, |
| 3251 | &omap3xxx_l4_core__es3plus_mmc1, |
| 3252 | &omap3xxx_l4_core__es3plus_mmc2, |
Paul Walmsley | 45a4bb0 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 3253 | &omap3xxx_l4_core__hdq1w, |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3254 | NULL |
| 3255 | }; |
| 3256 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3257 | static struct omap_hwmod_ocp_if *am35xx_hwmod_ocp_ifs[] __initdata = { |
| 3258 | &omap3xxx_dss__l3, |
| 3259 | &omap3xxx_l4_core__dss, |
| 3260 | &am35xx_usbhsotg__l3, |
| 3261 | &am35xx_l4_core__usbhsotg, |
| 3262 | &am35xx_l4_core__uart4, |
| 3263 | &omap3xxx_usb_host_hs__l3_main_2, |
| 3264 | &omap3xxx_l4_core__usb_host_hs, |
| 3265 | &omap3xxx_l4_core__usb_tll_hs, |
| 3266 | &omap3xxx_l4_core__es3plus_mmc1, |
| 3267 | &omap3xxx_l4_core__es3plus_mmc2, |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3268 | NULL |
| 3269 | }; |
| 3270 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3271 | static struct omap_hwmod_ocp_if *omap3xxx_dss_hwmod_ocp_ifs[] __initdata = { |
| 3272 | &omap3xxx_l4_core__dss_dispc, |
| 3273 | &omap3xxx_l4_core__dss_dsi1, |
| 3274 | &omap3xxx_l4_core__dss_rfbi, |
| 3275 | &omap3xxx_l4_core__dss_venc, |
Ilya Yanok | 1d2f56c | 2011-12-28 00:31:33 +0100 | [diff] [blame] | 3276 | NULL |
| 3277 | }; |
| 3278 | |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 3279 | int __init omap3xxx_hwmod_init(void) |
| 3280 | { |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3281 | int r; |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3282 | struct omap_hwmod_ocp_if **h = NULL; |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3283 | unsigned int rev; |
| 3284 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3285 | /* Register hwmod links common to all OMAP3 */ |
| 3286 | r = omap_hwmod_register_links(omap3xxx_hwmod_ocp_ifs); |
Paul Walmsley | ace9021 | 2011-10-06 14:39:28 -0600 | [diff] [blame] | 3287 | if (r < 0) |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3288 | return r; |
| 3289 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3290 | /* Register GP-only hwmod links. */ |
Aaro Koskinen | 91a36bd | 2011-12-15 22:38:37 -0700 | [diff] [blame] | 3291 | if (omap_type() == OMAP2_DEVICE_TYPE_GP) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3292 | r = omap_hwmod_register_links(omap3xxx_gp_hwmod_ocp_ifs); |
Aaro Koskinen | 91a36bd | 2011-12-15 22:38:37 -0700 | [diff] [blame] | 3293 | if (r < 0) |
| 3294 | return r; |
| 3295 | } |
| 3296 | |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3297 | rev = omap_rev(); |
| 3298 | |
| 3299 | /* |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3300 | * Register hwmod links common to individual OMAP3 families, all |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3301 | * silicon revisions (e.g., 34xx, or AM3505/3517, or 36xx) |
| 3302 | * All possible revisions should be included in this conditional. |
| 3303 | */ |
| 3304 | if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 || |
| 3305 | rev == OMAP3430_REV_ES2_1 || rev == OMAP3430_REV_ES3_0 || |
| 3306 | rev == OMAP3430_REV_ES3_1 || rev == OMAP3430_REV_ES3_1_2) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3307 | h = omap34xx_hwmod_ocp_ifs; |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3308 | } else if (rev == OMAP3517_REV_ES1_0 || rev == OMAP3517_REV_ES1_1) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3309 | h = am35xx_hwmod_ocp_ifs; |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3310 | } else if (rev == OMAP3630_REV_ES1_0 || rev == OMAP3630_REV_ES1_1 || |
| 3311 | rev == OMAP3630_REV_ES1_2) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3312 | h = omap36xx_hwmod_ocp_ifs; |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3313 | } else { |
| 3314 | WARN(1, "OMAP3 hwmod family init: unknown chip type\n"); |
| 3315 | return -EINVAL; |
| 3316 | }; |
| 3317 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3318 | r = omap_hwmod_register_links(h); |
Paul Walmsley | ace9021 | 2011-10-06 14:39:28 -0600 | [diff] [blame] | 3319 | if (r < 0) |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3320 | return r; |
| 3321 | |
| 3322 | /* |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3323 | * Register hwmod links specific to certain ES levels of a |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3324 | * particular family of silicon (e.g., 34xx ES1.0) |
| 3325 | */ |
| 3326 | h = NULL; |
| 3327 | if (rev == OMAP3430_REV_ES1_0) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3328 | h = omap3430es1_hwmod_ocp_ifs; |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3329 | } else if (rev == OMAP3430_REV_ES2_0 || rev == OMAP3430_REV_ES2_1 || |
| 3330 | rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 || |
| 3331 | rev == OMAP3430_REV_ES3_1_2) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3332 | h = omap3430es2plus_hwmod_ocp_ifs; |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3333 | }; |
| 3334 | |
Paul Walmsley | a52e2ab | 2011-12-15 23:30:44 -0700 | [diff] [blame] | 3335 | if (h) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3336 | r = omap_hwmod_register_links(h); |
Paul Walmsley | a52e2ab | 2011-12-15 23:30:44 -0700 | [diff] [blame] | 3337 | if (r < 0) |
| 3338 | return r; |
| 3339 | } |
| 3340 | |
| 3341 | h = NULL; |
| 3342 | if (rev == OMAP3430_REV_ES1_0 || rev == OMAP3430_REV_ES2_0 || |
| 3343 | rev == OMAP3430_REV_ES2_1) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3344 | h = omap3430_pre_es3_hwmod_ocp_ifs; |
Paul Walmsley | a52e2ab | 2011-12-15 23:30:44 -0700 | [diff] [blame] | 3345 | } else if (rev == OMAP3430_REV_ES3_0 || rev == OMAP3430_REV_ES3_1 || |
| 3346 | rev == OMAP3430_REV_ES3_1_2) { |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3347 | h = omap3430_es3plus_hwmod_ocp_ifs; |
Paul Walmsley | a52e2ab | 2011-12-15 23:30:44 -0700 | [diff] [blame] | 3348 | }; |
| 3349 | |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3350 | if (h) |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3351 | r = omap_hwmod_register_links(h); |
Ilya Yanok | 1d2f56c | 2011-12-28 00:31:33 +0100 | [diff] [blame] | 3352 | if (r < 0) |
| 3353 | return r; |
| 3354 | |
| 3355 | /* |
| 3356 | * DSS code presumes that dss_core hwmod is handled first, |
| 3357 | * _before_ any other DSS related hwmods so register common |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3358 | * DSS hwmod links last to ensure that dss_core is already |
| 3359 | * registered. Otherwise some change things may happen, for |
| 3360 | * ex. if dispc is handled before dss_core and DSS is enabled |
| 3361 | * in bootloader DISPC will be reset with outputs enabled |
| 3362 | * which sometimes leads to unrecoverable L3 error. XXX The |
| 3363 | * long-term fix to this is to ensure hwmods are set up in |
| 3364 | * dependency order in the hwmod core code. |
Ilya Yanok | 1d2f56c | 2011-12-28 00:31:33 +0100 | [diff] [blame] | 3365 | */ |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 3366 | r = omap_hwmod_register_links(omap3xxx_dss_hwmod_ocp_ifs); |
Paul Walmsley | d6504ac | 2011-09-14 17:23:19 -0600 | [diff] [blame] | 3367 | |
| 3368 | return r; |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 3369 | } |