1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
/* drivers/video/exynos_decon/lcd.h
*
* Copyright (c) 2011 Samsung Electronics
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __DECON_LCD__
#define __DECON_LCD__
enum decon_psr_mode {
DECON_VIDEO_MODE = 0,
DECON_DP_PSR_MODE = 1,
DECON_MIPI_COMMAND_MODE = 2,
};
/* Mic ratio: 0: 1/2 ratio, 1: 1/3 ratio */
enum decon_mic_comp_ratio {
MIC_COMP_RATIO_1_2 = 0,
MIC_COMP_RATIO_1_3 = 1,
MIC_COMP_BYPASS
};
enum mic_ver {
MIC_VER_1_1,
MIC_VER_1_2,
MIC_VER_2_0,
};
enum type_of_ddi {
TYPE_OF_SM_DDI = 0,
TYPE_OF_MAGNA_DDI,
TYPE_OF_NORMAL_DDI,
};
struct stdphy_pms {
unsigned int p;
unsigned int m;
unsigned int s;
};
#define LDI_NAME_LENGTH 32
#ifdef CONFIG_SUPPORT_DSU
#define MAX_DSU_RES_NUMBER 5
struct dsu_res_info {
unsigned int width;
unsigned int height;
unsigned int dsc_en;
unsigned int dsc_width;
unsigned int dsc_height;
};
struct dsu_info_dt {
unsigned int dsu_en;
unsigned int dsu_number;
struct dsu_res_info res_info[MAX_DSU_RES_NUMBER];
};
#endif
#ifdef CONFIG_SUPPORT_HDR
#define HDR_CAPA_NUM 4
struct lcd_hdr_info {
unsigned int hdr_num;
unsigned int hdr_type[HDR_CAPA_NUM];
unsigned int hdr_max_luma;
unsigned int hdr_max_avg_luma;
unsigned int hdr_min_luma;
};
#endif /* CONFIG_SUPPORT_HDR */
struct decon_lcd {
enum decon_psr_mode mode;
unsigned int vfp;
unsigned int vbp;
unsigned int hfp;
unsigned int hbp;
unsigned int vsa;
unsigned int hsa;
unsigned int xres;
unsigned int yres;
unsigned int width;
unsigned int height;
unsigned int hs_clk;
struct stdphy_pms dphy_pms;
unsigned int esc_clk;
unsigned int fps;
unsigned int mic_enabled;
enum decon_mic_comp_ratio mic_ratio;
unsigned int dsc_enabled;
unsigned int dsc_cnt;
unsigned int dsc_slice_num;
unsigned int dsc_slice_h;
enum mic_ver mic_ver;
enum type_of_ddi ddi_type;
unsigned int data_lane_cnt;
unsigned int data_lane;
unsigned int cmd_underrun_lp_ref;
unsigned int vt_compensation;
const char *ldi_name;
#ifdef CONFIG_SUPPORT_DSU
unsigned int dsu_mode;
struct dsu_info_dt dt_dsu_info;
#endif
#ifdef CONFIG_SUPPORT_HDR
struct lcd_hdr_info hdr_info;
#endif
};
struct decon_dsc {
/* 04 */ unsigned int comp_cfg;
/* 05 */ unsigned int bit_per_pixel;
/* 06-07 */ unsigned int pic_height;
/* 08-09 */ unsigned int pic_width;
/* 10-11 */ unsigned int slice_height;
/* 12-13 */ unsigned int slice_width;
/* 14-15 */ unsigned int chunk_size;
/* 16-17 */ unsigned int initial_xmit_delay;
/* 18-19 */ unsigned int initial_dec_delay;
/* 21 */ unsigned int initial_scale_value;
/* 22-23 */ unsigned int scale_increment_interval;
/* 24-25 */ unsigned int scale_decrement_interval;
/* 27 */ unsigned int first_line_bpg_offset;
/* 28-29 */ unsigned int nfl_bpg_offset;
/* 30-31 */ unsigned int slice_bpg_offset;
/* 32-33 */ unsigned int initial_offset;
/* 34-35 */ unsigned int final_offset;
/* 58-59 */ unsigned int rc_range_parameters;
unsigned int overlap_w;
unsigned int width_per_enc;
unsigned char *dec_pps_t;
};
#endif
|