Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: apss-ipq-pll: add support for IPQ8074

Add support for IPQ8074 since it uses the same PLL setup, however it uses
slightly different Alpha PLL config.

Alpha PLL config was obtained by dumping PLL registers from a running
device.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220818220628.339366-7-robimarko@gmail.com

authored by

Robert Marko and committed by
Bjorn Andersson
cca7b7d5 2a4d7024

+13
+13
drivers/clk/qcom/apss-ipq-pll.c
··· 49 49 .test_ctl_hi_val = 0x4000, 50 50 }; 51 51 52 + static const struct alpha_pll_config ipq8074_pll_config = { 53 + .l = 0x48, 54 + .config_ctl_val = 0x200d4828, 55 + .config_ctl_hi_val = 0x6, 56 + .early_output_mask = BIT(3), 57 + .aux2_output_mask = BIT(2), 58 + .aux_output_mask = BIT(1), 59 + .main_output_mask = BIT(0), 60 + .test_ctl_val = 0x1c000000, 61 + .test_ctl_hi_val = 0x4000, 62 + }; 63 + 52 64 static const struct regmap_config ipq_pll_regmap_config = { 53 65 .reg_bits = 32, 54 66 .reg_stride = 4, ··· 101 89 102 90 static const struct of_device_id apss_ipq_pll_match_table[] = { 103 91 { .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_config }, 92 + { .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_config }, 104 93 { } 105 94 }; 106 95 MODULE_DEVICE_TABLE(of, apss_ipq_pll_match_table);