summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-mx6/sys_proto.h
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-06-11 18:30:37 +0800
committerStefano Babic <sbabic@denx.de>2015-06-27 18:18:54 +0200
commitf9a1e9f8cc12ec5d68a009b9287633c6995b8920 (patch)
treeac7d4e92748940737f32a7800f6d5d7043103018 /arch/arm/include/asm/arch-mx6/sys_proto.h
parentdfd4861c22389066e37d104ddfb925321231f876 (diff)
imx: mx6 introuduce macro is_mx6dqp
Add a new revision CHIP_REV_2_0. Introudce macro is_mx6dqp, dqp means Dual/Quad Plus. Since Dual/Quad Plus use same cpu type with Dual/Quad, but different revision(Major Lower), we use this macro for Dual/Quad Plus. Signed-off-by: Ye.Li <B37916@freescale.com> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'arch/arm/include/asm/arch-mx6/sys_proto.h')
-rw-r--r--arch/arm/include/asm/arch-mx6/sys_proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h
index 9756708452..28c77a498e 100644
--- a/arch/arm/include/asm/arch-mx6/sys_proto.h
+++ b/arch/arm/include/asm/arch-mx6/sys_proto.h
@@ -30,6 +30,10 @@ const char *get_imx_type(u32 imxtype);
unsigned imx_ddr_size(void);
void set_chipselect_size(int const);
+#define is_mx6dqp() ((is_cpu_type(MXC_CPU_MX6Q) || \
+ is_cpu_type(MXC_CPU_MX6D)) && \
+ (soc_rev() >= CHIP_REV_2_0))
+
/*
* Initializes on-chip ethernet controllers.
* to override, implement board_eth_init()