mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00

Manually rebased: bcm27xx/patches-5.15/950-0600-xhci-quirks-add-link-TRB-quirk-for-VL805.patch bcm27xx/patches-5.15/950-0606-usb-xhci-add-VLI_TRB_CACHE_BUG-quirk.patch bcm27xx/patches-5.15/950-0717-usb-xhci-add-a-quirk-for-Superspeed-bulk-OUT-transfe.patch bcm53xx/patches-5.15/180-usb-xhci-add-support-for-performing-fake-doorbell.patch lantiq/patches-5.15/0028-NET-lantiq-various-etop-fixes.patch All other patches automatically rebased Co-authored-by: John Audia <therealgraysky@proton.me> Signed-off-by: John Audia <therealgraysky@proton.me>
52 lines
1.7 KiB
Diff
52 lines
1.7 KiB
Diff
From c633afe32123157370f21aeaf3d705ca584fc754 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Mon, 11 Jul 2022 14:23:08 +0200
|
|
Subject: [PATCH 106/137] 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>
|
|
---
|
|
Changes in v2:
|
|
* Drop hardcoded compatible check for IPQ6018 to do the PLL config and
|
|
utilize match data provided by previous commit
|
|
* Add IPQ8074 Alpha PLL config using match data
|
|
* Update commit description to reflect changes
|
|
---
|
|
drivers/clk/qcom/apss-ipq-pll.c | 13 +++++++++++++
|
|
1 file changed, 13 insertions(+)
|
|
|
|
--- a/drivers/clk/qcom/apss-ipq-pll.c
|
|
+++ b/drivers/clk/qcom/apss-ipq-pll.c
|
|
@@ -49,6 +49,18 @@ static const struct alpha_pll_config ipq
|
|
.test_ctl_hi_val = 0x4000,
|
|
};
|
|
|
|
+static const struct alpha_pll_config ipq8074_pll_config = {
|
|
+ .l = 0x48,
|
|
+ .config_ctl_val = 0x200d4828,
|
|
+ .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 = 0x1c000000,
|
|
+ .test_ctl_hi_val = 0x4000,
|
|
+};
|
|
+
|
|
static const struct regmap_config ipq_pll_regmap_config = {
|
|
.reg_bits = 32,
|
|
.reg_stride = 4,
|
|
@@ -89,6 +101,7 @@ static int apss_ipq_pll_probe(struct pla
|
|
|
|
static const struct of_device_id apss_ipq_pll_match_table[] = {
|
|
{ .compatible = "qcom,ipq6018-a53pll", .data = &ipq6018_pll_config },
|
|
+ { .compatible = "qcom,ipq8074-a53pll", .data = &ipq8074_pll_config },
|
|
{ }
|
|
};
|
|
MODULE_DEVICE_TABLE(of, apss_ipq_pll_match_table);
|