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)
commit0b01489475c655f8ccce8fa13cc4088954ac5503
tree92917893bc13f83192abf06d2520b790c8bd836d
parentc8b9002f44e4a1d2771b2f59f6de900864b1f9d7
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