aboutsummaryrefslogtreecommitdiff
path: root/plat/hisilicon/hikey960/include/hisi_ipc.h
blob: 9dda1a57f524f3f0e2ea772cae3f8b773548210d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef __HISI_IPC_H__
#define __HISI_IPC_H__

enum pm_mode {
	PM_ON = 0,
	PM_OFF,
};

void hisi_ipc_pm_on_off(unsigned int core, unsigned int cluster,
			enum pm_mode mode);
void hisi_ipc_pm_suspend(unsigned int core, unsigned int cluster,
			 unsigned int affinity_level);
void hisi_ipc_psci_system_off(unsigned int core, unsigned int cluster);
void hisi_ipc_psci_system_reset(unsigned int core, unsigned int cluster,
				unsigned int cmd_id);
int hisi_ipc_init(void);

#endif /* __HISI_IPC_H__ */