Skip to content

Commit f357439

Browse files
juhosgandersson
authored andcommitted
clk: qcom: clk-cbf-8996: use HUAYRA_APSS register map for cbf_pll
The register map used for 'cbf_pll' is the same as the one defined for the CLK_ALPHA_PLL_TYPE_HUAYRA_APSS indice in the 'clk_alpha_pll_regs' array. Drop the local register map and use the global one instead to reduce code duplication. No functional changes intended. Compile tested only. Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Gabor Juhos <j4g8y7@gmail.com> Link: https://lore.kernel.org/r/20240328-apss-ipq-pll-cleanup-v4-5-eddbf617f0c8@gmail.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 4a941e4 commit f357439

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

drivers/clk/qcom/clk-cbf-8996.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,6 @@ enum {
4141

4242
#define CBF_PLL_OFFSET 0xf000
4343

44-
static const u8 cbf_pll_regs[PLL_OFF_MAX_REGS] = {
45-
[PLL_OFF_L_VAL] = 0x08,
46-
[PLL_OFF_ALPHA_VAL] = 0x10,
47-
[PLL_OFF_USER_CTL] = 0x18,
48-
[PLL_OFF_CONFIG_CTL] = 0x20,
49-
[PLL_OFF_CONFIG_CTL_U] = 0x24,
50-
[PLL_OFF_TEST_CTL] = 0x30,
51-
[PLL_OFF_TEST_CTL_U] = 0x34,
52-
[PLL_OFF_STATUS] = 0x28,
53-
};
54-
5544
static struct alpha_pll_config cbfpll_config = {
5645
.l = 72,
5746
.config_ctl_val = 0x200d4828,
@@ -67,7 +56,7 @@ static struct alpha_pll_config cbfpll_config = {
6756

6857
static struct clk_alpha_pll cbf_pll = {
6958
.offset = CBF_PLL_OFFSET,
70-
.regs = cbf_pll_regs,
59+
.regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_HUAYRA_APSS],
7160
.flags = SUPPORTS_DYNAMIC_UPDATE | SUPPORTS_FSM_MODE,
7261
.clkr.hw.init = &(struct clk_init_data){
7362
.name = "cbf_pll",

0 commit comments

Comments
 (0)