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