提交 4646dd27 编写于 作者: H Haojian Zhuang 提交者: Eric Miao

[ARM] pxa: add cpu_is_pxa950() and Kconfig options

Signed-off-by: NHaojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
上级 337c1db6
...@@ -21,6 +21,11 @@ config CPU_PXA930 ...@@ -21,6 +21,11 @@ config CPU_PXA930
config CPU_PXA935 config CPU_PXA935
bool "PXA935 (codename Tavor-P65)" bool "PXA935 (codename Tavor-P65)"
select CPU_PXA930
config CPU_PXA950
bool "PXA950 (codename Tavor-PV2)"
select CPU_PXA930
endmenu endmenu
......
...@@ -197,6 +197,16 @@ ...@@ -197,6 +197,16 @@
#define __cpu_is_pxa935(id) (0) #define __cpu_is_pxa935(id) (0)
#endif #endif
#ifdef CONFIG_CPU_PXA950
#define __cpu_is_pxa950(id) \
({ \
unsigned int _id = (id) >> 4 & 0xfff; \
id == 0x697; \
})
#else
#define __cpu_is_pxa950(id) (0)
#endif
#define cpu_is_pxa210() \ #define cpu_is_pxa210() \
({ \ ({ \
__cpu_is_pxa210(read_cpuid_id()); \ __cpu_is_pxa210(read_cpuid_id()); \
...@@ -249,6 +259,13 @@ ...@@ -249,6 +259,13 @@
__cpu_is_pxa935(id); \ __cpu_is_pxa935(id); \
}) })
#define cpu_is_pxa950() \
({ \
unsigned int id = read_cpuid(CPUID_ID); \
__cpu_is_pxa950(id); \
})
/* /*
* CPUID Core Generation Bit * CPUID Core Generation Bit
* <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册