From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Tue, 22 Oct 2024 10:36:11 +0000
Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM

---
 u-boot/drivers/usb/dwc3/io.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/u-boot/drivers/usb/dwc3/io.h b/u-boot/drivers/usb/dwc3/io.h
index 810980f..d59f8be 100644
--- a/u-boot/drivers/usb/dwc3/io.h
+++ b/u-boot/drivers/usb/dwc3/io.h
@@ -48,6 +48,11 @@
 	writel(value, base + offs);
 }
 
+static inline void dwc3_invalidate_cache(uintptr_t addr, int length)
+{
+	invalidate_dcache_range(addr, addr + ROUND(length, CACHELINE_SIZE));
+}
+
 static inline void dwc3_flush_cache(uintptr_t addr, int length)
 {
 	flush_dcache_range(addr, addr + ROUND(length, CACHELINE_SIZE));

--
Gitblit v1.6.2