hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
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));