]> code.ossystems Code Review - meta-freescale.git/blob
962a80498756af7b935845fd4a3c0cc3e89fa0cf
[meta-freescale.git] /
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
5  for dispmix
6 Organization: O.S. Systems Software LTDA.
7
8 The dispmix feature works without problem since TO1.2.
9 This patch adds the back-compatibility for older chip.
10
11 Signed-off-by: Robby Cai <r63905@freescale.com>
12 (cherry picked from commit a187b916d55052fed10de1797009250095b598fb)
13
14 Upstream-Status: Pending
15 ---
16  arch/arm/mach-imx/gpc.c | 8 +++++---
17  1 file changed, 5 insertions(+), 3 deletions(-)
18
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
23 @@ -1,5 +1,5 @@
24  /*
25 - * Copyright 2011-2013 Freescale Semiconductor, Inc.
26 + * Copyright 2011-2014 Freescale Semiconductor, Inc.
27   * Copyright 2011 Linaro Ltd.
28   *
29   * The code contained herein is licensed under the GNU General Public
30 @@ -90,7 +90,8 @@ static void imx_disp_clk(bool enable)
31  
32  static void imx_gpc_dispmix_on(void)
33  {
34 -       if (cpu_is_imx6sl()) {
35 +       if (cpu_is_imx6sl() &&
36 +               imx_get_soc_revision() >= IMX_CHIP_REVISION_1_2) {
37                 imx_disp_clk(true);
38  
39                 writel_relaxed(0x0, gpc_base + GPC_PGC_DISP_PGCR_OFFSET);
40 @@ -105,7 +106,8 @@ static void imx_gpc_dispmix_on(void)
41  
42  static void imx_gpc_dispmix_off(void)
43  {
44 -       if (cpu_is_imx6sl()) {
45 +       if (cpu_is_imx6sl() &&
46 +               imx_get_soc_revision() >= IMX_CHIP_REVISION_1_2) {
47                 imx_disp_clk(true);
48  
49                 writel_relaxed(0xFFFFFFFF,
50 -- 
51 2.1.0
52