Chunyan Zhang
8b4f6b8d59
clk: sprd: check its parent status before reading gate clock
...
Some clocks only can be accessed if their parent is enabled. mipi_csi_xx
clocks on SC9863A are an examples. We have to ensure the parent clock is
enabled when reading those clocks.
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com >
Link: https://lkml.kernel.org/r/20200527053638.31439-2-zhang.lyra@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org >
2020-05-26 23:41:14 -07:00
Xiaolong Zhang
187e5cd2d1
clk: sprd: add gate for pll clocks
...
Some sprd's gate clocks are used to the switch of pll, which
need to wait a certain time for stable after being enabled.
Signed-off-by: Xiaolong Zhang <xiaolong.zhang@unisoc.com >
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com >
Link: https://lkml.kernel.org/r/20200304072730.9193-2-zhang.lyra@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org >
2020-03-24 19:03:56 -07:00
Chunyan Zhang
cdb09f67a2
clk: sprd: add gate clock support
...
Some clocks on the Spreadtrum's SoCs are just simple gates. Add
support for those clocks.
Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com >
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org >
2017-12-21 15:00:51 -08:00