blob: 704664c0e2594ddb82a02fdba2ae9375b58c7257 [file] [log] [blame]
Abhijit Pagaref37c6df2010-01-26 20:12:52 -07001/*
2 * OMAP4 Power domains framework
3 *
Benoit Cousson9a2a3602011-07-09 20:42:11 -06004 * Copyright (C) 2009-2011 Texas Instruments, Inc.
Paul Walmsley4cb49fe2011-03-07 19:28:15 -07005 * Copyright (C) 2009-2011 Nokia Corporation
Abhijit Pagaref37c6df2010-01-26 20:12:52 -07006 *
7 * Abhijit Pagare (abhijitpagare@ti.com)
8 * Benoit Cousson (b-cousson@ti.com)
Benoit Cousson79328702010-05-20 12:31:11 -06009 * Paul Walmsley (paul@pwsan.com)
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070010 *
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 Walmsley6e014782010-12-21 20:01:20 -070022#include <linux/kernel.h>
23#include <linux/init.h>
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070024
Paul Walmsley72e06d02010-12-21 21:05:16 -070025#include "powerdomain.h"
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070026
27#include "prcm-common.h"
Paul Walmsleya64bb9c2010-12-21 21:05:14 -070028#include "prcm44xx.h"
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070029#include "prm-regbits-44xx.h"
Paul Walmsleyd198b512010-12-21 15:30:54 -070030#include "prm44xx.h"
31#include "prcm_mpu44xx.h"
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070032
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070033/* core_44xx_pwrdm: CORE power domain */
34static struct powerdomain core_44xx_pwrdm = {
35 .name = "core_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +010036 .voltdm = { .name = "core" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -070037 .prcm_offs = OMAP4430_PRM_CORE_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -070038 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070039 .pwrsts = PWRSTS_RET_ON,
40 .pwrsts_logic_ret = PWRSTS_OFF_RET,
41 .banks = 5,
42 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070043 [0] = PWRSTS_OFF, /* core_nret_bank */
Benoit Cousson9a2a3602011-07-09 20:42:11 -060044 [1] = PWRSTS_RET, /* core_ocmram */
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070045 [2] = PWRSTS_RET, /* core_other_bank */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070046 [3] = PWRSTS_OFF_RET, /* ducati_l2ram */
47 [4] = PWRSTS_OFF_RET, /* ducati_unicache */
48 },
49 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070050 [0] = PWRSTS_ON, /* core_nret_bank */
Benoit Cousson9a2a3602011-07-09 20:42:11 -060051 [1] = PWRSTS_ON, /* core_ocmram */
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070052 [2] = PWRSTS_ON, /* core_other_bank */
53 [3] = PWRSTS_ON, /* ducati_l2ram */
54 [4] = PWRSTS_ON, /* ducati_unicache */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070055 },
Benoit Cousson0fef6582011-07-09 19:15:05 -060056 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070057};
58
59/* gfx_44xx_pwrdm: 3D accelerator power domain */
60static struct powerdomain gfx_44xx_pwrdm = {
61 .name = "gfx_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +010062 .voltdm = { .name = "core" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -070063 .prcm_offs = OMAP4430_PRM_GFX_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -070064 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070065 .pwrsts = PWRSTS_OFF_ON,
66 .banks = 1,
67 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070068 [0] = PWRSTS_OFF, /* gfx_mem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070069 },
70 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070071 [0] = PWRSTS_ON, /* gfx_mem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070072 },
Benoit Cousson0fef6582011-07-09 19:15:05 -060073 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070074};
75
76/* abe_44xx_pwrdm: Audio back end power domain */
77static struct powerdomain abe_44xx_pwrdm = {
78 .name = "abe_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +010079 .voltdm = { .name = "iva" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -070080 .prcm_offs = OMAP4430_PRM_ABE_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -070081 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070082 .pwrsts = PWRSTS_OFF_RET_ON,
Santosh Shilimkar3ed45662011-02-25 15:21:17 -070083 .pwrsts_logic_ret = PWRSTS_OFF,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070084 .banks = 2,
85 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070086 [0] = PWRSTS_RET, /* aessmem */
87 [1] = PWRSTS_OFF, /* periphmem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070088 },
89 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -070090 [0] = PWRSTS_ON, /* aessmem */
91 [1] = PWRSTS_ON, /* periphmem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070092 },
Benoit Cousson0fef6582011-07-09 19:15:05 -060093 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -070094};
95
96/* dss_44xx_pwrdm: Display subsystem power domain */
97static struct powerdomain dss_44xx_pwrdm = {
98 .name = "dss_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +010099 .voltdm = { .name = "core" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700100 .prcm_offs = OMAP4430_PRM_DSS_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700101 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700102 .pwrsts = PWRSTS_OFF_RET_ON,
Rajendra Nayakbb722f32010-09-27 14:02:56 -0600103 .pwrsts_logic_ret = PWRSTS_OFF,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700104 .banks = 1,
105 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700106 [0] = PWRSTS_OFF, /* dss_mem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700107 },
108 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700109 [0] = PWRSTS_ON, /* dss_mem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700110 },
Benoit Cousson0fef6582011-07-09 19:15:05 -0600111 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700112};
113
114/* tesla_44xx_pwrdm: Tesla processor power domain */
115static struct powerdomain tesla_44xx_pwrdm = {
116 .name = "tesla_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100117 .voltdm = { .name = "iva" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700118 .prcm_offs = OMAP4430_PRM_TESLA_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700119 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700120 .pwrsts = PWRSTS_OFF_RET_ON,
121 .pwrsts_logic_ret = PWRSTS_OFF_RET,
122 .banks = 3,
123 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700124 [0] = PWRSTS_RET, /* tesla_edma */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700125 [1] = PWRSTS_OFF_RET, /* tesla_l1 */
126 [2] = PWRSTS_OFF_RET, /* tesla_l2 */
127 },
128 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700129 [0] = PWRSTS_ON, /* tesla_edma */
130 [1] = PWRSTS_ON, /* tesla_l1 */
131 [2] = PWRSTS_ON, /* tesla_l2 */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700132 },
Benoit Cousson0fef6582011-07-09 19:15:05 -0600133 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700134};
135
136/* wkup_44xx_pwrdm: Wake-up power domain */
137static struct powerdomain wkup_44xx_pwrdm = {
138 .name = "wkup_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100139 .voltdm = { .name = "wakeup" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700140 .prcm_offs = OMAP4430_PRM_WKUP_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700141 .prcm_partition = OMAP4430_PRM_PARTITION,
Rajendra Nayakd3353e12010-05-18 20:24:01 -0600142 .pwrsts = PWRSTS_ON,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700143 .banks = 1,
144 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700145 [0] = PWRSTS_OFF, /* wkup_bank */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700146 },
147 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700148 [0] = PWRSTS_ON, /* wkup_bank */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700149 },
150};
151
152/* cpu0_44xx_pwrdm: MPU0 processor and Neon coprocessor power domain */
153static struct powerdomain cpu0_44xx_pwrdm = {
154 .name = "cpu0_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100155 .voltdm = { .name = "mpu" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700156 .prcm_offs = OMAP4430_PRCM_MPU_CPU0_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700157 .prcm_partition = OMAP4430_PRCM_MPU_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700158 .pwrsts = PWRSTS_OFF_RET_ON,
159 .pwrsts_logic_ret = PWRSTS_OFF_RET,
160 .banks = 1,
161 .pwrsts_mem_ret = {
162 [0] = PWRSTS_OFF_RET, /* cpu0_l1 */
163 },
164 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700165 [0] = PWRSTS_ON, /* cpu0_l1 */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700166 },
167};
168
169/* cpu1_44xx_pwrdm: MPU1 processor and Neon coprocessor power domain */
170static struct powerdomain cpu1_44xx_pwrdm = {
171 .name = "cpu1_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100172 .voltdm = { .name = "mpu" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700173 .prcm_offs = OMAP4430_PRCM_MPU_CPU1_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700174 .prcm_partition = OMAP4430_PRCM_MPU_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700175 .pwrsts = PWRSTS_OFF_RET_ON,
176 .pwrsts_logic_ret = PWRSTS_OFF_RET,
177 .banks = 1,
178 .pwrsts_mem_ret = {
179 [0] = PWRSTS_OFF_RET, /* cpu1_l1 */
180 },
181 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700182 [0] = PWRSTS_ON, /* cpu1_l1 */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700183 },
184};
185
186/* emu_44xx_pwrdm: Emulation power domain */
187static struct powerdomain emu_44xx_pwrdm = {
188 .name = "emu_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100189 .voltdm = { .name = "wakeup" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700190 .prcm_offs = OMAP4430_PRM_EMU_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700191 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700192 .pwrsts = PWRSTS_OFF_ON,
193 .banks = 1,
194 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700195 [0] = PWRSTS_OFF, /* emu_bank */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700196 },
197 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700198 [0] = PWRSTS_ON, /* emu_bank */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700199 },
200};
201
202/* mpu_44xx_pwrdm: Modena processor and the Neon coprocessor power domain */
203static struct powerdomain mpu_44xx_pwrdm = {
204 .name = "mpu_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100205 .voltdm = { .name = "mpu" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700206 .prcm_offs = OMAP4430_PRM_MPU_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700207 .prcm_partition = OMAP4430_PRM_PARTITION,
Santosh Shilimkara57341f2011-07-09 20:42:59 -0600208 .pwrsts = PWRSTS_RET_ON,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700209 .pwrsts_logic_ret = PWRSTS_OFF_RET,
210 .banks = 3,
211 .pwrsts_mem_ret = {
212 [0] = PWRSTS_OFF_RET, /* mpu_l1 */
213 [1] = PWRSTS_OFF_RET, /* mpu_l2 */
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700214 [2] = PWRSTS_RET, /* mpu_ram */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700215 },
216 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700217 [0] = PWRSTS_ON, /* mpu_l1 */
218 [1] = PWRSTS_ON, /* mpu_l2 */
219 [2] = PWRSTS_ON, /* mpu_ram */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700220 },
221};
222
223/* ivahd_44xx_pwrdm: IVA-HD power domain */
224static struct powerdomain ivahd_44xx_pwrdm = {
225 .name = "ivahd_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100226 .voltdm = { .name = "iva" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700227 .prcm_offs = OMAP4430_PRM_IVAHD_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700228 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700229 .pwrsts = PWRSTS_OFF_RET_ON,
Santosh Shilimkar3ed45662011-02-25 15:21:17 -0700230 .pwrsts_logic_ret = PWRSTS_OFF,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700231 .banks = 4,
232 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700233 [0] = PWRSTS_OFF, /* hwa_mem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700234 [1] = PWRSTS_OFF_RET, /* sl2_mem */
235 [2] = PWRSTS_OFF_RET, /* tcm1_mem */
236 [3] = PWRSTS_OFF_RET, /* tcm2_mem */
237 },
238 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700239 [0] = PWRSTS_ON, /* hwa_mem */
240 [1] = PWRSTS_ON, /* sl2_mem */
241 [2] = PWRSTS_ON, /* tcm1_mem */
242 [3] = PWRSTS_ON, /* tcm2_mem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700243 },
Benoit Cousson0fef6582011-07-09 19:15:05 -0600244 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700245};
246
247/* cam_44xx_pwrdm: Camera subsystem power domain */
248static struct powerdomain cam_44xx_pwrdm = {
249 .name = "cam_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100250 .voltdm = { .name = "core" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700251 .prcm_offs = OMAP4430_PRM_CAM_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700252 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700253 .pwrsts = PWRSTS_OFF_ON,
254 .banks = 1,
255 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700256 [0] = PWRSTS_OFF, /* cam_mem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700257 },
258 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700259 [0] = PWRSTS_ON, /* cam_mem */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700260 },
Benoit Cousson0fef6582011-07-09 19:15:05 -0600261 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700262};
263
264/* l3init_44xx_pwrdm: L3 initators pheripherals power domain */
265static struct powerdomain l3init_44xx_pwrdm = {
266 .name = "l3init_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100267 .voltdm = { .name = "core" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700268 .prcm_offs = OMAP4430_PRM_L3INIT_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700269 .prcm_partition = OMAP4430_PRM_PARTITION,
Santosh Shilimkar80f093652010-12-21 22:37:28 -0700270 .pwrsts = PWRSTS_RET_ON,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700271 .pwrsts_logic_ret = PWRSTS_OFF_RET,
272 .banks = 1,
273 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700274 [0] = PWRSTS_OFF, /* l3init_bank1 */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700275 },
276 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700277 [0] = PWRSTS_ON, /* l3init_bank1 */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700278 },
Benoit Cousson0fef6582011-07-09 19:15:05 -0600279 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700280};
281
282/* l4per_44xx_pwrdm: Target peripherals power domain */
283static struct powerdomain l4per_44xx_pwrdm = {
284 .name = "l4per_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100285 .voltdm = { .name = "core" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700286 .prcm_offs = OMAP4430_PRM_L4PER_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700287 .prcm_partition = OMAP4430_PRM_PARTITION,
Rajendra Nayak474e7ae2010-12-21 22:37:28 -0700288 .pwrsts = PWRSTS_RET_ON,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700289 .pwrsts_logic_ret = PWRSTS_OFF_RET,
290 .banks = 2,
291 .pwrsts_mem_ret = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700292 [0] = PWRSTS_OFF, /* nonretained_bank */
293 [1] = PWRSTS_RET, /* retained_bank */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700294 },
295 .pwrsts_mem_on = {
Paul Walmsley4cb49fe2011-03-07 19:28:15 -0700296 [0] = PWRSTS_ON, /* nonretained_bank */
297 [1] = PWRSTS_ON, /* retained_bank */
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700298 },
Benoit Cousson0fef6582011-07-09 19:15:05 -0600299 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700300};
301
302/*
303 * always_on_core_44xx_pwrdm: Always ON logic that sits in VDD_CORE voltage
304 * domain
305 */
306static struct powerdomain always_on_core_44xx_pwrdm = {
307 .name = "always_on_core_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100308 .voltdm = { .name = "core" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700309 .prcm_offs = OMAP4430_PRM_ALWAYS_ON_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700310 .prcm_partition = OMAP4430_PRM_PARTITION,
Rajendra Nayakd3353e12010-05-18 20:24:01 -0600311 .pwrsts = PWRSTS_ON,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700312};
313
314/* cefuse_44xx_pwrdm: Customer efuse controller power domain */
315static struct powerdomain cefuse_44xx_pwrdm = {
316 .name = "cefuse_pwrdm",
Benoit Cousson7e1b9402011-03-21 12:11:54 +0100317 .voltdm = { .name = "core" },
Paul Walmsleycdb54c42010-12-21 15:30:55 -0700318 .prcm_offs = OMAP4430_PRM_CEFUSE_INST,
Paul Walmsleya64bb9c2010-12-21 21:05:14 -0700319 .prcm_partition = OMAP4430_PRM_PARTITION,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700320 .pwrsts = PWRSTS_OFF_ON,
Benoit Cousson9a2a3602011-07-09 20:42:11 -0600321 .flags = PWRDM_HAS_LOWPOWERSTATECHANGE,
Abhijit Pagaref37c6df2010-01-26 20:12:52 -0700322};
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 Walmsley6e014782010-12-21 20:01:20 -0700332/* As powerdomains are added or removed above, this list must also be changed */
333static 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 Pagaref37c6df2010-01-26 20:12:52 -0700352
Paul Walmsley6e014782010-12-21 20:01:20 -0700353void __init omap44xx_powerdomains_init(void)
354{
Paul Walmsley129c65e2011-09-14 16:01:21 -0600355 pwrdm_register_platform_funcs(&omap4_pwrdm_operations);
356 pwrdm_register_pwrdms(powerdomains_omap44xx);
357 pwrdm_complete_init();
Paul Walmsley6e014782010-12-21 20:01:20 -0700358}