clk: aspeed: Support HPLL strapping on ast2400
authorJoel Stanley <joel@jms.id.au>
Thu, 28 Jun 2018 23:15:40 +0000 (08:45 +0930)
committerStephen Boyd <sboyd@kernel.org>
Wed, 11 Jul 2018 16:34:25 +0000 (09:34 -0700)
commit565b9937f44d5ab7956339b6c105c03471ce3243
tree05bad9b03b55a1f0b1327b93d9be5cb87bddeabf
parent61c40f35f5cd6f67ccbd7319a1722eb78c815989
clk: aspeed: Support HPLL strapping on ast2400

The HPLL can be configured through a register (SCU24), however some
platforms chose to configure it through the strapping settings and do
not use the register. This was not noticed as the logic for bit 18 in
SCU24 was confused: set means programmed, but the driver read it as set
means strapped.

This gives us the correct HPLL value on Palmetto systems, from which
most of the peripheral clocks are generated.

Fixes: 5eda5d79e4be ("clk: Add clock driver for ASPEED BMC SoCs")
Cc: stable@vger.kernel.org # v4.15
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-aspeed.c