-
Notifications
You must be signed in to change notification settings - Fork 2
/
Kconfig
136 lines (112 loc) · 3.54 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
menu "Display configuration (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_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 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_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
help
RST pin number. Defaults are ok for M5Stick.
config MIPI_DISPLAY_PIN_BL
int "Backlight pin number"
default 32
endmenu