2 * OMAP2XXX powerdomain definitions
4 * Copyright (C) 2007-2008, 2011 Texas Instruments, Inc.
5 * Copyright (C) 2007-2011 Nokia Corporation
7 * Paul Walmsley, Jouni Högander
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
14 #include <linux/kernel.h>
15 #include <linux/init.h>
17 #include "powerdomain.h"
18 #include "powerdomains2xxx_3xxx_data.h"
20 #include "prcm-common.h"
21 #include "prm2xxx_3xxx.h"
22 #include "prm-regbits-24xx.h"
24 /* 24XX powerdomains and dependencies */
28 static struct powerdomain dsp_pwrdm = {
30 .prcm_offs = OMAP24XX_DSP_MOD,
31 .pwrsts = PWRSTS_OFF_RET_ON,
32 .pwrsts_logic_ret = PWRSTS_RET,
42 static struct powerdomain mpu_24xx_pwrdm = {
45 .pwrsts = PWRSTS_OFF_RET_ON,
46 .pwrsts_logic_ret = PWRSTS_OFF_RET,
56 static struct powerdomain core_24xx_pwrdm = {
58 .prcm_offs = CORE_MOD,
59 .pwrsts = PWRSTS_OFF_RET_ON,
62 [0] = PWRSTS_OFF_RET, /* MEM1RETSTATE */
63 [1] = PWRSTS_OFF_RET, /* MEM2RETSTATE */
64 [2] = PWRSTS_OFF_RET, /* MEM3RETSTATE */
67 [0] = PWRSTS_OFF_RET_ON, /* MEM1ONSTATE */
68 [1] = PWRSTS_OFF_RET_ON, /* MEM2ONSTATE */
69 [2] = PWRSTS_OFF_RET_ON, /* MEM3ONSTATE */
75 * 2430-specific powerdomains
78 /* XXX 2430 KILLDOMAINWKUP bit? No current users apparently */
80 static struct powerdomain mdm_pwrdm = {
82 .prcm_offs = OMAP2430_MDM_MOD,
83 .pwrsts = PWRSTS_OFF_RET_ON,
84 .pwrsts_logic_ret = PWRSTS_RET,
87 [0] = PWRSTS_RET, /* MEMRETSTATE */
90 [0] = PWRSTS_ON, /* MEMONSTATE */
98 static struct powerdomain *powerdomains_omap24xx[] __initdata = {
107 static struct powerdomain *powerdomains_omap2430[] __initdata = {
112 void __init omap242x_powerdomains_init(void)
114 if (!cpu_is_omap2420())
117 pwrdm_register_platform_funcs(&omap2_pwrdm_operations);
118 pwrdm_register_pwrdms(powerdomains_omap24xx);
119 pwrdm_complete_init();
122 void __init omap243x_powerdomains_init(void)
124 if (!cpu_is_omap2430())
127 pwrdm_register_platform_funcs(&omap2_pwrdm_operations);
128 pwrdm_register_pwrdms(powerdomains_omap24xx);
129 pwrdm_register_pwrdms(powerdomains_omap2430);
130 pwrdm_complete_init();