Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 1 | /* |
Dan Handley | e83b0ca | 2014-01-14 18:17:09 +0000 | [diff] [blame] | 2 | * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved. |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions are met: |
| 6 | * |
| 7 | * Redistributions of source code must retain the above copyright notice, this |
| 8 | * list of conditions and the following disclaimer. |
| 9 | * |
| 10 | * Redistributions in binary form must reproduce the above copyright notice, |
| 11 | * this list of conditions and the following disclaimer in the documentation |
| 12 | * and/or other materials provided with the distribution. |
| 13 | * |
| 14 | * Neither the name of ARM nor the names of its contributors may be used |
| 15 | * to endorse or promote products derived from this software without specific |
| 16 | * prior written permission. |
| 17 | * |
| 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 21 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 22 | * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 23 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 24 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 25 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 26 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 27 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 28 | * POSSIBILITY OF SUCH DAMAGE. |
| 29 | */ |
| 30 | |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 31 | #include <arch_helpers.h> |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 32 | #include <arm_gic.h> |
Dan Handley | 2bd4ef2 | 2014-04-09 13:14:54 +0100 | [diff] [blame] | 33 | #include <assert.h> |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 34 | #include <bakery_lock.h> |
| 35 | #include <cci400.h> |
Dan Handley | 2bd4ef2 | 2014-04-09 13:14:54 +0100 | [diff] [blame] | 36 | #include <mmio.h> |
| 37 | #include <platform.h> |
Dan Handley | 1c54d97 | 2014-06-20 12:02:01 +0100 | [diff] [blame] | 38 | #include <plat_config.h> |
Dan Handley | ed6ff95 | 2014-05-14 17:44:19 +0100 | [diff] [blame] | 39 | #include <platform_def.h> |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 40 | #include <psci.h> |
Dan Handley | 4d2e49d | 2014-04-11 11:52:12 +0100 | [diff] [blame] | 41 | #include "drivers/pwrc/fvp_pwrc.h" |
Dan Handley | ed6ff95 | 2014-05-14 17:44:19 +0100 | [diff] [blame] | 42 | #include "fvp_def.h" |
| 43 | #include "fvp_private.h" |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 44 | |
| 45 | /******************************************************************************* |
Vikram Kanigiri | 3b7c59b | 2014-03-21 11:57:10 +0000 | [diff] [blame] | 46 | * FVP handler called when an affinity instance is about to enter standby. |
| 47 | ******************************************************************************/ |
| 48 | int fvp_affinst_standby(unsigned int power_state) |
| 49 | { |
| 50 | unsigned int target_afflvl; |
| 51 | |
| 52 | /* Sanity check the requested state */ |
| 53 | target_afflvl = psci_get_pstate_afflvl(power_state); |
| 54 | |
| 55 | /* |
| 56 | * It's possible to enter standby only on affinity level 0 i.e. a cpu |
| 57 | * on the FVP. Ignore any other affinity level. |
| 58 | */ |
| 59 | if (target_afflvl != MPIDR_AFFLVL0) |
| 60 | return PSCI_E_INVALID_PARAMS; |
| 61 | |
Andrew Thoelke | 42e75a7 | 2014-04-28 12:28:39 +0100 | [diff] [blame] | 62 | /* |
| 63 | * Enter standby state |
| 64 | * dsb is good practice before using wfi to enter low power states |
| 65 | */ |
| 66 | dsb(); |
Vikram Kanigiri | 3b7c59b | 2014-03-21 11:57:10 +0000 | [diff] [blame] | 67 | wfi(); |
| 68 | |
| 69 | return PSCI_E_SUCCESS; |
| 70 | } |
| 71 | |
| 72 | /******************************************************************************* |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 73 | * FVP handler called when an affinity instance is about to be turned on. The |
| 74 | * level and mpidr determine the affinity instance. |
| 75 | ******************************************************************************/ |
| 76 | int fvp_affinst_on(unsigned long mpidr, |
| 77 | unsigned long sec_entrypoint, |
| 78 | unsigned long ns_entrypoint, |
| 79 | unsigned int afflvl, |
| 80 | unsigned int state) |
| 81 | { |
| 82 | int rc = PSCI_E_SUCCESS; |
| 83 | unsigned long linear_id; |
Dan Handley | e2712bc | 2014-04-10 15:37:22 +0100 | [diff] [blame] | 84 | mailbox_t *fvp_mboxes; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 85 | unsigned int psysr; |
| 86 | |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 87 | /* |
| 88 | * It's possible to turn on only affinity level 0 i.e. a cpu |
| 89 | * on the FVP. Ignore any other affinity level. |
| 90 | */ |
| 91 | if (afflvl != MPIDR_AFFLVL0) |
| 92 | goto exit; |
| 93 | |
| 94 | /* |
| 95 | * Ensure that we do not cancel an inflight power off request |
| 96 | * for the target cpu. That would leave it in a zombie wfi. |
| 97 | * Wait for it to power off, program the jump address for the |
| 98 | * target cpu and then program the power controller to turn |
| 99 | * that cpu on |
| 100 | */ |
| 101 | do { |
| 102 | psysr = fvp_pwrc_read_psysr(mpidr); |
| 103 | } while (psysr & PSYSR_AFF_L0); |
| 104 | |
| 105 | linear_id = platform_get_core_pos(mpidr); |
Dan Handley | e2712bc | 2014-04-10 15:37:22 +0100 | [diff] [blame] | 106 | fvp_mboxes = (mailbox_t *) (TZDRAM_BASE + MBOX_OFF); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 107 | fvp_mboxes[linear_id].value = sec_entrypoint; |
| 108 | flush_dcache_range((unsigned long) &fvp_mboxes[linear_id], |
| 109 | sizeof(unsigned long)); |
| 110 | |
| 111 | fvp_pwrc_write_pponr(mpidr); |
| 112 | |
| 113 | exit: |
| 114 | return rc; |
| 115 | } |
| 116 | |
| 117 | /******************************************************************************* |
| 118 | * FVP handler called when an affinity instance is about to be turned off. The |
| 119 | * level and mpidr determine the affinity instance. The 'state' arg. allows the |
| 120 | * platform to decide whether the cluster is being turned off and take apt |
| 121 | * actions. |
| 122 | * |
| 123 | * CAUTION: This function is called with coherent stacks so that caches can be |
| 124 | * turned off, flushed and coherency disabled. There is no guarantee that caches |
| 125 | * will remain turned on across calls to this function as each affinity level is |
| 126 | * dealt with. So do not write & read global variables across calls. It will be |
| 127 | * wise to do flush a write to the global to prevent unpredictable results. |
| 128 | ******************************************************************************/ |
| 129 | int fvp_affinst_off(unsigned long mpidr, |
| 130 | unsigned int afflvl, |
| 131 | unsigned int state) |
| 132 | { |
| 133 | int rc = PSCI_E_SUCCESS; |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 134 | unsigned int ectlr; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 135 | |
| 136 | switch (afflvl) { |
| 137 | case MPIDR_AFFLVL1: |
| 138 | if (state == PSCI_STATE_OFF) { |
| 139 | /* |
| 140 | * Disable coherency if this cluster is to be |
| 141 | * turned off |
| 142 | */ |
Dan Handley | 1c54d97 | 2014-06-20 12:02:01 +0100 | [diff] [blame] | 143 | if (get_plat_config()->flags & CONFIG_HAS_CCI) |
Harry Liebel | 30affd5 | 2013-10-30 17:41:48 +0000 | [diff] [blame] | 144 | cci_disable_coherency(mpidr); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 145 | |
| 146 | /* |
| 147 | * Program the power controller to turn the |
| 148 | * cluster off |
| 149 | */ |
| 150 | fvp_pwrc_write_pcoffr(mpidr); |
| 151 | |
| 152 | } |
| 153 | break; |
| 154 | |
| 155 | case MPIDR_AFFLVL0: |
| 156 | if (state == PSCI_STATE_OFF) { |
| 157 | |
| 158 | /* |
| 159 | * Take this cpu out of intra-cluster coherency if |
| 160 | * the FVP flavour supports the SMP bit. |
| 161 | */ |
Dan Handley | 1c54d97 | 2014-06-20 12:02:01 +0100 | [diff] [blame] | 162 | if (get_plat_config()->flags & CONFIG_CPUECTLR_SMP_BIT) { |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 163 | ectlr = read_cpuectlr(); |
| 164 | ectlr &= ~CPUECTLR_SMP_BIT; |
| 165 | write_cpuectlr(ectlr); |
| 166 | } |
| 167 | |
| 168 | /* |
| 169 | * Prevent interrupts from spuriously waking up |
| 170 | * this cpu |
| 171 | */ |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 172 | arm_gic_cpuif_deactivate(); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 173 | |
| 174 | /* |
| 175 | * Program the power controller to power this |
| 176 | * cpu off |
| 177 | */ |
| 178 | fvp_pwrc_write_ppoffr(mpidr); |
| 179 | } |
| 180 | break; |
| 181 | |
| 182 | default: |
| 183 | assert(0); |
| 184 | } |
| 185 | |
| 186 | return rc; |
| 187 | } |
| 188 | |
| 189 | /******************************************************************************* |
| 190 | * FVP handler called when an affinity instance is about to be suspended. The |
| 191 | * level and mpidr determine the affinity instance. The 'state' arg. allows the |
| 192 | * platform to decide whether the cluster is being turned off and take apt |
| 193 | * actions. |
| 194 | * |
| 195 | * CAUTION: This function is called with coherent stacks so that caches can be |
| 196 | * turned off, flushed and coherency disabled. There is no guarantee that caches |
| 197 | * will remain turned on across calls to this function as each affinity level is |
| 198 | * dealt with. So do not write & read global variables across calls. It will be |
| 199 | * wise to do flush a write to the global to prevent unpredictable results. |
| 200 | ******************************************************************************/ |
| 201 | int fvp_affinst_suspend(unsigned long mpidr, |
| 202 | unsigned long sec_entrypoint, |
| 203 | unsigned long ns_entrypoint, |
| 204 | unsigned int afflvl, |
| 205 | unsigned int state) |
| 206 | { |
| 207 | int rc = PSCI_E_SUCCESS; |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 208 | unsigned int ectlr; |
Dan Handley | 1c54d97 | 2014-06-20 12:02:01 +0100 | [diff] [blame] | 209 | unsigned long linear_id; |
Dan Handley | e2712bc | 2014-04-10 15:37:22 +0100 | [diff] [blame] | 210 | mailbox_t *fvp_mboxes; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 211 | |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 212 | switch (afflvl) { |
| 213 | case MPIDR_AFFLVL1: |
| 214 | if (state == PSCI_STATE_OFF) { |
| 215 | /* |
| 216 | * Disable coherency if this cluster is to be |
| 217 | * turned off |
| 218 | */ |
Dan Handley | 1c54d97 | 2014-06-20 12:02:01 +0100 | [diff] [blame] | 219 | if (get_plat_config()->flags & CONFIG_HAS_CCI) |
Harry Liebel | 30affd5 | 2013-10-30 17:41:48 +0000 | [diff] [blame] | 220 | cci_disable_coherency(mpidr); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 221 | |
| 222 | /* |
| 223 | * Program the power controller to turn the |
| 224 | * cluster off |
| 225 | */ |
| 226 | fvp_pwrc_write_pcoffr(mpidr); |
| 227 | |
| 228 | } |
| 229 | break; |
| 230 | |
| 231 | case MPIDR_AFFLVL0: |
| 232 | if (state == PSCI_STATE_OFF) { |
| 233 | /* |
| 234 | * Take this cpu out of intra-cluster coherency if |
| 235 | * the FVP flavour supports the SMP bit. |
| 236 | */ |
Dan Handley | 1c54d97 | 2014-06-20 12:02:01 +0100 | [diff] [blame] | 237 | if (get_plat_config()->flags & CONFIG_CPUECTLR_SMP_BIT) { |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 238 | ectlr = read_cpuectlr(); |
| 239 | ectlr &= ~CPUECTLR_SMP_BIT; |
| 240 | write_cpuectlr(ectlr); |
| 241 | } |
| 242 | |
| 243 | /* Program the jump address for the target cpu */ |
| 244 | linear_id = platform_get_core_pos(mpidr); |
Dan Handley | e2712bc | 2014-04-10 15:37:22 +0100 | [diff] [blame] | 245 | fvp_mboxes = (mailbox_t *) (TZDRAM_BASE + MBOX_OFF); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 246 | fvp_mboxes[linear_id].value = sec_entrypoint; |
| 247 | flush_dcache_range((unsigned long) &fvp_mboxes[linear_id], |
| 248 | sizeof(unsigned long)); |
| 249 | |
| 250 | /* |
| 251 | * Prevent interrupts from spuriously waking up |
| 252 | * this cpu |
| 253 | */ |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 254 | arm_gic_cpuif_deactivate(); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 255 | |
| 256 | /* |
| 257 | * Program the power controller to power this |
| 258 | * cpu off and enable wakeup interrupts. |
| 259 | */ |
Achin Gupta | b127cdb | 2013-11-12 16:40:00 +0000 | [diff] [blame] | 260 | fvp_pwrc_set_wen(mpidr); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 261 | fvp_pwrc_write_ppoffr(mpidr); |
| 262 | } |
| 263 | break; |
| 264 | |
| 265 | default: |
| 266 | assert(0); |
| 267 | } |
| 268 | |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 269 | return rc; |
| 270 | } |
| 271 | |
| 272 | /******************************************************************************* |
| 273 | * FVP handler called when an affinity instance has just been powered on after |
| 274 | * being turned off earlier. The level and mpidr determine the affinity |
| 275 | * instance. The 'state' arg. allows the platform to decide whether the cluster |
| 276 | * was turned off prior to wakeup and do what's necessary to setup it up |
| 277 | * correctly. |
| 278 | ******************************************************************************/ |
| 279 | int fvp_affinst_on_finish(unsigned long mpidr, |
| 280 | unsigned int afflvl, |
| 281 | unsigned int state) |
| 282 | { |
| 283 | int rc = PSCI_E_SUCCESS; |
Dan Handley | 1c54d97 | 2014-06-20 12:02:01 +0100 | [diff] [blame] | 284 | unsigned long linear_id; |
Dan Handley | e2712bc | 2014-04-10 15:37:22 +0100 | [diff] [blame] | 285 | mailbox_t *fvp_mboxes; |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 286 | unsigned int ectlr; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 287 | |
| 288 | switch (afflvl) { |
| 289 | |
| 290 | case MPIDR_AFFLVL1: |
| 291 | /* Enable coherency if this cluster was off */ |
Harry Liebel | 30affd5 | 2013-10-30 17:41:48 +0000 | [diff] [blame] | 292 | if (state == PSCI_STATE_OFF) { |
Achin Gupta | b2187ab | 2014-01-17 16:52:29 +0000 | [diff] [blame] | 293 | |
| 294 | /* |
| 295 | * This CPU might have woken up whilst the |
| 296 | * cluster was attempting to power down. In |
| 297 | * this case the FVP power controller will |
| 298 | * have a pending cluster power off request |
| 299 | * which needs to be cleared by writing to the |
| 300 | * PPONR register. This prevents the power |
| 301 | * controller from interpreting a subsequent |
| 302 | * entry of this cpu into a simple wfi as a |
| 303 | * power down request. |
| 304 | */ |
| 305 | fvp_pwrc_write_pponr(mpidr); |
| 306 | |
Vikram Kanigiri | 9637745 | 2014-04-24 11:02:16 +0100 | [diff] [blame] | 307 | fvp_cci_setup(); |
Harry Liebel | 30affd5 | 2013-10-30 17:41:48 +0000 | [diff] [blame] | 308 | } |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 309 | break; |
| 310 | |
| 311 | case MPIDR_AFFLVL0: |
| 312 | /* |
| 313 | * Ignore the state passed for a cpu. It could only have |
| 314 | * been off if we are here. |
| 315 | */ |
| 316 | |
| 317 | /* |
| 318 | * Turn on intra-cluster coherency if the FVP flavour supports |
| 319 | * it. |
| 320 | */ |
Dan Handley | 1c54d97 | 2014-06-20 12:02:01 +0100 | [diff] [blame] | 321 | if (get_plat_config()->flags & CONFIG_CPUECTLR_SMP_BIT) { |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 322 | ectlr = read_cpuectlr(); |
| 323 | ectlr |= CPUECTLR_SMP_BIT; |
| 324 | write_cpuectlr(ectlr); |
| 325 | } |
| 326 | |
Achin Gupta | b127cdb | 2013-11-12 16:40:00 +0000 | [diff] [blame] | 327 | /* |
| 328 | * Clear PWKUPR.WEN bit to ensure interrupts do not interfere |
| 329 | * with a cpu power down unless the bit is set again |
| 330 | */ |
| 331 | fvp_pwrc_clr_wen(mpidr); |
| 332 | |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 333 | /* Zero the jump address in the mailbox for this cpu */ |
Dan Handley | e2712bc | 2014-04-10 15:37:22 +0100 | [diff] [blame] | 334 | fvp_mboxes = (mailbox_t *) (TZDRAM_BASE + MBOX_OFF); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 335 | linear_id = platform_get_core_pos(mpidr); |
| 336 | fvp_mboxes[linear_id].value = 0; |
| 337 | flush_dcache_range((unsigned long) &fvp_mboxes[linear_id], |
| 338 | sizeof(unsigned long)); |
| 339 | |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 340 | /* Enable the gic cpu interface */ |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 341 | arm_gic_cpuif_setup(); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 342 | |
| 343 | /* TODO: This setup is needed only after a cold boot */ |
Dan Handley | fb42b12 | 2014-06-20 09:43:15 +0100 | [diff] [blame] | 344 | arm_gic_pcpu_distif_setup(); |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 345 | |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 346 | break; |
| 347 | |
| 348 | default: |
| 349 | assert(0); |
| 350 | } |
| 351 | |
| 352 | return rc; |
| 353 | } |
| 354 | |
| 355 | /******************************************************************************* |
| 356 | * FVP handler called when an affinity instance has just been powered on after |
| 357 | * having been suspended earlier. The level and mpidr determine the affinity |
| 358 | * instance. |
| 359 | * TODO: At the moment we reuse the on finisher and reinitialize the secure |
| 360 | * context. Need to implement a separate suspend finisher. |
| 361 | ******************************************************************************/ |
| 362 | int fvp_affinst_suspend_finish(unsigned long mpidr, |
| 363 | unsigned int afflvl, |
| 364 | unsigned int state) |
| 365 | { |
| 366 | return fvp_affinst_on_finish(mpidr, afflvl, state); |
| 367 | } |
| 368 | |
| 369 | |
| 370 | /******************************************************************************* |
| 371 | * Export the platform handlers to enable psci to invoke them |
| 372 | ******************************************************************************/ |
Dan Handley | a4cb68e | 2014-04-23 13:47:06 +0100 | [diff] [blame] | 373 | static const plat_pm_ops_t fvp_plat_pm_ops = { |
Vikram Kanigiri | 3b7c59b | 2014-03-21 11:57:10 +0000 | [diff] [blame] | 374 | fvp_affinst_standby, |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 375 | fvp_affinst_on, |
| 376 | fvp_affinst_off, |
| 377 | fvp_affinst_suspend, |
| 378 | fvp_affinst_on_finish, |
| 379 | fvp_affinst_suspend_finish, |
| 380 | }; |
| 381 | |
| 382 | /******************************************************************************* |
| 383 | * Export the platform specific power ops & initialize the fvp power controller |
| 384 | ******************************************************************************/ |
Dan Handley | a4cb68e | 2014-04-23 13:47:06 +0100 | [diff] [blame] | 385 | int platform_setup_pm(const plat_pm_ops_t **plat_ops) |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 386 | { |
| 387 | *plat_ops = &fvp_plat_pm_ops; |
| 388 | return 0; |
| 389 | } |