cpu.h 407 B

12345678910111213141516
  1. #ifndef __ASM_ARCH_CPU_H__
  2. #define __ASM_ARCH_CPU_H__
  3. #include <asm/cputype.h>
  4. #define MCS8140_ID 0x41069260 /* ARM926EJ-S */
  5. #define MCS814X_MASK 0xff0ffff0
  6. #ifdef CONFIG_MCS8140
  7. /* Moschip MCS8140 is based on an ARM926EJ-S core */
  8. #define soc_is_mcs8140() ((read_cpuid_id() & MCS814X_MASK) == MCS8140_ID)
  9. #else
  10. #define soc_is_mcs8140() (0)
  11. #endif /* !CONFIG_MCS8140 */
  12. #endif /* __ASM_ARCH_CPU_H__ */