|
@@ -74,6 +74,7 @@
|
|
#define ARM_CPU_PART_CORTEX_A12 0x4100c0d0
|
|
#define ARM_CPU_PART_CORTEX_A12 0x4100c0d0
|
|
#define ARM_CPU_PART_CORTEX_A17 0x4100c0e0
|
|
#define ARM_CPU_PART_CORTEX_A17 0x4100c0e0
|
|
#define ARM_CPU_PART_CORTEX_A15 0x4100c0f0
|
|
#define ARM_CPU_PART_CORTEX_A15 0x4100c0f0
|
|
|
|
+#define ARM_CPU_PART_MASK 0xff00fff0
|
|
|
|
|
|
#define ARM_CPU_XSCALE_ARCH_MASK 0xe000
|
|
#define ARM_CPU_XSCALE_ARCH_MASK 0xe000
|
|
#define ARM_CPU_XSCALE_ARCH_V1 0x2000
|
|
#define ARM_CPU_XSCALE_ARCH_V1 0x2000
|
|
@@ -179,7 +180,7 @@ static inline unsigned int __attribute_const__ read_cpuid_implementor(void)
|
|
*/
|
|
*/
|
|
static inline unsigned int __attribute_const__ read_cpuid_part(void)
|
|
static inline unsigned int __attribute_const__ read_cpuid_part(void)
|
|
{
|
|
{
|
|
- return read_cpuid_id() & 0xff00fff0;
|
|
|
|
|
|
+ return read_cpuid_id() & ARM_CPU_PART_MASK;
|
|
}
|
|
}
|
|
|
|
|
|
static inline unsigned int __attribute_const__ __deprecated read_cpuid_part_number(void)
|
|
static inline unsigned int __attribute_const__ __deprecated read_cpuid_part_number(void)
|