From: Maxime Ripard Date: Mon, 25 Mar 2019 10:31:26 +0100 Subject: [U-Boot] [PATCH] sunxi: video: HDMI: Fix clock setup In-Reply-To: <20190324182640.31813-1-jernej.skrabec@siol.net> References: <20190324182640.31813-1-jernej.skrabec@siol.net> Message-ID: <20190325093126.2gxgshaawem4pjb7@flea> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Mar 24, 2019 at 07:26:40PM +0100, Jernej Skrabec wrote: > Currently, HDMI driver doesn't consider minimum and maximum allowed rate > of pll3 (video PLL). It works most of the time, but not always. > > Consider monitor with resolution 1920x1200, which has pixel clock rate > of 154 MHz. Current code would determine that pll3 rate has to be set to > 154 MHz. However, minimum supported rate is 192 MHz. In this case video > output just won't work. > > The reason why the driver is written in the way it is, is that at the > time HDMI PHY and clock configuration wasn't fully understood. But now > we have needed knowledge, so the issue can be fixed. > > With this fix, clock configuration routine uses full range (1-16) for > clock divider instead of limited one (1, 2, 4, 11). It also considers > minimum and maximum allowed rate for pll3. > > Fixes: 56009451d843 ("sunxi: video: Add A64/H3/H5 HDMI driver") > Signed-off-by: Jernej Skrabec Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 228 bytes Desc: not available URL: