linux-stable/drivers/clk/actions
Cristian Ciocaltea 94221679ee clk: actions: Fix AHPPREDIV-H-AHB clock chain on Owl S500 SoC
[ Upstream commit fd90b5b904 ]

There are a few issues with the setup of the Actions Semi Owl S500 SoC's
clock chain involving AHPPREDIV, H and AHB clocks:

* AHBPREDIV clock is defined as a muxer only, although it also acts as
  a divider.
* H clock is using a wrong divider register offset
* AHB is defined as a multi-rate factor clock, but it is actually just
  a fixed pass clock.

Let's provide the following fixes:

* Change AHBPREDIV clock to an ungated OWL_COMP_DIV definition.
* Use the correct register shift value in the OWL_DIVIDER definition
  for H clock
* Drop the unneeded 'ahb_factor_table[]' and change AHB clock to an
  ungated OWL_COMP_FIXED_FACTOR definition.

Fixes: ed6b4795ec ("clk: actions: Add clock driver for S500 SoC")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Link: https://lore.kernel.org/r/21c1abd19a7089b65a34852ac6513961be88cbe1.1623354574.git.cristian.ciocaltea@gmail.com
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:56:31 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
owl-common.c clk: actions: Don't reference clk_init_data after registration 2019-08-16 10:19:49 -07:00
owl-common.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-composite.c clk: actions: Add composite clock support 2018-04-06 14:25:18 -07:00
owl-composite.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-divider.c clk: actions: Add divider clock support 2018-04-06 14:18:17 -07:00
owl-divider.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-factor.c clk: actions: Fix factor clk struct member access 2019-09-17 12:54:44 -07:00
owl-factor.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-fixed-factor.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-gate.c
owl-gate.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-mux.c clk: actions: Add mux clock support 2018-04-06 14:17:46 -07:00
owl-mux.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-pll.c clk: actions: Add configurable PLL delay 2019-02-21 23:58:12 -08:00
owl-pll.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-reset.c clk: actions: Add Actions Semi Owl SoCs Reset Management Unit support 2018-10-16 14:41:39 -07:00
owl-reset.h clk: actions: Use the correct style for SPDX License Identifier 2019-05-01 13:01:07 -07:00
owl-s500.c clk: actions: Fix AHPPREDIV-H-AHB clock chain on Owl S500 SoC 2021-07-14 16:56:31 +02:00
owl-s700.c clk: actions: Add Actions Semi S700 SoC Reset Management Unit support 2018-10-16 14:41:47 -07:00
owl-s900.c clk: actions: Add Actions Semi S900 SoC Reset Management Unit support 2018-10-16 14:41:53 -07:00