clk: ast2600: Fix AHB clock divider for A1
authorEddie James <eajames@linux.ibm.com>
Wed, 8 Apr 2020 20:36:16 +0000 (15:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:58 +0000 (17:48 +0200)
commitc06a864367bf2c01a1c889f7fdc540ce7cada1bf
treea032dc153cc75a303efe3426590629ae7dc956a2
parent1e84ccf45937c66137a568ed8b3d127591127a2a
clk: ast2600: Fix AHB clock divider for A1

[ Upstream commit 2d491066ccd4286538450c227fc5094ceb04b494 ]

The latest specs for the AST2600 A1 chip include some different bit
definitions for calculating the AHB clock divider. Implement these in
order to get the correct AHB clock value in Linux.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lkml.kernel.org/r/20200408203616.4031-1-eajames@linux.ibm.com
Fixes: d3d04f6c330a ("clk: Add support for AST2600 SoC")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-ast2600.c