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 D6D13C64ED6 for ; Sun, 26 Feb 2023 18:20:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA4B6859A3; Sun, 26 Feb 2023 19:20:39 +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="T4BhCk0B"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 65B30859A2; Sun, 26 Feb 2023 19:20:35 +0100 (CET) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 2140585945 for ; Sun, 26 Feb 2023 19:20:32 +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-lf1-x12b.google.com with SMTP id bi9so5727511lfb.2 for ; Sun, 26 Feb 2023 10:20:32 -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=T4BhCk0B8xZ5KMeM4GLqLRIstwBPE5ejUYhrpnio66fF4FrxCHqTtfUNycPNECuvKg GyRpfjYYAvRSglTEEfEb6OOVCZuMCxNTiPDa9DcQMWAaXljbWwXlpUU8Osv/onb05Xmh fIemiBE2eiQsGnMnMabqz5z1GPO/sl8REEX0E4borBSC577xxmfcnqhXBf93fav9cF8I D7qLmf3aT+hIXi7jqBVz9efGXIrZWnrezRvgoXjoYLbeybQnhYjnkRK5M+lSRflw4e/8 2zxL30KW27/5f3AeMzkwpyDjeDY/exZDWVPZNtrr2aaJh09VxvazuYwLwfoI2t7oymwo y78w== 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=2TpGnSDw95NjZUadZFYCWIcGH+QUgMnHCRF+wBCyAUsVaxE4DLQLDQ8etuGOFlGwaN saSUMn36o4LWm3eBaJQh/pV+IuaHQ47HiPWUliDG83eEfDNS2K8ZF+B+d/Ask/wNNo8s LiYnFD+EeBhRZwVhuH9EXDI/hp75btPmyaniDK8LYAHrfnel9L3aApKP/hKaUw3aBK8q smmRqDmdnNriAfPa5K8cO0WzrqSGeAtIIK0N+eZeCnFJRZDAzH+lPQ5FMnwCuTdQ9lkF Fb+pmbGkejd1EtZfPabHG/kD1j4wXVGgeaPhC4PhdTkRHfr6Jh9KsDzxBV4riAbkDcd0 Hq+Q== X-Gm-Message-State: AO0yUKVD0lv/pUnRla5x2UTRb07uAF0r5CmVWri3/iV/3PK44oDElMdx 9y3+AZtNRr/oW7CMYFHvbZk= X-Google-Smtp-Source: AK7set+j8xjIhXP974DuQgL7kKnXL4npZb+Qftbd9mGXow20JxGn4Yc/Dwev5ihslW3AJmoPiuX+3g== X-Received: by 2002:ac2:568e:0:b0:4de:e802:b7e3 with SMTP id 14-20020ac2568e000000b004dee802b7e3mr1014025lfr.19.1677435631378; Sun, 26 Feb 2023 10:20:31 -0800 (PST) Received: from xeon.. ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id x25-20020ac259d9000000b004dc4d984911sm619421lfn.271.2023.02.26.10.20.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 10:20:31 -0800 (PST) From: Svyatoslav Ryhel To: Tom Warren , Anatolij Gustschin , Simon Glass , Svyatoslav Ryhel , Marcel Ziswiler , Thierry Reding , Maxim Schwalm , Dmitry Osipenko , Nicolas Chauvet Cc: u-boot@lists.denx.de Subject: [PATCH v2 02/11] video: move tegra dc driver into own folder Date: Sun, 26 Feb 2023 20:19:56 +0200 Message-Id: <20230226182005.27291-3-clamor95@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230226182005.27291-1-clamor95@gmail.com> References: <20230226182005.27291-1-clamor95@gmail.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.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 -- 2.37.2