| Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 2 | /* |
| Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 3 | * omap_hwmod_2430_data.c - hardware modules present on the OMAP2430 chips |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 4 | * |
| Paul Walmsley | 78183f3 | 2011-07-09 19:14:05 -0600 | [diff] [blame] | 5 | * Copyright (C) 2009-2011 Nokia Corporation |
| Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 6 | * Copyright (C) 2012 Texas Instruments, Inc. |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 7 | * Paul Walmsley |
| 8 | * |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 9 | * XXX handle crossbar/shared link difference for L3? |
| Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 10 | * XXX these should be marked initdata for multi-OMAP kernels |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 11 | */ |
| Tony Lindgren | 3a8761c | 2012-10-08 09:11:22 -0700 | [diff] [blame] | 12 | |
| Wolfram Sang | 79fc540 | 2018-04-19 22:00:10 +0200 | [diff] [blame] | 13 | #include <linux/platform_data/i2c-omap.h> |
| Andreas Fenkart | 55143438 | 2014-11-08 15:33:09 +0100 | [diff] [blame] | 14 | #include <linux/platform_data/hsmmc-omap.h> |
| Tony Lindgren | 45c3eb7 | 2012-11-30 08:41:50 -0800 | [diff] [blame] | 15 | #include <linux/omap-dma.h> |
| Tony Lindgren | 2a296c8 | 2012-10-02 17:41:35 -0700 | [diff] [blame] | 16 | |
| 17 | #include "omap_hwmod.h" |
| Tony Lindgren | 1e0f51a | 2012-09-20 11:42:02 -0700 | [diff] [blame] | 18 | #include "l3_2xxx.h" |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 19 | |
| Tony Lindgren | dbc0416 | 2012-08-31 10:59:07 -0700 | [diff] [blame] | 20 | #include "soc.h" |
| Paul Walmsley | 43b4099 | 2010-02-22 22:09:34 -0700 | [diff] [blame] | 21 | #include "omap_hwmod_common_data.h" |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 22 | #include "prm-regbits-24xx.h" |
| Varadarajan, Charulatha | 165e216 | 2010-09-23 20:02:40 +0530 | [diff] [blame] | 23 | #include "cm-regbits-24xx.h" |
| Tony Lindgren | 3a8761c | 2012-10-08 09:11:22 -0700 | [diff] [blame] | 24 | #include "i2c.h" |
| Paul Walmsley | ff2516f | 2010-12-21 15:39:15 -0700 | [diff] [blame] | 25 | #include "wd_timer.h" |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 26 | |
| Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 27 | /* |
| 28 | * OMAP2430 hardware module integration data |
| 29 | * |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 30 | * All of the data in this section should be autogeneratable from the |
| Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 31 | * TI hardware database or other technical documentation. Data that |
| 32 | * is driver-specific or driver-kernel integration-specific belongs |
| 33 | * elsewhere. |
| 34 | */ |
| 35 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 36 | /* |
| 37 | * IP blocks |
| 38 | */ |
| Senthilvadivu Guruswamy | de56dbb | 2011-02-22 09:51:15 +0200 | [diff] [blame] | 39 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 40 | /* IVA2 (IVA2) */ |
| Paul Walmsley | 3af35fb | 2012-04-19 04:04:38 -0600 | [diff] [blame] | 41 | static struct omap_hwmod_rst_info omap2430_iva_resets[] = { |
| 42 | { .name = "logic", .rst_shift = 0 }, |
| 43 | { .name = "mmu", .rst_shift = 1 }, |
| 44 | }; |
| 45 | |
| Paul Walmsley | 08072ac | 2010-07-26 16:34:33 -0600 | [diff] [blame] | 46 | static struct omap_hwmod omap2430_iva_hwmod = { |
| 47 | .name = "iva", |
| 48 | .class = &iva_hwmod_class, |
| Paul Walmsley | 3af35fb | 2012-04-19 04:04:38 -0600 | [diff] [blame] | 49 | .clkdm_name = "dsp_clkdm", |
| 50 | .rst_lines = omap2430_iva_resets, |
| 51 | .rst_lines_cnt = ARRAY_SIZE(omap2430_iva_resets), |
| 52 | .main_clk = "dsp_fck", |
| Paul Walmsley | 08072ac | 2010-07-26 16:34:33 -0600 | [diff] [blame] | 53 | }; |
| 54 | |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 55 | /* I2C common */ |
| 56 | static struct omap_hwmod_class_sysconfig i2c_sysc = { |
| 57 | .rev_offs = 0x00, |
| 58 | .sysc_offs = 0x20, |
| 59 | .syss_offs = 0x10, |
| Avinash.H.M | d73d65f | 2011-03-03 14:22:46 -0700 | [diff] [blame] | 60 | .sysc_flags = (SYSC_HAS_SOFTRESET | SYSC_HAS_AUTOIDLE | |
| 61 | SYSS_HAS_RESET_STATUS), |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 62 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 63 | }; |
| 64 | |
| 65 | static struct omap_hwmod_class i2c_class = { |
| 66 | .name = "i2c", |
| 67 | .sysc = &i2c_sysc, |
| Avinash.H.M | 6d3c55f | 2011-07-10 05:27:16 -0600 | [diff] [blame] | 68 | .reset = &omap_i2c_reset, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 69 | }; |
| 70 | |
| Benoit Cousson | 50ebb77 | 2010-12-21 21:08:34 -0700 | [diff] [blame] | 71 | /* I2C1 */ |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 72 | static struct omap_hwmod omap2430_i2c1_hwmod = { |
| 73 | .name = "i2c1", |
| Andy Green | 3e60052 | 2011-07-10 05:27:14 -0600 | [diff] [blame] | 74 | .flags = HWMOD_16BIT_REG, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 75 | .main_clk = "i2chs1_fck", |
| 76 | .prcm = { |
| 77 | .omap2 = { |
| 78 | /* |
| 79 | * NOTE: The CM_FCLKEN* and CM_ICLKEN* for |
| 80 | * I2CHS IP's do not follow the usual pattern. |
| 81 | * prcm_reg_id alone cannot be used to program |
| 82 | * the iclk and fclk. Needs to be handled using |
| Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 83 | * additional flags when clk handling is moved |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 84 | * to hwmod framework. |
| 85 | */ |
| 86 | .module_offs = CORE_MOD, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 87 | .idlest_reg_id = 1, |
| 88 | .idlest_idle_bit = OMAP2430_ST_I2CHS1_SHIFT, |
| 89 | }, |
| 90 | }, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 91 | .class = &i2c_class, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 92 | }; |
| 93 | |
| 94 | /* I2C2 */ |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 95 | static struct omap_hwmod omap2430_i2c2_hwmod = { |
| 96 | .name = "i2c2", |
| Andy Green | 3e60052 | 2011-07-10 05:27:14 -0600 | [diff] [blame] | 97 | .flags = HWMOD_16BIT_REG, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 98 | .main_clk = "i2chs2_fck", |
| 99 | .prcm = { |
| 100 | .omap2 = { |
| 101 | .module_offs = CORE_MOD, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 102 | .idlest_reg_id = 1, |
| 103 | .idlest_idle_bit = OMAP2430_ST_I2CHS2_SHIFT, |
| 104 | }, |
| 105 | }, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 106 | .class = &i2c_class, |
| Paul Walmsley | 2004290 | 2010-09-30 02:40:12 +0530 | [diff] [blame] | 107 | }; |
| 108 | |
| Varadarajan, Charulatha | aeac0e4 | 2010-12-07 16:26:56 -0800 | [diff] [blame] | 109 | /* gpio5 */ |
| Varadarajan, Charulatha | aeac0e4 | 2010-12-07 16:26:56 -0800 | [diff] [blame] | 110 | static struct omap_hwmod omap2430_gpio5_hwmod = { |
| 111 | .name = "gpio5", |
| Avinash.H.M | f95440c | 2011-04-05 21:10:15 +0530 | [diff] [blame] | 112 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| Varadarajan, Charulatha | aeac0e4 | 2010-12-07 16:26:56 -0800 | [diff] [blame] | 113 | .main_clk = "gpio5_fck", |
| 114 | .prcm = { |
| 115 | .omap2 = { |
| Varadarajan, Charulatha | aeac0e4 | 2010-12-07 16:26:56 -0800 | [diff] [blame] | 116 | .module_offs = CORE_MOD, |
| 117 | .idlest_reg_id = 2, |
| 118 | .idlest_idle_bit = OMAP2430_ST_GPIO5_SHIFT, |
| 119 | }, |
| 120 | }, |
| Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 121 | .class = &omap2xxx_gpio_hwmod_class, |
| Varadarajan, Charulatha | aeac0e4 | 2010-12-07 16:26:56 -0800 | [diff] [blame] | 122 | }; |
| 123 | |
| G, Manjunath Kondaiah | 82cbd1a | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 124 | /* dma attributes */ |
| 125 | static struct omap_dma_dev_attr dma_dev_attr = { |
| 126 | .dev_caps = RESERVE_CHANNEL | DMA_LINKED_LCH | GLOBAL_PRIORITY | |
| 127 | IS_CSSA_32 | IS_CDSA_32 | IS_RW_PRIORITY, |
| 128 | .lch_count = 32, |
| 129 | }; |
| 130 | |
| G, Manjunath Kondaiah | 82cbd1a | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 131 | static struct omap_hwmod omap2430_dma_system_hwmod = { |
| 132 | .name = "dma", |
| Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 133 | .class = &omap2xxx_dma_hwmod_class, |
| G, Manjunath Kondaiah | 82cbd1a | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 134 | .main_clk = "core_l3_ck", |
| G, Manjunath Kondaiah | 82cbd1a | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 135 | .dev_attr = &dma_dev_attr, |
| G, Manjunath Kondaiah | 82cbd1a | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 136 | .flags = HWMOD_NO_IDLEST, |
| 137 | }; |
| 138 | |
| Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 139 | /* mailbox */ |
| Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 140 | static struct omap_hwmod omap2430_mailbox_hwmod = { |
| 141 | .name = "mailbox", |
| Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 142 | .class = &omap2xxx_mailbox_hwmod_class, |
| Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 143 | .main_clk = "mailboxes_ick", |
| 144 | .prcm = { |
| 145 | .omap2 = { |
| Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 146 | .module_offs = CORE_MOD, |
| 147 | .idlest_reg_id = 1, |
| 148 | .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT, |
| 149 | }, |
| 150 | }, |
| Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 151 | }; |
| 152 | |
| Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 153 | /* mcspi3 */ |
| Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 154 | static struct omap_hwmod omap2430_mcspi3_hwmod = { |
| Paul Walmsley | bec9381 | 2012-04-19 04:03:50 -0600 | [diff] [blame] | 155 | .name = "mcspi3", |
| Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 156 | .main_clk = "mcspi3_fck", |
| 157 | .prcm = { |
| 158 | .omap2 = { |
| 159 | .module_offs = CORE_MOD, |
| Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 160 | .idlest_reg_id = 2, |
| 161 | .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT, |
| 162 | }, |
| 163 | }, |
| Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 164 | .class = &omap2xxx_mcspi_class, |
| Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 165 | }; |
| 166 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 167 | /* usbhsotg */ |
| Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 168 | static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = { |
| 169 | .rev_offs = 0x0400, |
| 170 | .sysc_offs = 0x0404, |
| 171 | .syss_offs = 0x0408, |
| 172 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE| |
| 173 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 174 | SYSC_HAS_AUTOIDLE), |
| 175 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 176 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), |
| 177 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 178 | }; |
| 179 | |
| 180 | static struct omap_hwmod_class usbotg_class = { |
| 181 | .name = "usbotg", |
| 182 | .sysc = &omap2430_usbhsotg_sysc, |
| 183 | }; |
| 184 | |
| 185 | /* usb_otg_hs */ |
| Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 186 | static struct omap_hwmod omap2430_usbhsotg_hwmod = { |
| 187 | .name = "usb_otg_hs", |
| Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 188 | .main_clk = "usbhs_ick", |
| 189 | .prcm = { |
| 190 | .omap2 = { |
| Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 191 | .module_offs = CORE_MOD, |
| 192 | .idlest_reg_id = 1, |
| 193 | .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT, |
| 194 | }, |
| 195 | }, |
| Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 196 | .class = &usbotg_class, |
| 197 | /* |
| 198 | * Erratum ID: i479 idle_req / idle_ack mechanism potentially |
| 199 | * broken when autoidle is enabled |
| 200 | * workaround is to disable the autoidle bit at module level. |
| 201 | */ |
| 202 | .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE |
| 203 | | HWMOD_SWSUP_MSTANDBY, |
| Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 204 | }; |
| 205 | |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 206 | /* |
| 207 | * 'mcbsp' class |
| 208 | * multi channel buffered serial port controller |
| 209 | */ |
| Tony Lindgren | 04aa67d | 2011-02-22 10:54:12 -0800 | [diff] [blame] | 210 | |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 211 | static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = { |
| 212 | .rev_offs = 0x007C, |
| 213 | .sysc_offs = 0x008C, |
| 214 | .sysc_flags = (SYSC_HAS_SOFTRESET), |
| 215 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 216 | }; |
| 217 | |
| 218 | static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = { |
| 219 | .name = "mcbsp", |
| 220 | .sysc = &omap2430_mcbsp_sysc, |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 221 | }; |
| 222 | |
| Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 223 | static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = { |
| 224 | { .role = "pad_fck", .clk = "mcbsp_clks" }, |
| 225 | { .role = "prcm_fck", .clk = "func_96m_ck" }, |
| 226 | }; |
| 227 | |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 228 | /* mcbsp1 */ |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 229 | static struct omap_hwmod omap2430_mcbsp1_hwmod = { |
| 230 | .name = "mcbsp1", |
| 231 | .class = &omap2430_mcbsp_hwmod_class, |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 232 | .main_clk = "mcbsp1_fck", |
| 233 | .prcm = { |
| 234 | .omap2 = { |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 235 | .module_offs = CORE_MOD, |
| 236 | .idlest_reg_id = 1, |
| 237 | .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT, |
| 238 | }, |
| 239 | }, |
| Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 240 | .opt_clks = mcbsp_opt_clks, |
| 241 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 242 | }; |
| 243 | |
| 244 | /* mcbsp2 */ |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 245 | static struct omap_hwmod omap2430_mcbsp2_hwmod = { |
| 246 | .name = "mcbsp2", |
| 247 | .class = &omap2430_mcbsp_hwmod_class, |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 248 | .main_clk = "mcbsp2_fck", |
| 249 | .prcm = { |
| 250 | .omap2 = { |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 251 | .module_offs = CORE_MOD, |
| 252 | .idlest_reg_id = 1, |
| 253 | .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT, |
| 254 | }, |
| 255 | }, |
| Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 256 | .opt_clks = mcbsp_opt_clks, |
| 257 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 258 | }; |
| 259 | |
| 260 | /* mcbsp3 */ |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 261 | static struct omap_hwmod omap2430_mcbsp3_hwmod = { |
| 262 | .name = "mcbsp3", |
| 263 | .class = &omap2430_mcbsp_hwmod_class, |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 264 | .main_clk = "mcbsp3_fck", |
| 265 | .prcm = { |
| 266 | .omap2 = { |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 267 | .module_offs = CORE_MOD, |
| 268 | .idlest_reg_id = 2, |
| 269 | .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT, |
| 270 | }, |
| 271 | }, |
| Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 272 | .opt_clks = mcbsp_opt_clks, |
| 273 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 274 | }; |
| 275 | |
| 276 | /* mcbsp4 */ |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 277 | static struct omap_hwmod omap2430_mcbsp4_hwmod = { |
| 278 | .name = "mcbsp4", |
| 279 | .class = &omap2430_mcbsp_hwmod_class, |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 280 | .main_clk = "mcbsp4_fck", |
| 281 | .prcm = { |
| 282 | .omap2 = { |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 283 | .module_offs = CORE_MOD, |
| 284 | .idlest_reg_id = 2, |
| 285 | .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT, |
| 286 | }, |
| 287 | }, |
| Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 288 | .opt_clks = mcbsp_opt_clks, |
| 289 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 290 | }; |
| 291 | |
| 292 | /* mcbsp5 */ |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 293 | static struct omap_hwmod omap2430_mcbsp5_hwmod = { |
| 294 | .name = "mcbsp5", |
| 295 | .class = &omap2430_mcbsp_hwmod_class, |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 296 | .main_clk = "mcbsp5_fck", |
| 297 | .prcm = { |
| 298 | .omap2 = { |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 299 | .module_offs = CORE_MOD, |
| 300 | .idlest_reg_id = 2, |
| 301 | .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT, |
| 302 | }, |
| 303 | }, |
| Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 304 | .opt_clks = mcbsp_opt_clks, |
| 305 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
| Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 306 | }; |
| Tony Lindgren | 04aa67d | 2011-02-22 10:54:12 -0800 | [diff] [blame] | 307 | |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 308 | /* MMC/SD/SDIO common */ |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 309 | static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = { |
| 310 | .rev_offs = 0x1fc, |
| 311 | .sysc_offs = 0x10, |
| 312 | .syss_offs = 0x14, |
| 313 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 314 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 315 | SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS), |
| 316 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 317 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 318 | }; |
| 319 | |
| 320 | static struct omap_hwmod_class omap2430_mmc_class = { |
| 321 | .name = "mmc", |
| 322 | .sysc = &omap2430_mmc_sysc, |
| 323 | }; |
| 324 | |
| 325 | /* MMC/SD/SDIO1 */ |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 326 | static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = { |
| 327 | { .role = "dbck", .clk = "mmchsdb1_fck" }, |
| 328 | }; |
| 329 | |
| Andreas Fenkart | 55143438 | 2014-11-08 15:33:09 +0100 | [diff] [blame] | 330 | static struct omap_hsmmc_dev_attr mmc1_dev_attr = { |
| Kishore Kadiyala | 6ab8946 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 331 | .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT, |
| 332 | }; |
| 333 | |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 334 | static struct omap_hwmod omap2430_mmc1_hwmod = { |
| 335 | .name = "mmc1", |
| 336 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 337 | .opt_clks = omap2430_mmc1_opt_clks, |
| 338 | .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks), |
| 339 | .main_clk = "mmchs1_fck", |
| 340 | .prcm = { |
| 341 | .omap2 = { |
| 342 | .module_offs = CORE_MOD, |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 343 | .idlest_reg_id = 2, |
| 344 | .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT, |
| 345 | }, |
| 346 | }, |
| Kishore Kadiyala | 6ab8946 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 347 | .dev_attr = &mmc1_dev_attr, |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 348 | .class = &omap2430_mmc_class, |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 349 | }; |
| 350 | |
| 351 | /* MMC/SD/SDIO2 */ |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 352 | static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = { |
| 353 | { .role = "dbck", .clk = "mmchsdb2_fck" }, |
| 354 | }; |
| 355 | |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 356 | static struct omap_hwmod omap2430_mmc2_hwmod = { |
| 357 | .name = "mmc2", |
| 358 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 359 | .opt_clks = omap2430_mmc2_opt_clks, |
| 360 | .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks), |
| 361 | .main_clk = "mmchs2_fck", |
| 362 | .prcm = { |
| 363 | .omap2 = { |
| 364 | .module_offs = CORE_MOD, |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 365 | .idlest_reg_id = 2, |
| 366 | .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT, |
| 367 | }, |
| 368 | }, |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 369 | .class = &omap2430_mmc_class, |
| Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 370 | }; |
| Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 371 | |
| Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 372 | /* HDQ1W/1-wire */ |
| 373 | static struct omap_hwmod omap2430_hdq1w_hwmod = { |
| 374 | .name = "hdq1w", |
| Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 375 | .main_clk = "hdq_fck", |
| 376 | .prcm = { |
| 377 | .omap2 = { |
| 378 | .module_offs = CORE_MOD, |
| Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 379 | .idlest_reg_id = 1, |
| 380 | .idlest_idle_bit = OMAP24XX_ST_HDQ_SHIFT, |
| 381 | }, |
| 382 | }, |
| 383 | .class = &omap2_hdq1w_class, |
| 384 | }; |
| 385 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 386 | /* |
| 387 | * interfaces |
| 388 | */ |
| 389 | |
| 390 | /* L3 -> L4_CORE interface */ |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 391 | /* l3_core -> usbhsotg interface */ |
| 392 | static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = { |
| 393 | .master = &omap2430_usbhsotg_hwmod, |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 394 | .slave = &omap2xxx_l3_main_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 395 | .clk = "core_l3_ck", |
| 396 | .user = OCP_USER_MPU, |
| 397 | }; |
| 398 | |
| 399 | /* L4 CORE -> I2C1 interface */ |
| 400 | static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 401 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 402 | .slave = &omap2430_i2c1_hwmod, |
| 403 | .clk = "i2c1_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 404 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 405 | }; |
| 406 | |
| 407 | /* L4 CORE -> I2C2 interface */ |
| 408 | static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 409 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 410 | .slave = &omap2430_i2c2_hwmod, |
| 411 | .clk = "i2c2_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 412 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 413 | }; |
| 414 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 415 | /* l4_core ->usbhsotg interface */ |
| 416 | static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 417 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 418 | .slave = &omap2430_usbhsotg_hwmod, |
| 419 | .clk = "usb_l4_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 420 | .user = OCP_USER_MPU, |
| 421 | }; |
| 422 | |
| 423 | /* L4 CORE -> MMC1 interface */ |
| 424 | static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 425 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 426 | .slave = &omap2430_mmc1_hwmod, |
| 427 | .clk = "mmchs1_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 428 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 429 | }; |
| 430 | |
| 431 | /* L4 CORE -> MMC2 interface */ |
| 432 | static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 433 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 434 | .slave = &omap2430_mmc2_hwmod, |
| 435 | .clk = "mmchs2_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 436 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 437 | }; |
| 438 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 439 | /* l4 core -> mcspi3 interface */ |
| 440 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 441 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 442 | .slave = &omap2430_mcspi3_hwmod, |
| 443 | .clk = "mcspi3_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 444 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 445 | }; |
| 446 | |
| 447 | /* IVA2 <- L3 interface */ |
| 448 | static struct omap_hwmod_ocp_if omap2430_l3__iva = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 449 | .master = &omap2xxx_l3_main_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 450 | .slave = &omap2430_iva_hwmod, |
| Paul Walmsley | 3af35fb | 2012-04-19 04:04:38 -0600 | [diff] [blame] | 451 | .clk = "core_l3_ck", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 452 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 453 | }; |
| 454 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 455 | /* l4_wkup -> timer1 */ |
| 456 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 457 | .master = &omap2xxx_l4_wkup_hwmod, |
| 458 | .slave = &omap2xxx_timer1_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 459 | .clk = "gpt1_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 460 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 461 | }; |
| 462 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 463 | /* l4_wkup -> wd_timer2 */ |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 464 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 465 | .master = &omap2xxx_l4_wkup_hwmod, |
| 466 | .slave = &omap2xxx_wd_timer2_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 467 | .clk = "mpu_wdt_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 468 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 469 | }; |
| 470 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 471 | /* l4_wkup -> gpio1 */ |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 472 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 473 | .master = &omap2xxx_l4_wkup_hwmod, |
| 474 | .slave = &omap2xxx_gpio1_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 475 | .clk = "gpios_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 476 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 477 | }; |
| 478 | |
| 479 | /* l4_wkup -> gpio2 */ |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 480 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 481 | .master = &omap2xxx_l4_wkup_hwmod, |
| 482 | .slave = &omap2xxx_gpio2_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 483 | .clk = "gpios_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 484 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 485 | }; |
| 486 | |
| 487 | /* l4_wkup -> gpio3 */ |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 488 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 489 | .master = &omap2xxx_l4_wkup_hwmod, |
| 490 | .slave = &omap2xxx_gpio3_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 491 | .clk = "gpios_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 492 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 493 | }; |
| 494 | |
| 495 | /* l4_wkup -> gpio4 */ |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 496 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 497 | .master = &omap2xxx_l4_wkup_hwmod, |
| 498 | .slave = &omap2xxx_gpio4_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 499 | .clk = "gpios_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 500 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 501 | }; |
| 502 | |
| 503 | /* l4_core -> gpio5 */ |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 504 | static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 505 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 506 | .slave = &omap2430_gpio5_hwmod, |
| 507 | .clk = "gpio5_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 508 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 509 | }; |
| 510 | |
| 511 | /* dma_system -> L3 */ |
| 512 | static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = { |
| 513 | .master = &omap2430_dma_system_hwmod, |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 514 | .slave = &omap2xxx_l3_main_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 515 | .clk = "core_l3_ck", |
| 516 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 517 | }; |
| 518 | |
| 519 | /* l4_core -> dma_system */ |
| 520 | static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 521 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 522 | .slave = &omap2430_dma_system_hwmod, |
| 523 | .clk = "sdma_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 524 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 525 | }; |
| 526 | |
| 527 | /* l4_core -> mailbox */ |
| 528 | static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 529 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 530 | .slave = &omap2430_mailbox_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 531 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 532 | }; |
| 533 | |
| 534 | /* l4_core -> mcbsp1 */ |
| 535 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 536 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 537 | .slave = &omap2430_mcbsp1_hwmod, |
| 538 | .clk = "mcbsp1_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 539 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 540 | }; |
| 541 | |
| 542 | /* l4_core -> mcbsp2 */ |
| 543 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 544 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 545 | .slave = &omap2430_mcbsp2_hwmod, |
| 546 | .clk = "mcbsp2_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 547 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 548 | }; |
| 549 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 550 | /* l4_core -> mcbsp3 */ |
| 551 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 552 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 553 | .slave = &omap2430_mcbsp3_hwmod, |
| 554 | .clk = "mcbsp3_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 555 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 556 | }; |
| 557 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 558 | /* l4_core -> mcbsp4 */ |
| 559 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 560 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 561 | .slave = &omap2430_mcbsp4_hwmod, |
| 562 | .clk = "mcbsp4_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 563 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 564 | }; |
| 565 | |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 566 | /* l4_core -> mcbsp5 */ |
| 567 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = { |
| Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 568 | .master = &omap2xxx_l4_core_hwmod, |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 569 | .slave = &omap2430_mcbsp5_hwmod, |
| 570 | .clk = "mcbsp5_ick", |
| Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 571 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 572 | }; |
| 573 | |
| Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 574 | /* l4_core -> hdq1w */ |
| 575 | static struct omap_hwmod_ocp_if omap2430_l4_core__hdq1w = { |
| 576 | .master = &omap2xxx_l4_core_hwmod, |
| 577 | .slave = &omap2430_hdq1w_hwmod, |
| 578 | .clk = "hdq_ick", |
| Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 579 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 580 | .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE, |
| 581 | }; |
| 582 | |
| Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 583 | /* l4_wkup -> 32ksync_counter */ |
| Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 584 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__counter_32k = { |
| 585 | .master = &omap2xxx_l4_wkup_hwmod, |
| 586 | .slave = &omap2xxx_counter_32k_hwmod, |
| 587 | .clk = "sync_32k_ick", |
| Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 588 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 589 | }; |
| 590 | |
| Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 591 | static struct omap_hwmod_ocp_if omap2430_l3__gpmc = { |
| 592 | .master = &omap2xxx_l3_main_hwmod, |
| 593 | .slave = &omap2xxx_gpmc_hwmod, |
| 594 | .clk = "core_l3_ck", |
| Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 595 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 596 | }; |
| 597 | |
| Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 598 | static struct omap_hwmod_ocp_if *omap2430_hwmod_ocp_ifs[] __initdata = { |
| Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 599 | &omap2xxx_l3_main__l4_core, |
| 600 | &omap2xxx_mpu__l3_main, |
| 601 | &omap2xxx_dss__l3, |
| Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 602 | &omap2430_usbhsotg__l3, |
| 603 | &omap2430_l4_core__i2c1, |
| 604 | &omap2430_l4_core__i2c2, |
| Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 605 | &omap2xxx_l4_core__l4_wkup, |
| Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 606 | &omap2_l4_core__uart1, |
| 607 | &omap2_l4_core__uart2, |
| 608 | &omap2_l4_core__uart3, |
| 609 | &omap2430_l4_core__usbhsotg, |
| 610 | &omap2430_l4_core__mmc1, |
| 611 | &omap2430_l4_core__mmc2, |
| Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 612 | &omap2xxx_l4_core__mcspi1, |
| 613 | &omap2xxx_l4_core__mcspi2, |
| Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 614 | &omap2430_l4_core__mcspi3, |
| 615 | &omap2430_l3__iva, |
| 616 | &omap2430_l4_wkup__timer1, |
| Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 617 | &omap2xxx_l4_core__timer2, |
| 618 | &omap2xxx_l4_core__timer3, |
| 619 | &omap2xxx_l4_core__timer4, |
| 620 | &omap2xxx_l4_core__timer5, |
| 621 | &omap2xxx_l4_core__timer6, |
| 622 | &omap2xxx_l4_core__timer7, |
| 623 | &omap2xxx_l4_core__timer8, |
| 624 | &omap2xxx_l4_core__timer9, |
| 625 | &omap2xxx_l4_core__timer10, |
| 626 | &omap2xxx_l4_core__timer11, |
| 627 | &omap2xxx_l4_core__timer12, |
| Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 628 | &omap2430_l4_wkup__wd_timer2, |
| Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 629 | &omap2xxx_l4_core__dss, |
| 630 | &omap2xxx_l4_core__dss_dispc, |
| 631 | &omap2xxx_l4_core__dss_rfbi, |
| 632 | &omap2xxx_l4_core__dss_venc, |
| Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 633 | &omap2430_l4_wkup__gpio1, |
| 634 | &omap2430_l4_wkup__gpio2, |
| 635 | &omap2430_l4_wkup__gpio3, |
| 636 | &omap2430_l4_wkup__gpio4, |
| 637 | &omap2430_l4_core__gpio5, |
| 638 | &omap2430_dma_system__l3, |
| 639 | &omap2430_l4_core__dma_system, |
| 640 | &omap2430_l4_core__mailbox, |
| 641 | &omap2430_l4_core__mcbsp1, |
| 642 | &omap2430_l4_core__mcbsp2, |
| 643 | &omap2430_l4_core__mcbsp3, |
| 644 | &omap2430_l4_core__mcbsp4, |
| 645 | &omap2430_l4_core__mcbsp5, |
| Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 646 | &omap2430_l4_core__hdq1w, |
| Paul Walmsley | e9b0a2f | 2012-09-23 17:28:25 -0600 | [diff] [blame] | 647 | &omap2xxx_l4_core__rng, |
| Mark A. Greer | e569e99 | 2013-03-30 15:49:19 -0600 | [diff] [blame] | 648 | &omap2xxx_l4_core__sham, |
| Mark A. Greer | 660ffd6 | 2012-12-21 09:28:09 -0700 | [diff] [blame] | 649 | &omap2xxx_l4_core__aes, |
| Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 650 | &omap2430_l4_wkup__counter_32k, |
| Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 651 | &omap2430_l3__gpmc, |
| Paul Walmsley | 02bfc030 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 652 | NULL, |
| 653 | }; |
| 654 | |
| Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 655 | int __init omap2430_hwmod_init(void) |
| 656 | { |
| Kevin Hilman | 9ebfd28 | 2012-06-18 12:12:23 -0600 | [diff] [blame] | 657 | omap_hwmod_init(); |
| Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 658 | return omap_hwmod_register_links(omap2430_hwmod_ocp_ifs); |
| Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 659 | } |