[openwrt/openwrt] mediatek: enable configfs for DT overlay on mt7622 and mt7623

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 9 08:49:11 PDT 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/401d7ebf2c9bdcc7c1e24900ed9f8acf87d932c8

commit 401d7ebf2c9bdcc7c1e24900ed9f8acf87d932c8
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Fri Oct 8 22:18:34 2021 +0100

    mediatek: enable configfs for DT overlay on mt7622 and mt7623
    
    Enable kernel options to allow loading device tree overlay via configfs
    at runtime. This is useful for devboards like the BPi-R2 and BPi-R64
    which got RasbPi-compatible 40-pin GPIO header which allow all sorts
    of extensions.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 target/linux/mediatek/mt7622/config-5.10 | 3 +++
 target/linux/mediatek/mt7623/config-5.10 | 2 ++
 2 files changed, 5 insertions(+)

diff --git a/target/linux/mediatek/mt7622/config-5.10 b/target/linux/mediatek/mt7622/config-5.10
index c8184f99b8..196de77d1b 100644
--- a/target/linux/mediatek/mt7622/config-5.10
+++ b/target/linux/mediatek/mt7622/config-5.10
@@ -90,6 +90,7 @@ CONFIG_COMPAT_32BIT_TIME=y
 CONFIG_COMPAT_BINFMT_ELF=y
 CONFIG_COMPAT_NETLINK_MESSAGES=y
 CONFIG_COMPAT_OLD_SIGACTION=y
+CONFIG_CONFIGFS_FS=y
 CONFIG_CONSOLE_LOGLEVEL_DEFAULT=15
 # CONFIG_CPUFREQ_DT is not set
 CONFIG_CPU_FREQ=y
@@ -291,6 +292,7 @@ CONFIG_NVMEM=y
 CONFIG_NVMEM_SYSFS=y
 CONFIG_OF=y
 CONFIG_OF_ADDRESS=y
+CONFIG_OF_CONFIGFS=y
 CONFIG_OF_EARLY_FLATTREE=y
 CONFIG_OF_FLATTREE=y
 CONFIG_OF_GPIO=y
@@ -298,6 +300,7 @@ CONFIG_OF_IRQ=y
 CONFIG_OF_KOBJ=y
 CONFIG_OF_MDIO=y
 CONFIG_OF_NET=y
+CONFIG_OF_OVERLAY=y
 CONFIG_OLD_SIGSUSPEND3=y
 CONFIG_PADATA=y
 CONFIG_PARTITION_PERCPU=y
diff --git a/target/linux/mediatek/mt7623/config-5.10 b/target/linux/mediatek/mt7623/config-5.10
index 8c5c6c6e85..d21fe2cdb2 100644
--- a/target/linux/mediatek/mt7623/config-5.10
+++ b/target/linux/mediatek/mt7623/config-5.10
@@ -446,6 +446,7 @@ CONFIG_NVMEM=y
 CONFIG_NVMEM_SYSFS=y
 CONFIG_OF=y
 CONFIG_OF_ADDRESS=y
+CONFIG_OF_CONFIGFS=y
 CONFIG_OF_EARLY_FLATTREE=y
 CONFIG_OF_FLATTREE=y
 CONFIG_OF_GPIO=y
@@ -454,6 +455,7 @@ CONFIG_OF_IRQ=y
 CONFIG_OF_KOBJ=y
 CONFIG_OF_MDIO=y
 CONFIG_OF_NET=y
+CONFIG_OF_OVERLAY=y
 CONFIG_OLD_SIGACTION=y
 CONFIG_OLD_SIGSUSPEND3=y
 CONFIG_PADATA=y



More information about the lede-commits mailing list