kernel_samsung_a34x-permissive/drivers/gpu/drm/panel/include/panel-tianma-r66451-cmd-120hz-6382.h
2024-04-28 15:49:01 +02:00

88 lines
2.8 KiB
C
Executable file

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef PANEL_R66451_FHDP_DSI_CMD_120HZ_TIANMA_6382
#define PANEL_R66451_FHDP_DSI_CMD_120HZ_TIANMA_6382
#define REGFLAG_DELAY 0xFFFC
#define REGFLAG_UDELAY 0xFFFB
#define REGFLAG_END_OF_TABLE 0xFFFD
#define REGFLAG_RESET_LOW 0xFFFE
#define REGFLAG_RESET_HIGH 0xFFFF
#define PANEL_CLOCK 414831
#define FRAME_WIDTH 1080
#define FRAME_HEIGHT 2340
#define PHYSICAL_WIDTH 70200
#define PHYSICAL_HEIGHT 152100
#define DATA_RATE 760
#define HSA 10
#define HBP 20
#define VSA 2
#define VBP 8
/*Parameter setting for mode 0 Start*/
#define MODE_0_FPS 60
#define MODE_0_VFP 20
#define MODE_0_HFP 40
#define MODE_0_DATA_RATE 760
/*Parameter setting for mode 0 End*/
/*Parameter setting for mode 1 Start*/
#define MODE_1_FPS 90
#define MODE_1_VFP 20
#define MODE_1_HFP 40
#define MODE_1_DATA_RATE 760
/*Parameter setting for mode 1 End*/
/*Parameter setting for mode 2 Start*/
#define MODE_2_FPS 120
#define MODE_2_VFP 20
#define MODE_2_HFP 40
#define MODE_2_DATA_RATE 760
/*Parameter setting for mode 2 End*/
/* DSC RELATED */
#define DSC_ENABLE 1
#define DSC_VER 17
#define DSC_SLICE_MODE 1
#define DSC_RGB_SWAP 0
#define DSC_DSC_CFG 34
#define DSC_RCT_ON 1
#define DSC_BIT_PER_CHANNEL 8
#define DSC_DSC_LINE_BUF_DEPTH 9
#define DSC_BP_ENABLE 1
#define DSC_BIT_PER_PIXEL 128
//define DSC_PIC_HEIGHT
//define DSC_PIC_WIDTH
#define DSC_SLICE_HEIGHT 20
#define DSC_SLICE_WIDTH 540
#define DSC_CHUNK_SIZE 540
#define DSC_XMIT_DELAY 512
#define DSC_DEC_DELAY 526
#define DSC_SCALE_VALUE 32
#define DSC_INCREMENT_INTERVAL 488
#define DSC_DECREMENT_INTERVAL 7
#define DSC_LINE_BPG_OFFSET 12
#define DSC_NFL_BPG_OFFSET 1294
#define DSC_SLICE_BPG_OFFSET 1302
#define DSC_INITIAL_OFFSET 6144
#define DSC_FINAL_OFFSET 4336
#define DSC_FLATNESS_MINQP 3
#define DSC_FLATNESS_MAXQP 12
#define DSC_RC_MODEL_SIZE 8192
#define DSC_RC_EDGE_FACTOR 6
#define DSC_RC_QUANT_INCR_LIMIT0 11
#define DSC_RC_QUANT_INCR_LIMIT1 11
#define DSC_RC_TGT_OFFSET_HI 3
#define DSC_RC_TGT_OFFSET_LO 3
#endif //end of PANEL_R66451_FHDP_DSI_CMD_120HZ_TIANMA