blob: eae1d9860928cf71ab87f040b8179c252cda0c92 [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.
Rajan Vaja2ba71872022-08-31 12:54:34 +02003 * Copyright (c) 2020-2022, Xilinx, Inc. All rights reserved.
4 * Copyright (c) 2022, Advanced Micro Devices, Inc. All rights reserved.
Soren Brinkmann76fcae32016-03-06 20:16:27 -08005 *
dp-armfa3cf0b2017-05-03 09:38:09 +01006 * SPDX-License-Identifier: BSD-3-Clause
Soren Brinkmann76fcae32016-03-06 20:16:27 -08007 */
8
9/*
10 * Contains APU specific macros and macros to be defined depending on
11 * the execution environment.
12 */
13
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000014#ifndef PM_CLIENT_H
15#define PM_CLIENT_H
Soren Brinkmann76fcae32016-03-06 20:16:27 -080016
Soren Brinkmann76fcae32016-03-06 20:16:27 -080017#include "pm_common.h"
Isla Mitchelle3631462017-07-14 10:46:32 +010018#include "pm_defs.h"
Soren Brinkmann76fcae32016-03-06 20:16:27 -080019
20/* Functions to be implemented by each PU */
Venkatesh Yadav Abbarapue7c45382022-05-19 14:49:49 +053021void pm_client_suspend(const struct pm_proc *proc, uint32_t state);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080022void pm_client_abort_suspend(void);
23void pm_client_wakeup(const struct pm_proc *proc);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080024
25/* Global variables to be set in pm_client.c */
26extern const struct pm_proc *primary_proc;
27
Rajan Vaja2ba71872022-08-31 12:54:34 +020028#if defined(PLAT_zynqmp)
Tejas Patelf6b2b3c2020-01-10 03:08:40 -080029enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
30const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid);
Rajan Vaja2ba71872022-08-31 12:54:34 +020031#endif /* PLAT_zynqmp */
Tejas Patelf6b2b3c2020-01-10 03:08:40 -080032
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000033#endif /* PM_CLIENT_H */