162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __ASM_POWERPC_DT_CPU_FTRS_H 362306a36Sopenharmony_ci#define __ASM_POWERPC_DT_CPU_FTRS_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci/* 662306a36Sopenharmony_ci * Copyright 2017, IBM Corporation 762306a36Sopenharmony_ci * cpufeatures is the new way to discover CPU features with /cpus/features 862306a36Sopenharmony_ci * devicetree. This supersedes PVR based discovery ("cputable"), and older 962306a36Sopenharmony_ci * device tree feature advertisement. 1062306a36Sopenharmony_ci */ 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#include <linux/types.h> 1362306a36Sopenharmony_ci#include <uapi/asm/cputable.h> 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#ifdef CONFIG_PPC_DT_CPU_FTRS 1662306a36Sopenharmony_cibool dt_cpu_ftrs_init(void *fdt); 1762306a36Sopenharmony_civoid dt_cpu_ftrs_scan(void); 1862306a36Sopenharmony_cibool dt_cpu_ftrs_in_use(void); 1962306a36Sopenharmony_ci#else 2062306a36Sopenharmony_cistatic inline bool dt_cpu_ftrs_init(void *fdt) { return false; } 2162306a36Sopenharmony_cistatic inline void dt_cpu_ftrs_scan(void) { } 2262306a36Sopenharmony_cistatic inline bool dt_cpu_ftrs_in_use(void) { return false; } 2362306a36Sopenharmony_ci#endif 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif /* __ASM_POWERPC_DT_CPU_FTRS_H */ 26