From 9370bb92b2d16684ee45cf24e879c93c509162da Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 19 Dec 2024 01:47:39 +0000
Subject: [PATCH] add wifi6 8852be driver

---
 kernel/drivers/video/rockchip/mpp/mpp_debug.h |   37 +++++++++++++++++++++++++++++++++----
 1 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/kernel/drivers/video/rockchip/mpp/mpp_debug.h b/kernel/drivers/video/rockchip/mpp/mpp_debug.h
index 6d49fb7..4108c69 100644
--- a/kernel/drivers/video/rockchip/mpp/mpp_debug.h
+++ b/kernel/drivers/video/rockchip/mpp/mpp_debug.h
@@ -50,24 +50,31 @@
 #define DEBUG_SESSION				0x00400000
 #define DEBUG_DEVICE				0x00800000
 
+#define DEBUG_CCU				0x01000000
+#define DEBUG_CORE				0x02000000
+
 #define PRINT_FUNCTION				0x80000000
 #define PRINT_LINE				0x40000000
+
+/* reuse old debug bit flag */
+#define DEBUG_PART_TIMING			0x00000080
+#define DEBUG_SLICE				0x00000002
 
 extern unsigned int mpp_dev_debug;
 
 #define mpp_debug_unlikely(type)				\
-		(unlikely(mpp_dev_debug & type))
+		(unlikely(mpp_dev_debug & (type)))
 
 #define mpp_debug_func(type, fmt, args...)			\
 	do {							\
-		if (unlikely(mpp_dev_debug & type)) {		\
+		if (unlikely(mpp_dev_debug & (type))) {		\
 			pr_info("%s:%d: " fmt,			\
 				 __func__, __LINE__, ##args);	\
 		}						\
 	} while (0)
 #define mpp_debug(type, fmt, args...)				\
 	do {							\
-		if (unlikely(mpp_dev_debug & type)) {		\
+		if (unlikely(mpp_dev_debug & (type))) {		\
 			pr_info(fmt, ##args);			\
 		}						\
 	} while (0)
@@ -91,7 +98,7 @@
 #define mpp_err(fmt, args...)					\
 		pr_err("%s:%d: " fmt, __func__, __LINE__, ##args)
 
-#define mpp_dbg_link_flow(fmt, args...)				\
+#define mpp_dbg_link(fmt, args...)				\
 	do {							\
 		if (unlikely(mpp_dev_debug & DEBUG_LINK_TABLE)) {		\
 			pr_info("%s:%d: " fmt,			\
@@ -106,4 +113,26 @@
 		}						\
 	} while (0)
 
+#define mpp_dbg_ccu(fmt, args...)				\
+	do {							\
+		if (unlikely(mpp_dev_debug & DEBUG_CCU)) {	\
+			pr_info("%s:%d: " fmt,			\
+				 __func__, __LINE__, ##args);	\
+		}						\
+	} while (0)
+
+#define mpp_dbg_core(fmt, args...)				\
+	do {							\
+		if (unlikely(mpp_dev_debug & DEBUG_CORE)) {	\
+			pr_info(fmt, ##args);			\
+		}						\
+	} while (0)
+
+#define mpp_dbg_slice(fmt, args...)				\
+	do {							\
+		if (unlikely(mpp_dev_debug & DEBUG_SLICE)) {	\
+			pr_info(fmt, ##args);			\
+		}						\
+	} while (0)
+
 #endif

--
Gitblit v1.6.2