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)
committerStephen Boyd <sboyd@kernel.org>
Wed, 27 May 2020 08:36:22 +0000 (01:36 -0700)
commit2d491066ccd4286538450c227fc5094ceb04b494
treebe3834809f531a8ae2c19f5eca3e00432f4fdf3a
parent8f3d9f354286745c751374f5f1fcafee6b3f3136
clk: ast2600: Fix AHB clock divider for A1

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>
drivers/clk/clk-ast2600.c