Ulf Hansson | a5e0454 | 2019-10-28 16:32:23 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | |
| 3 | #ifndef __CPUIDLE_PSCI_H |
| 4 | #define __CPUIDLE_PSCI_H |
| 5 | |
Ulf Hansson | a65a397 | 2019-10-10 12:01:48 +0200 | [diff] [blame] | 6 | struct device_node; |
| 7 | |
| 8 | void psci_set_domain_state(u32 state); |
| 9 | int __init psci_dt_parse_state_node(struct device_node *np, u32 *state); |
| 10 | |
Ulf Hansson | 0317561 | 2020-07-07 14:58:00 +0200 | [diff] [blame^] | 11 | #ifdef CONFIG_ARM_PSCI_CPUIDLE_DOMAIN |
Ulf Hansson | a5e0454 | 2019-10-28 16:32:23 +0100 | [diff] [blame] | 12 | struct device __init *psci_dt_attach_cpu(int cpu); |
| 13 | #else |
| 14 | static inline struct device __init *psci_dt_attach_cpu(int cpu) { return NULL; } |
| 15 | #endif |
| 16 | |
| 17 | #endif /* __CPUIDLE_PSCI_H */ |