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:50:35 +0000 (17:50 +0200)
commit24aa54a8b0ec933cf5b114e868ce660933f20f43
tree571f551dcec439612a187a2a3bd3c340b4af133d
parentc66e72f1721a6dfd62aff01aa05f23b9d3dc6b6b
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