mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
![Haojian Zhuang](/assets/img/avatar_default.png)
Marvell MMP2 (aka ARMADA610) is a SoC based on PJ4 core. It's ARMv6 compatible. Support basic interrupt handler and timer, and basic support for MMP2 based FLINT platform. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
39 lines
1,003 B
C
39 lines
1,003 B
C
#ifndef __ASM_MACH_CPUTYPE_H
|
|
#define __ASM_MACH_CPUTYPE_H
|
|
|
|
#include <asm/cputype.h>
|
|
|
|
/*
|
|
* CPU Stepping OLD_ID CPU_ID CHIP_ID
|
|
*
|
|
* PXA168 A0 0x41159263 0x56158400 0x00A0A333
|
|
* PXA910 Y0 0x41159262 0x56158000 0x00F0C910
|
|
* MMP2 Z0 0x560f5811
|
|
*/
|
|
|
|
#ifdef CONFIG_CPU_PXA168
|
|
# define __cpu_is_pxa168(id) \
|
|
({ unsigned int _id = ((id) >> 8) & 0xff; _id == 0x84; })
|
|
#else
|
|
# define __cpu_is_pxa168(id) (0)
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_PXA910
|
|
# define __cpu_is_pxa910(id) \
|
|
({ unsigned int _id = ((id) >> 8) & 0xff; _id == 0x80; })
|
|
#else
|
|
# define __cpu_is_pxa910(id) (0)
|
|
#endif
|
|
|
|
#ifdef CONFIG_CPU_MMP2
|
|
# define __cpu_is_mmp2(id) \
|
|
({ unsigned int _id = ((id) >> 8) & 0xff; _id == 0x58; })
|
|
#else
|
|
# define __cpu_is_mmp2(id) (0)
|
|
#endif
|
|
|
|
#define cpu_is_pxa168() ({ __cpu_is_pxa168(read_cpuid_id()); })
|
|
#define cpu_is_pxa910() ({ __cpu_is_pxa910(read_cpuid_id()); })
|
|
#define cpu_is_mmp2() ({ __cpu_is_mmp2(read_cpuid_id()); })
|
|
|
|
#endif /* __ASM_MACH_CPUTYPE_H */
|