mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
clk: qcom: apss-ipq-pll: Add IPQ5210 support
The Application Processor Subsystem on the IPQ5210 platform sources its clock from the Huayra PLL. Add the configuration data necessary to set it up. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260703-apss-clk-v3-2-4785e89a9c58@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
4af10c020e
commit
546e0bc2aa
|
|
@ -79,6 +79,18 @@ static const struct alpha_pll_config ipq5018_pll_config = {
|
|||
.test_ctl_hi_val = 0x00400003,
|
||||
};
|
||||
|
||||
static const struct alpha_pll_config ipq5210_pll_config = {
|
||||
.l = 0x22,
|
||||
.config_ctl_val = 0x4001075b,
|
||||
.config_ctl_hi_val = 0x6,
|
||||
.early_output_mask = BIT(3),
|
||||
.aux2_output_mask = BIT(2),
|
||||
.aux_output_mask = BIT(1),
|
||||
.main_output_mask = BIT(0),
|
||||
.test_ctl_val = 0x0,
|
||||
.test_ctl_hi_val = 0x400003,
|
||||
};
|
||||
|
||||
/* 1.080 GHz configuration */
|
||||
static const struct alpha_pll_config ipq5332_pll_config = {
|
||||
.l = 0x2d,
|
||||
|
|
@ -140,6 +152,12 @@ static const struct apss_pll_data ipq5018_pll_data = {
|
|||
.pll_config = &ipq5018_pll_config,
|
||||
};
|
||||
|
||||
static const struct apss_pll_data ipq5210_pll_data = {
|
||||
.pll_type = CLK_ALPHA_PLL_TYPE_HUAYRA,
|
||||
.pll = &ipq_pll_huayra,
|
||||
.pll_config = &ipq5210_pll_config,
|
||||
};
|
||||
|
||||
static const struct apss_pll_data ipq5332_pll_data = {
|
||||
.pll_type = CLK_ALPHA_PLL_TYPE_STROMER_PLUS,
|
||||
.pll = &ipq_pll_stromer_plus,
|
||||
|
|
@ -207,6 +225,7 @@ static int apss_ipq_pll_probe(struct platform_device *pdev)
|
|||
|
||||
static const struct of_device_id apss_ipq_pll_match_table[] = {
|
||||
{ .compatible = "qcom,ipq5018-a53pll", .data = &ipq5018_pll_data },
|
||||
{ .compatible = "qcom,ipq5210-a53pll", .data = &ipq5210_pll_data },
|
||||
{ .compatible = "qcom,ipq5332-a53pll", .data = &ipq5332_pll_data },
|
||||
{ .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_data },
|
||||
{ .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_data },
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user