From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 45 ++++++---------------------------------------
1 files changed, 6 insertions(+), 39 deletions(-)
diff --git a/kernel/drivers/gpu/drm/rockchip/rockchip_drm_vop.h b/kernel/drivers/gpu/drm/rockchip/rockchip_drm_vop.h
index 3243b0c..5f72a76 100644
--- a/kernel/drivers/gpu/drm/rockchip/rockchip_drm_vop.h
+++ b/kernel/drivers/gpu/drm/rockchip/rockchip_drm_vop.h
@@ -31,11 +31,15 @@
#define VOP_VERSION_RK3568 VOP2_VERSION(0x40, 0x15, 0x8023)
#define VOP_VERSION_RK3588 VOP2_VERSION(0x40, 0x17, 0x6786)
+/* register one connector */
#define ROCKCHIP_OUTPUT_DUAL_CHANNEL_LEFT_RIGHT_MODE BIT(0)
+/* register one connector */
#define ROCKCHIP_OUTPUT_DUAL_CHANNEL_ODD_EVEN_MODE BIT(1)
#define ROCKCHIP_OUTPUT_DATA_SWAP BIT(2)
/* MIPI DSI DataStream(cmd) mode on rk3588 */
#define ROCKCHIP_OUTPUT_MIPI_DS_MODE BIT(3)
+/* register two connector */
+#define ROCKCHIP_OUTPUT_DUAL_CONNECTOR_SPLIT_MODE BIT(4)
#define AFBDC_FMT_RGB565 0x0
#define AFBDC_FMT_U8U8U8U8 0x5
@@ -85,14 +89,6 @@
ROCKCHIP_VOP_VP1,
ROCKCHIP_VOP_VP2,
ROCKCHIP_VOP_VP3,
-};
-
-enum vop_win_phy_id {
- ROCKCHIP_VOP_WIN0 = 0,
- ROCKCHIP_VOP_WIN1,
- ROCKCHIP_VOP_WIN2,
- ROCKCHIP_VOP_WIN3,
- ROCKCHIP_VOP_PHY_ID_INVALID = -1,
};
enum bcsh_out_mode {
@@ -595,37 +591,6 @@
RESERVED12 = 12, /* reserved for other dynamic hdr format */
RESERVED13 = 13, /* reserved for other dynamic hdr format */
HDR_FORMAT_MAX,
-};
-
-#define ACM_GAIN_LUT_HY_LENGTH (9*17)
-#define ACM_GAIN_LUT_HY_TOTAL_LENGTH (ACM_GAIN_LUT_HY_LENGTH * 3)
-#define ACM_GAIN_LUT_HS_LENGTH (13*17)
-#define ACM_GAIN_LUT_HS_TOTAL_LENGTH (ACM_GAIN_LUT_HS_LENGTH * 3)
-#define ACM_DELTA_LUT_H_LENGTH 65
-#define ACM_DELTA_LUT_H_TOTAL_LENGTH (ACM_DELTA_LUT_H_LENGTH * 3)
-
-struct post_acm {
- s16 delta_lut_h[ACM_DELTA_LUT_H_TOTAL_LENGTH];
- s16 gain_lut_hy[ACM_GAIN_LUT_HY_TOTAL_LENGTH];
- s16 gain_lut_hs[ACM_GAIN_LUT_HS_TOTAL_LENGTH];
- u16 y_gain;
- u16 h_gain;
- u16 s_gain;
- u16 acm_enable;
-};
-
-struct post_csc {
- u16 hue;
- u16 saturation;
- u16 contrast;
- u16 brightness;
- u16 r_gain;
- u16 g_gain;
- u16 b_gain;
- u16 r_offset;
- u16 g_offset;
- u16 b_offset;
- u16 csc_enable;
};
struct post_csc_coef {
@@ -1461,7 +1426,9 @@
#define ROCKCHIP_OUT_MODE_P565 2
#define ROCKCHIP_OUT_MODE_BT656 5
#define ROCKCHIP_OUT_MODE_S888 8
+#define ROCKCHIP_OUT_MODE_S666 9
#define ROCKCHIP_OUT_MODE_YUV422 9
+#define ROCKCHIP_OUT_MODE_S565 10
#define ROCKCHIP_OUT_MODE_S888_DUMMY 12
#define ROCKCHIP_OUT_MODE_YUV420 14
/* for use special outface */
--
Gitblit v1.6.2