boards/shields: waveshare_epaper: Move to conditional Kconfig
Move wavehare epaper shields to conditional Kconfig. As part of this change, direct drivers Kconfig symbols enabling (SPI, SSD16XX) are removed as they are application responsibility. GPIO is removed as well as it should be 'y' by default on all boards according to Default board configuration guidelines. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
f74667bfc7
commit
980ddb6b98
47
boards/shields/waveshare_epaper/Kconfig.defconfig
Normal file
47
boards/shields/waveshare_epaper/Kconfig.defconfig
Normal file
|
@ -0,0 +1,47 @@
|
|||
#
|
||||
# Copyright (c) 2019, PHYTEC Messtechnik GmbH
|
||||
# Copyright (c) 2019 Linaro Limited
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
if SHIELD_WAVESHARE_EPAPER_GDEH029A1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B1 || SHIELD_WAVESHARE_EPAPER_GDEH0213B72
|
||||
|
||||
if DISPLAY
|
||||
|
||||
config SPI
|
||||
default y
|
||||
|
||||
config SSD16XX
|
||||
default y
|
||||
|
||||
if LVGL
|
||||
|
||||
config LVGL_DISPLAY_DEV_NAME
|
||||
default "SSD16XX"
|
||||
|
||||
config LVGL_HOR_RES
|
||||
default 296 if SHIELD_WAVESHARE_EPAPER_GDEH029A1
|
||||
default 250 if SHIELD_WAVESHARE_EPAPER_GDEH0213B1
|
||||
default 250 if SHIELD_WAVESHARE_EPAPER_GDEH0213B72
|
||||
|
||||
config LVGL_VER_RES
|
||||
default 128 if SHIELD_WAVESHARE_EPAPER_GDEH029A1
|
||||
default 120 if SHIELD_WAVESHARE_EPAPER_GDEH0213B1
|
||||
default 120 if SHIELD_WAVESHARE_EPAPER_GDEH0213B72
|
||||
|
||||
config LVGL_VDB_SIZE
|
||||
default 16
|
||||
|
||||
config LVGL_DPI
|
||||
default 130
|
||||
|
||||
choice LVGL_COLOR_DEPTH
|
||||
default LVGL_COLOR_DEPTH_1
|
||||
endchoice
|
||||
|
||||
endif # LVGL
|
||||
|
||||
endif # DISPLAY
|
||||
|
||||
endif # SHIELD_WAVESHARE_EPAPER_GDEH02
|
11
boards/shields/waveshare_epaper/Kconfig.shield
Normal file
11
boards/shields/waveshare_epaper/Kconfig.shield
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Copyright (c) 2019 Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SHIELD_WAVESHARE_EPAPER_GDEH029A1
|
||||
def_bool $(shields_list_contains,waveshare_epaper_gdeh029a1)
|
||||
|
||||
config SHIELD_WAVESHARE_EPAPER_GDEH0213B1
|
||||
def_bool $(shields_list_contains,waveshare_epaper_gdeh0213b1)
|
||||
|
||||
config SHIELD_WAVESHARE_EPAPER_GDEH0213B72
|
||||
def_bool $(shields_list_contains,waveshare_epaper_gdeh0213b72)
|
|
@ -1,18 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019, PHYTEC Messtechnik GmbH
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
CONFIG_SSD16XX=y
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
|
||||
CONFIG_LVGL_COLOR_DEPTH_1=y
|
||||
CONFIG_LVGL_BITS_PER_PIXEL=1
|
||||
CONFIG_LVGL_HOR_RES=250
|
||||
CONFIG_LVGL_VER_RES=120
|
||||
CONFIG_LVGL_DPI=130
|
||||
CONFIG_LVGL_VDB_SIZE=16
|
||||
|
||||
CONFIG_LVGL_DISPLAY_DEV_NAME="SSD16XX"
|
|
@ -1,19 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019, PHYTEC Messtechnik GmbH
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
CONFIG_SSD16XX=y
|
||||
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
|
||||
CONFIG_LVGL_COLOR_DEPTH_1=y
|
||||
CONFIG_LVGL_BITS_PER_PIXEL=1
|
||||
CONFIG_LVGL_HOR_RES=250
|
||||
CONFIG_LVGL_VER_RES=120
|
||||
CONFIG_LVGL_DPI=130
|
||||
CONFIG_LVGL_VDB_SIZE=16
|
||||
|
||||
CONFIG_LVGL_DISPLAY_DEV_NAME="SSD16XX"
|
|
@ -1,19 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2019, PHYTEC Messtechnik GmbH
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
CONFIG_SSD16XX=y
|
||||
|
||||
CONFIG_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
|
||||
CONFIG_LVGL_COLOR_DEPTH_1=y
|
||||
CONFIG_LVGL_BITS_PER_PIXEL=1
|
||||
CONFIG_LVGL_HOR_RES=296
|
||||
CONFIG_LVGL_VER_RES=128
|
||||
CONFIG_LVGL_DPI=130
|
||||
CONFIG_LVGL_VDB_SIZE=16
|
||||
|
||||
CONFIG_LVGL_DISPLAY_DEV_NAME="SSD16XX"
|
Loading…
Reference in a new issue