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)
committerStephen Boyd <sboyd@kernel.org>
Thu, 11 Feb 2021 20:36:04 +0000 (12:36 -0800)
commit6286ce1e3ece54799f12775f8ce2a1cba9cbcfc5
tree8691f3d743ffb06582cfa8d6249fcdbd4a569082
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
clk: aspeed: Fix APLL calculate formula from ast2600-A2

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