forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
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));