RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / x86 / include / asm / geode.h
blob7cd73552a4e8021517ddc3bca5d47ed9bfc7b811
1 /*
2 * AMD Geode definitions
3 * Copyright (C) 2006, Advanced Micro Devices, Inc.
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 */
10 #ifndef _ASM_X86_GEODE_H
11 #define _ASM_X86_GEODE_H
13 #include <asm/processor.h>
14 #include <linux/io.h>
15 #include <linux/cs5535.h>
17 static inline int is_geode_gx(void)
19 return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) &&
20 (boot_cpu_data.x86 == 5) &&
21 (boot_cpu_data.x86_model == 5));
24 static inline int is_geode_lx(void)
26 return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) &&
27 (boot_cpu_data.x86 == 5) &&
28 (boot_cpu_data.x86_model == 10));
31 static inline int is_geode(void)
33 return (is_geode_gx() || is_geode_lx());
36 #endif /* _ASM_X86_GEODE_H */