summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/include/arch/cpu.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/x86/include/arch/cpu.h b/src/arch/x86/include/arch/cpu.h
index b40dd1bc9e..3e464e4486 100644
--- a/src/arch/x86/include/arch/cpu.h
+++ b/src/arch/x86/include/arch/cpu.h
@@ -166,6 +166,16 @@ void smm_init_completion(void);
void smm_lock(void);
void smm_setup_structures(void *gnvs, void *tcg, void *smi1);
+static inline bool cpu_is_amd(void)
+{
+ return CONFIG(CPU_AMD_AGESA) || CONFIG(CPU_AMD_PI);
+}
+
+static inline bool cpu_is_intel(void)
+{
+ return CONFIG(CPU_INTEL_COMMON) || CONFIG(SOC_INTEL_COMMON);
+}
+
#ifndef __SIMPLE_DEVICE__
struct device;