Commit | Line | Data |
---|---|---|
25763b3c | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
f62e5184 AS |
2 | /* |
3 | * AMD Geode definitions | |
4 | * Copyright (C) 2006, Advanced Micro Devices, Inc. | |
f62e5184 AS |
5 | */ |
6 | ||
1965aae3 PA |
7 | #ifndef _ASM_X86_GEODE_H |
8 | #define _ASM_X86_GEODE_H | |
f62e5184 AS |
9 | |
10 | #include <asm/processor.h> | |
11 | #include <linux/io.h> | |
5f0a96b0 | 12 | #include <linux/cs5535.h> |
f62e5184 | 13 | |
f62e5184 AS |
14 | static 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 | ||
21 | static 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 | ||
28 | static inline int is_geode(void) | |
29 | { | |
30 | return (is_geode_gx() || is_geode_lx()); | |
31 | } | |
32 | ||
1965aae3 | 33 | #endif /* _ASM_X86_GEODE_H */ |