forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-11-06 89281ea41721b3027e14d66c19f2dbb4d11847d3
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));