From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6ED38E00874; Wed, 3 Dec 2014 10:39:20 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.179 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 19347E00461 for ; Wed, 3 Dec 2014 10:39:15 -0800 (PST) Received: by mail-pd0-f179.google.com with SMTP id w10so16028195pde.38 for ; Wed, 03 Dec 2014 10:39:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=DsxLs/QLhGe3RAQTwCotg+Jc6KBn4kCAYIi40bbNz9M=; b=bAVyx1N2k5MSHSxeyYAVrGr48Rho6kfbADeCr3l+wVxT4EMHZruJfuigr7RqSDkK+/ GGV1Ie06ljvBAWw8z/NgXuzDdB0jf+/MYe6EeeC3ub3myh1zpC27Syw55m9bZIGx/XYF uR0kIJePqjoY5Eaop3dD9Jf0zJUOJqoviVqFtkoJp/RiDBCJJBFIatkRiIx62T86W9p5 Ru/ogPLeUm7UPtRLsun7gN3VN3OrDyKJKZc4J/n5UqQOzii4PvuYynAv3Cy8r4qpF3Vk 17tx2CB3Btx/Oa2biFxtjjA+aPASFKUWjFsskz0GGRp6YcJJIKFdc8wsxxxZKIIbpDDE hx9Q== X-Gm-Message-State: ALoCoQmWsMFu9x2mNZqNAMmB36aGr/9cMFCpxbWq+7LtjBKxFqLmE4TfZslWlPm/rFqlo1U5iY6B X-Received: by 10.70.128.45 with SMTP id nl13mr11270364pdb.126.1417631954989; Wed, 03 Dec 2014 10:39:14 -0800 (PST) Received: from [192.168.0.139] (wsip-70-184-93-199.ph.ph.cox.net. [70.184.93.199]) by mx.google.com with ESMTPSA id oe6sm23654307pbc.68.2014.12.03.10.39.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Dec 2014 10:39:14 -0800 (PST) Message-ID: <547F58D0.5030206@boundarydevices.com> Date: Wed, 03 Dec 2014 11:39:12 -0700 From: Eric Nelson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Gary Bisson , meta-freescale@yoctoproject.org References: <1417626447-17194-1-git-send-email-bisson.gary@gmail.com> <1417626447-17194-3-git-send-email-bisson.gary@gmail.com> In-Reply-To: <1417626447-17194-3-git-send-email-bisson.gary@gmail.com> Cc: fabio.estevam@freescale.com, otavio@ossystems.com.br Subject: Re: [PATCH 2/2][dizzy-next] linux-imx: add clock patch for T1.0 version of i.MX6Q X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 18:39:20 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Gary, On 12/03/2014 10:07 AM, Gary Bisson wrote: > A divider was still set to 4 instead of forcing it to 1 as those video > dividers weren't working on early revisions of the SoC. > > Signed-off-by: Gary Bisson > --- > ...6q-fix-video-divider-for-revision-1.0-of-.patch | 33 ++++++++++++++++++++++ > recipes-kernel/linux/linux-imx_3.10.17.bb | 2 ++ > 2 files changed, 35 insertions(+) > create mode 100644 recipes-kernel/linux/linux-imx-3.10.17/0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch > > diff --git a/recipes-kernel/linux/linux-imx-3.10.17/0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch b/recipes-kernel/linux/linux-imx-3.10.17/0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch > new file mode 100644 > index 0000000..bcddb16 > --- /dev/null > +++ b/recipes-kernel/linux/linux-imx-3.10.17/0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch > @@ -0,0 +1,33 @@ > +From ffcd8b98f6ba3a2b7a4aecc1e5e454de5fa5c4c3 Mon Sep 17 00:00:00 2001 > +From: Gary Bisson > +Date: Tue, 2 Dec 2014 22:11:14 -0800 > +Subject: [PATCH] ARM: clk-imx6q: fix video divider for revision 1.0 of i.MX6q > + > +As post dividers do not work on i.MX6Q revision 1.0 they must be fixed > +to 1. As the table index was wrong, a divider a of 4 could still be > +requested which implied the clock not to be set properly. This is the > +root cause of the HDMI not working at high resolution on T1.0 version of > +the SoC, giving the following error: > +mxc_sdc_fb fb.27: timeout when waiting for flip irq > + > +Signed-off-by: Gary Bisson > +--- > + arch/arm/mach-imx/clk-imx6q.c | 2 +- > + 1 file changed, 1 insertion(+), 1 deletion(-) > + > +diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c > +index e09b1e8..1e5c410 100644 > +--- a/arch/arm/mach-imx/clk-imx6q.c > ++++ b/arch/arm/mach-imx/clk-imx6q.c > +@@ -279,7 +279,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) > + post_div_table[1].div = 1; > + post_div_table[2].div = 1; > + video_div_table[1].div = 1; This was clearly a typo, since video_div_table[2] is already initialized to 1, whereas video_div_table[3] is initialized to 4. > +- video_div_table[2].div = 1; > ++ video_div_table[3].div = 1; > + }; > + > + /* type name parent_name base div_mask */ > +-- > +2.1.3 > + > diff --git a/recipes-kernel/linux/linux-imx_3.10.17.bb b/recipes-kernel/linux/linux-imx_3.10.17.bb > index cae1489..143eaab 100644 > --- a/recipes-kernel/linux/linux-imx_3.10.17.bb > +++ b/recipes-kernel/linux/linux-imx_3.10.17.bb > @@ -15,4 +15,6 @@ SRCBRANCH = "imx_3.10.17_1.0.0_ga" > SRCREV = "33597e348b2d60dd5c71890ef7b7d3d3fd6e4e97" > LOCALVERSION = "-1.0.2_ga" > > +SRC_URI += "file://0001-ARM-clk-imx6q-fix-video-divider-for-revision-1.0-of-.patch" > + > COMPATIBLE_MACHINE = "(mx6)" > Acked-by: Eric Nelson And, on a SABRE Lite with TO 1.0 using linux-boundary-3.10.17_1.0.2_ga: Tested-by: Eric Nelson For use with linux-boundary, I'd like to pull this patch directly into our tree, so it's available to folks not using YP.