ARM: amba: Make driver_override output consistent with other buses
[linux/fpc-iii.git] / arch / powerpc / include / asm / dt_cpu_ftrs.h
blob71515d909ed121912d4542b83abe17b988f15df8
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_POWERPC_DT_CPU_FTRS_H
3 #define __ASM_POWERPC_DT_CPU_FTRS_H
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.
12 #include <linux/types.h>
13 #include <asm/asm-compat.h>
14 #include <asm/feature-fixups.h>
15 #include <uapi/asm/cputable.h>
17 #ifdef CONFIG_PPC_DT_CPU_FTRS
18 bool dt_cpu_ftrs_init(void *fdt);
19 void dt_cpu_ftrs_scan(void);
20 bool dt_cpu_ftrs_in_use(void);
21 #else
22 static inline bool dt_cpu_ftrs_init(void *fdt) { return false; }
23 static inline void dt_cpu_ftrs_scan(void) { }
24 static inline bool dt_cpu_ftrs_in_use(void) { return false; }
25 #endif
27 #endif /* __ASM_POWERPC_DT_CPU_FTRS_H */