[openwrt/openwrt] lantiq: Fix VPE kernel patch
LEDE Commits
lede-commits at lists.infradead.org
Thu Sep 4 15:41:15 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/78763b7b84b1ec128d99bd5a8c7982e874cb9679
commit 78763b7b84b1ec128d99bd5a8c7982e874cb9679
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Fri Sep 5 00:34:45 2025 +0200
lantiq: Fix VPE kernel patch
This fixes compilation of the vmmc driver, it uses these functions.
Fixes: c676281e7e26 ("kernel: bump 6.6 to 6.6.103")
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch b/target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch
index 3d0d3f18ae..eeb9d9fc23 100644
--- a/target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch
+++ b/target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch
@@ -49,6 +49,21 @@ Signed-off-by: Stefan Koch <stefan.koch10 at gmail.com>
#define read_vpe_c0_count() mftc0(9, 0)
#define write_vpe_c0_count(val) mttc0(9, 0, val)
#define read_vpe_c0_status() mftc0(12, 0)
+--- a/arch/mips/include/asm/vpe.h
++++ b/arch/mips/include/asm/vpe.h
+@@ -127,4 +127,12 @@ int vpe_stop(void *vpe);
+ int vpe_free(void *vpe);
+ #endif /* CONFIG_MIPS_VPE_LOADER_MT */
+
++/* For the explanation of the APIs please refer the section "MT APRP Kernel
++ * Programming" in AR9 SW Architecture Specification
++ */
++int32_t vpe1_sw_start(void *sw_start_addr, uint32_t tcmask, uint32_t flags);
++int32_t vpe1_sw_stop(uint32_t flags);
++uint32_t vpe1_get_load_addr(uint32_t flags);
++uint32_t vpe1_get_max_mem(uint32_t flags);
++
+ #endif /* _ASM_VPE_H */
--- a/arch/mips/kernel/vpe-mt.c
+++ b/arch/mips/kernel/vpe-mt.c
@@ -414,6 +414,8 @@ int __init vpe_module_init(void)
More information about the lede-commits
mailing list