hostapd: Fix compile against mbedtsl 3.6
[openwrt/staging/nbd.git] / target / linux / mediatek / patches-6.1 / 350-21-cpufreq-mediatek-Add-support-for-MT7988.patch
1 From patchwork Fri Apr 19 16:59:07 2024
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 X-Patchwork-Submitter: Daniel Golle <daniel@makrotopia.org>
6 X-Patchwork-Id: 13636668
7 Return-Path:
8 <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org>
9 Date: Fri, 19 Apr 2024 17:59:07 +0100
10 From: Daniel Golle <daniel@makrotopia.org>
11 To: "Rafael J. Wysocki" <rafael@kernel.org>,
12 Viresh Kumar <viresh.kumar@linaro.org>,
13 Matthias Brugger <matthias.bgg@gmail.com>,
14 AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>,
15 linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
16 linux-arm-kernel@lists.infradead.org,
17 linux-mediatek@lists.infradead.org
18 Subject: [PATCH] cpufreq: mediatek: Add support for MT7988A
19 Message-ID:
20 <acf4fb446aacfbf6ce7b6e94bf3aad303e0ad4d1.1713545923.git.daniel@makrotopia.org>
21 Content-Disposition: inline
22 List-Id: <linux-mediatek.lists.infradead.org>
23
24 From: Sam Shih <sam.shih@mediatek.com>
25
26 This add cpufreq support for mediatek MT7988A SoC.
27
28 The platform data of MT7988A is different from previous MediaTek SoCs,
29 so we add a new compatible and platform data for it.
30
31 Signed-off-by: Sam Shih <sam.shih@mediatek.com>
32 ---
33 drivers/cpufreq/mediatek-cpufreq.c | 10 ++++++++++
34 1 file changed, 10 insertions(+)
35
36 --- a/drivers/cpufreq/mediatek-cpufreq.c
37 +++ b/drivers/cpufreq/mediatek-cpufreq.c
38 @@ -709,6 +709,15 @@ static const struct mtk_cpufreq_platform
39 .ccifreq_supported = false,
40 };
41
42 +static const struct mtk_cpufreq_platform_data mt7988_platform_data = {
43 + .min_volt_shift = 100000,
44 + .max_volt_shift = 200000,
45 + .proc_max_volt = 900000,
46 + .sram_min_volt = 0,
47 + .sram_max_volt = 1150000,
48 + .ccifreq_supported = true,
49 +};
50 +
51 static const struct mtk_cpufreq_platform_data mt8183_platform_data = {
52 .min_volt_shift = 100000,
53 .max_volt_shift = 200000,
54 @@ -742,6 +751,7 @@ static const struct of_device_id mtk_cpu
55 { .compatible = "mediatek,mt2712", .data = &mt2701_platform_data },
56 { .compatible = "mediatek,mt7622", .data = &mt7622_platform_data },
57 { .compatible = "mediatek,mt7623", .data = &mt7623_platform_data },
58 + { .compatible = "mediatek,mt7988a", .data = &mt7988_platform_data },
59 { .compatible = "mediatek,mt8167", .data = &mt8516_platform_data },
60 { .compatible = "mediatek,mt817x", .data = &mt2701_platform_data },
61 { .compatible = "mediatek,mt8173", .data = &mt2701_platform_data },