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
---
kernel/drivers/video/rockchip/rga/RGA_API.h | 55 +++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 39 insertions(+), 16 deletions(-)
diff --git a/kernel/drivers/video/rockchip/rga/RGA_API.h b/kernel/drivers/video/rockchip/rga/RGA_API.h
index f13f666..96ca524 100644
--- a/kernel/drivers/video/rockchip/rga/RGA_API.h
+++ b/kernel/drivers/video/rockchip/rga/RGA_API.h
@@ -1,17 +1,40 @@
/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __RGA_API_H__
-#define __RGA_API_H__
-
-#include "rga_reg_info.h"
-#include "rga.h"
-
-#define ENABLE 1
-#define DISABLE 0
-
-int32_t RGA_gen_two_pro(struct rga_req *msg, struct rga_req *msg1);
-
-
-
-
-
-#endif
+#ifndef __RGA_API_H__
+#define __RGA_API_H__
+
+#include <linux/miscdevice.h>
+#include <linux/wakelock.h>
+
+#include "rga_reg_info.h"
+#include "rga.h"
+
+#define ENABLE 1
+#define DISABLE 0
+
+struct rga_drvdata {
+ struct miscdevice miscdev;
+ struct device *dev;
+ void *rga_base;
+ int irq;
+
+ struct delayed_work power_off_work;
+ void (*rga_irq_callback)(int rga_retval); //callback function used by aync call
+ struct wake_lock wake_lock;
+
+ struct clk *pd_rga;
+ struct clk *aclk_rga;
+ struct clk *hclk_rga;
+
+ //#if defined(CONFIG_ION_ROCKCHIP)
+ struct ion_client *ion_client;
+ //#endif
+ char *version;
+};
+
+int32_t RGA_gen_two_pro(struct rga_req *msg, struct rga_req *msg1);
+
+
+
+
+
+#endif
--
Gitblit v1.6.2