mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 20:25:09 +07:00
5a61ef74f2
The ibm,powerpc-cpu-features device tree binding describes CPU features with ASCII names and extensible compatibility, privilege, and enablement metadata that allows improved flexibility and compatibility with new hardware. The interface is described in detail in ibm,powerpc-cpu-features.txt in this patch. Currently this code is not enabled by default, and there are no released firmwares that provide the binding. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
27 lines
777 B
C
27 lines
777 B
C
#ifndef __ASM_POWERPC_DT_CPU_FTRS_H
|
|
#define __ASM_POWERPC_DT_CPU_FTRS_H
|
|
|
|
/*
|
|
* Copyright 2017, IBM Corporation
|
|
* cpufeatures is the new way to discover CPU features with /cpus/features
|
|
* devicetree. This supersedes PVR based discovery ("cputable"), and older
|
|
* device tree feature advertisement.
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
#include <asm/asm-compat.h>
|
|
#include <asm/feature-fixups.h>
|
|
#include <uapi/asm/cputable.h>
|
|
|
|
#ifdef CONFIG_PPC_DT_CPU_FTRS
|
|
bool dt_cpu_ftrs_init(void *fdt);
|
|
void dt_cpu_ftrs_scan(void);
|
|
bool dt_cpu_ftrs_in_use(void);
|
|
#else
|
|
static inline bool dt_cpu_ftrs_init(void *fdt) { return false; }
|
|
static inline void dt_cpu_ftrs_scan(void) { }
|
|
static inline bool dt_cpu_ftrs_in_use(void) { return false; }
|
|
#endif
|
|
|
|
#endif /* __ASM_POWERPC_DT_CPU_FTRS_H */
|