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