Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C705C433EF for ; Sat, 11 Jun 2022 03:01:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 25CDE8443F; Sat, 11 Jun 2022 05:00:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="DLB/tQji"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 24B0F84430; Sat, 11 Jun 2022 04:59:58 +0200 (CEST) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3EB9E84419 for ; Sat, 11 Jun 2022 04:59:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x735.google.com with SMTP id x75so503893qkb.12 for ; Fri, 10 Jun 2022 19:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iT64L5LpV53U0VXixSZYuEjwZ/4DPDujpNa1ItFitW0=; b=DLB/tQjiFMgGHO8VNiVGyCw6yqe/GsY/zAmYabK9Wq8JlbKJ6y9hZjm5Wx3zFBy8z9 skBx6wsJtNIbU+aol0kjmCz0+t4+ijaghWd2lfjnInj9+QIjJ3vh+bUv7cfWLBxuDeAS Oj++Ua9eh0LOeuMDsuju8vOM1w/4tB2pLkzdk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iT64L5LpV53U0VXixSZYuEjwZ/4DPDujpNa1ItFitW0=; b=JaX57sVJ+ibFAns65Iln+lmIn3K4kayLG77NbipiY3/GtoqCYXxmjGIDCfI7o3JiQa gx3blOV275qN2e/IZnnRm6or10vQzz0oYgbmuK2Hsy2e6SxKx08vQDbkFWhfnEuAKxXe pFfGatjnSR2sADuUnmlL0edP5bKH29YuCNj+nMhiwm79KlGThOTTkU4TNwO01YN/81SA meVFh/vwdobniYZaOLRG8FPnByVdieN6rbYNrUIs1mlXma3AlAMBEzzrDtlVpigRlNMy rtHAo1XjZF+6IxBwPiXwdJVK1WttwTZUi+gc0O7fEfGWibr6ZOEFFq5FKU7rfXmLczSy CWcg== X-Gm-Message-State: AOAM533GU6cPLkMN5Gb8TIUR27l3lYXnGQEdnuLbCFfLpKkbbEBPbYVx iC7JpCZK2x49WngR4O5nDGPJLH7iW9J+eQ== X-Google-Smtp-Source: ABdhPJyLeOHYc9ZEQgX0u0A1Z/Vwtvcaqh2Bo68ljfleHYE5LvBuacHc1HndhuVrmOYfL3l6MJUJuQ== X-Received: by 2002:a05:620a:6018:b0:6a7:5a0f:fcec with SMTP id dw24-20020a05620a601800b006a75a0ffcecmr2844618qkb.537.1654916392473; Fri, 10 Jun 2022 19:59:52 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id 142-20020a370894000000b006a6acd33f18sm899926qki.8.2022.06.10.19.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 19:59:51 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Cc: Anatolij Gustschin , Jaehoon Chung , Minkyu Kang Subject: [PATCH 11/15] video: Migrate exynos display options to Kconfig Date: Fri, 10 Jun 2022 22:59:34 -0400 Message-Id: <20220611025938.2151916-11-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220611025938.2151916-1-trini@konsulko.com> References: <20220611025938.2151916-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Following how it's done for the majority of drivers, add a new VIDEO_EXYNOS option and Kconfig file under drivers/video/exynos and list the current options there. Cc: Anatolij Gustschin Cc: Jaehoon Chung Cc: Minkyu Kang Signed-off-by: Tom Rini --- It would be good to have help options here, but I don't know the underlying parts, so what to add would be appreciated, or done as a follow-up. On a related note, the drivers themselves should be under something in the top-level MAINTAINERS file as they are not currently. --- configs/peach-pi_defconfig | 3 +++ configs/peach-pit_defconfig | 3 +++ configs/snow_defconfig | 3 +++ configs/spring_defconfig | 3 +++ drivers/video/Kconfig | 2 ++ drivers/video/exynos/Kconfig | 20 ++++++++++++++++++++ include/configs/exynos5-dt-common.h | 7 ------- include/configs/peach-pi.h | 7 ------- include/configs/smdk5250.h | 3 --- include/configs/smdk5420.h | 3 --- include/configs/trats.h | 1 - include/configs/trats2.h | 1 - 12 files changed, 34 insertions(+), 22 deletions(-) create mode 100644 drivers/video/exynos/Kconfig diff --git a/configs/peach-pi_defconfig b/configs/peach-pi_defconfig index 27be6075661b..d6662e18ab7b 100644 --- a/configs/peach-pi_defconfig +++ b/configs/peach-pi_defconfig @@ -84,6 +84,9 @@ CONFIG_DM_VIDEO=y # CONFIG_VIDEO_BPP8 is not set CONFIG_VIDCONSOLE_AS_LCD=y CONFIG_DISPLAY=y +CONFIG_VIDEO_EXYNOS=y +CONFIG_EXYNOS_DP=y +CONFIG_EXYNOS_FB=y CONFIG_VIDEO_BRIDGE=y CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y CONFIG_LCD=y diff --git a/configs/peach-pit_defconfig b/configs/peach-pit_defconfig index 296b4ceb195b..07740571c757 100644 --- a/configs/peach-pit_defconfig +++ b/configs/peach-pit_defconfig @@ -83,6 +83,9 @@ CONFIG_DM_VIDEO=y # CONFIG_VIDEO_BPP8 is not set CONFIG_VIDCONSOLE_AS_LCD=y CONFIG_DISPLAY=y +CONFIG_VIDEO_EXYNOS=y +CONFIG_EXYNOS_DP=y +CONFIG_EXYNOS_FB=y CONFIG_VIDEO_BRIDGE=y CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y CONFIG_LCD=y diff --git a/configs/snow_defconfig b/configs/snow_defconfig index 4377a58130e3..8d1b28dcf8c5 100644 --- a/configs/snow_defconfig +++ b/configs/snow_defconfig @@ -94,6 +94,9 @@ CONFIG_DM_VIDEO=y # CONFIG_VIDEO_BPP8 is not set CONFIG_VIDCONSOLE_AS_LCD=y CONFIG_DISPLAY=y +CONFIG_VIDEO_EXYNOS=y +CONFIG_EXYNOS_DP=y +CONFIG_EXYNOS_FB=y CONFIG_VIDEO_BRIDGE=y CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y CONFIG_VIDEO_BRIDGE_NXP_PTN3460=y diff --git a/configs/spring_defconfig b/configs/spring_defconfig index ad017564d994..366790b4efe4 100644 --- a/configs/spring_defconfig +++ b/configs/spring_defconfig @@ -95,6 +95,9 @@ CONFIG_DM_VIDEO=y # CONFIG_VIDEO_BPP8 is not set CONFIG_VIDCONSOLE_AS_LCD=y CONFIG_DISPLAY=y +CONFIG_VIDEO_EXYNOS=y +CONFIG_EXYNOS_DP=y +CONFIG_EXYNOS_FB=y CONFIG_VIDEO_BRIDGE=y CONFIG_VIDEO_BRIDGE_PARADE_PS862X=y CONFIG_LCD=y diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 965b5879274e..4ecc158c4605 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -583,6 +583,8 @@ config ATMEL_HLCD source "drivers/video/ti/Kconfig" +source "drivers/video/exynos/Kconfig" + config LOGICORE_DP_TX bool "Enable Logicore DP TX driver" depends on DISPLAY diff --git a/drivers/video/exynos/Kconfig b/drivers/video/exynos/Kconfig new file mode 100644 index 000000000000..37e661b1edd2 --- /dev/null +++ b/drivers/video/exynos/Kconfig @@ -0,0 +1,20 @@ + +menuconfig VIDEO_EXYNOS + bool "Enable Exynos video support" + depends on DM_VIDEO + help + Enable support for various video output options on Exynos SoCs. + +if VIDEO_EXYNOS + +config EXYNOS_DP + bool "Exynos Display Port support" + +config EXYNOS_FB + bool "Exynos FIMD support" + +config EXYNOS_MIPI_DSIM + bool "Exynos MIPI DSI support" + depends on EXYNOS_FB + +endif diff --git a/include/configs/exynos5-dt-common.h b/include/configs/exynos5-dt-common.h index 38f6940a3dbc..a94f5a15f0d1 100644 --- a/include/configs/exynos5-dt-common.h +++ b/include/configs/exynos5-dt-common.h @@ -19,11 +19,4 @@ #define FLASH_SIZE (4 << 20) #define CONFIG_SPI_BOOTING -/* Display */ -#ifdef CONFIG_LCD -#define CONFIG_EXYNOS_FB -#define CONFIG_EXYNOS_DP -#define LCD_BPP LCD_COLOR16 -#endif - #endif diff --git a/include/configs/peach-pi.h b/include/configs/peach-pi.h index ff4180a8331d..7a8d3c63d445 100644 --- a/include/configs/peach-pi.h +++ b/include/configs/peach-pi.h @@ -22,13 +22,6 @@ #define CONFIG_SYS_SDRAM_BASE 0x20000000 -/* Display */ -#ifdef CONFIG_LCD -#define CONFIG_EXYNOS_FB -#define CONFIG_EXYNOS_DP -#define LCD_BPP LCD_COLOR16 -#endif - #define CONFIG_POWER_TPS65090_EC /* DRAM Memory Banks */ diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h index 1ea3b650cd26..c6d2b23197d1 100644 --- a/include/configs/smdk5250.h +++ b/include/configs/smdk5250.h @@ -12,7 +12,4 @@ #include #include -#undef CONFIG_EXYNOS_FB -#undef CONFIG_EXYNOS_DP - #endif /* __CONFIG_SMDK_H */ diff --git a/include/configs/smdk5420.h b/include/configs/smdk5420.h index 254d0d91046c..12c2e1f6159a 100644 --- a/include/configs/smdk5420.h +++ b/include/configs/smdk5420.h @@ -12,9 +12,6 @@ #include #include -#undef CONFIG_EXYNOS_FB -#undef CONFIG_EXYNOS_DP - #define CONFIG_SMDK5420 /* which is in a SMDK5420 */ #define CONFIG_SYS_SDRAM_BASE 0x20000000 diff --git a/include/configs/trats.h b/include/configs/trats.h index ee4a583baa82..bca239ae817e 100644 --- a/include/configs/trats.h +++ b/include/configs/trats.h @@ -150,7 +150,6 @@ /* LCD */ #define CONFIG_FB_ADDR 0x52504000 -#define CONFIG_EXYNOS_MIPI_DSIM #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE ((500 * 160 * 4) + 54) #endif /* __CONFIG_H */ diff --git a/include/configs/trats2.h b/include/configs/trats2.h index c5df03a9f54d..20bd116c9e3d 100644 --- a/include/configs/trats2.h +++ b/include/configs/trats2.h @@ -140,7 +140,6 @@ /* LCD */ #define CONFIG_FB_ADDR 0x52504000 -#define CONFIG_EXYNOS_MIPI_DSIM #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE ((500 * 160 * 4) + 54) #endif /* __CONFIG_H */ -- 2.25.1