Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 1 | /* |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 2 | * omap_hwmod_2420_data.c - hardware modules present on the OMAP2420 chips |
Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 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 | 02bfc030 | 2009-09-03 20:14:05 +0300 | [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 | * XXX handle crossbar/shared link difference for L3? |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 13 | * XXX these should be marked initdata for multi-OMAP kernels |
Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 14 | */ |
Tony Lindgren | 3a8761c | 2012-10-08 09:11:22 -0700 | [diff] [blame] | 15 | |
Wolfram Sang | 79fc540 | 2018-04-19 22:00:10 +0200 | [diff] [blame] | 16 | #include <linux/platform_data/i2c-omap.h> |
Tony Lindgren | 45c3eb7 | 2012-11-30 08:41:50 -0800 | [diff] [blame] | 17 | #include <linux/omap-dma.h> |
Tony Lindgren | 2a296c8 | 2012-10-02 17:41:35 -0700 | [diff] [blame] | 18 | |
| 19 | #include "omap_hwmod.h" |
Tony Lindgren | 1e0f51a | 2012-09-20 11:42:02 -0700 | [diff] [blame] | 20 | #include "l3_2xxx.h" |
Tony Lindgren | 70606b1 | 2012-09-20 11:42:07 -0700 | [diff] [blame] | 21 | #include "l4_2xxx.h" |
Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 22 | |
Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 23 | #include "omap_hwmod_common_data.h" |
| 24 | |
Varadarajan, Charulatha | a714b9c | 2010-09-23 20:02:39 +0530 | [diff] [blame] | 25 | #include "cm-regbits-24xx.h" |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 26 | #include "prm-regbits-24xx.h" |
Tony Lindgren | 3a8761c | 2012-10-08 09:11:22 -0700 | [diff] [blame] | 27 | #include "i2c.h" |
Tony Lindgren | 68f39e7 | 2012-10-15 12:09:43 -0700 | [diff] [blame] | 28 | #include "mmc.h" |
Tony Lindgren | 3d82cbb | 2012-10-15 12:50:46 -0700 | [diff] [blame] | 29 | #include "serial.h" |
Paul Walmsley | ff2516f | 2010-12-21 15:39:15 -0700 | [diff] [blame] | 30 | #include "wd_timer.h" |
Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 31 | |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 32 | /* |
| 33 | * OMAP2420 hardware module integration data |
| 34 | * |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 35 | * All of the data in this section should be autogeneratable from the |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 36 | * TI hardware database or other technical documentation. Data that |
| 37 | * is driver-specific or driver-kernel integration-specific belongs |
| 38 | * elsewhere. |
| 39 | */ |
| 40 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 41 | /* |
| 42 | * IP blocks |
| 43 | */ |
Senthilvadivu Guruswamy | 996746c | 2011-02-22 09:50:36 +0200 | [diff] [blame] | 44 | |
Paul Walmsley | 3af35fb | 2012-04-19 04:04:38 -0600 | [diff] [blame] | 45 | /* IVA1 (IVA1) */ |
| 46 | static struct omap_hwmod_class iva1_hwmod_class = { |
| 47 | .name = "iva1", |
| 48 | }; |
| 49 | |
| 50 | static struct omap_hwmod_rst_info omap2420_iva_resets[] = { |
| 51 | { .name = "iva", .rst_shift = 8 }, |
| 52 | }; |
| 53 | |
Paul Walmsley | 08072ac | 2010-07-26 16:34:33 -0600 | [diff] [blame] | 54 | static struct omap_hwmod omap2420_iva_hwmod = { |
| 55 | .name = "iva", |
Paul Walmsley | 3af35fb | 2012-04-19 04:04:38 -0600 | [diff] [blame] | 56 | .class = &iva1_hwmod_class, |
| 57 | .clkdm_name = "iva1_clkdm", |
| 58 | .rst_lines = omap2420_iva_resets, |
| 59 | .rst_lines_cnt = ARRAY_SIZE(omap2420_iva_resets), |
| 60 | .main_clk = "iva1_ifck", |
| 61 | }; |
| 62 | |
| 63 | /* DSP */ |
| 64 | static struct omap_hwmod_class dsp_hwmod_class = { |
| 65 | .name = "dsp", |
| 66 | }; |
| 67 | |
| 68 | static struct omap_hwmod_rst_info omap2420_dsp_resets[] = { |
| 69 | { .name = "logic", .rst_shift = 0 }, |
| 70 | { .name = "mmu", .rst_shift = 1 }, |
| 71 | }; |
| 72 | |
| 73 | static struct omap_hwmod omap2420_dsp_hwmod = { |
| 74 | .name = "dsp", |
| 75 | .class = &dsp_hwmod_class, |
| 76 | .clkdm_name = "dsp_clkdm", |
| 77 | .rst_lines = omap2420_dsp_resets, |
| 78 | .rst_lines_cnt = ARRAY_SIZE(omap2420_dsp_resets), |
| 79 | .main_clk = "dsp_fck", |
Paul Walmsley | 08072ac | 2010-07-26 16:34:33 -0600 | [diff] [blame] | 80 | }; |
| 81 | |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 82 | /* I2C common */ |
| 83 | static struct omap_hwmod_class_sysconfig i2c_sysc = { |
| 84 | .rev_offs = 0x00, |
| 85 | .sysc_offs = 0x20, |
| 86 | .syss_offs = 0x10, |
Avinash.H.M | d73d65f | 2011-03-03 14:22:46 -0700 | [diff] [blame] | 87 | .sysc_flags = (SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 88 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 89 | }; |
| 90 | |
| 91 | static struct omap_hwmod_class i2c_class = { |
| 92 | .name = "i2c", |
| 93 | .sysc = &i2c_sysc, |
Andy Green | db791a7 | 2011-07-10 05:27:15 -0600 | [diff] [blame] | 94 | .rev = OMAP_I2C_IP_VERSION_1, |
Avinash.H.M | 6d3c55f | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 95 | .reset = &omap_i2c_reset, |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 96 | }; |
| 97 | |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 98 | /* I2C1 */ |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 99 | static struct omap_hwmod omap2420_i2c1_hwmod = { |
| 100 | .name = "i2c1", |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 101 | .main_clk = "i2c1_fck", |
| 102 | .prcm = { |
| 103 | .omap2 = { |
| 104 | .module_offs = CORE_MOD, |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 105 | .idlest_reg_id = 1, |
| 106 | .idlest_idle_bit = OMAP2420_ST_I2C1_SHIFT, |
| 107 | }, |
| 108 | }, |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 109 | .class = &i2c_class, |
Paul Walmsley | aff2f7d | 2013-01-26 00:48:56 -0700 | [diff] [blame] | 110 | /* |
| 111 | * From mach-omap2/pm24xx.c: "Putting MPU into the WFI state |
| 112 | * while a transfer is active seems to cause the I2C block to |
| 113 | * timeout. Why? Good question." |
| 114 | */ |
| 115 | .flags = (HWMOD_16BIT_REG | HWMOD_BLOCK_WFI), |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 116 | }; |
| 117 | |
| 118 | /* I2C2 */ |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 119 | static struct omap_hwmod omap2420_i2c2_hwmod = { |
| 120 | .name = "i2c2", |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 121 | .main_clk = "i2c2_fck", |
| 122 | .prcm = { |
| 123 | .omap2 = { |
| 124 | .module_offs = CORE_MOD, |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 125 | .idlest_reg_id = 1, |
| 126 | .idlest_idle_bit = OMAP2420_ST_I2C2_SHIFT, |
| 127 | }, |
| 128 | }, |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 129 | .class = &i2c_class, |
Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 130 | .flags = HWMOD_16BIT_REG, |
| 131 | }; |
| 132 | |
G, Manjunath Kondaiah | 745685df9 | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 133 | /* dma attributes */ |
| 134 | static struct omap_dma_dev_attr dma_dev_attr = { |
| 135 | .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY | |
| 136 | IS_CSSA_32 | IS_CDSA_32, |
| 137 | .lch_count = 32, |
| 138 | }; |
| 139 | |
G, Manjunath Kondaiah | 745685df9 | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 140 | static struct omap_hwmod omap2420_dma_system_hwmod = { |
| 141 | .name = "dma", |
Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 142 | .class = &omap2xxx_dma_hwmod_class, |
G, Manjunath Kondaiah | 745685df9 | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 143 | .main_clk = "core_l3_ck", |
G, Manjunath Kondaiah | 745685df9 | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 144 | .dev_attr = &dma_dev_attr, |
G, Manjunath Kondaiah | 745685df9 | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 145 | .flags = HWMOD_NO_IDLEST, |
| 146 | }; |
| 147 | |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 148 | /* mailbox */ |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 149 | static struct omap_hwmod omap2420_mailbox_hwmod = { |
| 150 | .name = "mailbox", |
Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 151 | .class = &omap2xxx_mailbox_hwmod_class, |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 152 | .main_clk = "mailboxes_ick", |
| 153 | .prcm = { |
| 154 | .omap2 = { |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 155 | .module_offs = CORE_MOD, |
| 156 | .idlest_reg_id = 1, |
| 157 | .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT, |
| 158 | }, |
| 159 | }, |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 160 | }; |
| 161 | |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 162 | /* |
| 163 | * 'mcbsp' class |
| 164 | * multi channel buffered serial port controller |
| 165 | */ |
| 166 | |
| 167 | static struct omap_hwmod_class omap2420_mcbsp_hwmod_class = { |
| 168 | .name = "mcbsp", |
| 169 | }; |
| 170 | |
Peter Ujfalusi | b315310 | 2012-06-18 16:18:42 -0600 | [diff] [blame] | 171 | static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = { |
| 172 | { .role = "pad_fck", .clk = "mcbsp_clks" }, |
| 173 | { .role = "prcm_fck", .clk = "func_96m_ck" }, |
| 174 | }; |
| 175 | |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 176 | /* mcbsp1 */ |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 177 | static struct omap_hwmod omap2420_mcbsp1_hwmod = { |
| 178 | .name = "mcbsp1", |
| 179 | .class = &omap2420_mcbsp_hwmod_class, |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 180 | .main_clk = "mcbsp1_fck", |
| 181 | .prcm = { |
| 182 | .omap2 = { |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 183 | .module_offs = CORE_MOD, |
| 184 | .idlest_reg_id = 1, |
| 185 | .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT, |
| 186 | }, |
| 187 | }, |
Peter Ujfalusi | b315310 | 2012-06-18 16:18:42 -0600 | [diff] [blame] | 188 | .opt_clks = mcbsp_opt_clks, |
| 189 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | /* mcbsp2 */ |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 193 | static struct omap_hwmod omap2420_mcbsp2_hwmod = { |
| 194 | .name = "mcbsp2", |
| 195 | .class = &omap2420_mcbsp_hwmod_class, |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 196 | .main_clk = "mcbsp2_fck", |
| 197 | .prcm = { |
| 198 | .omap2 = { |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 199 | .module_offs = CORE_MOD, |
| 200 | .idlest_reg_id = 1, |
| 201 | .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT, |
| 202 | }, |
| 203 | }, |
Peter Ujfalusi | b315310 | 2012-06-18 16:18:42 -0600 | [diff] [blame] | 204 | .opt_clks = mcbsp_opt_clks, |
| 205 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
Charulatha V | 3cb72fa | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 206 | }; |
| 207 | |
Tony Lindgren | ad1b666 | 2012-05-08 17:23:33 -0600 | [diff] [blame] | 208 | static struct omap_hwmod_class_sysconfig omap2420_msdi_sysc = { |
| 209 | .rev_offs = 0x3c, |
| 210 | .sysc_offs = 0x64, |
| 211 | .syss_offs = 0x68, |
| 212 | .sysc_flags = (SYSC_HAS_SOFTRESET | SYSS_HAS_RESET_STATUS), |
| 213 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 214 | }; |
| 215 | |
| 216 | static struct omap_hwmod_class omap2420_msdi_hwmod_class = { |
| 217 | .name = "msdi", |
| 218 | .sysc = &omap2420_msdi_sysc, |
| 219 | .reset = &omap_msdi_reset, |
| 220 | }; |
| 221 | |
| 222 | /* msdi1 */ |
Tony Lindgren | ad1b666 | 2012-05-08 17:23:33 -0600 | [diff] [blame] | 223 | static struct omap_hwmod omap2420_msdi1_hwmod = { |
| 224 | .name = "msdi1", |
| 225 | .class = &omap2420_msdi_hwmod_class, |
Tony Lindgren | ad1b666 | 2012-05-08 17:23:33 -0600 | [diff] [blame] | 226 | .main_clk = "mmc_fck", |
| 227 | .prcm = { |
| 228 | .omap2 = { |
Tony Lindgren | ad1b666 | 2012-05-08 17:23:33 -0600 | [diff] [blame] | 229 | .module_offs = CORE_MOD, |
| 230 | .idlest_reg_id = 1, |
| 231 | .idlest_idle_bit = OMAP2420_ST_MMC_SHIFT, |
| 232 | }, |
| 233 | }, |
| 234 | .flags = HWMOD_16BIT_REG, |
| 235 | }; |
| 236 | |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 237 | /* HDQ1W/1-wire */ |
| 238 | static struct omap_hwmod omap2420_hdq1w_hwmod = { |
| 239 | .name = "hdq1w", |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 240 | .main_clk = "hdq_fck", |
| 241 | .prcm = { |
| 242 | .omap2 = { |
| 243 | .module_offs = CORE_MOD, |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 244 | .idlest_reg_id = 1, |
| 245 | .idlest_idle_bit = OMAP24XX_ST_HDQ_SHIFT, |
| 246 | }, |
| 247 | }, |
| 248 | .class = &omap2_hdq1w_class, |
| 249 | }; |
| 250 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 251 | /* |
| 252 | * interfaces |
| 253 | */ |
| 254 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 255 | /* L4 CORE -> I2C1 interface */ |
| 256 | static struct omap_hwmod_ocp_if omap2420_l4_core__i2c1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 257 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 258 | .slave = &omap2420_i2c1_hwmod, |
| 259 | .clk = "i2c1_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 260 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 261 | }; |
| 262 | |
| 263 | /* L4 CORE -> I2C2 interface */ |
| 264 | static struct omap_hwmod_ocp_if omap2420_l4_core__i2c2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 265 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 266 | .slave = &omap2420_i2c2_hwmod, |
| 267 | .clk = "i2c2_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 268 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 269 | }; |
| 270 | |
| 271 | /* IVA <- L3 interface */ |
| 272 | static struct omap_hwmod_ocp_if omap2420_l3__iva = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 273 | .master = &omap2xxx_l3_main_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 274 | .slave = &omap2420_iva_hwmod, |
Paul Walmsley | 3af35fb | 2012-04-19 04:04:38 -0600 | [diff] [blame] | 275 | .clk = "core_l3_ck", |
| 276 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 277 | }; |
| 278 | |
| 279 | /* DSP <- L3 interface */ |
| 280 | static struct omap_hwmod_ocp_if omap2420_l3__dsp = { |
| 281 | .master = &omap2xxx_l3_main_hwmod, |
| 282 | .slave = &omap2420_dsp_hwmod, |
| 283 | .clk = "dsp_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 284 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 285 | }; |
| 286 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 287 | /* l4_wkup -> timer1 */ |
| 288 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__timer1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 289 | .master = &omap2xxx_l4_wkup_hwmod, |
| 290 | .slave = &omap2xxx_timer1_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 291 | .clk = "gpt1_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 292 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 293 | }; |
| 294 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 295 | /* l4_wkup -> wd_timer2 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 296 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__wd_timer2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 297 | .master = &omap2xxx_l4_wkup_hwmod, |
| 298 | .slave = &omap2xxx_wd_timer2_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 299 | .clk = "mpu_wdt_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 300 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 301 | }; |
| 302 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 303 | /* l4_wkup -> gpio1 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 304 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 305 | .master = &omap2xxx_l4_wkup_hwmod, |
| 306 | .slave = &omap2xxx_gpio1_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 307 | .clk = "gpios_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 308 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 309 | }; |
| 310 | |
| 311 | /* l4_wkup -> gpio2 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 312 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 313 | .master = &omap2xxx_l4_wkup_hwmod, |
| 314 | .slave = &omap2xxx_gpio2_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 315 | .clk = "gpios_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 316 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 317 | }; |
| 318 | |
| 319 | /* l4_wkup -> gpio3 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 320 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio3 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 321 | .master = &omap2xxx_l4_wkup_hwmod, |
| 322 | .slave = &omap2xxx_gpio3_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 323 | .clk = "gpios_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 324 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 325 | }; |
| 326 | |
| 327 | /* l4_wkup -> gpio4 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 328 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__gpio4 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 329 | .master = &omap2xxx_l4_wkup_hwmod, |
| 330 | .slave = &omap2xxx_gpio4_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 331 | .clk = "gpios_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 332 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 333 | }; |
| 334 | |
| 335 | /* dma_system -> L3 */ |
| 336 | static struct omap_hwmod_ocp_if omap2420_dma_system__l3 = { |
| 337 | .master = &omap2420_dma_system_hwmod, |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 338 | .slave = &omap2xxx_l3_main_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 339 | .clk = "core_l3_ck", |
| 340 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 341 | }; |
| 342 | |
| 343 | /* l4_core -> dma_system */ |
| 344 | static struct omap_hwmod_ocp_if omap2420_l4_core__dma_system = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 345 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 346 | .slave = &omap2420_dma_system_hwmod, |
| 347 | .clk = "sdma_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 348 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 349 | }; |
| 350 | |
| 351 | /* l4_core -> mailbox */ |
| 352 | static struct omap_hwmod_ocp_if omap2420_l4_core__mailbox = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 353 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 354 | .slave = &omap2420_mailbox_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 355 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 356 | }; |
| 357 | |
| 358 | /* l4_core -> mcbsp1 */ |
| 359 | static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 360 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 361 | .slave = &omap2420_mcbsp1_hwmod, |
| 362 | .clk = "mcbsp1_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 363 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 364 | }; |
| 365 | |
| 366 | /* l4_core -> mcbsp2 */ |
| 367 | static struct omap_hwmod_ocp_if omap2420_l4_core__mcbsp2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 368 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 369 | .slave = &omap2420_mcbsp2_hwmod, |
| 370 | .clk = "mcbsp2_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 371 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 372 | }; |
| 373 | |
Tony Lindgren | ad1b666 | 2012-05-08 17:23:33 -0600 | [diff] [blame] | 374 | /* l4_core -> msdi1 */ |
| 375 | static struct omap_hwmod_ocp_if omap2420_l4_core__msdi1 = { |
| 376 | .master = &omap2xxx_l4_core_hwmod, |
| 377 | .slave = &omap2420_msdi1_hwmod, |
| 378 | .clk = "mmc_ick", |
Tony Lindgren | ad1b666 | 2012-05-08 17:23:33 -0600 | [diff] [blame] | 379 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 380 | }; |
| 381 | |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 382 | /* l4_core -> hdq1w interface */ |
| 383 | static struct omap_hwmod_ocp_if omap2420_l4_core__hdq1w = { |
| 384 | .master = &omap2xxx_l4_core_hwmod, |
| 385 | .slave = &omap2420_hdq1w_hwmod, |
| 386 | .clk = "hdq_ick", |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 387 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 388 | .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE, |
| 389 | }; |
| 390 | |
| 391 | |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 392 | /* l4_wkup -> 32ksync_counter */ |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 393 | static struct omap_hwmod_ocp_if omap2420_l4_wkup__counter_32k = { |
| 394 | .master = &omap2xxx_l4_wkup_hwmod, |
| 395 | .slave = &omap2xxx_counter_32k_hwmod, |
| 396 | .clk = "sync_32k_ick", |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 397 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 398 | }; |
| 399 | |
Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 400 | static struct omap_hwmod_ocp_if omap2420_l3__gpmc = { |
| 401 | .master = &omap2xxx_l3_main_hwmod, |
| 402 | .slave = &omap2xxx_gpmc_hwmod, |
| 403 | .clk = "core_l3_ck", |
Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 404 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 405 | }; |
| 406 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 407 | static struct omap_hwmod_ocp_if *omap2420_hwmod_ocp_ifs[] __initdata = { |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 408 | &omap2xxx_l3_main__l4_core, |
| 409 | &omap2xxx_mpu__l3_main, |
| 410 | &omap2xxx_dss__l3, |
| 411 | &omap2xxx_l4_core__mcspi1, |
| 412 | &omap2xxx_l4_core__mcspi2, |
| 413 | &omap2xxx_l4_core__l4_wkup, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 414 | &omap2_l4_core__uart1, |
| 415 | &omap2_l4_core__uart2, |
| 416 | &omap2_l4_core__uart3, |
| 417 | &omap2420_l4_core__i2c1, |
| 418 | &omap2420_l4_core__i2c2, |
| 419 | &omap2420_l3__iva, |
Paul Walmsley | 3af35fb | 2012-04-19 04:04:38 -0600 | [diff] [blame] | 420 | &omap2420_l3__dsp, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 421 | &omap2420_l4_wkup__timer1, |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 422 | &omap2xxx_l4_core__timer2, |
| 423 | &omap2xxx_l4_core__timer3, |
| 424 | &omap2xxx_l4_core__timer4, |
| 425 | &omap2xxx_l4_core__timer5, |
| 426 | &omap2xxx_l4_core__timer6, |
| 427 | &omap2xxx_l4_core__timer7, |
| 428 | &omap2xxx_l4_core__timer8, |
| 429 | &omap2xxx_l4_core__timer9, |
| 430 | &omap2xxx_l4_core__timer10, |
| 431 | &omap2xxx_l4_core__timer11, |
| 432 | &omap2xxx_l4_core__timer12, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 433 | &omap2420_l4_wkup__wd_timer2, |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 434 | &omap2xxx_l4_core__dss, |
| 435 | &omap2xxx_l4_core__dss_dispc, |
| 436 | &omap2xxx_l4_core__dss_rfbi, |
| 437 | &omap2xxx_l4_core__dss_venc, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 438 | &omap2420_l4_wkup__gpio1, |
| 439 | &omap2420_l4_wkup__gpio2, |
| 440 | &omap2420_l4_wkup__gpio3, |
| 441 | &omap2420_l4_wkup__gpio4, |
| 442 | &omap2420_dma_system__l3, |
| 443 | &omap2420_l4_core__dma_system, |
| 444 | &omap2420_l4_core__mailbox, |
| 445 | &omap2420_l4_core__mcbsp1, |
| 446 | &omap2420_l4_core__mcbsp2, |
Tony Lindgren | ad1b666 | 2012-05-08 17:23:33 -0600 | [diff] [blame] | 447 | &omap2420_l4_core__msdi1, |
Paul Walmsley | e9b0a2f | 2012-09-23 17:28:25 -0600 | [diff] [blame] | 448 | &omap2xxx_l4_core__rng, |
Mark A. Greer | e569e99 | 2013-03-30 15:49:19 -0600 | [diff] [blame] | 449 | &omap2xxx_l4_core__sham, |
Mark A. Greer | 660ffd6 | 2012-12-21 09:28:09 -0700 | [diff] [blame] | 450 | &omap2xxx_l4_core__aes, |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 451 | &omap2420_l4_core__hdq1w, |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 452 | &omap2420_l4_wkup__counter_32k, |
Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 453 | &omap2420_l3__gpmc, |
Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 454 | NULL, |
| 455 | }; |
| 456 | |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 457 | int __init omap2420_hwmod_init(void) |
| 458 | { |
Kevin Hilman | 9ebfd28 | 2012-06-18 12:12:23 -0600 | [diff] [blame] | 459 | omap_hwmod_init(); |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 460 | return omap_hwmod_register_links(omap2420_hwmod_ocp_ifs); |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 461 | } |