drivers/lcd/Kconfig: Fix Kconfig style

Remove TABs from Kconfig file
Add comments
This commit is contained in:
simbit18 2023-06-19 12:55:55 +02:00 committed by Xiang Xiao
parent 5b90ae9c72
commit a4398b50c8

View File

@ -106,21 +106,21 @@ config LCD_APA102
default n default n
if LCD_APA102 if LCD_APA102
config LCD_APA102_XRES config LCD_APA102_XRES
int "APA102 X Resolution" int "APA102 X Resolution"
default 16 default 16
---help--- ---help---
Specifies the X resolution of the LCD. Specifies the X resolution of the LCD.
config LCD_APA102_YRES config LCD_APA102_YRES
int "APA102 Y Resolution" int "APA102 Y Resolution"
default 16 default 16
---help--- ---help---
Specifies the Y resolution of the LCD. Specifies the Y resolution of the LCD.
config LCD_APA102_FREQUENCY config LCD_APA102_FREQUENCY
int "SPI Frequency" int "SPI Frequency"
default 1000000 default 1000000
endif # LCD_APA102 endif # LCD_APA102
@ -174,7 +174,7 @@ config P14201_FRAMEBUFFER
LCD framebuffer. This internal framebuffer support should not be LCD framebuffer. This internal framebuffer support should not be
enabled with CONFIG_LCD_FRAMBEBUFFER because this external common enabled with CONFIG_LCD_FRAMBEBUFFER because this external common
framebuffer interface will provide the necessary buffering. framebuffer interface will provide the necessary buffering.
endif endif # LCD_P14201
config LCD_MAX7219 config LCD_MAX7219
bool "Matrix of 8x8 LEDs controlled by MAX7219" bool "Matrix of 8x8 LEDs controlled by MAX7219"
@ -272,7 +272,7 @@ config UG9664HSWAG01_POWER
configuration should be defined. In this case the system must configuration should be defined. In this case the system must
provide an interface ug_power(). provide an interface ug_power().
endif endif # LCD_UG9664HSWAG01
config LCD_SH1106_OLED_132 config LCD_SH1106_OLED_132
bool "Generic 0.96'' OLED Display Module (SH1106/SSD1306)" bool "Generic 0.96'' OLED Display Module (SH1106/SSD1306)"
@ -463,7 +463,7 @@ config LCD_SSD1351
if LCD_SSD1351 if LCD_SSD1351
choice choice
prompt "Interface" prompt "SSD1351 Interface"
default SSD1351_SPI4WIRE default SSD1351_SPI4WIRE
config SSD1351_PARALLEL8BIT config SSD1351_PARALLEL8BIT
@ -484,7 +484,7 @@ config SSD1351_SPI4WIRE
---help--- ---help---
Enables support for the 4-wire SPI interface. Enables support for the 4-wire SPI interface.
endchoice endchoice # SSD1351 Interface
if SSD1351_SPI3WIRE || SSD1351_SPI4WIRE if SSD1351_SPI3WIRE || SSD1351_SPI4WIRE
@ -632,49 +632,49 @@ config SSD1351_MSTRCONTRAST
---help--- ---help---
Specifies the master contrast ratio in sixteenths. Specifies the master contrast ratio in sixteenths.
endif endif # LCD_SSD1351
config LCD_ST7735 config LCD_ST7735
bool "Sitronix ST7735 TFT Controller" bool "Sitronix ST7735 TFT Controller"
default n default n
if LCD_ST7735 if LCD_ST7735
choice choice
prompt "LCD Preset Resolutions" prompt "LCD Preset Resolutions"
optional optional
config LCD_ST7735_GM11 config LCD_ST7735_GM11
bool "128x160" bool "128x160"
config LCD_ST7735_GM00 config LCD_ST7735_GM00
bool "132x162" bool "132x162"
config LCD_ST7735_GM01 config LCD_ST7735_GM01
bool "132x132" bool "132x132"
endchoice endchoice # LCD Preset Resolutions
if !LCD_ST7735_GM00 && !LCD_ST7735_GM01 && !LCD_ST7735_GM11 if !LCD_ST7735_GM00 && !LCD_ST7735_GM01 && !LCD_ST7735_GM11
config LCD_ST7735_XRES config LCD_ST7735_XRES
int "ST7735 X Resolution" int "ST7735 X Resolution"
default 128 default 128
---help--- ---help---
Specifies the X resolution of the LCD. Specifies the X resolution of the LCD.
config LCD_ST7735_YRES config LCD_ST7735_YRES
int "ST7735 Y Resolution" int "ST7735 Y Resolution"
default 160 default 160
---help--- ---help---
Specifies the Y resolution of the LCD. Specifies the Y resolution of the LCD.
config LCD_ST7735_XOFFSET config LCD_ST7735_XOFFSET
int "ST7735 X Offset" int "ST7735 X Offset"
default 0 default 0
---help--- ---help---
Specifies the X offset of the LCD. Specifies the X offset of the LCD.
config LCD_ST7735_YOFFSET config LCD_ST7735_YOFFSET
int "ST7735 Y Offset" int "ST7735 Y Offset"
default 0 default 0
---help--- ---help---
@ -682,21 +682,21 @@ if !LCD_ST7735_GM00 && !LCD_ST7735_GM01 && !LCD_ST7735_GM11
endif endif
config LCD_ST7735_BGR config LCD_ST7735_BGR
bool "Swap R & B channel" bool "Swap R & B channel"
default n default n
config LCD_ST7735_BPP config LCD_ST7735_BPP
int "Bit Per Pixel (12, 16 or 18)" int "Bit Per Pixel (12, 16 or 18)"
default 16 default 16
config LCD_ST7735_SPIMODE config LCD_ST7735_SPIMODE
int "SPI Mode" int "SPI Mode"
default 0 default 0
config LCD_ST7735_FREQUENCY config LCD_ST7735_FREQUENCY
int "SPI Frequency" int "SPI Frequency"
default 3000000 default 3000000
endif # LCD_ST7735 endif # LCD_ST7735
@ -705,56 +705,56 @@ config LCD_ST7789
default n default n
if LCD_ST7789 if LCD_ST7789
config LCD_ST7789_XRES config LCD_ST7789_XRES
int "ST7789 X Resolution" int "ST7789 X Resolution"
default 240 default 240
---help--- ---help---
Specifies the X resolution of the LCD. Specifies the X resolution of the LCD.
config LCD_ST7789_YRES config LCD_ST7789_YRES
int "ST7789 Y Resolution" int "ST7789 Y Resolution"
default 320 default 320
---help--- ---help---
Specifies the Y resolution of the LCD. Specifies the Y resolution of the LCD.
config LCD_ST7789_XOFFSET config LCD_ST7789_XOFFSET
int "ST7789 X Offset" int "ST7789 X Offset"
default 0 default 0
---help--- ---help---
Specifies the X offset of the LCD. Specifies the X offset of the LCD.
config LCD_ST7789_YOFFSET config LCD_ST7789_YOFFSET
int "ST7789 Y Offset" int "ST7789 Y Offset"
default 0 default 0
---help--- ---help---
Specifies the Y offset of the LCD. Specifies the Y offset of the LCD.
config LCD_ST7789_MIRRORX config LCD_ST7789_MIRRORX
bool "ST7789 Mirror X" bool "ST7789 Mirror X"
default n default n
config LCD_ST7789_MIRRORY config LCD_ST7789_MIRRORY
bool "ST7789 Mirror Y" bool "ST7789 Mirror Y"
default n default n
config LCD_ST7789_INVCOLOR config LCD_ST7789_INVCOLOR
bool "ST7789 Invert Color" bool "ST7789 Invert Color"
default y default y
---help--- ---help---
Invert colors of the LCD display. This is useful for implementations Invert colors of the LCD display. This is useful for implementations
that assume that that colors are inverted by default. that assume that that colors are inverted by default.
config LCD_ST7789_BPP config LCD_ST7789_BPP
int "Bit Per Pixel (12 or 16)" int "Bit Per Pixel (12 or 16)"
default 16 default 16
config LCD_ST7789_SPIMODE config LCD_ST7789_SPIMODE
int "SPI Mode" int "SPI Mode"
default 0 default 0
config LCD_ST7789_FREQUENCY config LCD_ST7789_FREQUENCY
int "SPI Frequency" int "SPI Frequency"
default 1000000 default 1000000
endif # LCD_ST7789 endif # LCD_ST7789
@ -763,45 +763,45 @@ config LCD_GC9A01
default n default n
if LCD_GC9A01 if LCD_GC9A01
config LCD_GC9A01_XRES config LCD_GC9A01_XRES
int "GC9A01 X Resolution" int "GC9A01 X Resolution"
default 240 default 240
---help--- ---help---
Specifies the X resolution of the LCD. Specifies the X resolution of the LCD.
config LCD_GC9A01_YRES config LCD_GC9A01_YRES
int "GC9A01 Y Resolution" int "GC9A01 Y Resolution"
default 240 default 240
---help--- ---help---
Specifies the Y resolution of the LCD. Specifies the Y resolution of the LCD.
config LCD_GC9A01_XOFFSET config LCD_GC9A01_XOFFSET
int "GC9A01 X Offset" int "GC9A01 X Offset"
default 0 default 0
---help--- ---help---
Specifies the X offset of the LCD. Specifies the X offset of the LCD.
config LCD_GC9A01_YOFFSET config LCD_GC9A01_YOFFSET
int "GC9A01 Y Offset" int "GC9A01 Y Offset"
default 0 default 0
---help--- ---help---
Specifies the Y offset of the LCD. Specifies the Y offset of the LCD.
config LCD_GC9A01_BGR config LCD_GC9A01_BGR
bool "Swap R & B channel" bool "Swap R & B channel"
default n default n
config LCD_GC9A01_BPP config LCD_GC9A01_BPP
int "Bit Per Pixel (12 or 16)" int "Bit Per Pixel (12 or 16)"
default 16 default 16
config LCD_GC9A01_SPIMODE config LCD_GC9A01_SPIMODE
int "SPI Mode" int "SPI Mode"
default 0 default 0
config LCD_GC9A01_FREQUENCY config LCD_GC9A01_FREQUENCY
int "SPI Frequency" int "SPI Frequency"
default 1000000 default 1000000
endif # LCD_GC9A01 endif # LCD_GC9A01
@ -810,53 +810,53 @@ config LCD_JD9851
default n default n
if LCD_JD9851 if LCD_JD9851
config LCD_JD9851_XRES config LCD_JD9851_XRES
int "JD9851 X Resolution" int "JD9851 X Resolution"
default 240 default 240
---help--- ---help---
Specifies the X resolution of the LCD. Specifies the X resolution of the LCD.
config LCD_JD9851_YRES config LCD_JD9851_YRES
int "JD9851 Y Resolution" int "JD9851 Y Resolution"
default 320 default 320
---help--- ---help---
Specifies the Y resolution of the LCD. Specifies the Y resolution of the LCD.
config LCD_JD9851_XOFFSET config LCD_JD9851_XOFFSET
int "JD9851 X Offset" int "JD9851 X Offset"
default 0 default 0
---help--- ---help---
Specifies the X offset of the LCD. Specifies the X offset of the LCD.
config LCD_JD9851_YOFFSET config LCD_JD9851_YOFFSET
int "JD9851 Y Offset" int "JD9851 Y Offset"
default 0 default 0
---help--- ---help---
Specifies the Y offset of the LCD. Specifies the Y offset of the LCD.
config LCD_JD9851_BGR config LCD_JD9851_BGR
bool "Swap R & B channel" bool "Swap R & B channel"
default n default n
config LCD_JD9851_BPP config LCD_JD9851_BPP
int "Bit Per Pixel (16)" int "Bit Per Pixel (16)"
default 16 default 16
config LCD_JD9851_SPIMODE config LCD_JD9851_SPIMODE
int "SPI Mode" int "SPI Mode"
default 0 default 0
config LCD_JD9851_FREQUENCY config LCD_JD9851_FREQUENCY
int "SPI Frequency" int "SPI Frequency"
default 1000000 default 1000000
config LCD_JD9851_INVERT config LCD_JD9851_INVERT
bool "Enter into display inversion mode" bool "Enter into display inversion mode"
default n default n
config LCD_JD9851_TE config LCD_JD9851_TE
bool "Tearing effect line on" bool "Tearing effect line on"
default n default n
endif # LCD_JD9851 endif # LCD_JD9851
@ -1058,7 +1058,7 @@ config UG2864AMBAG01_NINTERFACES
Specifies the number of physical UG-9664HSWAG01 devices that will be Specifies the number of physical UG-9664HSWAG01 devices that will be
supported. NOTE: At present, this must be undefined or defined to be 1. supported. NOTE: At present, this must be undefined or defined to be 1.
endif endif # LCD_UG2864AMBAG01
config LCD_SSD1289 config LCD_SSD1289
bool "LCD Based on SSD1289 Controller" bool "LCD Based on SSD1289 Controller"
@ -1084,8 +1084,8 @@ config SSD1289_PROFILE2
config SSD1289_PROFILE3 config SSD1289_PROFILE3
bool "Profile 3" bool "Profile 3"
endchoice endchoice # SSD1289 Initialization Profile
endif endif # LCD_SSD1289
config LCD_SHARP_MEMLCD config LCD_SHARP_MEMLCD
bool "Sharp Memory LCD Suite" bool "Sharp Memory LCD Suite"
@ -1114,7 +1114,7 @@ config MEMLCD_LS027B7DH01A
---help--- ---help---
Selects the LS027B7DH01A model Selects the LS027B7DH01A model
endchoice endchoice # Memory LCD Model
config MEMLCD_NINTERFACES config MEMLCD_NINTERFACES
int "Number of physical Memory LCD devices" int "Number of physical Memory LCD devices"
@ -1140,7 +1140,7 @@ config MEMLCD_SPI_FREQUENCY
---help--- ---help---
Define to use a different bus frequency, FIXME DEFAULT VALUE OK? Define to use a different bus frequency, FIXME DEFAULT VALUE OK?
endif endif # LCD_SHARP_MEMLCD
choice choice
prompt "LCD Orientation" prompt "LCD Orientation"
@ -1186,7 +1186,7 @@ config LCD_DYN_ORIENTATION
have the possibility to switch the orientation while runtime. Orientation have the possibility to switch the orientation while runtime. Orientation
is a parameter of lcdinitialize(). is a parameter of lcdinitialize().
endchoice endchoice # LCD Orientation
config LCD_LPM013M091A config LCD_LPM013M091A
bool "JDI LPM013M091A LCD Driver" bool "JDI LPM013M091A LCD Driver"
@ -1204,29 +1204,29 @@ config LCD_ILI9225
LCD Single Chip Driver, ILI9225, ILI Technology Corp. LCD Single Chip Driver, ILI9225, ILI Technology Corp.
if LCD_ILI9225 if LCD_ILI9225
config LCD_ILI9225_XRES config LCD_ILI9225_XRES
int "ILI9225 X Resolution" int "ILI9225 X Resolution"
default 176 default 176
---help--- ---help---
Specifies the X resolution of the LCD. Specifies the X resolution of the LCD.
config LCD_ILI9225_YRES config LCD_ILI9225_YRES
int "ILI9225 Y Resolution" int "ILI9225 Y Resolution"
default 220 default 220
---help--- ---help---
Specifies the Y resolution of the LCD. Specifies the Y resolution of the LCD.
config LCD_ILI9225_BPP config LCD_ILI9225_BPP
int "Bit Per Pixel (16)" int "Bit Per Pixel (16)"
default 16 default 16
config LCD_ILI9225_SPIMODE config LCD_ILI9225_SPIMODE
int "SPI Mode" int "SPI Mode"
default 0 default 0
config LCD_ILI9225_FREQUENCY config LCD_ILI9225_FREQUENCY
int "SPI Frequency" int "SPI Frequency"
default 1000000 default 1000000
endif # LCD_ILI9225 endif # LCD_ILI9225
@ -1282,7 +1282,7 @@ config LCD_ILI9340_IFACE0_RPORTRAIT
---help--- ---help---
Define for "reverse portrait" orientation support. Define for "reverse portrait" orientation support.
endchoice endchoice # LCD Orientation
choice choice
prompt "Color format" prompt "Color format"
@ -1295,8 +1295,8 @@ config LCD_ILI9340_IFACE0_RGB565
---help--- ---help---
16 bpp RGB565 color format 16 bpp RGB565 color format
endchoice endchoice # Color format
endif endif # LCD_ILI9340_IFACE0
config LCD_ILI9340_IFACE1 config LCD_ILI9340_IFACE1
bool "(2) LCD Display" bool "(2) LCD Display"
@ -1633,7 +1633,6 @@ config LCD_SSD1680
Required SPI driver settings: Required SPI driver settings:
SPI_CMDDATA - Include support for cmd/data selection. SPI_CMDDATA - Include support for cmd/data selection.
if LCD_SSD1680 if LCD_SSD1680
choice choice
@ -1668,6 +1667,7 @@ config SSD1680_FREQUENCY
---help--- ---help---
Selects the SPI bus frequency used with the SSD1680 device. Selects the SPI bus frequency used with the SSD1680 device.
Max for read mode is 2.5 MHz, for write mode is 20 HHz Max for read mode is 2.5 MHz, for write mode is 20 HHz
endif # LCD_SSD1680 endif # LCD_SSD1680