2 * OMAP2XXX powerdomain definitions
4 * Copyright (C) 2007-2008 Texas Instruments, Inc.
5 * Copyright (C) 2007-2010 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 <plat/powerdomain.h>
18 #include "powerdomains2xxx_3xxx_data.h"
19 #include "powerdomains.h"
21 #include "prcm-common.h"
22 #include "prm2xxx_3xxx.h"
23 #include "prm-regbits-24xx.h"
25 /* 24XX powerdomains and dependencies */
29 static struct powerdomain dsp_pwrdm = {
31 .prcm_offs = OMAP24XX_DSP_MOD,
32 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX),
33 .pwrsts = PWRSTS_OFF_RET_ON,
34 .pwrsts_logic_ret = PWRDM_POWER_RET,
37 [0] = PWRDM_POWER_RET,
44 static struct powerdomain mpu_24xx_pwrdm = {
47 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX),
48 .pwrsts = PWRSTS_OFF_RET_ON,
49 .pwrsts_logic_ret = PWRSTS_OFF_RET,
52 [0] = PWRDM_POWER_RET,
59 static struct powerdomain core_24xx_pwrdm = {
61 .prcm_offs = CORE_MOD,
62 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP24XX),
63 .pwrsts = PWRSTS_OFF_RET_ON,
66 [0] = PWRSTS_OFF_RET, /* MEM1RETSTATE */
67 [1] = PWRSTS_OFF_RET, /* MEM2RETSTATE */
68 [2] = PWRSTS_OFF_RET, /* MEM3RETSTATE */
71 [0] = PWRSTS_OFF_RET_ON, /* MEM1ONSTATE */
72 [1] = PWRSTS_OFF_RET_ON, /* MEM2ONSTATE */
73 [2] = PWRSTS_OFF_RET_ON, /* MEM3ONSTATE */
79 * 2430-specific powerdomains
82 #ifdef CONFIG_ARCH_OMAP2430
84 /* XXX 2430 KILLDOMAINWKUP bit? No current users apparently */
86 static struct powerdomain mdm_pwrdm = {
88 .prcm_offs = OMAP2430_MDM_MOD,
89 .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2430),
90 .pwrsts = PWRSTS_OFF_RET_ON,
91 .pwrsts_logic_ret = PWRDM_POWER_RET,
94 [0] = PWRDM_POWER_RET, /* MEMRETSTATE */
97 [0] = PWRDM_POWER_ON, /* MEMONSTATE */
101 #endif /* CONFIG_ARCH_OMAP2430 */
103 /* As powerdomains are added or removed above, this list must also be changed */
104 static struct powerdomain *powerdomains_omap2xxx[] __initdata = {
109 #ifdef CONFIG_ARCH_OMAP2
115 #ifdef CONFIG_ARCH_OMAP2430
121 void __init omap2xxx_powerdomains_init(void)
123 pwrdm_init(powerdomains_omap2xxx, &omap2_pwrdm_operations);