Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * AMD Geode definitions
0004  * Copyright (C) 2006, Advanced Micro Devices, Inc.
0005  */
0006 
0007 #ifndef _ASM_X86_GEODE_H
0008 #define _ASM_X86_GEODE_H
0009 
0010 #include <asm/processor.h>
0011 #include <linux/io.h>
0012 #include <linux/cs5535.h>
0013 
0014 static inline int is_geode_gx(void)
0015 {
0016     return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) &&
0017         (boot_cpu_data.x86 == 5) &&
0018         (boot_cpu_data.x86_model == 5));
0019 }
0020 
0021 static inline int is_geode_lx(void)
0022 {
0023     return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) &&
0024         (boot_cpu_data.x86 == 5) &&
0025         (boot_cpu_data.x86_model == 10));
0026 }
0027 
0028 static inline int is_geode(void)
0029 {
0030     return (is_geode_gx() || is_geode_lx());
0031 }
0032 
0033 #endif /* _ASM_X86_GEODE_H */