-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable CPU frequency configuration for Orange Pi Zero 3
- Loading branch information
Showing
6 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
patch/kernel/archive/sunxi-6.6/patches.armbian/drv-cpufreq-update-allowlist-h618.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: pixdrift <devnull@pixeldrift.net> | ||
Date: Tue, 2 Jan 2024 20:45:18 +0000 | ||
Subject: Patching cpufreq driver to support h618 processor using h616 | ||
configuration | ||
|
||
Signed-off-by: pixdrift <devnull@pixeldrift.net> | ||
--- | ||
drivers/cpufreq/cpufreq-dt-platdev.c | 1 + | ||
drivers/cpufreq/sun50i-cpufreq-nvmem.c | 1 + | ||
2 files changed, 2 insertions(+) | ||
|
||
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c | ||
index 1cab455c0aaf..86a070e5b26e 100644 | ||
--- a/drivers/cpufreq/cpufreq-dt-platdev.c | ||
+++ b/drivers/cpufreq/cpufreq-dt-platdev.c | ||
@@ -103,10 +103,11 @@ static const struct of_device_id allowlist[] __initconst = { | ||
* platforms using "operating-points-v2" property. | ||
*/ | ||
static const struct of_device_id blocklist[] __initconst = { | ||
{ .compatible = "allwinner,sun50i-h6", }, | ||
{ .compatible = "allwinner,sun50i-h616", }, | ||
+ { .compatible = "allwinner,sun50i-h618", }, | ||
|
||
{ .compatible = "apple,arm-platform", }, | ||
|
||
{ .compatible = "arm,vexpress", }, | ||
|
||
diff --git a/drivers/cpufreq/sun50i-cpufreq-nvmem.c b/drivers/cpufreq/sun50i-cpufreq-nvmem.c | ||
index 5d85bfe475de..51d7010c49a7 100644 | ||
--- a/drivers/cpufreq/sun50i-cpufreq-nvmem.c | ||
+++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c | ||
@@ -202,10 +202,11 @@ static const struct sunxi_cpufreq_soc_data sun50i_h6_data = { | ||
}; | ||
|
||
static const struct of_device_id sun50i_cpufreq_match_list[] = { | ||
{ .compatible = "allwinner,sun50i-h6", .data = &sun50i_h6_data }, | ||
{ .compatible = "allwinner,sun50i-h616", .data = &sun50i_h616_data }, | ||
+ { .compatible = "allwinner,sun50i-h618", .data = &sun50i_h616_data }, | ||
{} | ||
}; | ||
MODULE_DEVICE_TABLE(of, sun50i_cpufreq_match_list); | ||
|
||
static const struct of_device_id *sun50i_cpufreq_match_node(void) | ||
-- | ||
Created with Armbian build tools https://github.com/armbian/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
patch/kernel/archive/sunxi-6.7/patches.armbian/drv-cpufreq-update-allowlist-h618.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: pixdrift <devnull@pixeldrift.net> | ||
Date: Tue, 2 Jan 2024 20:45:18 +0000 | ||
Subject: Patching cpufreq driver to support h618 processor using h616 | ||
configuration | ||
|
||
Signed-off-by: pixdrift <devnull@pixeldrift.net> | ||
--- | ||
drivers/cpufreq/cpufreq-dt-platdev.c | 1 + | ||
drivers/cpufreq/sun50i-cpufreq-nvmem.c | 1 + | ||
2 files changed, 2 insertions(+) | ||
|
||
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c | ||
index 1cab455c0aaf..86a070e5b26e 100644 | ||
--- a/drivers/cpufreq/cpufreq-dt-platdev.c | ||
+++ b/drivers/cpufreq/cpufreq-dt-platdev.c | ||
@@ -103,10 +103,11 @@ static const struct of_device_id allowlist[] __initconst = { | ||
* platforms using "operating-points-v2" property. | ||
*/ | ||
static const struct of_device_id blocklist[] __initconst = { | ||
{ .compatible = "allwinner,sun50i-h6", }, | ||
{ .compatible = "allwinner,sun50i-h616", }, | ||
+ { .compatible = "allwinner,sun50i-h618", }, | ||
|
||
{ .compatible = "apple,arm-platform", }, | ||
|
||
{ .compatible = "arm,vexpress", }, | ||
|
||
diff --git a/drivers/cpufreq/sun50i-cpufreq-nvmem.c b/drivers/cpufreq/sun50i-cpufreq-nvmem.c | ||
index 5d85bfe475de..51d7010c49a7 100644 | ||
--- a/drivers/cpufreq/sun50i-cpufreq-nvmem.c | ||
+++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c | ||
@@ -202,10 +202,11 @@ static const struct sunxi_cpufreq_soc_data sun50i_h6_data = { | ||
}; | ||
|
||
static const struct of_device_id sun50i_cpufreq_match_list[] = { | ||
{ .compatible = "allwinner,sun50i-h6", .data = &sun50i_h6_data }, | ||
{ .compatible = "allwinner,sun50i-h616", .data = &sun50i_h616_data }, | ||
+ { .compatible = "allwinner,sun50i-h618", .data = &sun50i_h616_data }, | ||
{} | ||
}; | ||
MODULE_DEVICE_TABLE(of, sun50i_cpufreq_match_list); | ||
|
||
static const struct of_device_id *sun50i_cpufreq_match_node(void) | ||
-- | ||
Created with Armbian build tools https://github.com/armbian/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters