1 From 5dad39098c3c8686f23db638505bf00ae2cc092f Mon Sep 17 00:00:00 2001
2 From: Robby Cai <r63905@freescale.com>
3 Date: Fri, 23 May 2014 16:02:13 +0800
4 Subject: [PATCH 01/10] ENGR00309838 ARM: imx6sl: gpc: add chip revision check
6 Organization: O.S. Systems Software LTDA.
8 The dispmix feature works without problem since TO1.2.
9 This patch adds the back-compatibility for older chip.
11 Signed-off-by: Robby Cai <r63905@freescale.com>
12 (cherry picked from commit a187b916d55052fed10de1797009250095b598fb)
14 Upstream-Status: Pending
16 arch/arm/mach-imx/gpc.c | 8 +++++---
17 1 file changed, 5 insertions(+), 3 deletions(-)
19 diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c
20 index 9734327..25e987c 100644
21 --- a/arch/arm/mach-imx/gpc.c
22 +++ b/arch/arm/mach-imx/gpc.c
25 - * Copyright 2011-2013 Freescale Semiconductor, Inc.
26 + * Copyright 2011-2014 Freescale Semiconductor, Inc.
27 * Copyright 2011 Linaro Ltd.
29 * The code contained herein is licensed under the GNU General Public
30 @@ -90,7 +90,8 @@ static void imx_disp_clk(bool enable)
32 static void imx_gpc_dispmix_on(void)
34 - if (cpu_is_imx6sl()) {
35 + if (cpu_is_imx6sl() &&
36 + imx_get_soc_revision() >= IMX_CHIP_REVISION_1_2) {
39 writel_relaxed(0x0, gpc_base + GPC_PGC_DISP_PGCR_OFFSET);
40 @@ -105,7 +106,8 @@ static void imx_gpc_dispmix_on(void)
42 static void imx_gpc_dispmix_off(void)
44 - if (cpu_is_imx6sl()) {
45 + if (cpu_is_imx6sl() &&
46 + imx_get_soc_revision() >= IMX_CHIP_REVISION_1_2) {
49 writel_relaxed(0xFFFFFFFF,