Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 1 | /* |
| 2 | * OMAP4 Power domains framework |
| 3 | * |
Benoit Cousson | 7932870 | 2010-05-20 12:31:11 -0600 | [diff] [blame] | 4 | * Copyright (C) 2009-2010 Texas Instruments, Inc. |
| 5 | * Copyright (C) 2009-2010 Nokia Corporation |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 6 | * |
| 7 | * Abhijit Pagare (abhijitpagare@ti.com) |
| 8 | * Benoit Cousson (b-cousson@ti.com) |
Benoit Cousson | 7932870 | 2010-05-20 12:31:11 -0600 | [diff] [blame] | 9 | * Paul Walmsley (paul@pwsan.com) |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 10 | * |
| 11 | * This file is automatically generated from the OMAP hardware databases. |
| 12 | * We respectfully ask that any modifications to this file be coordinated |
| 13 | * with the public linux-omap@vger.kernel.org mailing list and the |
| 14 | * authors above to ensure that the autogeneration scripts are kept |
| 15 | * up-to-date with the file contents. |
| 16 | * |
| 17 | * This program is free software; you can redistribute it and/or modify |
| 18 | * it under the terms of the GNU General Public License version 2 as |
| 19 | * published by the Free Software Foundation. |
| 20 | */ |
| 21 | |
Paul Walmsley | 6e01478 | 2010-12-21 20:01:20 -0700 | [diff] [blame] | 22 | #include <linux/kernel.h> |
| 23 | #include <linux/init.h> |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 24 | |
| 25 | #include <plat/powerdomain.h> |
Paul Walmsley | 6e01478 | 2010-12-21 20:01:20 -0700 | [diff] [blame] | 26 | #include "powerdomains.h" |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 27 | |
| 28 | #include "prcm-common.h" |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 29 | #include "prcm44xx.h" |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 30 | #include "prm-regbits-44xx.h" |
Paul Walmsley | d198b51 | 2010-12-21 15:30:54 -0700 | [diff] [blame] | 31 | #include "prm44xx.h" |
| 32 | #include "prcm_mpu44xx.h" |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 33 | |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 34 | /* core_44xx_pwrdm: CORE power domain */ |
| 35 | static struct powerdomain core_44xx_pwrdm = { |
| 36 | .name = "core_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 37 | .prcm_offs = OMAP4430_PRM_CORE_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 38 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 39 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 40 | .pwrsts = PWRSTS_RET_ON, |
| 41 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
| 42 | .banks = 5, |
| 43 | .pwrsts_mem_ret = { |
| 44 | [0] = PWRDM_POWER_OFF, /* core_nret_bank */ |
| 45 | [1] = PWRSTS_OFF_RET, /* core_ocmram */ |
| 46 | [2] = PWRDM_POWER_RET, /* core_other_bank */ |
| 47 | [3] = PWRSTS_OFF_RET, /* ducati_l2ram */ |
| 48 | [4] = PWRSTS_OFF_RET, /* ducati_unicache */ |
| 49 | }, |
| 50 | .pwrsts_mem_on = { |
| 51 | [0] = PWRDM_POWER_ON, /* core_nret_bank */ |
| 52 | [1] = PWRSTS_OFF_RET, /* core_ocmram */ |
| 53 | [2] = PWRDM_POWER_ON, /* core_other_bank */ |
| 54 | [3] = PWRDM_POWER_ON, /* ducati_l2ram */ |
| 55 | [4] = PWRDM_POWER_ON, /* ducati_unicache */ |
| 56 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 57 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | /* gfx_44xx_pwrdm: 3D accelerator power domain */ |
| 61 | static struct powerdomain gfx_44xx_pwrdm = { |
| 62 | .name = "gfx_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 63 | .prcm_offs = OMAP4430_PRM_GFX_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 64 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 65 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 66 | .pwrsts = PWRSTS_OFF_ON, |
| 67 | .banks = 1, |
| 68 | .pwrsts_mem_ret = { |
| 69 | [0] = PWRDM_POWER_OFF, /* gfx_mem */ |
| 70 | }, |
| 71 | .pwrsts_mem_on = { |
| 72 | [0] = PWRDM_POWER_ON, /* gfx_mem */ |
| 73 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 74 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 75 | }; |
| 76 | |
| 77 | /* abe_44xx_pwrdm: Audio back end power domain */ |
| 78 | static struct powerdomain abe_44xx_pwrdm = { |
| 79 | .name = "abe_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 80 | .prcm_offs = OMAP4430_PRM_ABE_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 81 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 82 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 83 | .pwrsts = PWRSTS_OFF_RET_ON, |
| 84 | .pwrsts_logic_ret = PWRDM_POWER_OFF, |
| 85 | .banks = 2, |
| 86 | .pwrsts_mem_ret = { |
| 87 | [0] = PWRDM_POWER_RET, /* aessmem */ |
| 88 | [1] = PWRDM_POWER_OFF, /* periphmem */ |
| 89 | }, |
| 90 | .pwrsts_mem_on = { |
| 91 | [0] = PWRDM_POWER_ON, /* aessmem */ |
| 92 | [1] = PWRDM_POWER_ON, /* periphmem */ |
| 93 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 94 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 95 | }; |
| 96 | |
| 97 | /* dss_44xx_pwrdm: Display subsystem power domain */ |
| 98 | static struct powerdomain dss_44xx_pwrdm = { |
| 99 | .name = "dss_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 100 | .prcm_offs = OMAP4430_PRM_DSS_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 101 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 102 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 103 | .pwrsts = PWRSTS_OFF_RET_ON, |
Rajendra Nayak | bb722f3 | 2010-09-27 14:02:56 -0600 | [diff] [blame] | 104 | .pwrsts_logic_ret = PWRSTS_OFF, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 105 | .banks = 1, |
| 106 | .pwrsts_mem_ret = { |
| 107 | [0] = PWRDM_POWER_OFF, /* dss_mem */ |
| 108 | }, |
| 109 | .pwrsts_mem_on = { |
| 110 | [0] = PWRDM_POWER_ON, /* dss_mem */ |
| 111 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 112 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 113 | }; |
| 114 | |
| 115 | /* tesla_44xx_pwrdm: Tesla processor power domain */ |
| 116 | static struct powerdomain tesla_44xx_pwrdm = { |
| 117 | .name = "tesla_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 118 | .prcm_offs = OMAP4430_PRM_TESLA_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 119 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 120 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 121 | .pwrsts = PWRSTS_OFF_RET_ON, |
| 122 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
| 123 | .banks = 3, |
| 124 | .pwrsts_mem_ret = { |
| 125 | [0] = PWRDM_POWER_RET, /* tesla_edma */ |
| 126 | [1] = PWRSTS_OFF_RET, /* tesla_l1 */ |
| 127 | [2] = PWRSTS_OFF_RET, /* tesla_l2 */ |
| 128 | }, |
| 129 | .pwrsts_mem_on = { |
| 130 | [0] = PWRDM_POWER_ON, /* tesla_edma */ |
| 131 | [1] = PWRDM_POWER_ON, /* tesla_l1 */ |
| 132 | [2] = PWRDM_POWER_ON, /* tesla_l2 */ |
| 133 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 134 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 135 | }; |
| 136 | |
| 137 | /* wkup_44xx_pwrdm: Wake-up power domain */ |
| 138 | static struct powerdomain wkup_44xx_pwrdm = { |
| 139 | .name = "wkup_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 140 | .prcm_offs = OMAP4430_PRM_WKUP_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 141 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 142 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
Rajendra Nayak | d3353e1 | 2010-05-18 20:24:01 -0600 | [diff] [blame] | 143 | .pwrsts = PWRSTS_ON, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 144 | .banks = 1, |
| 145 | .pwrsts_mem_ret = { |
| 146 | [0] = PWRDM_POWER_OFF, /* wkup_bank */ |
| 147 | }, |
| 148 | .pwrsts_mem_on = { |
| 149 | [0] = PWRDM_POWER_ON, /* wkup_bank */ |
| 150 | }, |
| 151 | }; |
| 152 | |
| 153 | /* cpu0_44xx_pwrdm: MPU0 processor and Neon coprocessor power domain */ |
| 154 | static struct powerdomain cpu0_44xx_pwrdm = { |
| 155 | .name = "cpu0_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 156 | .prcm_offs = OMAP4430_PRCM_MPU_CPU0_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 157 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 158 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 159 | .pwrsts = PWRSTS_OFF_RET_ON, |
| 160 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
| 161 | .banks = 1, |
| 162 | .pwrsts_mem_ret = { |
| 163 | [0] = PWRSTS_OFF_RET, /* cpu0_l1 */ |
| 164 | }, |
| 165 | .pwrsts_mem_on = { |
| 166 | [0] = PWRDM_POWER_ON, /* cpu0_l1 */ |
| 167 | }, |
| 168 | }; |
| 169 | |
| 170 | /* cpu1_44xx_pwrdm: MPU1 processor and Neon coprocessor power domain */ |
| 171 | static struct powerdomain cpu1_44xx_pwrdm = { |
| 172 | .name = "cpu1_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 173 | .prcm_offs = OMAP4430_PRCM_MPU_CPU1_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 174 | .prcm_partition = OMAP4430_PRCM_MPU_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 175 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 176 | .pwrsts = PWRSTS_OFF_RET_ON, |
| 177 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
| 178 | .banks = 1, |
| 179 | .pwrsts_mem_ret = { |
| 180 | [0] = PWRSTS_OFF_RET, /* cpu1_l1 */ |
| 181 | }, |
| 182 | .pwrsts_mem_on = { |
| 183 | [0] = PWRDM_POWER_ON, /* cpu1_l1 */ |
| 184 | }, |
| 185 | }; |
| 186 | |
| 187 | /* emu_44xx_pwrdm: Emulation power domain */ |
| 188 | static struct powerdomain emu_44xx_pwrdm = { |
| 189 | .name = "emu_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 190 | .prcm_offs = OMAP4430_PRM_EMU_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 191 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 192 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 193 | .pwrsts = PWRSTS_OFF_ON, |
| 194 | .banks = 1, |
| 195 | .pwrsts_mem_ret = { |
| 196 | [0] = PWRDM_POWER_OFF, /* emu_bank */ |
| 197 | }, |
| 198 | .pwrsts_mem_on = { |
| 199 | [0] = PWRDM_POWER_ON, /* emu_bank */ |
| 200 | }, |
| 201 | }; |
| 202 | |
| 203 | /* mpu_44xx_pwrdm: Modena processor and the Neon coprocessor power domain */ |
| 204 | static struct powerdomain mpu_44xx_pwrdm = { |
| 205 | .name = "mpu_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 206 | .prcm_offs = OMAP4430_PRM_MPU_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 207 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 208 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 209 | .pwrsts = PWRSTS_OFF_RET_ON, |
| 210 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
| 211 | .banks = 3, |
| 212 | .pwrsts_mem_ret = { |
| 213 | [0] = PWRSTS_OFF_RET, /* mpu_l1 */ |
| 214 | [1] = PWRSTS_OFF_RET, /* mpu_l2 */ |
| 215 | [2] = PWRDM_POWER_RET, /* mpu_ram */ |
| 216 | }, |
| 217 | .pwrsts_mem_on = { |
| 218 | [0] = PWRDM_POWER_ON, /* mpu_l1 */ |
| 219 | [1] = PWRDM_POWER_ON, /* mpu_l2 */ |
| 220 | [2] = PWRDM_POWER_ON, /* mpu_ram */ |
| 221 | }, |
| 222 | }; |
| 223 | |
| 224 | /* ivahd_44xx_pwrdm: IVA-HD power domain */ |
| 225 | static struct powerdomain ivahd_44xx_pwrdm = { |
| 226 | .name = "ivahd_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 227 | .prcm_offs = OMAP4430_PRM_IVAHD_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 228 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 229 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 230 | .pwrsts = PWRSTS_OFF_RET_ON, |
| 231 | .pwrsts_logic_ret = PWRDM_POWER_OFF, |
| 232 | .banks = 4, |
| 233 | .pwrsts_mem_ret = { |
| 234 | [0] = PWRDM_POWER_OFF, /* hwa_mem */ |
| 235 | [1] = PWRSTS_OFF_RET, /* sl2_mem */ |
| 236 | [2] = PWRSTS_OFF_RET, /* tcm1_mem */ |
| 237 | [3] = PWRSTS_OFF_RET, /* tcm2_mem */ |
| 238 | }, |
| 239 | .pwrsts_mem_on = { |
| 240 | [0] = PWRDM_POWER_ON, /* hwa_mem */ |
| 241 | [1] = PWRDM_POWER_ON, /* sl2_mem */ |
| 242 | [2] = PWRDM_POWER_ON, /* tcm1_mem */ |
| 243 | [3] = PWRDM_POWER_ON, /* tcm2_mem */ |
| 244 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 245 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 246 | }; |
| 247 | |
| 248 | /* cam_44xx_pwrdm: Camera subsystem power domain */ |
| 249 | static struct powerdomain cam_44xx_pwrdm = { |
| 250 | .name = "cam_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 251 | .prcm_offs = OMAP4430_PRM_CAM_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 252 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 253 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 254 | .pwrsts = PWRSTS_OFF_ON, |
| 255 | .banks = 1, |
| 256 | .pwrsts_mem_ret = { |
| 257 | [0] = PWRDM_POWER_OFF, /* cam_mem */ |
| 258 | }, |
| 259 | .pwrsts_mem_on = { |
| 260 | [0] = PWRDM_POWER_ON, /* cam_mem */ |
| 261 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 262 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 263 | }; |
| 264 | |
| 265 | /* l3init_44xx_pwrdm: L3 initators pheripherals power domain */ |
| 266 | static struct powerdomain l3init_44xx_pwrdm = { |
| 267 | .name = "l3init_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 268 | .prcm_offs = OMAP4430_PRM_L3INIT_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 269 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 270 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 271 | .pwrsts = PWRSTS_OFF_RET_ON, |
| 272 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
| 273 | .banks = 1, |
| 274 | .pwrsts_mem_ret = { |
| 275 | [0] = PWRDM_POWER_OFF, /* l3init_bank1 */ |
| 276 | }, |
| 277 | .pwrsts_mem_on = { |
| 278 | [0] = PWRDM_POWER_ON, /* l3init_bank1 */ |
| 279 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 280 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 281 | }; |
| 282 | |
| 283 | /* l4per_44xx_pwrdm: Target peripherals power domain */ |
| 284 | static struct powerdomain l4per_44xx_pwrdm = { |
| 285 | .name = "l4per_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 286 | .prcm_offs = OMAP4430_PRM_L4PER_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 287 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 288 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 289 | .pwrsts = PWRSTS_OFF_RET_ON, |
| 290 | .pwrsts_logic_ret = PWRSTS_OFF_RET, |
| 291 | .banks = 2, |
| 292 | .pwrsts_mem_ret = { |
| 293 | [0] = PWRDM_POWER_OFF, /* nonretained_bank */ |
| 294 | [1] = PWRDM_POWER_RET, /* retained_bank */ |
| 295 | }, |
| 296 | .pwrsts_mem_on = { |
| 297 | [0] = PWRDM_POWER_ON, /* nonretained_bank */ |
| 298 | [1] = PWRDM_POWER_ON, /* retained_bank */ |
| 299 | }, |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 300 | .flags = PWRDM_HAS_LOWPOWERSTATECHANGE, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 301 | }; |
| 302 | |
| 303 | /* |
| 304 | * always_on_core_44xx_pwrdm: Always ON logic that sits in VDD_CORE voltage |
| 305 | * domain |
| 306 | */ |
| 307 | static struct powerdomain always_on_core_44xx_pwrdm = { |
| 308 | .name = "always_on_core_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 309 | .prcm_offs = OMAP4430_PRM_ALWAYS_ON_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 310 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 311 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
Rajendra Nayak | d3353e1 | 2010-05-18 20:24:01 -0600 | [diff] [blame] | 312 | .pwrsts = PWRSTS_ON, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 313 | }; |
| 314 | |
| 315 | /* cefuse_44xx_pwrdm: Customer efuse controller power domain */ |
| 316 | static struct powerdomain cefuse_44xx_pwrdm = { |
| 317 | .name = "cefuse_pwrdm", |
Paul Walmsley | cdb54c4 | 2010-12-21 15:30:55 -0700 | [diff] [blame] | 318 | .prcm_offs = OMAP4430_PRM_CEFUSE_INST, |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 319 | .prcm_partition = OMAP4430_PRM_PARTITION, |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 320 | .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP4430), |
| 321 | .pwrsts = PWRSTS_OFF_ON, |
| 322 | }; |
| 323 | |
| 324 | /* |
| 325 | * The following power domains are not under SW control |
| 326 | * |
| 327 | * always_on_iva |
| 328 | * always_on_mpu |
| 329 | * stdefuse |
| 330 | */ |
| 331 | |
Paul Walmsley | 6e01478 | 2010-12-21 20:01:20 -0700 | [diff] [blame] | 332 | /* As powerdomains are added or removed above, this list must also be changed */ |
| 333 | static struct powerdomain *powerdomains_omap44xx[] __initdata = { |
| 334 | &core_44xx_pwrdm, |
| 335 | &gfx_44xx_pwrdm, |
| 336 | &abe_44xx_pwrdm, |
| 337 | &dss_44xx_pwrdm, |
| 338 | &tesla_44xx_pwrdm, |
| 339 | &wkup_44xx_pwrdm, |
| 340 | &cpu0_44xx_pwrdm, |
| 341 | &cpu1_44xx_pwrdm, |
| 342 | &emu_44xx_pwrdm, |
| 343 | &mpu_44xx_pwrdm, |
| 344 | &ivahd_44xx_pwrdm, |
| 345 | &cam_44xx_pwrdm, |
| 346 | &l3init_44xx_pwrdm, |
| 347 | &l4per_44xx_pwrdm, |
| 348 | &always_on_core_44xx_pwrdm, |
| 349 | &cefuse_44xx_pwrdm, |
| 350 | NULL |
| 351 | }; |
Abhijit Pagare | f37c6df | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 352 | |
Paul Walmsley | 6e01478 | 2010-12-21 20:01:20 -0700 | [diff] [blame] | 353 | void __init omap44xx_powerdomains_init(void) |
| 354 | { |
| 355 | pwrdm_init(powerdomains_omap44xx, &omap4_pwrdm_operations); |
| 356 | } |