From patchwork Mon Feb 20 09:54:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 1744962 X-Patchwork-Delegate: agust@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=HUjpAbjz; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4PKyTn3Whtz240n for ; Mon, 20 Feb 2023 20:55:41 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C794285902; Mon, 20 Feb 2023 10:55:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HUjpAbjz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AF6268593D; Mon, 20 Feb 2023 10:54:55 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (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 44FB385802 for ; Mon, 20 Feb 2023 10:54:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-ed1-x52a.google.com with SMTP id h16so2492024edz.10 for ; Mon, 20 Feb 2023 01:54:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7T+K21s0G1h6iBjcHZq7ENqw9lAaZMwegbsXCUKiVKw=; b=HUjpAbjzyUxI7KJjVFX8JCtFFk6WuQdP5HAuEXWdhUq9yNk6YV+CaRvxEtlE9i9JIO zLEW1r2gZa986/giyxeDD7BYrCkFwgvJWoEzWlWbosTsimVz+d1+nHKVlx0dWZwixK/8 wjr99MF1oeWpbRYXIUMJMAjWZae8WZfCBYawnSELGov7kvfERvVV/VJalYiP5bWSOVaK kG7B2alU/HAFjhWTj7uQ3/4rVJuSgiAryqbFOsWALBXlOL9i2ypBQfPTaAmSEYIM0rxG tvttDysIefL25fkxXF3IU788NuVM9TT+Pjp93qUN6BG6tpmafFBI1jFZeYVWC8rFlvC7 /rxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7T+K21s0G1h6iBjcHZq7ENqw9lAaZMwegbsXCUKiVKw=; b=bHyaKHREUanWwg85vRU1KNW84N1aLhzTUfp3Lv5cIXXo6F8n5483g9kCQsDiy/nE7q d4Xr/gFdS1WTLa+42VFkfWQI/aw+P7CY6RM2HjH4oVh+5Xhqf1gae3Scn0jQxieoA7tD Xn8VXoqfzkD26KFfnnIk9nVtb6BZSus00heVi0E79XZPHRCvla78VL6DyaCbiOJG03k9 5TddgydMqqneUmUCeOwqQmTpAlflOw5dz6DFWRGSkYBD15b4HUm0/6G3ufs1o25VeqyV 72Qhft4qjT3ShAhynHUnuI0JaJ0yTsau+b9qAA3XR5sl2WUgFGbBa5l5enpMiDwP1KDq SW1w== X-Gm-Message-State: AO0yUKUPt6cv5nwFbphcT12Ai2QrO03khTKp+/3e6RRIFSVT4MrIUYDq PB9HYjvDeWf/T4PTyEBHOW4= X-Google-Smtp-Source: AK7set9ah16IwpTtK0dCEB0icAEkor7jM0gKjeHD2i/6vXhn8TPeTgDRBR8Ac3jZqfpChiz222/fiA== X-Received: by 2002:a17:906:e89:b0:8b2:3eb6:865a with SMTP id p9-20020a1709060e8900b008b23eb6865amr10345805ejf.0.1676886888808; Mon, 20 Feb 2023 01:54:48 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id bk7-20020a170906b0c700b008cd37aff603sm1636536ejb.164.2023.02.20.01.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 01:54:48 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Anatolij Gustschin , Simon Glass , Svyatoslav Ryhel , Marcel Ziswiler , Thierry Reding , Maxim Schwalm , Dmitry Osipenko Cc: u-boot@lists.denx.de Subject: [PATCH v1 02/11] video: move tegra dc driver into own folder Date: Mon, 20 Feb 2023 11:54:16 +0200 Message-Id: <20230220095425.6198-3-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230220095425.6198-1-clamor95@gmail.com> References: <20230220095425.6198-1-clamor95@gmail.com> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Svyatoslav Ryhel --- drivers/video/Kconfig | 11 ++--------- drivers/video/Makefile | 2 +- drivers/video/tegra20/Kconfig | 8 ++++++++ drivers/video/tegra20/Makefile | 3 +++ drivers/video/{tegra.c => tegra20/tegra-dc.c} | 0 5 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 drivers/video/tegra20/Kconfig create mode 100644 drivers/video/tegra20/Makefile rename drivers/video/{tegra.c => tegra20/tegra-dc.c} (100%) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 2a76d19cc8..a7f38efbb7 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -638,15 +638,6 @@ source "drivers/video/stm32/Kconfig" source "drivers/video/tidss/Kconfig" -config VIDEO_TEGRA20 - bool "Enable LCD support on Tegra20" - depends on OF_CONTROL - help - Tegra20 supports video output to an attached LCD panel as well as - other options such as HDMI. Only the LCD is supported in U-Boot. - This option enables this support which can be used on devices which - have an LCD display connected. - config VIDEO_TEGRA124 bool "Enable video support on Tegra124" help @@ -657,6 +648,8 @@ config VIDEO_TEGRA124 source "drivers/video/bridge/Kconfig" +source "drivers/video/tegra20/Kconfig" + source "drivers/video/imx/Kconfig" config VIDEO_MXS diff --git a/drivers/video/Makefile b/drivers/video/Makefile index cdb7d9a54d..e3c7b15d15 100644 --- a/drivers/video/Makefile +++ b/drivers/video/Makefile @@ -61,10 +61,10 @@ obj-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o obj-$(CONFIG_VIDEO_DSI_HOST_SANDBOX) += sandbox_dsi_host.o obj-$(CONFIG_VIDEO_SANDBOX_SDL) += sandbox_sdl.o obj-$(CONFIG_VIDEO_SIMPLE) += simplefb.o -obj-$(CONFIG_VIDEO_TEGRA20) += tegra.o obj-$(CONFIG_VIDEO_VESA) += vesa.o obj-$(CONFIG_VIDEO_SEPS525) += seps525.o obj-$(CONFIG_VIDEO_ZYNQMP_DPSUB) += zynqmp_dpsub.o obj-y += bridge/ obj-y += sunxi/ +obj-y += tegra20/ diff --git a/drivers/video/tegra20/Kconfig b/drivers/video/tegra20/Kconfig new file mode 100644 index 0000000000..2a4036b898 --- /dev/null +++ b/drivers/video/tegra20/Kconfig @@ -0,0 +1,8 @@ +config VIDEO_TEGRA20 + bool "Enable Display Controller support on Tegra20 and Tegra 30" + depends on OF_CONTROL + help + T20/T30 support video output to an attached LCD panel as well as + other options such as HDMI. Only the LCD is supported in U-Boot. + This option enables this support which can be used on devices which + have an LCD display connected. diff --git a/drivers/video/tegra20/Makefile b/drivers/video/tegra20/Makefile new file mode 100644 index 0000000000..4517923025 --- /dev/null +++ b/drivers/video/tegra20/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0+ + +obj-$(CONFIG_VIDEO_TEGRA20) += tegra-dc.o diff --git a/drivers/video/tegra.c b/drivers/video/tegra20/tegra-dc.c similarity index 100% rename from drivers/video/tegra.c rename to drivers/video/tegra20/tegra-dc.c