-
Notifications
You must be signed in to change notification settings - Fork 17
/
Kconfig
242 lines (204 loc) · 6.25 KB
/
Kconfig
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
menu "Hardware Agnostic Graphics Library HAL (MIPI)"
menu "Display orientation"
config MIPI_DCS_ADDRESS_MODE_MIRROR_Y_SELECTED
bool "Mirror Y"
config MIPI_DCS_ADDRESS_MODE_MIRROR_X_SELECTED
bool "Mirror X"
config MIPI_DCS_ADDRESS_MODE_SWAP_XY_SELECTED
bool "Swap X and Y"
config MIPI_DCS_ADDRESS_MODE_FLIP_X_SELECTED
bool "Flip X"
config MIPI_DCS_ADDRESS_MODE_FLIP_Y_SELECTED
bool "Flip Y"
endmenu
config MIPI_DCS_ADDRESS_MODE_MIRROR_Y
hex
default 0x00 if !MIPI_DCS_ADDRESS_MODE_MIRROR_Y_SELECTED
default 0x80 if MIPI_DCS_ADDRESS_MODE_MIRROR_Y_SELECTED
config MIPI_DCS_ADDRESS_MODE_MIRROR_X
hex
default 0x00 if !MIPI_DCS_ADDRESS_MODE_MIRROR_X_SELECTED
default 0x40 if MIPI_DCS_ADDRESS_MODE_MIRROR_X_SELECTED
config MIPI_DCS_ADDRESS_MODE_SWAP_XY
hex
default 0x00 if !MIPI_DCS_ADDRESS_MODE_SWAP_XY_SELECTED
default 0x20 if MIPI_DCS_ADDRESS_MODE_SWAP_XY_SELECTED
config MIPI_DCS_ADDRESS_MODE_FLIP_X
hex
default 0x00 if !MIPI_DCS_ADDRESS_MODE_FLIP_X_SELECTED
default 0x02 if MIPI_DCS_ADDRESS_MODE_FLIP_X_SELECTED
config MIPI_DCS_ADDRESS_MODE_FLIP_Y
hex
default 0x00 if !MIPI_DCS_ADDRESS_MODE_FLIP_Y_SELECTED
default 0x01 if MIPI_DCS_ADDRESS_MODE_FLIP_Y_SELECTED
choice MIPI_PIXEL_FORMAT
prompt "Pixel format"
default MIPI_DCS_PIXEL_FORMAT_16BIT_SELECTED
config MIPI_DCS_PIXEL_FORMAT_24BIT_SELECTED
bool "24 bit"
config MIPI_DCS_PIXEL_FORMAT_18BIT_SELECTED
bool "18 bit"
config MIPI_DCS_PIXEL_FORMAT_16BIT_SELECTED
bool "16 bit"
config MIPI_DCS_PIXEL_FORMAT_12BIT_SELECTED
bool "12 bit"
config MIPI_DCS_PIXEL_FORMAT_8BIT_SELECTED
bool "8 bit"
config MIPI_DCS_PIXEL_FORMAT_3BIT_SELECTED
bool "3 bit"
endchoice
config MIPI_DISPLAY_PIXEL_FORMAT
hex
default 0x77 if MIPI_DCS_PIXEL_FORMAT_24BIT_SELECTED
default 0x66 if MIPI_DCS_PIXEL_FORMAT_18BIT_SELECTED
default 0x55 if MIPI_DCS_PIXEL_FORMAT_16BIT_SELECTED
default 0x33 if MIPI_DCS_PIXEL_FORMAT_12BIT_SELECTED
default 0x22 if MIPI_DCS_PIXEL_FORMAT_8BIT_SELECTED
default 0x11 if MIPI_DCS_PIXEL_FORMAT_3BIT_SELECTED
config MIPI_DISPLAY_DEPTH
int
default 24 if MIPI_DCS_PIXEL_FORMAT_24BIT_SELECTED
default 18 if MIPI_DCS_PIXEL_FORMAT_18BIT_SELECTED
default 16 if MIPI_DCS_PIXEL_FORMAT_16BIT_SELECTED
default 12 if MIPI_DCS_PIXEL_FORMAT_12BIT_SELECTED
default 8 if MIPI_DCS_PIXEL_FORMAT_8BIT_SELECTED
default 3 if MIPI_DCS_PIXEL_FORMAT_3BIT_SELECTED
choice
prompt "Buffering"
default HAGL_HAL_NO_BUFFERING
config HAGL_HAL_NO_BUFFERING
bool "disabled"
config HAGL_HAL_USE_DOUBLE_BUFFERING
bool "double"
config HAGL_HAL_USE_TRIPLE_BUFFERING
bool "triple"
endchoice
config HAGL_HAL_LOCK_WHEN_FLUSHING
bool "Lock back buffer when flushing"
default n
depends on HAGL_HAL_USE_DOUBLE_BUFFERING
config MIPI_DISPLAY_WIDTH
int "Display width in pixels"
default 320
config MIPI_DISPLAY_HEIGHT
int "Display height in pixels"
default 240
config MIPI_DISPLAY_OFFSET_X
int "X offset"
default 0
help
Adjust when using small display and image is not centered.
config MIPI_DISPLAY_OFFSET_Y
int "Y offset"
default 0
help
Adjust when using small display and image is not centered.
config MIPI_DISPLAY_INVERT
bool "Invert colors"
config MIPI_DCS_ADDRESS_MODE_BGR_SELECTED
bool "BGR"
default n
config MIPI_DCS_ADDRESS_MODE_BGR
hex
default 0x00 if !MIPI_DCS_ADDRESS_MODE_BGR_SELECTED
default 0x08 if MIPI_DCS_ADDRESS_MODE_BGR_SELECTED
config MIPI_DISPLAY_SPI_CLOCK_SPEED_HZ
int "SPI clock speed in Hz"
default 40000000
range 0 80000000
help
SPI clock speed in Hz. If you have problems try a lower value.
config MIPI_DISPLAY_SPI_MODE
int "SPI mode"
default 0
range 0 3
help
SPI mode representing the (CPOL, CPHA) configuration. Usually
you do not need to change this but some board without CS line
require mode 3.
if IDF_TARGET_ESP32
choice
prompt "SPI HOST"
default ESP32_HSPI_HOST_SELECTED
config ESP32_HSPI_HOST_SELECTED
bool "HSPI_HOST"
config ESP32_VSPI_HOST_SELECTED
bool "VSPI_HOST"
endchoice
config MIPI_DISPLAY_SPI_HOST
hex
default 0x01 if ESP32_HSPI_HOST_SELECTED
default 0x02 if ESP32_VSPI_HOST_SELECTED
endif
if IDF_TARGET_ESP32S2
choice
prompt "SPI HOST"
default ESP32S2_FSPI_HOST_SELECTED
config ESP32S2_FSPI_HOST_SELECTED
bool "FSPI_HOST"
config ESP32S2_HSPI_HOST_SELECTED
bool "HSPI_HOST"
endchoice
config MIPI_DISPLAY_SPI_HOST
hex
default 0x01 if ESP32S2_FSPI_HOST_SELECTED
default 0x02 if ESP32S2_HSPI_HOST_SELECTED
endif
if IDF_TARGET_ESP32S3
choice
prompt "SPI HOST"
default ESP32S3_SPI2_SELECTED
config ESP32S3_SPI2_SELECTED
bool "SPI2"
config ESP32S3_SPI3_SELECTED
bool "SPI3"
endchoice
config MIPI_DISPLAY_SPI_HOST
hex
default 0x01 if ESP32S3_SPI2_SELECTED
default 0x02 if ESP32S3_SPI3_SELECTED
endif
config MIPI_DISPLAY_PIN_MISO
int "MISO pin number"
default -1
config MIPI_DISPLAY_PIN_MOSI
int "MOSI pin number"
default 23
config MIPI_DISPLAY_PIN_CLK
int "CLK pin number"
default 18
config MIPI_DISPLAY_PIN_CS
int "CS pin number"
default 14
config MIPI_DISPLAY_PIN_DC
int "DC pin number"
default 27
config MIPI_DISPLAY_PIN_RST
int "RST pin number"
default 33
config MIPI_DISPLAY_PIN_BL
int "Backlight pin number"
default 32
if MIPI_DISPLAY_PIN_BL != -1
config MIPI_DISPLAY_PIN_BL_ACTIVE
int "Active state of backlight pin"
range 0 1
default 1
help
Use 0 if your board requires pulling the pin down to enable the
backlight. For most boards the default value 1 is ok.
endif
if MIPI_DISPLAY_PIN_BL != -1
config MIPI_DISPLAY_PWM_BL
int "Backlight PWM duty cycle (brightness)"
range -1 8191
default -1
help
When enabled starts the LEDC periphal on the backlight pin with
the given duty cycle. Value of -1 to disables PWM and simply
drives the backlight pin high.
endif
config MIPI_DISPLAY_PWM_BL
int
default -1 if MIPI_DISPLAY_PIN_BL = -1
endmenu