Haojian Zhuang | 1b5c225 | 2017-06-01 15:20:46 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef HISI_IPC_H |
| 8 | #define HISI_IPC_H |
Haojian Zhuang | 1b5c225 | 2017-06-01 15:20:46 +0800 | [diff] [blame] | 9 | |
| 10 | enum pm_mode { |
| 11 | PM_ON = 0, |
| 12 | PM_OFF, |
| 13 | }; |
| 14 | |
| 15 | void hisi_ipc_pm_on_off(unsigned int core, unsigned int cluster, |
| 16 | enum pm_mode mode); |
| 17 | void hisi_ipc_pm_suspend(unsigned int core, unsigned int cluster, |
| 18 | unsigned int affinity_level); |
| 19 | void hisi_ipc_psci_system_off(unsigned int core, unsigned int cluster); |
| 20 | void hisi_ipc_psci_system_reset(unsigned int core, unsigned int cluster, |
| 21 | unsigned int cmd_id); |
| 22 | int hisi_ipc_init(void); |
| 23 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 24 | #endif /* HISI_IPC_H */ |