Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 1 | /* |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 2 | * OMAP2/3/4 powerdomain control |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 3 | * |
Paul Walmsley | 72e06d0 | 2010-12-21 21:05:16 -0700 | [diff] [blame] | 4 | * Copyright (C) 2007-2008, 2010 Texas Instruments, Inc. |
Paul Walmsley | 694606c | 2011-03-07 19:28:15 -0700 | [diff] [blame] | 5 | * Copyright (C) 2007-2011 Nokia Corporation |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 6 | * |
Paul Walmsley | 72e06d0 | 2010-12-21 21:05:16 -0700 | [diff] [blame] | 7 | * Paul Walmsley |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 8 | * |
| 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. |
Paul Walmsley | 6e01478 | 2010-12-21 20:01:20 -0700 | [diff] [blame] | 12 | * |
| 13 | * XXX This should be moved to the mach-omap2/ directory at the earliest |
| 14 | * opportunity. |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 15 | */ |
| 16 | |
Paul Walmsley | 72e06d0 | 2010-12-21 21:05:16 -0700 | [diff] [blame] | 17 | #ifndef __ARCH_ARM_MACH_OMAP2_POWERDOMAIN_H |
| 18 | #define __ARCH_ARM_MACH_OMAP2_POWERDOMAIN_H |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 19 | |
| 20 | #include <linux/types.h> |
| 21 | #include <linux/list.h> |
| 22 | |
Paul Walmsley | 72e06d0 | 2010-12-21 21:05:16 -0700 | [diff] [blame] | 23 | #include <linux/atomic.h> |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 24 | |
Tony Lindgren | ce491cf | 2009-10-20 09:40:47 -0700 | [diff] [blame] | 25 | #include <plat/cpu.h> |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 26 | |
Kevin Hilman | 8f1bec2 | 2011-03-23 07:22:23 -0700 | [diff] [blame] | 27 | #include "voltage.h" |
| 28 | |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 29 | /* Powerdomain basic power states */ |
| 30 | #define PWRDM_POWER_OFF 0x0 |
| 31 | #define PWRDM_POWER_RET 0x1 |
| 32 | #define PWRDM_POWER_INACTIVE 0x2 |
| 33 | #define PWRDM_POWER_ON 0x3 |
| 34 | |
Paul Walmsley | 2354eb5 | 2009-12-08 16:33:12 -0700 | [diff] [blame] | 35 | #define PWRDM_MAX_PWRSTS 4 |
| 36 | |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 37 | /* Powerdomain allowable state bitfields */ |
Rajendra Nayak | d3353e1 | 2010-05-18 20:24:01 -0600 | [diff] [blame] | 38 | #define PWRSTS_ON (1 << PWRDM_POWER_ON) |
Paul Walmsley | 694606c | 2011-03-07 19:28:15 -0700 | [diff] [blame] | 39 | #define PWRSTS_INACTIVE (1 << PWRDM_POWER_INACTIVE) |
| 40 | #define PWRSTS_RET (1 << PWRDM_POWER_RET) |
Rajendra Nayak | bb722f3 | 2010-09-27 14:02:56 -0600 | [diff] [blame] | 41 | #define PWRSTS_OFF (1 << PWRDM_POWER_OFF) |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 42 | |
Paul Walmsley | 694606c | 2011-03-07 19:28:15 -0700 | [diff] [blame] | 43 | #define PWRSTS_OFF_ON (PWRSTS_OFF | PWRSTS_ON) |
| 44 | #define PWRSTS_OFF_RET (PWRSTS_OFF | PWRSTS_RET) |
| 45 | #define PWRSTS_RET_ON (PWRSTS_RET | PWRSTS_ON) |
| 46 | #define PWRSTS_OFF_RET_ON (PWRSTS_OFF_RET | PWRSTS_ON) |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 47 | |
| 48 | |
Paul Walmsley | 0b7cbfb | 2008-06-25 18:09:37 -0600 | [diff] [blame] | 49 | /* Powerdomain flags */ |
| 50 | #define PWRDM_HAS_HDWR_SAR (1 << 0) /* hardware save-and-restore support */ |
Thara Gopinath | 3863c74 | 2009-12-08 16:33:15 -0700 | [diff] [blame] | 51 | #define PWRDM_HAS_MPU_QUIRK (1 << 1) /* MPU pwr domain has MEM bank 0 bits |
| 52 | * in MEM bank 1 position. This is |
| 53 | * true for OMAP3430 |
| 54 | */ |
Rajendra Nayak | 90dbc7b | 2010-05-18 20:24:03 -0600 | [diff] [blame] | 55 | #define PWRDM_HAS_LOWPOWERSTATECHANGE (1 << 2) /* |
| 56 | * support to transition from a |
| 57 | * sleep state to a lower sleep |
| 58 | * state without waking up the |
| 59 | * powerdomain |
| 60 | */ |
Paul Walmsley | 0b7cbfb | 2008-06-25 18:09:37 -0600 | [diff] [blame] | 61 | |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 62 | /* |
Abhijit Pagare | 38900c2 | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 63 | * Number of memory banks that are power-controllable. On OMAP4430, the |
| 64 | * maximum is 5. |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 65 | */ |
Abhijit Pagare | 38900c2 | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 66 | #define PWRDM_MAX_MEM_BANKS 5 |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 67 | |
Paul Walmsley | 8420bb1 | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 68 | /* |
| 69 | * Maximum number of clockdomains that can be associated with a powerdomain. |
Abhijit Pagare | 38900c2 | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 70 | * CORE powerdomain on OMAP4 is the worst case |
Paul Walmsley | 8420bb1 | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 71 | */ |
Abhijit Pagare | 38900c2 | 2010-01-26 20:12:52 -0700 | [diff] [blame] | 72 | #define PWRDM_MAX_CLKDMS 9 |
Paul Walmsley | 8420bb1 | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 73 | |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 74 | /* XXX A completely arbitrary number. What is reasonable here? */ |
| 75 | #define PWRDM_TRANSITION_BAILOUT 100000 |
| 76 | |
Paul Walmsley | 8420bb1 | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 77 | struct clockdomain; |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 78 | struct powerdomain; |
| 79 | |
Paul Walmsley | f0271d6 | 2010-01-26 20:13:02 -0700 | [diff] [blame] | 80 | /** |
| 81 | * struct powerdomain - OMAP powerdomain |
| 82 | * @name: Powerdomain name |
Kevin Hilman | 8f1bec2 | 2011-03-23 07:22:23 -0700 | [diff] [blame] | 83 | * @voltdm: voltagedomain containing this powerdomain |
Paul Walmsley | f0271d6 | 2010-01-26 20:13:02 -0700 | [diff] [blame] | 84 | * @prcm_offs: the address offset from CM_BASE/PRM_BASE |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 85 | * @prcm_partition: (OMAP4 only) the PRCM partition ID containing @prcm_offs |
Paul Walmsley | f0271d6 | 2010-01-26 20:13:02 -0700 | [diff] [blame] | 86 | * @pwrsts: Possible powerdomain power states |
| 87 | * @pwrsts_logic_ret: Possible logic power states when pwrdm in RETENTION |
| 88 | * @flags: Powerdomain flags |
| 89 | * @banks: Number of software-controllable memory banks in this powerdomain |
| 90 | * @pwrsts_mem_ret: Possible memory bank pwrstates when pwrdm in RETENTION |
| 91 | * @pwrsts_mem_on: Possible memory bank pwrstates when pwrdm in ON |
| 92 | * @pwrdm_clkdms: Clockdomains in this powerdomain |
| 93 | * @node: list_head linking all powerdomains |
| 94 | * @state: |
| 95 | * @state_counter: |
| 96 | * @timer: |
| 97 | * @state_timer: |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 98 | * |
| 99 | * @prcm_partition possible values are defined in mach-omap2/prcm44xx.h. |
Paul Walmsley | f0271d6 | 2010-01-26 20:13:02 -0700 | [diff] [blame] | 100 | */ |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 101 | struct powerdomain { |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 102 | const char *name; |
Kevin Hilman | 8f1bec2 | 2011-03-23 07:22:23 -0700 | [diff] [blame] | 103 | union { |
| 104 | const char *name; |
| 105 | struct voltagedomain *ptr; |
| 106 | } voltdm; |
Paul Walmsley | e0594b4 | 2010-01-26 20:13:01 -0700 | [diff] [blame] | 107 | const s16 prcm_offs; |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 108 | const u8 pwrsts; |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 109 | const u8 pwrsts_logic_ret; |
Paul Walmsley | 0b7cbfb | 2008-06-25 18:09:37 -0600 | [diff] [blame] | 110 | const u8 flags; |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 111 | const u8 banks; |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 112 | const u8 pwrsts_mem_ret[PWRDM_MAX_MEM_BANKS]; |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 113 | const u8 pwrsts_mem_on[PWRDM_MAX_MEM_BANKS]; |
Paul Walmsley | a64bb9c | 2010-12-21 21:05:14 -0700 | [diff] [blame] | 114 | const u8 prcm_partition; |
Paul Walmsley | 8420bb1 | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 115 | struct clockdomain *pwrdm_clkdms[PWRDM_MAX_CLKDMS]; |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 116 | struct list_head node; |
Peter 'p2' De Schrijver | ba20bb1 | 2008-10-15 17:48:43 +0300 | [diff] [blame] | 117 | int state; |
Paul Walmsley | 2354eb5 | 2009-12-08 16:33:12 -0700 | [diff] [blame] | 118 | unsigned state_counter[PWRDM_MAX_PWRSTS]; |
Thara Gopinath | cde08f8 | 2010-02-24 12:05:50 -0700 | [diff] [blame] | 119 | unsigned ret_logic_off_counter; |
| 120 | unsigned ret_mem_off_counter[PWRDM_MAX_MEM_BANKS]; |
Peter 'p2' De Schrijver | 331b93f | 2008-10-15 18:13:48 +0300 | [diff] [blame] | 121 | |
| 122 | #ifdef CONFIG_PM_DEBUG |
| 123 | s64 timer; |
Paul Walmsley | 2354eb5 | 2009-12-08 16:33:12 -0700 | [diff] [blame] | 124 | s64 state_timer[PWRDM_MAX_PWRSTS]; |
Peter 'p2' De Schrijver | 331b93f | 2008-10-15 18:13:48 +0300 | [diff] [blame] | 125 | #endif |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 126 | }; |
| 127 | |
Rajendra Nayak | 3b1e8b2 | 2010-12-21 20:01:18 -0700 | [diff] [blame] | 128 | /** |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 129 | * struct pwrdm_ops - Arch specific function implementations |
Rajendra Nayak | 3b1e8b2 | 2010-12-21 20:01:18 -0700 | [diff] [blame] | 130 | * @pwrdm_set_next_pwrst: Set the target power state for a pd |
| 131 | * @pwrdm_read_next_pwrst: Read the target power state set for a pd |
| 132 | * @pwrdm_read_pwrst: Read the current power state of a pd |
| 133 | * @pwrdm_read_prev_pwrst: Read the prev power state entered by the pd |
| 134 | * @pwrdm_set_logic_retst: Set the logic state in RET for a pd |
| 135 | * @pwrdm_set_mem_onst: Set the Memory state in ON for a pd |
| 136 | * @pwrdm_set_mem_retst: Set the Memory state in RET for a pd |
| 137 | * @pwrdm_read_logic_pwrst: Read the current logic state of a pd |
| 138 | * @pwrdm_read_prev_logic_pwrst: Read the previous logic state entered by a pd |
| 139 | * @pwrdm_read_logic_retst: Read the logic state in RET for a pd |
| 140 | * @pwrdm_read_mem_pwrst: Read the current memory state of a pd |
| 141 | * @pwrdm_read_prev_mem_pwrst: Read the previous memory state entered by a pd |
| 142 | * @pwrdm_read_mem_retst: Read the memory state in RET for a pd |
| 143 | * @pwrdm_clear_all_prev_pwrst: Clear all previous power states logged for a pd |
| 144 | * @pwrdm_enable_hdwr_sar: Enable Hardware Save-Restore feature for the pd |
| 145 | * @pwrdm_disable_hdwr_sar: Disable Hardware Save-Restore feature for a pd |
| 146 | * @pwrdm_set_lowpwrstchange: Enable pd transitions from a shallow to deep sleep |
| 147 | * @pwrdm_wait_transition: Wait for a pd state transition to complete |
| 148 | */ |
| 149 | struct pwrdm_ops { |
| 150 | int (*pwrdm_set_next_pwrst)(struct powerdomain *pwrdm, u8 pwrst); |
| 151 | int (*pwrdm_read_next_pwrst)(struct powerdomain *pwrdm); |
| 152 | int (*pwrdm_read_pwrst)(struct powerdomain *pwrdm); |
| 153 | int (*pwrdm_read_prev_pwrst)(struct powerdomain *pwrdm); |
| 154 | int (*pwrdm_set_logic_retst)(struct powerdomain *pwrdm, u8 pwrst); |
| 155 | int (*pwrdm_set_mem_onst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); |
| 156 | int (*pwrdm_set_mem_retst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); |
| 157 | int (*pwrdm_read_logic_pwrst)(struct powerdomain *pwrdm); |
| 158 | int (*pwrdm_read_prev_logic_pwrst)(struct powerdomain *pwrdm); |
| 159 | int (*pwrdm_read_logic_retst)(struct powerdomain *pwrdm); |
| 160 | int (*pwrdm_read_mem_pwrst)(struct powerdomain *pwrdm, u8 bank); |
| 161 | int (*pwrdm_read_prev_mem_pwrst)(struct powerdomain *pwrdm, u8 bank); |
| 162 | int (*pwrdm_read_mem_retst)(struct powerdomain *pwrdm, u8 bank); |
| 163 | int (*pwrdm_clear_all_prev_pwrst)(struct powerdomain *pwrdm); |
| 164 | int (*pwrdm_enable_hdwr_sar)(struct powerdomain *pwrdm); |
| 165 | int (*pwrdm_disable_hdwr_sar)(struct powerdomain *pwrdm); |
| 166 | int (*pwrdm_set_lowpwrstchange)(struct powerdomain *pwrdm); |
| 167 | int (*pwrdm_wait_transition)(struct powerdomain *pwrdm); |
| 168 | }; |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 169 | |
Paul Walmsley | 129c65e | 2011-09-14 16:01:21 -0600 | [diff] [blame] | 170 | int pwrdm_register_platform_funcs(struct pwrdm_ops *custom_funcs); |
| 171 | int pwrdm_register_pwrdms(struct powerdomain **pwrdm_list); |
| 172 | int pwrdm_complete_init(void); |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 173 | |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 174 | struct powerdomain *pwrdm_lookup(const char *name); |
| 175 | |
Peter 'p2' De Schrijver | a23456e | 2008-10-15 18:13:47 +0300 | [diff] [blame] | 176 | int pwrdm_for_each(int (*fn)(struct powerdomain *pwrdm, void *user), |
| 177 | void *user); |
Artem Bityutskiy | ee894b1 | 2009-10-01 10:01:55 +0300 | [diff] [blame] | 178 | int pwrdm_for_each_nolock(int (*fn)(struct powerdomain *pwrdm, void *user), |
| 179 | void *user); |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 180 | |
Paul Walmsley | 8420bb1 | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 181 | int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
| 182 | int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm); |
| 183 | int pwrdm_for_each_clkdm(struct powerdomain *pwrdm, |
| 184 | int (*fn)(struct powerdomain *pwrdm, |
| 185 | struct clockdomain *clkdm)); |
Kevin Hilman | 048a703 | 2011-03-16 15:52:47 -0700 | [diff] [blame^] | 186 | struct voltagedomain *pwrdm_get_voltdm(struct powerdomain *pwrdm); |
Paul Walmsley | 8420bb1 | 2008-08-19 11:08:44 +0300 | [diff] [blame] | 187 | |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 188 | int pwrdm_get_mem_bank_count(struct powerdomain *pwrdm); |
| 189 | |
| 190 | int pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst); |
| 191 | int pwrdm_read_next_pwrst(struct powerdomain *pwrdm); |
Paul Walmsley | fecb494 | 2009-01-27 19:12:50 -0700 | [diff] [blame] | 192 | int pwrdm_read_pwrst(struct powerdomain *pwrdm); |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 193 | int pwrdm_read_prev_pwrst(struct powerdomain *pwrdm); |
| 194 | int pwrdm_clear_all_prev_pwrst(struct powerdomain *pwrdm); |
| 195 | |
| 196 | int pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst); |
| 197 | int pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, u8 pwrst); |
| 198 | int pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, u8 pwrst); |
| 199 | |
| 200 | int pwrdm_read_logic_pwrst(struct powerdomain *pwrdm); |
| 201 | int pwrdm_read_prev_logic_pwrst(struct powerdomain *pwrdm); |
Thara Gopinath | 1e3d0d2 | 2010-02-24 12:05:49 -0700 | [diff] [blame] | 202 | int pwrdm_read_logic_retst(struct powerdomain *pwrdm); |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 203 | int pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank); |
| 204 | int pwrdm_read_prev_mem_pwrst(struct powerdomain *pwrdm, u8 bank); |
Thara Gopinath | 1e3d0d2 | 2010-02-24 12:05:49 -0700 | [diff] [blame] | 205 | int pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank); |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 206 | |
Paul Walmsley | 0b7cbfb | 2008-06-25 18:09:37 -0600 | [diff] [blame] | 207 | int pwrdm_enable_hdwr_sar(struct powerdomain *pwrdm); |
| 208 | int pwrdm_disable_hdwr_sar(struct powerdomain *pwrdm); |
| 209 | bool pwrdm_has_hdwr_sar(struct powerdomain *pwrdm); |
| 210 | |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 211 | int pwrdm_wait_transition(struct powerdomain *pwrdm); |
| 212 | |
Peter 'p2' De Schrijver | ba20bb1 | 2008-10-15 17:48:43 +0300 | [diff] [blame] | 213 | int pwrdm_state_switch(struct powerdomain *pwrdm); |
| 214 | int pwrdm_clkdm_state_switch(struct clockdomain *clkdm); |
| 215 | int pwrdm_pre_transition(void); |
| 216 | int pwrdm_post_transition(void); |
Manjunath Kondaiah G | 04aeae7 | 2010-10-08 09:58:35 -0700 | [diff] [blame] | 217 | int pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm); |
Kevin Hilman | 7f59567 | 2010-12-21 21:31:55 -0700 | [diff] [blame] | 218 | u32 pwrdm_get_context_loss_count(struct powerdomain *pwrdm); |
Paul Walmsley | 694606c | 2011-03-07 19:28:15 -0700 | [diff] [blame] | 219 | bool pwrdm_can_ever_lose_context(struct powerdomain *pwrdm); |
Peter 'p2' De Schrijver | ba20bb1 | 2008-10-15 17:48:43 +0300 | [diff] [blame] | 220 | |
Paul Walmsley | 8179488 | 2011-09-14 11:34:21 -0600 | [diff] [blame] | 221 | extern void omap242x_powerdomains_init(void); |
| 222 | extern void omap243x_powerdomains_init(void); |
Paul Walmsley | 6e01478 | 2010-12-21 20:01:20 -0700 | [diff] [blame] | 223 | extern void omap3xxx_powerdomains_init(void); |
| 224 | extern void omap44xx_powerdomains_init(void); |
| 225 | |
Paul Walmsley | 72e06d0 | 2010-12-21 21:05:16 -0700 | [diff] [blame] | 226 | extern struct pwrdm_ops omap2_pwrdm_operations; |
| 227 | extern struct pwrdm_ops omap3_pwrdm_operations; |
| 228 | extern struct pwrdm_ops omap4_pwrdm_operations; |
| 229 | |
| 230 | /* Common Internal functions used across OMAP rev's */ |
| 231 | extern u32 omap2_pwrdm_get_mem_bank_onstate_mask(u8 bank); |
| 232 | extern u32 omap2_pwrdm_get_mem_bank_retst_mask(u8 bank); |
| 233 | extern u32 omap2_pwrdm_get_mem_bank_stst_mask(u8 bank); |
| 234 | |
| 235 | extern struct powerdomain wkup_omap2_pwrdm; |
| 236 | extern struct powerdomain gfx_omap2_pwrdm; |
| 237 | |
| 238 | |
Paul Walmsley | ad67ef6 | 2008-08-19 11:08:40 +0300 | [diff] [blame] | 239 | #endif |