diff options
| author | Hauke Mehrtens | 2025-09-04 22:34:45 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-09-04 22:34:45 +0000 |
| commit | 78763b7b84b1ec128d99bd5a8c7982e874cb9679 (patch) | |
| tree | e876e5689087351519efa9bfd4e78e5e245ae90f | |
| parent | 2180b1d6de3695253326c40f1669bdd546555bdb (diff) | |
| download | openwrt-78763b7b84b1ec128d99bd5a8c7982e874cb9679.tar.gz | |
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@hauke-m.de>
| -rw-r--r-- | target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch | 15 |
1 files changed, 15 insertions, 0 deletions
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@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) |