]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: clk-alpha-pll: same regs and ops for trion and lucid
authorJonathan Marek <jonathan@marek.ca>
Thu, 9 Jul 2020 13:52:34 +0000 (09:52 -0400)
committerStephen Boyd <sboyd@kernel.org>
Fri, 24 Jul 2020 08:51:06 +0000 (01:51 -0700)
commit2fc894ccc6e389edcb615720bb8ed1ce7f0d8e72
tree92917893bc13f83192abf06d2520b790c8bd836d
parentea21302caf6c233a4cd6e7c7caf9f7b22dd1df0f
clk: qcom: clk-alpha-pll: same regs and ops for trion and lucid

Fixed ops were already identical, this adds support for non-fixed ops by
sharing between trion and lucid.

This also changes the names for trion ops to be consistent with the rest.

Note LUCID_PCAL_DONE is renamed to TRION_PCAL_DONE because it is wrong for
lucid, LUCID_PCAL_DONE should be BIT(27). Next patch will address this.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20200709135251.643-4-jonathan@marek.ca
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/clk-alpha-pll.c
drivers/clk/qcom/clk-alpha-pll.h
drivers/clk/qcom/gcc-sm8150.c