blob: ac8170684d4f3736115f99f39ecb3a9aa2782889 [file] [log] [blame]
Ulf Hanssona5e04542019-10-28 16:32:23 +01001/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef __CPUIDLE_PSCI_H
4#define __CPUIDLE_PSCI_H
5
Ulf Hanssona65a3972019-10-10 12:01:48 +02006struct device_node;
7
8void psci_set_domain_state(u32 state);
9int __init psci_dt_parse_state_node(struct device_node *np, u32 *state);
10
Ulf Hansson03175612020-07-07 14:58:00 +020011#ifdef CONFIG_ARM_PSCI_CPUIDLE_DOMAIN
Ulf Hanssona5e04542019-10-28 16:32:23 +010012struct device __init *psci_dt_attach_cpu(int cpu);
13#else
14static inline struct device __init *psci_dt_attach_cpu(int cpu) { return NULL; }
15#endif
16
17#endif /* __CPUIDLE_PSCI_H */