]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
lantiq: Fix VPE kernel patch
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 4 Sep 2025 22:34:45 +0000 (00:34 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 4 Sep 2025 22:34:45 +0000 (00:34 +0200)
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>
target/linux/lantiq/patches-6.6/0152-lantiq-VPE.patch

index 3d0d3f18ae7e95fdb497eb2fdd4b269c1400b746..eeb9d9fc23e8d90ddfd419af895e4ccd41cea563 100644 (file)
@@ -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)