[ARM] pxa: introduced cpu_is_pxa935() and cpu_is_pxa9xx()
authorEric Miao <eric.miao@marvell.com>
Wed, 26 Nov 2008 07:39:39 +0000 (15:39 +0800)
committerEric Miao <eric.miao@marvell.com>
Tue, 2 Dec 2008 06:42:40 +0000 (14:42 +0800)
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/Kconfig
arch/arm/mach-pxa/include/mach/hardware.h

index 6c59f989a61a7c6e651b802db08bfa1165ca7fb2..83e3dc32be910634de53bfcabd04c77ac2fcd79d 100644 (file)
@@ -19,6 +19,9 @@ config CPU_PXA320
 config CPU_PXA930
        bool "PXA930 (codename Tavor-P)"
 
+config CPU_PXA935
+       bool "PXA935 (codename Tavor-P65)"
+
 endmenu
 
 endif
index f6b4103ecc65990bd4f8e79fd42cf6df3f066f96..e2d6784aa7efc1f20dacf672b6ad6722b5b460fa 100644 (file)
  *  PXA930     B0      0x69056835      0x5E643013
  *  PXA930     B1      0x69056837      0x7E643013
  *  PXA930     B2      0x69056838      0x8E643013
+ *
+ *  PXA935     A0      0x56056931      0x1E653013
+ *  PXA935     B0      0x56056936      0x6E653013
  */
 #ifdef CONFIG_PXA25x
 #define __cpu_is_pxa210(id)                            \
 #define __cpu_is_pxa930(id)                            \
        ({                                              \
                unsigned int _id = (id) >> 4 & 0xfff;   \
-               _id == 0x683;           \
+               _id == 0x683;                           \
         })
 #else
 #define __cpu_is_pxa930(id)    (0)
 #endif
 
+#ifdef CONFIG_CPU_PXA935
+#define __cpu_is_pxa935(id)                            \
+       ({                                              \
+               unsigned int _id = (id) >> 4 & 0xfff;   \
+               _id == 0x693;                           \
+        })
+#else
+#define __cpu_is_pxa935(id)    (0)
+#endif
+
 #define cpu_is_pxa210()                                        \
        ({                                              \
                __cpu_is_pxa210(read_cpuid_id());       \
                __cpu_is_pxa930(id);                    \
         })
 
+#define cpu_is_pxa935()                                        \
+       ({                                              \
+               unsigned int id = read_cpuid(CPUID_ID); \
+               __cpu_is_pxa935(id);                    \
+        })
+
 /*
  * CPUID Core Generation Bit
  * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x
                _id == 0x3;                             \
         })
 
+#define __cpu_is_pxa9xx(id)                            \
+       ({                                              \
+               unsigned int _id = (id) >> 4 & 0xfff;   \
+               _id == 0x683 || _id == 0x693;           \
+        })
+
 #define cpu_is_pxa2xx()                                        \
        ({                                              \
                __cpu_is_pxa2xx(read_cpuid_id());       \
                __cpu_is_pxa3xx(read_cpuid_id());       \
         })
 
+#define cpu_is_pxa9xx()                                        \
+       ({                                              \
+               __cpu_is_pxa9xx(read_cpuid_id());       \
+        })
 /*
  * return current memory and LCD clock frequency in units of 10kHz
  */