xref: /rk3399_ARM-atf/plat/xilinx/common/include/pm_client.h (revision 24b5b53a5922de40e53f0a7ecf65d3d0acc30a0d)
192c30ac3STejas Patel /*
292c30ac3STejas Patel  * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
3*24b5b53aSRajan Vaja  * Copyright (c) 2020-2022, Xilinx, Inc. All rights reserved.
4*24b5b53aSRajan Vaja  * Copyright (c) 2022, Advanced Micro Devices, Inc. All rights reserved.
592c30ac3STejas Patel  *
692c30ac3STejas Patel  * SPDX-License-Identifier: BSD-3-Clause
792c30ac3STejas Patel  */
892c30ac3STejas Patel 
992c30ac3STejas Patel /*
1092c30ac3STejas Patel  * Contains APU specific macros and macros to be defined depending on
1192c30ac3STejas Patel  * the execution environment.
1292c30ac3STejas Patel  */
1392c30ac3STejas Patel 
1492c30ac3STejas Patel #ifndef PM_CLIENT_H
1592c30ac3STejas Patel #define PM_CLIENT_H
1692c30ac3STejas Patel 
1792c30ac3STejas Patel #include "pm_common.h"
1892c30ac3STejas Patel #include "pm_defs.h"
1992c30ac3STejas Patel 
2092c30ac3STejas Patel /* Functions to be implemented by each PU */
21ffa91031SVenkatesh Yadav Abbarapu void pm_client_suspend(const struct pm_proc *proc, uint32_t state);
2292c30ac3STejas Patel void pm_client_abort_suspend(void);
2392c30ac3STejas Patel void pm_client_wakeup(const struct pm_proc *proc);
2492c30ac3STejas Patel 
2592c30ac3STejas Patel /* Global variables to be set in pm_client.c */
2692c30ac3STejas Patel extern const struct pm_proc *primary_proc;
2792c30ac3STejas Patel 
28*24b5b53aSRajan Vaja #if defined(PLAT_zynqmp)
2992c30ac3STejas Patel enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
3092c30ac3STejas Patel const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid);
31*24b5b53aSRajan Vaja #endif /* PLAT_zynqmp */
3292c30ac3STejas Patel 
3392c30ac3STejas Patel #endif /* PM_CLIENT_H */
34