blob: 070db89908dd4b5a316fd12f6a65e57c7d897992 [file] [log] [blame]
Soren Brinkmann76fcae32016-03-06 20:16:27 -08001/*
2 * Copyright (c) 2013-2015, ARM Limited and Contributors. All rights reserved.
3 *
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
12#ifndef _PM_CLIENT_H_
13#define _PM_CLIENT_H_
14
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 */
Filip Drazic4c0765a2016-07-26 12:11:33 +020019void pm_client_suspend(const struct pm_proc *proc, unsigned int state);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080020void pm_client_abort_suspend(void);
21void pm_client_wakeup(const struct pm_proc *proc);
22enum pm_ret_status set_ocm_retention(void);
Siva Durga Prasad Paladugu43b23a32018-04-27 16:26:47 +053023enum pm_ret_status pm_set_suspend_mode(uint32_t mode);
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
28#endif /* _PM_CLIENT_H_ */