u-boot/drivers/usb/dwc3/io.h
.. .. @@ -48,6 +48,11 @@ 48 48 writel(value, base + offs); 49 49 } 50 50 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 +51 56 static inline void dwc3_flush_cache(uintptr_t addr, int length) 52 57 { 53 58 flush_dcache_range(addr, addr + ROUND(length, CACHELINE_SIZE));