forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-11-07 2a9a9d4f6c07f2f23b663fe5fbeac1168a5d1029
u-boot/drivers/usb/dwc3/io.h
....@@ -48,6 +48,11 @@
4848 writel(value, base + offs);
4949 }
5050
51
+static inline void dwc3_invalidate_cache(uintptr_t addr, int length)
52
+{
53
+ invalidate_dcache_range(addr, addr + ROUND(length, CACHELINE_SIZE));
54
+}
55
+
5156 static inline void dwc3_flush_cache(uintptr_t addr, int length)
5257 {
5358 flush_dcache_range(addr, addr + ROUND(length, CACHELINE_SIZE));