1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* 3 * AMD Geode definitions 4 * Copyright (C) 2006, Advanced Micro Devices, Inc. 5 */ 6 7 #ifndef _ASM_X86_GEODE_H 8 #define _ASM_X86_GEODE_H 9 10 #include <asm/processor.h> 11 #include <linux/io.h> 12 #include <linux/cs5535.h> 13 is_geode_gx(void)14static inline int is_geode_gx(void) 15 { 16 return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) && 17 (boot_cpu_data.x86 == 5) && 18 (boot_cpu_data.x86_model == 5)); 19 } 20 is_geode_lx(void)21static inline int is_geode_lx(void) 22 { 23 return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) && 24 (boot_cpu_data.x86 == 5) && 25 (boot_cpu_data.x86_model == 10)); 26 } 27 is_geode(void)28static inline int is_geode(void) 29 { 30 return (is_geode_gx() || is_geode_lx()); 31 } 32 33 #endif /* _ASM_X86_GEODE_H */ 34