Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 1 | /* |
Tejas Patel | f6b2b3c | 2020-01-10 03:08:40 -0800 | [diff] [blame] | 2 | * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved. |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | /* |
| 8 | * Contains APU specific macros and macros to be defined depending on |
| 9 | * the execution environment. |
| 10 | */ |
| 11 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 12 | #ifndef PM_CLIENT_H |
| 13 | #define PM_CLIENT_H |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 14 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 15 | #include "pm_common.h" |
Isla Mitchell | e363146 | 2017-07-14 10:46:32 +0100 | [diff] [blame] | 16 | #include "pm_defs.h" |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 17 | |
| 18 | /* Functions to be implemented by each PU */ |
Filip Drazic | 4c0765a | 2016-07-26 12:11:33 +0200 | [diff] [blame] | 19 | void pm_client_suspend(const struct pm_proc *proc, unsigned int state); |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 20 | void pm_client_abort_suspend(void); |
| 21 | void pm_client_wakeup(const struct pm_proc *proc); |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 22 | |
| 23 | /* Global variables to be set in pm_client.c */ |
| 24 | extern const struct pm_proc *primary_proc; |
| 25 | |
Tejas Patel | f6b2b3c | 2020-01-10 03:08:40 -0800 | [diff] [blame] | 26 | #ifndef VERSAL_PLATFORM |
| 27 | enum pm_ret_status set_ocm_retention(void); |
| 28 | enum pm_ret_status pm_set_suspend_mode(uint32_t mode); |
| 29 | const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid); |
| 30 | #endif |
| 31 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 32 | #endif /* PM_CLIENT_H */ |