mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 02:25:29 +08: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>
48 lines
1.4 KiB
Diff
48 lines
1.4 KiB
Diff
From 5a127450125f71247b7384930459b892da227e28 Mon Sep 17 00:00:00 2001
|
|
From: Robert Marko <robimarko@gmail.com>
|
|
Date: Tue, 28 Dec 2021 20:32:46 +0100
|
|
Subject: [PATCH] clk: qcom: clk-alpha-pll: add support for APSS PLL
|
|
|
|
APSS PLL type will be used by the IPQ8074 APSS driver for providing the
|
|
CPU core clocks and enabling CPU Frequency scaling.
|
|
|
|
This is ported from the downstream 5.4 kernel.
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
|
---
|
|
drivers/clk/qcom/clk-alpha-pll.c | 12 ++++++++++++
|
|
drivers/clk/qcom/clk-alpha-pll.h | 1 +
|
|
2 files changed, 13 insertions(+)
|
|
|
|
--- a/drivers/clk/qcom/clk-alpha-pll.c
|
|
+++ b/drivers/clk/qcom/clk-alpha-pll.c
|
|
@@ -139,6 +139,18 @@ const u8 clk_alpha_pll_regs[][PLL_OFF_MA
|
|
[PLL_OFF_OPMODE] = 0x28,
|
|
[PLL_OFF_STATUS] = 0x38,
|
|
},
|
|
+ [CLK_ALPHA_PLL_TYPE_APSS] = {
|
|
+ [PLL_OFF_L_VAL] = 0x08,
|
|
+ [PLL_OFF_ALPHA_VAL] = 0x10,
|
|
+ [PLL_OFF_ALPHA_VAL_U] = 0xff,
|
|
+ [PLL_OFF_USER_CTL] = 0x18,
|
|
+ [PLL_OFF_USER_CTL_U] = 0xff,
|
|
+ [PLL_OFF_CONFIG_CTL] = 0x20,
|
|
+ [PLL_OFF_CONFIG_CTL_U] = 0x24,
|
|
+ [PLL_OFF_TEST_CTL] = 0x30,
|
|
+ [PLL_OFF_TEST_CTL_U] = 0x34,
|
|
+ [PLL_OFF_STATUS] = 0x28,
|
|
+ },
|
|
};
|
|
EXPORT_SYMBOL_GPL(clk_alpha_pll_regs);
|
|
|
|
--- a/drivers/clk/qcom/clk-alpha-pll.h
|
|
+++ b/drivers/clk/qcom/clk-alpha-pll.h
|
|
@@ -17,6 +17,7 @@ enum {
|
|
CLK_ALPHA_PLL_TYPE_LUCID = CLK_ALPHA_PLL_TYPE_TRION,
|
|
CLK_ALPHA_PLL_TYPE_AGERA,
|
|
CLK_ALPHA_PLL_TYPE_ZONDA,
|
|
+ CLK_ALPHA_PLL_TYPE_APSS,
|
|
CLK_ALPHA_PLL_TYPE_MAX,
|
|
};
|
|
|