Andres Salomon | f62e518 | 2007-07-21 17:11:38 +0200 | [diff] [blame] | 1 | /* |
| 2 | * AMD Geode definitions |
| 3 | * Copyright (C) 2006, Advanced Micro Devices, Inc. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of version 2 of the GNU General Public License |
| 7 | * as published by the Free Software Foundation. |
| 8 | */ |
| 9 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 10 | #ifndef _ASM_X86_GEODE_H |
| 11 | #define _ASM_X86_GEODE_H |
Andres Salomon | f62e518 | 2007-07-21 17:11:38 +0200 | [diff] [blame] | 12 | |
| 13 | #include <asm/processor.h> |
| 14 | #include <linux/io.h> |
Andres Salomon | 5f0a96b | 2009-12-14 18:00:32 -0800 | [diff] [blame] | 15 | #include <linux/cs5535.h> |
Andres Salomon | f62e518 | 2007-07-21 17:11:38 +0200 | [diff] [blame] | 16 | |
Andres Salomon | f62e518 | 2007-07-21 17:11:38 +0200 | [diff] [blame] | 17 | static inline int is_geode_gx(void) |
| 18 | { |
| 19 | return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) && |
| 20 | (boot_cpu_data.x86 == 5) && |
| 21 | (boot_cpu_data.x86_model == 5)); |
| 22 | } |
| 23 | |
| 24 | static inline int is_geode_lx(void) |
| 25 | { |
| 26 | return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) && |
| 27 | (boot_cpu_data.x86 == 5) && |
| 28 | (boot_cpu_data.x86_model == 10)); |
| 29 | } |
| 30 | |
| 31 | static inline int is_geode(void) |
| 32 | { |
| 33 | return (is_geode_gx() || is_geode_lx()); |
| 34 | } |
| 35 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 36 | #endif /* _ASM_X86_GEODE_H */ |