Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Nicholas Piggin | 5a61ef7 | 2017-05-09 13:16:52 +1000 | [diff] [blame] | 2 | #ifndef __ASM_POWERPC_DT_CPU_FTRS_H |
| 3 | #define __ASM_POWERPC_DT_CPU_FTRS_H |
| 4 | |
| 5 | /* |
| 6 | * Copyright 2017, IBM Corporation |
| 7 | * cpufeatures is the new way to discover CPU features with /cpus/features |
| 8 | * devicetree. This supersedes PVR based discovery ("cputable"), and older |
| 9 | * device tree feature advertisement. |
| 10 | */ |
| 11 | |
| 12 | #include <linux/types.h> |
Nicholas Piggin | 5a61ef7 | 2017-05-09 13:16:52 +1000 | [diff] [blame] | 13 | #include <uapi/asm/cputable.h> |
| 14 | |
| 15 | #ifdef CONFIG_PPC_DT_CPU_FTRS |
| 16 | bool dt_cpu_ftrs_init(void *fdt); |
| 17 | void dt_cpu_ftrs_scan(void); |
| 18 | bool dt_cpu_ftrs_in_use(void); |
| 19 | #else |
| 20 | static inline bool dt_cpu_ftrs_init(void *fdt) { return false; } |
| 21 | static inline void dt_cpu_ftrs_scan(void) { } |
| 22 | static inline bool dt_cpu_ftrs_in_use(void) { return false; } |
| 23 | #endif |
| 24 | |
| 25 | #endif /* __ASM_POWERPC_DT_CPU_FTRS_H */ |