forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rfkill: enable for rockchip by default
This is useful for 4G modem chips. For example, the Radxa E25 supports insert two modems.
- Loading branch information
Showing
5 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
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
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
34 changes: 34 additions & 0 deletions
34
target/linux/rockchip/patches-5.15/114-rfkill-gpio-add-of_match_table-support.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,34 @@ | ||
From b4aeb93e697e4dbe2d336d01290e92e98acfd83c Mon Sep 17 00:00:00 2001 | ||
From: jensen <jensenhuang@friendlyarm.com> | ||
Date: Sat, 15 Oct 2022 18:47:24 +0800 | ||
Subject: [PATCH] rfkill: gpio: add of_match_table support | ||
|
||
Signed-off-by: jensen <jensenhuang@friendlyarm.com> | ||
--- | ||
net/rfkill/rfkill-gpio.c | 8 ++++++++ | ||
1 file changed, 8 insertions(+) | ||
|
||
--- a/net/rfkill/rfkill-gpio.c | ||
+++ b/net/rfkill/rfkill-gpio.c | ||
@@ -156,6 +156,13 @@ static const struct acpi_device_id rfkill_acpi_match[] = { | ||
}; | ||
MODULE_DEVICE_TABLE(acpi, rfkill_acpi_match); | ||
#endif | ||
+#ifdef CONFIG_OF | ||
+static struct of_device_id rfkill_gpio_of_match[] = { | ||
+ { .compatible = "rfkill-gpio" }, | ||
+ { }, | ||
+}; | ||
+MODULE_DEVICE_TABLE(of, rfkill_gpio_of_match); | ||
+#endif | ||
|
||
static struct platform_driver rfkill_gpio_driver = { | ||
.probe = rfkill_gpio_probe, | ||
@@ -163,6 +170,7 @@ static struct platform_driver rfkill_gpio_driver = { | ||
.driver = { | ||
.name = "rfkill_gpio", | ||
.acpi_match_table = ACPI_PTR(rfkill_acpi_match), | ||
+ .of_match_table = of_match_ptr(rfkill_gpio_of_match), | ||
}, | ||
}; | ||
|
34 changes: 34 additions & 0 deletions
34
target/linux/rockchip/patches-6.1/114-rfkill-gpio-add-of_match_table-support.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,34 @@ | ||
From b4aeb93e697e4dbe2d336d01290e92e98acfd83c Mon Sep 17 00:00:00 2001 | ||
From: jensen <jensenhuang@friendlyarm.com> | ||
Date: Sat, 15 Oct 2022 18:47:24 +0800 | ||
Subject: [PATCH] rfkill: gpio: add of_match_table support | ||
|
||
Signed-off-by: jensen <jensenhuang@friendlyarm.com> | ||
--- | ||
net/rfkill/rfkill-gpio.c | 8 ++++++++ | ||
1 file changed, 8 insertions(+) | ||
|
||
--- a/net/rfkill/rfkill-gpio.c | ||
+++ b/net/rfkill/rfkill-gpio.c | ||
@@ -156,6 +156,13 @@ static const struct acpi_device_id rfkill_acpi_match[] = { | ||
}; | ||
MODULE_DEVICE_TABLE(acpi, rfkill_acpi_match); | ||
#endif | ||
+#ifdef CONFIG_OF | ||
+static struct of_device_id rfkill_gpio_of_match[] = { | ||
+ { .compatible = "rfkill-gpio" }, | ||
+ { }, | ||
+}; | ||
+MODULE_DEVICE_TABLE(of, rfkill_gpio_of_match); | ||
+#endif | ||
|
||
static struct platform_driver rfkill_gpio_driver = { | ||
.probe = rfkill_gpio_probe, | ||
@@ -163,6 +170,7 @@ static struct platform_driver rfkill_gpio_driver = { | ||
.driver = { | ||
.name = "rfkill_gpio", | ||
.acpi_match_table = ACPI_PTR(rfkill_acpi_match), | ||
+ .of_match_table = of_match_ptr(rfkill_gpio_of_match), | ||
}, | ||
}; | ||
|