From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jernej =?utf-8?B?xaBrcmFiZWM=?= Date: Wed, 28 Apr 2021 17:21:36 +0200 Subject: [linux-sunxi] [PATCH] sunxi: clock: H6/H616: Fix PLL6 clock calculation In-Reply-To: <20210428100555.8077-1-andre.przywara@arm.com> References: <20210428100555.8077-1-andre.przywara@arm.com> Message-ID: <6894461.cN26AFp3AY@kista> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi! Dne sreda, 28. april 2021 ob 12:05:55 CEST je Andre Przywara napisal(a): > The "n" factor of the PLL_PERIPH0 clock is using the usual +1 encoding, > so we need to adjust the register value before doing the calculation. > > This fixes the MMC clock setup on those SoCs, which could be slightly off > due to the wrong parent frequency: > mmc 2 set mod-clk req 52000000 parent 1176000000 n 2 m 12 rate 49000000 > > Signed-off-by: Andre Przywara Good catch! Reviewed-by: Jernej Skrabec Best regards, Jernej