From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Wed, 6 Sep 2017 10:18:47 +0800 Subject: [U-Boot] [U-Boot,2/3] imx: mx6: correct IPU clock In-Reply-To: <0004f64b-813a-4f75-698f-e8c740f0a783@cox.net> References: <1457510843-6535-2-git-send-email-van.freenix@gmail.com> <0004f64b-813a-4f75-698f-e8c740f0a783@cox.net> Message-ID: <20170906021844.GB12592@linux-7smt.suse> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 04, 2017 at 07:37:01PM -0700, Eric Nelson wrote: >Hi Peng, > >Pardon the reference to an old update, but do you have a description >of the symptoms that brought about this patch? Sorry for late reply. Runtime calculation is better. The clk here is IPU HSP clock, which default sources mmdc ch clock. To DL, the mmdc ch clock is 396M and the IPU HSP podf is 2, so the lock is 198M. Regards, Peng. > >On 03/09/2016 01:07 AM, Peng Fan wrote: >>The CONFIG_IPUV3_CLK should be 264000000, to i.MX6DL, it should be >>198000000. >> >>Signed-off-by: Peng Fan >>Signed-off-by: Sandor Yu >>Cc: Stefano Babic >>Cc: Fabio Estevam >>Cc: Peter Robinson >>--- >> include/configs/mx6sabre_common.h | 6 +++++- >> 1 file changed, 5 insertions(+), 1 deletion(-) >> >>diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h >>index 29d1f91..a6d821b 100644 >>--- a/include/configs/mx6sabre_common.h >>+++ b/include/configs/mx6sabre_common.h >>@@ -225,7 +225,11 @@ >> #define CONFIG_BMP_16BPP >> #define CONFIG_VIDEO_LOGO >> #define CONFIG_VIDEO_BMP_LOGO >>-#define CONFIG_IPUV3_CLK 260000000 >>+#ifdef CONFIG_MX6DL >>+#define CONFIG_IPUV3_CLK 198000000 >>+#else >>+#define CONFIG_IPUV3_CLK 264000000 >>+#endif > > >Note that this should probably be applied for other boards >which are compiled for multiple CPU types. > >At least the Boundary Nitrogen boards, but probably others >like Wand have ordering options for DL or Solo processors >and may need the reduced clock rate. > > >> #define CONFIG_IMX_HDMI >> #define CONFIG_IMX_VIDEO_SKIP > >Please advise, > > >Eric