boards: fix dependency for LV_COLOR_SWAP_16 to use configdefault

Use configdefault when enabling LV_COLOR_SWAP_16 within boards and
shield definitions, to avoid OR'ing the dependencies for the Kconfig
symbol. Otherwise, a user manually selecting LV_COLOR_DEPTH will
encounter build errors as LV_COLOR_SWAP_16 may be enabled when
LV_COLOR_DEPTH_16 is not selected

Fixes #81546

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2024-11-19 10:49:08 -06:00 committed by Alberto Escolar
commit c071e27e2d
16 changed files with 16 additions and 15 deletions

View file

@ -19,7 +19,7 @@ choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16 # 16 bit per pixel
endchoice
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
endif # LVGL

View file

@ -19,7 +19,7 @@ choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16 # 16 bit per pixel
endchoice
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
endif # LVGL

View file

@ -19,7 +19,7 @@ choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16 # 16 bit per pixel
endchoice
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
endif # LVGL

View file

@ -19,7 +19,7 @@ choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16 # 16 bit per pixel
endchoice
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
endif # LVGL

View file

@ -5,7 +5,7 @@
if BOARD_ESP32S3_EYE_ESP32S3_PROCPU
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
endif # BOARD_ESP32S3_EYE_ESP32S3_PROCPU

View file

@ -87,7 +87,7 @@ choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16
endchoice
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
config INPUT

View file

@ -4,7 +4,7 @@
if BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y if LVGL
endif # BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU

View file

@ -29,7 +29,7 @@ config INPUT_FT5336_INTERRUPT
config INPUT
default y
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y if LVGL
# Increase initialization priority of MIPI DBI device, so that it initializes

View file

@ -3,5 +3,5 @@
# SPDX-License-Identifier: Apache-2.0
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y if LVGL

View file

@ -25,7 +25,7 @@ choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16
endchoice
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
config INPUT

View file

@ -20,7 +20,7 @@ config MIPI_DSI_MCUX_2L_SWAP16
endif # MIPI_DSI_MCUX_2L
# Swap 16 bit color setting for LVGL, to send high byte first
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y if !MIPI_DSI_MCUX_2L_SWAP16
config LV_Z_VDB_SIZE

View file

@ -14,7 +14,7 @@ choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16
endchoice
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
endif # LVGL

View file

@ -20,7 +20,7 @@ choice LV_COLOR_DEPTH
default LV_COLOR_DEPTH_16 if SHIELD_ST7789V_WAVESHARE_240X240
endchoice
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y if SHIELD_ST7789V_WAVESHARE_240X240
endif # LVGL

View file

@ -12,7 +12,7 @@ config KERNEL_MEM_POOL
config PWM
default y if DISPLAY
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y if LVGL
endif # BOARD_ESP32S3_TOUCH_LCD_1_28_ESP32S3_PROCPU

View file

@ -12,7 +12,7 @@ config INPUT
if LVGL
config LV_COLOR_16_SWAP
configdefault LV_COLOR_16_SWAP
default y
config LV_Z_BITS_PER_PIXEL

View file

@ -87,6 +87,7 @@ endchoice
config LV_COLOR_16_SWAP
bool
depends on LV_COLOR_DEPTH_16
config LV_Z_FLUSH_THREAD
bool "Flush LVGL frames in a separate thread"