Paul Walmsley | 02bfc03 | 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 | 02bfc03 | 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 | 02bfc03 | 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 | 02bfc03 | 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 | 5514343 | 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 | 02bfc03 | 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 | 02bfc03 | 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 | 02bfc03 | 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, |
Paul Walmsley | 0d619a8 | 2011-07-09 19:14:07 -0600 | [diff] [blame] | 156 | .mpu_irqs = omap2_dma_system_irqs, |
G, Manjunath Kondaiah | 82cbd1a | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 157 | .main_clk = "core_l3_ck", |
G, Manjunath Kondaiah | 82cbd1a | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 158 | .dev_attr = &dma_dev_attr, |
G, Manjunath Kondaiah | 82cbd1a | 2010-12-20 18:27:18 -0800 | [diff] [blame] | 159 | .flags = HWMOD_NO_IDLEST, |
| 160 | }; |
| 161 | |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 162 | /* mailbox */ |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 163 | static struct omap_hwmod omap2430_mailbox_hwmod = { |
| 164 | .name = "mailbox", |
Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 165 | .class = &omap2xxx_mailbox_hwmod_class, |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 166 | .main_clk = "mailboxes_ick", |
| 167 | .prcm = { |
| 168 | .omap2 = { |
| 169 | .prcm_reg_id = 1, |
| 170 | .module_bit = OMAP24XX_EN_MAILBOXES_SHIFT, |
| 171 | .module_offs = CORE_MOD, |
| 172 | .idlest_reg_id = 1, |
| 173 | .idlest_idle_bit = OMAP24XX_ST_MAILBOXES_SHIFT, |
| 174 | }, |
| 175 | }, |
Omar Ramirez Luna | fca1ab5 | 2011-02-24 12:51:32 -0800 | [diff] [blame] | 176 | }; |
| 177 | |
Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 178 | /* mcspi3 */ |
Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 179 | static struct omap2_mcspi_dev_attr omap_mcspi3_dev_attr = { |
| 180 | .num_chipselect = 2, |
| 181 | }; |
| 182 | |
| 183 | static struct omap_hwmod omap2430_mcspi3_hwmod = { |
Paul Walmsley | bec9381 | 2012-04-19 04:03:50 -0600 | [diff] [blame] | 184 | .name = "mcspi3", |
Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 185 | .main_clk = "mcspi3_fck", |
| 186 | .prcm = { |
| 187 | .omap2 = { |
| 188 | .module_offs = CORE_MOD, |
| 189 | .prcm_reg_id = 2, |
| 190 | .module_bit = OMAP2430_EN_MCSPI3_SHIFT, |
| 191 | .idlest_reg_id = 2, |
| 192 | .idlest_idle_bit = OMAP2430_ST_MCSPI3_SHIFT, |
| 193 | }, |
| 194 | }, |
Paul Walmsley | 273b946 | 2011-07-09 19:14:08 -0600 | [diff] [blame] | 195 | .class = &omap2xxx_mcspi_class, |
| 196 | .dev_attr = &omap_mcspi3_dev_attr, |
Charulatha V | 7f904c7 | 2011-02-17 09:53:10 -0800 | [diff] [blame] | 197 | }; |
| 198 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 199 | /* usbhsotg */ |
Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 200 | static struct omap_hwmod_class_sysconfig omap2430_usbhsotg_sysc = { |
| 201 | .rev_offs = 0x0400, |
| 202 | .sysc_offs = 0x0404, |
| 203 | .syss_offs = 0x0408, |
| 204 | .sysc_flags = (SYSC_HAS_SIDLEMODE | SYSC_HAS_MIDLEMODE| |
| 205 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 206 | SYSC_HAS_AUTOIDLE), |
| 207 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART | |
| 208 | MSTANDBY_FORCE | MSTANDBY_NO | MSTANDBY_SMART), |
| 209 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 210 | }; |
| 211 | |
| 212 | static struct omap_hwmod_class usbotg_class = { |
| 213 | .name = "usbotg", |
| 214 | .sysc = &omap2430_usbhsotg_sysc, |
| 215 | }; |
| 216 | |
| 217 | /* usb_otg_hs */ |
Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 218 | static struct omap_hwmod omap2430_usbhsotg_hwmod = { |
| 219 | .name = "usb_otg_hs", |
Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 220 | .main_clk = "usbhs_ick", |
| 221 | .prcm = { |
| 222 | .omap2 = { |
| 223 | .prcm_reg_id = 1, |
| 224 | .module_bit = OMAP2430_EN_USBHS_MASK, |
| 225 | .module_offs = CORE_MOD, |
| 226 | .idlest_reg_id = 1, |
| 227 | .idlest_idle_bit = OMAP2430_ST_USBHS_SHIFT, |
| 228 | }, |
| 229 | }, |
Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 230 | .class = &usbotg_class, |
| 231 | /* |
| 232 | * Erratum ID: i479 idle_req / idle_ack mechanism potentially |
| 233 | * broken when autoidle is enabled |
| 234 | * workaround is to disable the autoidle bit at module level. |
| 235 | */ |
| 236 | .flags = HWMOD_NO_OCP_AUTOIDLE | HWMOD_SWSUP_SIDLE |
| 237 | | HWMOD_SWSUP_MSTANDBY, |
Hema HK | 44d02ac | 2011-02-17 12:07:17 +0530 | [diff] [blame] | 238 | }; |
| 239 | |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 240 | /* |
| 241 | * 'mcbsp' class |
| 242 | * multi channel buffered serial port controller |
| 243 | */ |
Tony Lindgren | 04aa67d | 2011-02-22 10:54:12 -0800 | [diff] [blame] | 244 | |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 245 | static struct omap_hwmod_class_sysconfig omap2430_mcbsp_sysc = { |
| 246 | .rev_offs = 0x007C, |
| 247 | .sysc_offs = 0x008C, |
| 248 | .sysc_flags = (SYSC_HAS_SOFTRESET), |
| 249 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 250 | }; |
| 251 | |
| 252 | static struct omap_hwmod_class omap2430_mcbsp_hwmod_class = { |
| 253 | .name = "mcbsp", |
| 254 | .sysc = &omap2430_mcbsp_sysc, |
| 255 | .rev = MCBSP_CONFIG_TYPE2, |
| 256 | }; |
| 257 | |
Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 258 | static struct omap_hwmod_opt_clk mcbsp_opt_clks[] = { |
| 259 | { .role = "pad_fck", .clk = "mcbsp_clks" }, |
| 260 | { .role = "prcm_fck", .clk = "func_96m_ck" }, |
| 261 | }; |
| 262 | |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 263 | /* mcbsp1 */ |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 264 | static struct omap_hwmod omap2430_mcbsp1_hwmod = { |
| 265 | .name = "mcbsp1", |
| 266 | .class = &omap2430_mcbsp_hwmod_class, |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 267 | .main_clk = "mcbsp1_fck", |
| 268 | .prcm = { |
| 269 | .omap2 = { |
| 270 | .prcm_reg_id = 1, |
| 271 | .module_bit = OMAP24XX_EN_MCBSP1_SHIFT, |
| 272 | .module_offs = CORE_MOD, |
| 273 | .idlest_reg_id = 1, |
| 274 | .idlest_idle_bit = OMAP24XX_ST_MCBSP1_SHIFT, |
| 275 | }, |
| 276 | }, |
Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 277 | .opt_clks = mcbsp_opt_clks, |
| 278 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 279 | }; |
| 280 | |
| 281 | /* mcbsp2 */ |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 282 | static struct omap_hwmod omap2430_mcbsp2_hwmod = { |
| 283 | .name = "mcbsp2", |
| 284 | .class = &omap2430_mcbsp_hwmod_class, |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 285 | .main_clk = "mcbsp2_fck", |
| 286 | .prcm = { |
| 287 | .omap2 = { |
| 288 | .prcm_reg_id = 1, |
| 289 | .module_bit = OMAP24XX_EN_MCBSP2_SHIFT, |
| 290 | .module_offs = CORE_MOD, |
| 291 | .idlest_reg_id = 1, |
| 292 | .idlest_idle_bit = OMAP24XX_ST_MCBSP2_SHIFT, |
| 293 | }, |
| 294 | }, |
Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 295 | .opt_clks = mcbsp_opt_clks, |
| 296 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 297 | }; |
| 298 | |
| 299 | /* mcbsp3 */ |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 300 | static struct omap_hwmod omap2430_mcbsp3_hwmod = { |
| 301 | .name = "mcbsp3", |
| 302 | .class = &omap2430_mcbsp_hwmod_class, |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 303 | .main_clk = "mcbsp3_fck", |
| 304 | .prcm = { |
| 305 | .omap2 = { |
| 306 | .prcm_reg_id = 1, |
| 307 | .module_bit = OMAP2430_EN_MCBSP3_SHIFT, |
| 308 | .module_offs = CORE_MOD, |
| 309 | .idlest_reg_id = 2, |
| 310 | .idlest_idle_bit = OMAP2430_ST_MCBSP3_SHIFT, |
| 311 | }, |
| 312 | }, |
Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 313 | .opt_clks = mcbsp_opt_clks, |
| 314 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 315 | }; |
| 316 | |
| 317 | /* mcbsp4 */ |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 318 | static struct omap_hwmod omap2430_mcbsp4_hwmod = { |
| 319 | .name = "mcbsp4", |
| 320 | .class = &omap2430_mcbsp_hwmod_class, |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 321 | .main_clk = "mcbsp4_fck", |
| 322 | .prcm = { |
| 323 | .omap2 = { |
| 324 | .prcm_reg_id = 1, |
| 325 | .module_bit = OMAP2430_EN_MCBSP4_SHIFT, |
| 326 | .module_offs = CORE_MOD, |
| 327 | .idlest_reg_id = 2, |
| 328 | .idlest_idle_bit = OMAP2430_ST_MCBSP4_SHIFT, |
| 329 | }, |
| 330 | }, |
Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 331 | .opt_clks = mcbsp_opt_clks, |
| 332 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 333 | }; |
| 334 | |
| 335 | /* mcbsp5 */ |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 336 | static struct omap_hwmod omap2430_mcbsp5_hwmod = { |
| 337 | .name = "mcbsp5", |
| 338 | .class = &omap2430_mcbsp_hwmod_class, |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 339 | .main_clk = "mcbsp5_fck", |
| 340 | .prcm = { |
| 341 | .omap2 = { |
| 342 | .prcm_reg_id = 1, |
| 343 | .module_bit = OMAP2430_EN_MCBSP5_SHIFT, |
| 344 | .module_offs = CORE_MOD, |
| 345 | .idlest_reg_id = 2, |
| 346 | .idlest_idle_bit = OMAP2430_ST_MCBSP5_SHIFT, |
| 347 | }, |
| 348 | }, |
Peter Ujfalusi | db382a8 | 2012-06-18 16:18:43 -0600 | [diff] [blame] | 349 | .opt_clks = mcbsp_opt_clks, |
| 350 | .opt_clks_cnt = ARRAY_SIZE(mcbsp_opt_clks), |
Charulatha V | 37801b3 | 2011-02-24 12:51:46 -0800 | [diff] [blame] | 351 | }; |
Tony Lindgren | 04aa67d | 2011-02-22 10:54:12 -0800 | [diff] [blame] | 352 | |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 353 | /* MMC/SD/SDIO common */ |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 354 | static struct omap_hwmod_class_sysconfig omap2430_mmc_sysc = { |
| 355 | .rev_offs = 0x1fc, |
| 356 | .sysc_offs = 0x10, |
| 357 | .syss_offs = 0x14, |
| 358 | .sysc_flags = (SYSC_HAS_CLOCKACTIVITY | SYSC_HAS_SIDLEMODE | |
| 359 | SYSC_HAS_ENAWAKEUP | SYSC_HAS_SOFTRESET | |
| 360 | SYSC_HAS_AUTOIDLE | SYSS_HAS_RESET_STATUS), |
| 361 | .idlemodes = (SIDLE_FORCE | SIDLE_NO | SIDLE_SMART), |
| 362 | .sysc_fields = &omap_hwmod_sysc_type1, |
| 363 | }; |
| 364 | |
| 365 | static struct omap_hwmod_class omap2430_mmc_class = { |
| 366 | .name = "mmc", |
| 367 | .sysc = &omap2430_mmc_sysc, |
| 368 | }; |
| 369 | |
| 370 | /* MMC/SD/SDIO1 */ |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 371 | static struct omap_hwmod_opt_clk omap2430_mmc1_opt_clks[] = { |
| 372 | { .role = "dbck", .clk = "mmchsdb1_fck" }, |
| 373 | }; |
| 374 | |
Andreas Fenkart | 5514343 | 2014-11-08 15:33:09 +0100 | [diff] [blame] | 375 | static struct omap_hsmmc_dev_attr mmc1_dev_attr = { |
Kishore Kadiyala | 6ab8946 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 376 | .flags = OMAP_HSMMC_SUPPORTS_DUAL_VOLT, |
| 377 | }; |
| 378 | |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 379 | static struct omap_hwmod omap2430_mmc1_hwmod = { |
| 380 | .name = "mmc1", |
| 381 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 382 | .opt_clks = omap2430_mmc1_opt_clks, |
| 383 | .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc1_opt_clks), |
| 384 | .main_clk = "mmchs1_fck", |
| 385 | .prcm = { |
| 386 | .omap2 = { |
| 387 | .module_offs = CORE_MOD, |
| 388 | .prcm_reg_id = 2, |
| 389 | .module_bit = OMAP2430_EN_MMCHS1_SHIFT, |
| 390 | .idlest_reg_id = 2, |
| 391 | .idlest_idle_bit = OMAP2430_ST_MMCHS1_SHIFT, |
| 392 | }, |
| 393 | }, |
Kishore Kadiyala | 6ab8946 | 2011-03-01 13:12:56 -0800 | [diff] [blame] | 394 | .dev_attr = &mmc1_dev_attr, |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 395 | .class = &omap2430_mmc_class, |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 396 | }; |
| 397 | |
| 398 | /* MMC/SD/SDIO2 */ |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 399 | static struct omap_hwmod_opt_clk omap2430_mmc2_opt_clks[] = { |
| 400 | { .role = "dbck", .clk = "mmchsdb2_fck" }, |
| 401 | }; |
| 402 | |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 403 | static struct omap_hwmod omap2430_mmc2_hwmod = { |
| 404 | .name = "mmc2", |
| 405 | .flags = HWMOD_CONTROL_OPT_CLKS_IN_RESET, |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 406 | .opt_clks = omap2430_mmc2_opt_clks, |
| 407 | .opt_clks_cnt = ARRAY_SIZE(omap2430_mmc2_opt_clks), |
| 408 | .main_clk = "mmchs2_fck", |
| 409 | .prcm = { |
| 410 | .omap2 = { |
| 411 | .module_offs = CORE_MOD, |
| 412 | .prcm_reg_id = 2, |
| 413 | .module_bit = OMAP2430_EN_MMCHS2_SHIFT, |
| 414 | .idlest_reg_id = 2, |
| 415 | .idlest_idle_bit = OMAP2430_ST_MMCHS2_SHIFT, |
| 416 | }, |
| 417 | }, |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 418 | .class = &omap2430_mmc_class, |
Paul Walmsley | bce06f3 | 2011-03-01 13:12:55 -0800 | [diff] [blame] | 419 | }; |
Kevin Hilman | 046465b | 2010-09-27 20:19:30 +0530 | [diff] [blame] | 420 | |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 421 | /* HDQ1W/1-wire */ |
| 422 | static struct omap_hwmod omap2430_hdq1w_hwmod = { |
| 423 | .name = "hdq1w", |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 424 | .main_clk = "hdq_fck", |
| 425 | .prcm = { |
| 426 | .omap2 = { |
| 427 | .module_offs = CORE_MOD, |
| 428 | .prcm_reg_id = 1, |
| 429 | .module_bit = OMAP24XX_EN_HDQ_SHIFT, |
| 430 | .idlest_reg_id = 1, |
| 431 | .idlest_idle_bit = OMAP24XX_ST_HDQ_SHIFT, |
| 432 | }, |
| 433 | }, |
| 434 | .class = &omap2_hdq1w_class, |
| 435 | }; |
| 436 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 437 | /* |
| 438 | * interfaces |
| 439 | */ |
| 440 | |
| 441 | /* L3 -> L4_CORE interface */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 442 | /* l3_core -> usbhsotg interface */ |
| 443 | static struct omap_hwmod_ocp_if omap2430_usbhsotg__l3 = { |
| 444 | .master = &omap2430_usbhsotg_hwmod, |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 445 | .slave = &omap2xxx_l3_main_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 446 | .clk = "core_l3_ck", |
| 447 | .user = OCP_USER_MPU, |
| 448 | }; |
| 449 | |
| 450 | /* L4 CORE -> I2C1 interface */ |
| 451 | static struct omap_hwmod_ocp_if omap2430_l4_core__i2c1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 452 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 453 | .slave = &omap2430_i2c1_hwmod, |
| 454 | .clk = "i2c1_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 455 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 456 | }; |
| 457 | |
| 458 | /* L4 CORE -> I2C2 interface */ |
| 459 | static struct omap_hwmod_ocp_if omap2430_l4_core__i2c2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 460 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 461 | .slave = &omap2430_i2c2_hwmod, |
| 462 | .clk = "i2c2_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 463 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 464 | }; |
| 465 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 466 | /* l4_core ->usbhsotg interface */ |
| 467 | static struct omap_hwmod_ocp_if omap2430_l4_core__usbhsotg = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 468 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 469 | .slave = &omap2430_usbhsotg_hwmod, |
| 470 | .clk = "usb_l4_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 471 | .user = OCP_USER_MPU, |
| 472 | }; |
| 473 | |
| 474 | /* L4 CORE -> MMC1 interface */ |
| 475 | static struct omap_hwmod_ocp_if omap2430_l4_core__mmc1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 476 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 477 | .slave = &omap2430_mmc1_hwmod, |
| 478 | .clk = "mmchs1_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 479 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 480 | }; |
| 481 | |
| 482 | /* L4 CORE -> MMC2 interface */ |
| 483 | static struct omap_hwmod_ocp_if omap2430_l4_core__mmc2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 484 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 485 | .slave = &omap2430_mmc2_hwmod, |
| 486 | .clk = "mmchs2_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 487 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 488 | }; |
| 489 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 490 | /* l4 core -> mcspi3 interface */ |
| 491 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcspi3 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 492 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 493 | .slave = &omap2430_mcspi3_hwmod, |
| 494 | .clk = "mcspi3_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 495 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 496 | }; |
| 497 | |
| 498 | /* IVA2 <- L3 interface */ |
| 499 | static struct omap_hwmod_ocp_if omap2430_l3__iva = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 500 | .master = &omap2xxx_l3_main_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 501 | .slave = &omap2430_iva_hwmod, |
Paul Walmsley | 3af35fb | 2012-04-19 04:04:38 -0600 | [diff] [blame] | 502 | .clk = "core_l3_ck", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 503 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 504 | }; |
| 505 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 506 | /* l4_wkup -> timer1 */ |
| 507 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__timer1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 508 | .master = &omap2xxx_l4_wkup_hwmod, |
| 509 | .slave = &omap2xxx_timer1_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 510 | .clk = "gpt1_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 511 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 512 | }; |
| 513 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 514 | /* l4_wkup -> wd_timer2 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 515 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__wd_timer2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 516 | .master = &omap2xxx_l4_wkup_hwmod, |
| 517 | .slave = &omap2xxx_wd_timer2_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 518 | .clk = "mpu_wdt_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 519 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 520 | }; |
| 521 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 522 | /* l4_wkup -> gpio1 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 523 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 524 | .master = &omap2xxx_l4_wkup_hwmod, |
| 525 | .slave = &omap2xxx_gpio1_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 526 | .clk = "gpios_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 527 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 528 | }; |
| 529 | |
| 530 | /* l4_wkup -> gpio2 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 531 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 532 | .master = &omap2xxx_l4_wkup_hwmod, |
| 533 | .slave = &omap2xxx_gpio2_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 534 | .clk = "gpios_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 535 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 536 | }; |
| 537 | |
| 538 | /* l4_wkup -> gpio3 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 539 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio3 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 540 | .master = &omap2xxx_l4_wkup_hwmod, |
| 541 | .slave = &omap2xxx_gpio3_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 542 | .clk = "gpios_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 543 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 544 | }; |
| 545 | |
| 546 | /* l4_wkup -> gpio4 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 547 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__gpio4 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 548 | .master = &omap2xxx_l4_wkup_hwmod, |
| 549 | .slave = &omap2xxx_gpio4_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 550 | .clk = "gpios_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 551 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 552 | }; |
| 553 | |
| 554 | /* l4_core -> gpio5 */ |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 555 | static struct omap_hwmod_ocp_if omap2430_l4_core__gpio5 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 556 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 557 | .slave = &omap2430_gpio5_hwmod, |
| 558 | .clk = "gpio5_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 559 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 560 | }; |
| 561 | |
| 562 | /* dma_system -> L3 */ |
| 563 | static struct omap_hwmod_ocp_if omap2430_dma_system__l3 = { |
| 564 | .master = &omap2430_dma_system_hwmod, |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 565 | .slave = &omap2xxx_l3_main_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 566 | .clk = "core_l3_ck", |
| 567 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 568 | }; |
| 569 | |
| 570 | /* l4_core -> dma_system */ |
| 571 | static struct omap_hwmod_ocp_if omap2430_l4_core__dma_system = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 572 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 573 | .slave = &omap2430_dma_system_hwmod, |
| 574 | .clk = "sdma_ick", |
| 575 | .addr = omap2_dma_system_addrs, |
| 576 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 577 | }; |
| 578 | |
| 579 | /* l4_core -> mailbox */ |
| 580 | static struct omap_hwmod_ocp_if omap2430_l4_core__mailbox = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 581 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 582 | .slave = &omap2430_mailbox_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 583 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 584 | }; |
| 585 | |
| 586 | /* l4_core -> mcbsp1 */ |
| 587 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp1 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 588 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 589 | .slave = &omap2430_mcbsp1_hwmod, |
| 590 | .clk = "mcbsp1_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 591 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 592 | }; |
| 593 | |
| 594 | /* l4_core -> mcbsp2 */ |
| 595 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp2 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 596 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 597 | .slave = &omap2430_mcbsp2_hwmod, |
| 598 | .clk = "mcbsp2_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 599 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 600 | }; |
| 601 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 602 | /* l4_core -> mcbsp3 */ |
| 603 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp3 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 604 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 605 | .slave = &omap2430_mcbsp3_hwmod, |
| 606 | .clk = "mcbsp3_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 607 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 608 | }; |
| 609 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 610 | /* l4_core -> mcbsp4 */ |
| 611 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp4 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 612 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 613 | .slave = &omap2430_mcbsp4_hwmod, |
| 614 | .clk = "mcbsp4_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 615 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 616 | }; |
| 617 | |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 618 | /* l4_core -> mcbsp5 */ |
| 619 | static struct omap_hwmod_ocp_if omap2430_l4_core__mcbsp5 = { |
Paul Walmsley | cb48427 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 620 | .master = &omap2xxx_l4_core_hwmod, |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 621 | .slave = &omap2430_mcbsp5_hwmod, |
| 622 | .clk = "mcbsp5_ick", |
Paul Walmsley | 844a3b6 | 2012-04-19 04:04:33 -0600 | [diff] [blame] | 623 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 624 | }; |
| 625 | |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 626 | /* l4_core -> hdq1w */ |
| 627 | static struct omap_hwmod_ocp_if omap2430_l4_core__hdq1w = { |
| 628 | .master = &omap2xxx_l4_core_hwmod, |
| 629 | .slave = &omap2430_hdq1w_hwmod, |
| 630 | .clk = "hdq_ick", |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 631 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 632 | .flags = OMAP_FIREWALL_L4 | OCPIF_SWSUP_IDLE, |
| 633 | }; |
| 634 | |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 635 | /* l4_wkup -> 32ksync_counter */ |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 636 | static struct omap_hwmod_ocp_if omap2430_l4_wkup__counter_32k = { |
| 637 | .master = &omap2xxx_l4_wkup_hwmod, |
| 638 | .slave = &omap2xxx_counter_32k_hwmod, |
| 639 | .clk = "sync_32k_ick", |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 640 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 641 | }; |
| 642 | |
Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 643 | static struct omap_hwmod_ocp_if omap2430_l3__gpmc = { |
| 644 | .master = &omap2xxx_l3_main_hwmod, |
| 645 | .slave = &omap2xxx_gpmc_hwmod, |
| 646 | .clk = "core_l3_ck", |
Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 647 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
| 648 | }; |
| 649 | |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 650 | static struct omap_hwmod_ocp_if *omap2430_hwmod_ocp_ifs[] __initdata = { |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 651 | &omap2xxx_l3_main__l4_core, |
| 652 | &omap2xxx_mpu__l3_main, |
| 653 | &omap2xxx_dss__l3, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 654 | &omap2430_usbhsotg__l3, |
| 655 | &omap2430_l4_core__i2c1, |
| 656 | &omap2430_l4_core__i2c2, |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 657 | &omap2xxx_l4_core__l4_wkup, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 658 | &omap2_l4_core__uart1, |
| 659 | &omap2_l4_core__uart2, |
| 660 | &omap2_l4_core__uart3, |
| 661 | &omap2430_l4_core__usbhsotg, |
| 662 | &omap2430_l4_core__mmc1, |
| 663 | &omap2430_l4_core__mmc2, |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 664 | &omap2xxx_l4_core__mcspi1, |
| 665 | &omap2xxx_l4_core__mcspi2, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 666 | &omap2430_l4_core__mcspi3, |
| 667 | &omap2430_l3__iva, |
| 668 | &omap2430_l4_wkup__timer1, |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 669 | &omap2xxx_l4_core__timer2, |
| 670 | &omap2xxx_l4_core__timer3, |
| 671 | &omap2xxx_l4_core__timer4, |
| 672 | &omap2xxx_l4_core__timer5, |
| 673 | &omap2xxx_l4_core__timer6, |
| 674 | &omap2xxx_l4_core__timer7, |
| 675 | &omap2xxx_l4_core__timer8, |
| 676 | &omap2xxx_l4_core__timer9, |
| 677 | &omap2xxx_l4_core__timer10, |
| 678 | &omap2xxx_l4_core__timer11, |
| 679 | &omap2xxx_l4_core__timer12, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 680 | &omap2430_l4_wkup__wd_timer2, |
Paul Walmsley | 6a29755 | 2012-04-19 04:04:34 -0600 | [diff] [blame] | 681 | &omap2xxx_l4_core__dss, |
| 682 | &omap2xxx_l4_core__dss_dispc, |
| 683 | &omap2xxx_l4_core__dss_rfbi, |
| 684 | &omap2xxx_l4_core__dss_venc, |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 685 | &omap2430_l4_wkup__gpio1, |
| 686 | &omap2430_l4_wkup__gpio2, |
| 687 | &omap2430_l4_wkup__gpio3, |
| 688 | &omap2430_l4_wkup__gpio4, |
| 689 | &omap2430_l4_core__gpio5, |
| 690 | &omap2430_dma_system__l3, |
| 691 | &omap2430_l4_core__dma_system, |
| 692 | &omap2430_l4_core__mailbox, |
| 693 | &omap2430_l4_core__mcbsp1, |
| 694 | &omap2430_l4_core__mcbsp2, |
| 695 | &omap2430_l4_core__mcbsp3, |
| 696 | &omap2430_l4_core__mcbsp4, |
| 697 | &omap2430_l4_core__mcbsp5, |
Paul Walmsley | f32bd77 | 2012-05-08 11:34:28 -0600 | [diff] [blame] | 698 | &omap2430_l4_core__hdq1w, |
Paul Walmsley | e9b0a2f | 2012-09-23 17:28:25 -0600 | [diff] [blame] | 699 | &omap2xxx_l4_core__rng, |
Mark A. Greer | e569e99 | 2013-03-30 15:49:19 -0600 | [diff] [blame] | 700 | &omap2xxx_l4_core__sham, |
Mark A. Greer | 660ffd6 | 2012-12-21 09:28:09 -0700 | [diff] [blame] | 701 | &omap2xxx_l4_core__aes, |
Vaibhav Hiremath | c8d82ff | 2012-05-08 11:34:30 -0600 | [diff] [blame] | 702 | &omap2430_l4_wkup__counter_32k, |
Afzal Mohammed | 49484a6 | 2012-09-23 17:28:24 -0600 | [diff] [blame] | 703 | &omap2430_l3__gpmc, |
Paul Walmsley | 02bfc03 | 2009-09-03 20:14:05 +0300 | [diff] [blame] | 704 | NULL, |
| 705 | }; |
| 706 | |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 707 | int __init omap2430_hwmod_init(void) |
| 708 | { |
Kevin Hilman | 9ebfd28 | 2012-06-18 12:12:23 -0600 | [diff] [blame] | 709 | omap_hwmod_init(); |
Paul Walmsley | 0a78c5c | 2012-04-19 04:04:31 -0600 | [diff] [blame] | 710 | return omap_hwmod_register_links(omap2430_hwmod_ocp_ifs); |
Paul Walmsley | 7359154 | 2010-02-22 22:09:32 -0700 | [diff] [blame] | 711 | } |