]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
imx: mx6 introuduce macro is_mx6dqp
authorPeng Fan <Peng.Fan@freescale.com>
Thu, 11 Jun 2015 10:30:37 +0000 (18:30 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:47:08 +0000 (00:47 +0200)
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>
arch/arm/include/asm/arch-mx6/imx-regs.h
arch/arm/include/asm/arch-mx6/sys_proto.h

index f6ab5d6be17ca964346364903a801946fc6e45a2..03cfac2d7d70d2710656f733da5c5f1b26f94463 100644 (file)
 #define CHIP_REV_1_0                   0x10
 #define CHIP_REV_1_2                   0x12
 #define CHIP_REV_1_5                   0x15
+#define CHIP_REV_2_0                   0x20
 #ifndef CONFIG_SOC_MX6SX
 #define IRAM_SIZE                      0x00040000
 #else
index e9f5ead0e823175b59f9a4123fd6ad077a06380f..10cfd6c1cfa7f3027243d3ef083fcaafc966c78c 100644 (file)
@@ -30,6 +30,9 @@ 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))
 
 struct mxs_register_32;