clk: aspeed: Fix APLL calculate formula from ast2600-A2
authorRyan Chen <ryan_chen@aspeedtech.com>
Tue, 19 Jan 2021 06:17:15 +0000 (14:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 09:26:34 +0000 (10:26 +0100)
commit046615ffd431d84f106a0d0b19df5901175d91b3
tree2ea611cfd821c54ee503a50e8ec5c2a85bb90042
parent9230273026667a97e23e5dd28a8dadd955f259d1
clk: aspeed: Fix APLL calculate formula from ast2600-A2

[ Upstream commit 6286ce1e3ece54799f12775f8ce2a1cba9cbcfc5 ]

Starting from A2, the A-PLL calculation has changed. Use the
existing formula for A0/A1 and the new formula for A2 onwards.

Fixes: d3d04f6c330a ("clk: Add support for AST2600 SoC")
Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
Link: https://lore.kernel.org/r/20210119061715.6043-1-ryan_chen@aspeedtech.com
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-ast2600.c