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