blob: dc012b7ab36abf9570199a901f63ff513a204b65 [file] [log] [blame]
Soren Brinkmann76fcae32016-03-06 20:16:27 -08001/*
Tejas Patelf6b2b3c2020-01-10 03:08:40 -08002 * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
Soren Brinkmann76fcae32016-03-06 20:16:27 -08003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Soren Brinkmann76fcae32016-03-06 20:16:27 -08005 */
6
7/*
8 * Contains APU specific macros and macros to be defined depending on
9 * the execution environment.
10 */
11
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000012#ifndef PM_CLIENT_H
13#define PM_CLIENT_H
Soren Brinkmann76fcae32016-03-06 20:16:27 -080014
Soren Brinkmann76fcae32016-03-06 20:16:27 -080015#include "pm_common.h"
Isla Mitchelle3631462017-07-14 10:46:32 +010016#include "pm_defs.h"
Soren Brinkmann76fcae32016-03-06 20:16:27 -080017
18/* Functions to be implemented by each PU */
Venkatesh Yadav Abbarapue7c45382022-05-19 14:49:49 +053019void pm_client_suspend(const struct pm_proc *proc, uint32_t state);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080020void pm_client_abort_suspend(void);
21void pm_client_wakeup(const struct pm_proc *proc);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080022
23/* Global variables to be set in pm_client.c */
24extern const struct pm_proc *primary_proc;
25
Tejas Patelf6b2b3c2020-01-10 03:08:40 -080026#ifndef VERSAL_PLATFORM
Tejas Patelf6b2b3c2020-01-10 03:08:40 -080027enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
28const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid);
29#endif
30
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000031#endif /* PM_CLIENT_H */