Enable the configuration required for the DSI pipeline on Genio 360 EVK:
video, the MediaTek DSI driver and the startek kd070fhfid078 panel which
is the default display for the Genio 360 EVK. The PHY uclass, DM_GPIO
and the fixed regulator are already enabled for the other peripherals of
the board.

Unlike the Genio 350 panel, the kd070fhfid078 drives its backlight
through the display PWM, so the PWM uclass and the MediaTek display
PWM driver are enabled as well. The backlight uclass and the generic PWM
backlight driver are "default y", so CONFIG_DM_PWM=y is enough to bring
them in.

Everything else the driver needs, the MIPI DSI PHY included, is selected
by CONFIG_VIDEO_MEDIATEK_DSI. The U-Boot logo is not enabled by a symbol
of its own: CONFIG_VIDEO_LOGO is "default y if !SPLASH_SCREEN", so
CONFIG_VIDEO=y already brings it in.

CONFIG_VIDEO also turns CONFIG_CONSOLE_MUX and CONFIG_CMD_CLS on by
default. Both are turned back off: the display is only there for the
boot logo, the console stays on the serial port.

Signed-off-by: Julien Stephan <[email protected]>
---
 configs/mt8366_genio_360_evk_defconfig | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configs/mt8366_genio_360_evk_defconfig 
b/configs/mt8366_genio_360_evk_defconfig
index abc3667d566..18e67f09816 100644
--- a/configs/mt8366_genio_360_evk_defconfig
+++ b/configs/mt8366_genio_360_evk_defconfig
@@ -12,6 +12,7 @@ CONFIG_SYS_LOAD_ADDR=0x4c000000
 CONFIG_FIT=y
 CONFIG_BOOTSTD_FULL=y
 CONFIG_DEFAULT_FDT_FILE="mt8366-genio-360-evk"
+# CONFIG_CONSOLE_MUX is not set
 # CONFIG_BOARD_INIT is not set
 CONFIG_CMD_CLK=y
 CONFIG_CMD_DM=y
@@ -20,6 +21,7 @@ CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_MTD=y
 CONFIG_CMD_USB=y
+# CONFIG_CMD_CLS is not set
 CONFIG_CMD_PMIC=y
 CONFIG_CMD_REGULATOR=y
 CONFIG_NET_LWIP=y
@@ -49,6 +51,8 @@ CONFIG_DM_PMIC_MTK_PWRAP=y
 CONFIG_DM_REGULATOR=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_REGULATOR_MT6358=y
+CONFIG_DM_PWM=y
+CONFIG_PWM_MTK_DISP=y
 CONFIG_BAUDRATE=921600
 CONFIG_DM_SERIAL=y
 CONFIG_MTK_SERIAL=y
@@ -59,5 +63,8 @@ CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
 CONFIG_USB_XHCI_MTK=y
 CONFIG_USB_MTU3=y
+CONFIG_VIDEO=y
+CONFIG_PANEL_STARTEK_KD070FHFID078=y
+CONFIG_VIDEO_MEDIATEK_DSI=y
 CONFIG_WDT=y
 CONFIG_WDT_MTK=y

-- 
2.55.0

Reply via email to