2016-03-07 04:16:27 +00:00
|
|
|
/*
|
2020-01-10 11:08:40 +00:00
|
|
|
* Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
|
2016-03-07 04:16:27 +00:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2016-03-07 04:16:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Contains APU specific macros and macros to be defined depending on
|
|
|
|
* the execution environment.
|
|
|
|
*/
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#ifndef PM_CLIENT_H
|
|
|
|
#define PM_CLIENT_H
|
2016-03-07 04:16:27 +00:00
|
|
|
|
|
|
|
#include "pm_common.h"
|
2017-07-14 10:46:32 +01:00
|
|
|
#include "pm_defs.h"
|
2016-03-07 04:16:27 +00:00
|
|
|
|
|
|
|
/* Functions to be implemented by each PU */
|
2016-07-26 11:11:33 +01:00
|
|
|
void pm_client_suspend(const struct pm_proc *proc, unsigned int state);
|
2016-03-07 04:16:27 +00:00
|
|
|
void pm_client_abort_suspend(void);
|
|
|
|
void pm_client_wakeup(const struct pm_proc *proc);
|
|
|
|
|
|
|
|
/* Global variables to be set in pm_client.c */
|
|
|
|
extern const struct pm_proc *primary_proc;
|
|
|
|
|
2020-01-10 11:08:40 +00:00
|
|
|
#ifndef VERSAL_PLATFORM
|
|
|
|
enum pm_ret_status set_ocm_retention(void);
|
|
|
|
enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
|
|
|
|
const struct pm_proc *pm_get_proc_by_node(enum pm_node_id nid);
|
|
|
|
#endif
|
|
|
|
|
2018-11-08 10:20:19 +00:00
|
|
|
#endif /* PM_CLIENT_H */
|