geode.h 693 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * AMD Geode definitions
  4. * Copyright (C) 2006, Advanced Micro Devices, Inc.
  5. */
  6. #ifndef _ASM_X86_GEODE_H
  7. #define _ASM_X86_GEODE_H
  8. #include <asm/processor.h>
  9. #include <linux/io.h>
  10. #include <linux/cs5535.h>
  11. static inline int is_geode_gx(void)
  12. {
  13. return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) &&
  14. (boot_cpu_data.x86 == 5) &&
  15. (boot_cpu_data.x86_model == 5));
  16. }
  17. static inline int is_geode_lx(void)
  18. {
  19. return ((boot_cpu_data.x86_vendor == X86_VENDOR_AMD) &&
  20. (boot_cpu_data.x86 == 5) &&
  21. (boot_cpu_data.x86_model == 10));
  22. }
  23. static inline int is_geode(void)
  24. {
  25. return (is_geode_gx() || is_geode_lx());
  26. }
  27. #endif /* _ASM_X86_GEODE_H */