blob: f37484021364fa0d96e77759d925b0234f701dfb [file] [log] [blame]
Achin Gupta4f6ad662013-10-25 09:08:21 +01001/*
Dan Handleye83b0ca2014-01-14 18:17:09 +00002 * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved.
Achin Gupta4f6ad662013-10-25 09:08:21 +01003 *
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
31#include <stdio.h>
32#include <string.h>
33#include <assert.h>
34#include <arch_helpers.h>
35#include <console.h>
36#include <platform.h>
37#include <psci.h>
38#include <psci_private.h>
39
40typedef int (*afflvl_suspend_handler)(unsigned long,
41 aff_map_node *,
42 unsigned long,
43 unsigned long,
44 unsigned int);
45
46/*******************************************************************************
Achin Guptaa45e3972013-12-05 15:10:48 +000047 * This function sets the affinity level till which the current cpu is being
48 * powered down to during a cpu_suspend call
49 ******************************************************************************/
50void psci_set_suspend_afflvl(aff_map_node *node, int afflvl)
51{
52 /*
53 * Check that nobody else is calling this function on our behalf &
54 * this information is being set only in the cpu node
55 */
56 assert(node->mpidr == (read_mpidr() & MPIDR_AFFINITY_MASK));
57 assert(node->level == MPIDR_AFFLVL0);
58
59 /*
60 * Store the affinity level we are powering down to in our context.
61 * The cache flush in the suspend code will ensure that this info
62 * is available immediately upon resuming.
63 */
64 psci_suspend_context[node->data].suspend_level = afflvl;
65}
66
67/*******************************************************************************
68 * This function gets the affinity level till which the current cpu was powered
69 * down during a cpu_suspend call.
70 ******************************************************************************/
71int psci_get_suspend_afflvl(aff_map_node *node)
72{
73 /* Return the target affinity level */
74 return psci_suspend_context[node->data].suspend_level;
75}
76
77/*******************************************************************************
Achin Gupta4f6ad662013-10-25 09:08:21 +010078 * The next three functions implement a handler for each supported affinity
79 * level which is called when that affinity level is about to be suspended.
80 ******************************************************************************/
81static int psci_afflvl0_suspend(unsigned long mpidr,
82 aff_map_node *cpu_node,
83 unsigned long ns_entrypoint,
84 unsigned long context_id,
85 unsigned int power_state)
86{
87 unsigned int index, plat_state;
88 unsigned long psci_entrypoint, sctlr = read_sctlr();
89 int rc = PSCI_E_SUCCESS;
90
91 /* Sanity check to safeguard against data corruption */
92 assert(cpu_node->level == MPIDR_AFFLVL0);
93
Achin Gupta75f73672013-12-05 16:33:10 +000094 /* State management: mark this cpu as suspended */
95 psci_set_state(cpu_node, PSCI_STATE_SUSPEND);
96
Achin Gupta4f6ad662013-10-25 09:08:21 +010097 /*
98 * Generic management: Store the re-entry information for the
99 * non-secure world
100 */
101 index = cpu_node->data;
102 rc = psci_set_ns_entry_info(index, ns_entrypoint, context_id);
103 if (rc != PSCI_E_SUCCESS)
104 return rc;
105
106 /*
107 * Arch. management: Save the secure context, flush the
108 * L1 caches and exit intra-cluster coherency et al
109 */
Achin Guptaa59caa42013-12-05 14:21:04 +0000110 psci_suspend_context[index].sec_sysregs.sctlr = read_sctlr();
111 psci_suspend_context[index].sec_sysregs.scr = read_scr();
112 psci_suspend_context[index].sec_sysregs.cptr = read_cptr();
113 psci_suspend_context[index].sec_sysregs.cpacr = read_cpacr();
114 psci_suspend_context[index].sec_sysregs.cntfrq = read_cntfrq_el0();
115 psci_suspend_context[index].sec_sysregs.mair = read_mair();
116 psci_suspend_context[index].sec_sysregs.tcr = read_tcr();
117 psci_suspend_context[index].sec_sysregs.ttbr = read_ttbr0();
Achin Guptaa59caa42013-12-05 14:21:04 +0000118 psci_suspend_context[index].sec_sysregs.pstate =
Sandrine Bailleux37382742013-11-18 17:26:59 +0000119 read_daif() & (DAIF_ABT_BIT | DAIF_DBG_BIT);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100120
121 /* Set the secure world (EL3) re-entry point after BL1 */
122 psci_entrypoint = (unsigned long) psci_aff_suspend_finish_entry;
123
124 /*
125 * Arch. management. Perform the necessary steps to flush all
126 * cpu caches.
127 *
128 * TODO: This power down sequence varies across cpus so it needs to be
129 * abstracted out on the basis of the MIDR like in cpu_reset_handler().
130 * Do the bare minimal for the time being. Fix this before porting to
131 * Cortex models.
132 */
133 sctlr &= ~SCTLR_C_BIT;
134 write_sctlr(sctlr);
135
136 /*
137 * CAUTION: This flush to the level of unification makes an assumption
138 * about the cache hierarchy at affinity level 0 (cpu) in the platform.
139 * Ideally the platform should tell psci which levels to flush to exit
140 * coherency.
141 */
142 dcsw_op_louis(DCCISW);
143
144 /*
145 * Plat. management: Allow the platform to perform the
146 * necessary actions to turn off this cpu e.g. set the
147 * platform defined mailbox with the psci entrypoint,
148 * program the power controller etc.
149 */
150 if (psci_plat_pm_ops->affinst_suspend) {
Achin Gupta75f73672013-12-05 16:33:10 +0000151 plat_state = psci_get_phys_state(cpu_node);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100152 rc = psci_plat_pm_ops->affinst_suspend(mpidr,
153 psci_entrypoint,
154 ns_entrypoint,
155 cpu_node->level,
156 plat_state);
157 }
158
159 return rc;
160}
161
162static int psci_afflvl1_suspend(unsigned long mpidr,
163 aff_map_node *cluster_node,
164 unsigned long ns_entrypoint,
165 unsigned long context_id,
166 unsigned int power_state)
167{
168 int rc = PSCI_E_SUCCESS;
169 unsigned int plat_state;
170 unsigned long psci_entrypoint;
171
172 /* Sanity check the cluster level */
173 assert(cluster_node->level == MPIDR_AFFLVL1);
174
Achin Gupta75f73672013-12-05 16:33:10 +0000175 /* State management: Decrement the cluster reference count */
176 psci_set_state(cluster_node, PSCI_STATE_SUSPEND);
177
Achin Gupta4f6ad662013-10-25 09:08:21 +0100178 /*
179 * Keep the physical state of this cluster handy to decide
180 * what action needs to be taken
181 */
Achin Gupta75f73672013-12-05 16:33:10 +0000182 plat_state = psci_get_phys_state(cluster_node);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100183
184 /*
185 * Arch. management: Flush all levels of caches to PoC if the
186 * cluster is to be shutdown
187 */
188 if (plat_state == PSCI_STATE_OFF)
189 dcsw_op_all(DCCISW);
190
191 /*
Achin Gupta3140a9e2013-12-02 16:23:12 +0000192 * Plat. Management. Allow the platform to do its cluster
Achin Gupta4f6ad662013-10-25 09:08:21 +0100193 * specific bookeeping e.g. turn off interconnect coherency,
194 * program the power controller etc.
195 */
196 if (psci_plat_pm_ops->affinst_suspend) {
197
198 /*
199 * Sending the psci entrypoint is currently redundant
200 * beyond affinity level 0 but one never knows what a
201 * platform might do. Also it allows us to keep the
202 * platform handler prototype the same.
203 */
204 psci_entrypoint = (unsigned long) psci_aff_suspend_finish_entry;
Achin Gupta4f6ad662013-10-25 09:08:21 +0100205 rc = psci_plat_pm_ops->affinst_suspend(mpidr,
206 psci_entrypoint,
207 ns_entrypoint,
208 cluster_node->level,
209 plat_state);
210 }
211
212 return rc;
213}
214
215
216static int psci_afflvl2_suspend(unsigned long mpidr,
217 aff_map_node *system_node,
218 unsigned long ns_entrypoint,
219 unsigned long context_id,
220 unsigned int power_state)
221{
222 int rc = PSCI_E_SUCCESS;
223 unsigned int plat_state;
224 unsigned long psci_entrypoint;
225
226 /* Cannot go beyond this */
227 assert(system_node->level == MPIDR_AFFLVL2);
228
Achin Gupta75f73672013-12-05 16:33:10 +0000229 /* State management: Decrement the system reference count */
230 psci_set_state(system_node, PSCI_STATE_SUSPEND);
231
Achin Gupta4f6ad662013-10-25 09:08:21 +0100232 /*
233 * Keep the physical state of the system handy to decide what
234 * action needs to be taken
235 */
Achin Gupta75f73672013-12-05 16:33:10 +0000236 plat_state = psci_get_phys_state(system_node);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100237
238 /*
Achin Gupta3140a9e2013-12-02 16:23:12 +0000239 * Plat. Management : Allow the platform to do its bookeeping
Achin Gupta4f6ad662013-10-25 09:08:21 +0100240 * at this affinity level
241 */
242 if (psci_plat_pm_ops->affinst_suspend) {
243
244 /*
245 * Sending the psci entrypoint is currently redundant
246 * beyond affinity level 0 but one never knows what a
247 * platform might do. Also it allows us to keep the
248 * platform handler prototype the same.
249 */
250 psci_entrypoint = (unsigned long) psci_aff_suspend_finish_entry;
Achin Gupta4f6ad662013-10-25 09:08:21 +0100251 rc = psci_plat_pm_ops->affinst_suspend(mpidr,
252 psci_entrypoint,
253 ns_entrypoint,
254 system_node->level,
255 plat_state);
256 }
257
258 return rc;
259}
260
261static const afflvl_suspend_handler psci_afflvl_suspend_handlers[] = {
262 psci_afflvl0_suspend,
263 psci_afflvl1_suspend,
264 psci_afflvl2_suspend,
265};
266
267/*******************************************************************************
Achin Gupta0959db52013-12-02 17:33:04 +0000268 * This function takes an array of pointers to affinity instance nodes in the
269 * topology tree and calls the suspend handler for the corresponding affinity
270 * levels
271 ******************************************************************************/
272static int psci_call_suspend_handlers(mpidr_aff_map_nodes mpidr_nodes,
273 int start_afflvl,
274 int end_afflvl,
275 unsigned long mpidr,
276 unsigned long entrypoint,
277 unsigned long context_id,
278 unsigned int power_state)
279{
280 int rc = PSCI_E_INVALID_PARAMS, level;
281 aff_map_node *node;
282
283 for (level = start_afflvl; level <= end_afflvl; level++) {
284 node = mpidr_nodes[level];
285 if (node == NULL)
286 continue;
287
288 /*
289 * TODO: In case of an error should there be a way
290 * of restoring what we might have torn down at
291 * lower affinity levels.
292 */
293 rc = psci_afflvl_suspend_handlers[level](mpidr,
294 node,
295 entrypoint,
296 context_id,
297 power_state);
298 if (rc != PSCI_E_SUCCESS)
299 break;
300 }
301
302 return rc;
303}
304
305/*******************************************************************************
306 * Top level handler which is called when a cpu wants to suspend its execution.
307 * It is assumed that along with turning the cpu off, higher affinity levels
308 * until the target affinity level will be turned off as well. It traverses
309 * through all the affinity levels performing generic, architectural, platform
310 * setup and state management e.g. for a cluster that's to be suspended, it will
311 * call the platform specific code which will disable coherency at the
312 * interconnect level if the cpu is the last in the cluster. For a cpu it could
313 * mean programming the power controller etc.
314 *
315 * The state of all the relevant affinity levels is changed prior to calling the
316 * affinity level specific handlers as their actions would depend upon the state
317 * the affinity level is about to enter.
318 *
319 * The affinity level specific handlers are called in ascending order i.e. from
320 * the lowest to the highest affinity level implemented by the platform because
321 * to turn off affinity level X it is neccesary to turn off affinity level X - 1
322 * first.
323 *
324 * CAUTION: This function is called with coherent stacks so that coherency can
325 * be turned off and caches can be flushed safely.
Achin Gupta4f6ad662013-10-25 09:08:21 +0100326 ******************************************************************************/
327int psci_afflvl_suspend(unsigned long mpidr,
328 unsigned long entrypoint,
329 unsigned long context_id,
330 unsigned int power_state,
Achin Gupta0959db52013-12-02 17:33:04 +0000331 int start_afflvl,
332 int end_afflvl)
Achin Gupta4f6ad662013-10-25 09:08:21 +0100333{
Achin Gupta0959db52013-12-02 17:33:04 +0000334 int rc = PSCI_E_SUCCESS;
Achin Gupta0959db52013-12-02 17:33:04 +0000335 mpidr_aff_map_nodes mpidr_nodes;
Achin Gupta4f6ad662013-10-25 09:08:21 +0100336
337 mpidr &= MPIDR_AFFINITY_MASK;
338
339 /*
Achin Gupta0959db52013-12-02 17:33:04 +0000340 * Collect the pointers to the nodes in the topology tree for
341 * each affinity instance in the mpidr. If this function does
342 * not return successfully then either the mpidr or the affinity
343 * levels are incorrect.
Achin Gupta4f6ad662013-10-25 09:08:21 +0100344 */
Achin Gupta0959db52013-12-02 17:33:04 +0000345 rc = psci_get_aff_map_nodes(mpidr,
346 start_afflvl,
347 end_afflvl,
348 mpidr_nodes);
349 if (rc != PSCI_E_SUCCESS)
Achin Gupta4f6ad662013-10-25 09:08:21 +0100350 return rc;
351
Achin Gupta0959db52013-12-02 17:33:04 +0000352 /*
353 * This function acquires the lock corresponding to each affinity
354 * level so that by the time all locks are taken, the system topology
355 * is snapshot and state management can be done safely.
356 */
357 psci_acquire_afflvl_locks(mpidr,
358 start_afflvl,
359 end_afflvl,
360 mpidr_nodes);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100361
Achin Gupta0959db52013-12-02 17:33:04 +0000362
Achin Guptaa45e3972013-12-05 15:10:48 +0000363 /* Save the affinity level till which this cpu can be powered down */
364 psci_set_suspend_afflvl(mpidr_nodes[MPIDR_AFFLVL0], end_afflvl);
365
Achin Gupta0959db52013-12-02 17:33:04 +0000366 /* Perform generic, architecture and platform specific handling */
367 rc = psci_call_suspend_handlers(mpidr_nodes,
368 start_afflvl,
369 end_afflvl,
370 mpidr,
371 entrypoint,
372 context_id,
373 power_state);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100374
375 /*
Achin Gupta0959db52013-12-02 17:33:04 +0000376 * Release the locks corresponding to each affinity level in the
377 * reverse order to which they were acquired.
Achin Gupta4f6ad662013-10-25 09:08:21 +0100378 */
Achin Gupta0959db52013-12-02 17:33:04 +0000379 psci_release_afflvl_locks(mpidr,
380 start_afflvl,
381 end_afflvl,
382 mpidr_nodes);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100383
Achin Gupta4f6ad662013-10-25 09:08:21 +0100384 return rc;
385}
386
387/*******************************************************************************
388 * The following functions finish an earlier affinity suspend request. They
389 * are called by the common finisher routine in psci_common.c.
390 ******************************************************************************/
391static unsigned int psci_afflvl0_suspend_finish(unsigned long mpidr,
Achin Gupta0959db52013-12-02 17:33:04 +0000392 aff_map_node *cpu_node)
Achin Gupta4f6ad662013-10-25 09:08:21 +0100393{
Achin Gupta0959db52013-12-02 17:33:04 +0000394 unsigned int index, plat_state, state, rc = PSCI_E_SUCCESS;
Achin Gupta4f6ad662013-10-25 09:08:21 +0100395
396 assert(cpu_node->level == MPIDR_AFFLVL0);
397
Achin Gupta0959db52013-12-02 17:33:04 +0000398 /* Ensure we have been woken up from a suspended state */
Achin Gupta75f73672013-12-05 16:33:10 +0000399 state = psci_get_state(cpu_node);
Achin Gupta0959db52013-12-02 17:33:04 +0000400 assert(state == PSCI_STATE_SUSPEND);
401
Achin Gupta4f6ad662013-10-25 09:08:21 +0100402 /*
403 * Plat. management: Perform the platform specific actions
404 * before we change the state of the cpu e.g. enabling the
405 * gic or zeroing the mailbox register. If anything goes
406 * wrong then assert as there is no way to recover from this
407 * situation.
408 */
409 if (psci_plat_pm_ops->affinst_suspend_finish) {
Achin Gupta0959db52013-12-02 17:33:04 +0000410
411 /* Get the physical state of this cpu */
Achin Gupta75f73672013-12-05 16:33:10 +0000412 plat_state = get_phys_state(state);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100413 rc = psci_plat_pm_ops->affinst_suspend_finish(mpidr,
414 cpu_node->level,
415 plat_state);
416 assert(rc == PSCI_E_SUCCESS);
417 }
418
419 /* Get the index for restoring the re-entry information */
420 index = cpu_node->data;
421
422 /*
423 * Arch. management: Restore the stashed secure architectural
424 * context in the right order.
425 */
Achin Guptaa59caa42013-12-05 14:21:04 +0000426 write_daif(read_daif() | psci_suspend_context[index].sec_sysregs.pstate);
427 write_mair(psci_suspend_context[index].sec_sysregs.mair);
428 write_tcr(psci_suspend_context[index].sec_sysregs.tcr);
429 write_ttbr0(psci_suspend_context[index].sec_sysregs.ttbr);
430 write_sctlr(psci_suspend_context[index].sec_sysregs.sctlr);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100431
432 /* MMU and coherency should be enabled by now */
Achin Guptaa59caa42013-12-05 14:21:04 +0000433 write_scr(psci_suspend_context[index].sec_sysregs.scr);
434 write_cptr(psci_suspend_context[index].sec_sysregs.cptr);
435 write_cpacr(psci_suspend_context[index].sec_sysregs.cpacr);
436 write_cntfrq_el0(psci_suspend_context[index].sec_sysregs.cntfrq);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100437
438 /*
439 * Generic management: Now we just need to retrieve the
440 * information that we had stashed away during the suspend
Achin Gupta3140a9e2013-12-02 16:23:12 +0000441 * call to set this cpu on its way.
Achin Gupta4f6ad662013-10-25 09:08:21 +0100442 */
Achin Guptac8afc782013-11-25 18:45:02 +0000443 psci_get_ns_entry_info(index);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100444
Achin Gupta75f73672013-12-05 16:33:10 +0000445 /* State management: mark this cpu as on */
446 psci_set_state(cpu_node, PSCI_STATE_ON);
447
Achin Gupta4f6ad662013-10-25 09:08:21 +0100448 /* Clean caches before re-entering normal world */
449 dcsw_op_louis(DCCSW);
450
451 return rc;
452}
453
454static unsigned int psci_afflvl1_suspend_finish(unsigned long mpidr,
Achin Gupta0959db52013-12-02 17:33:04 +0000455 aff_map_node *cluster_node)
Achin Gupta4f6ad662013-10-25 09:08:21 +0100456{
Achin Gupta0959db52013-12-02 17:33:04 +0000457 unsigned int plat_state, rc = PSCI_E_SUCCESS;
Achin Gupta4f6ad662013-10-25 09:08:21 +0100458
459 assert(cluster_node->level == MPIDR_AFFLVL1);
460
461 /*
462 * Plat. management: Perform the platform specific actions
463 * as per the old state of the cluster e.g. enabling
464 * coherency at the interconnect depends upon the state with
465 * which this cluster was powered up. If anything goes wrong
466 * then assert as there is no way to recover from this
467 * situation.
468 */
469 if (psci_plat_pm_ops->affinst_suspend_finish) {
Achin Gupta0959db52013-12-02 17:33:04 +0000470
471 /* Get the physical state of this cpu */
Achin Gupta75f73672013-12-05 16:33:10 +0000472 plat_state = psci_get_phys_state(cluster_node);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100473 rc = psci_plat_pm_ops->affinst_suspend_finish(mpidr,
474 cluster_node->level,
475 plat_state);
476 assert(rc == PSCI_E_SUCCESS);
477 }
478
Achin Gupta75f73672013-12-05 16:33:10 +0000479 /* State management: Increment the cluster reference count */
480 psci_set_state(cluster_node, PSCI_STATE_ON);
481
Achin Gupta4f6ad662013-10-25 09:08:21 +0100482 return rc;
483}
484
485
486static unsigned int psci_afflvl2_suspend_finish(unsigned long mpidr,
Achin Gupta0959db52013-12-02 17:33:04 +0000487 aff_map_node *system_node)
Achin Gupta4f6ad662013-10-25 09:08:21 +0100488{
Achin Gupta0959db52013-12-02 17:33:04 +0000489 unsigned int plat_state, rc = PSCI_E_SUCCESS;;
Achin Gupta4f6ad662013-10-25 09:08:21 +0100490
491 /* Cannot go beyond this affinity level */
492 assert(system_node->level == MPIDR_AFFLVL2);
493
494 /*
495 * Currently, there are no architectural actions to perform
496 * at the system level.
497 */
498
499 /*
500 * Plat. management: Perform the platform specific actions
501 * as per the old state of the cluster e.g. enabling
502 * coherency at the interconnect depends upon the state with
503 * which this cluster was powered up. If anything goes wrong
504 * then assert as there is no way to recover from this
505 * situation.
506 */
507 if (psci_plat_pm_ops->affinst_suspend_finish) {
Achin Gupta0959db52013-12-02 17:33:04 +0000508
509 /* Get the physical state of the system */
Achin Gupta75f73672013-12-05 16:33:10 +0000510 plat_state = psci_get_phys_state(system_node);
Achin Gupta4f6ad662013-10-25 09:08:21 +0100511 rc = psci_plat_pm_ops->affinst_suspend_finish(mpidr,
512 system_node->level,
513 plat_state);
514 assert(rc == PSCI_E_SUCCESS);
515 }
516
Achin Gupta75f73672013-12-05 16:33:10 +0000517 /* State management: Increment the system reference count */
518 psci_set_state(system_node, PSCI_STATE_ON);
519
Achin Gupta4f6ad662013-10-25 09:08:21 +0100520 return rc;
521}
522
523const afflvl_power_on_finisher psci_afflvl_suspend_finishers[] = {
524 psci_afflvl0_suspend_finish,
525 psci_afflvl1_suspend_finish,
526 psci_afflvl2_suspend_finish,
527};
528