18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __ASM_POWERPC_DT_CPU_FTRS_H 38c2ecf20Sopenharmony_ci#define __ASM_POWERPC_DT_CPU_FTRS_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* 68c2ecf20Sopenharmony_ci * Copyright 2017, IBM Corporation 78c2ecf20Sopenharmony_ci * cpufeatures is the new way to discover CPU features with /cpus/features 88c2ecf20Sopenharmony_ci * devicetree. This supersedes PVR based discovery ("cputable"), and older 98c2ecf20Sopenharmony_ci * device tree feature advertisement. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#include <linux/types.h> 138c2ecf20Sopenharmony_ci#include <uapi/asm/cputable.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#ifdef CONFIG_PPC_DT_CPU_FTRS 168c2ecf20Sopenharmony_cibool dt_cpu_ftrs_init(void *fdt); 178c2ecf20Sopenharmony_civoid dt_cpu_ftrs_scan(void); 188c2ecf20Sopenharmony_cibool dt_cpu_ftrs_in_use(void); 198c2ecf20Sopenharmony_ci#else 208c2ecf20Sopenharmony_cistatic inline bool dt_cpu_ftrs_init(void *fdt) { return false; } 218c2ecf20Sopenharmony_cistatic inline void dt_cpu_ftrs_scan(void) { } 228c2ecf20Sopenharmony_cistatic inline bool dt_cpu_ftrs_in_use(void) { return false; } 238c2ecf20Sopenharmony_ci#endif 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif /* __ASM_POWERPC_DT_CPU_FTRS_H */ 26