Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2899485pxp; Mon, 14 Mar 2022 07:06:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpnBqO8ms/TwRqa9mBF5knhhECu02qBbttkpYD/H5UN96UA7Tr/GlR87RGRyIeOS/+ZLuD X-Received: by 2002:a17:906:7944:b0:6da:b834:2f3e with SMTP id l4-20020a170906794400b006dab8342f3emr18846580ejo.353.1647266772604; Mon, 14 Mar 2022 07:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647266772; cv=none; d=google.com; s=arc-20160816; b=wQFe0/L0eZ90iElzyHG23EQV9hkjZSz9xYLu2e+MYiq3IS+iCiLCGDy8Ee1vssgDxI ij2TkvFg9kSMyyP/ipiXQSjDl+3xYic6LEOH3MRADE3TYDPvT3CHCf/MTMSiLE6nm7Fu YXjACPvLPyyDbbvjNzau1BSqXgJypDoWXvV2hLzFoNsisgZRtx0NHvS9wsbtac3R47dO gxcFCEKShZ+daJbynsJKn82cM5Ek9afNbUM9SXa4U3y3Go6awWHXFPVJ6Yy3zxHNhoXW tVnGclWch8KLy/iMQh0sIkH56mJVjIDDCD0TOyrZSg5AuHeBj1v1rMyO3RGQkdoPtCWa HjQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=eu4kxnydjTw5NN/9mb/dXVDz8KWiR4+YFi+RYkeAgmc=; b=uZQbJbQpDFyUb2rbGkceKYAgImjfnjpQ5iCqCGHea8MPIUKnr171CZivmFXH0la9Nq HTVa/YvrCSv9cSn54OUaax2qMsbSaBAdx4xYyrQS4C+JwrYwWxHvMvzOxrPlyqWDgXkL vv6VjLfxOzh+RY22mDAuhAxT4Z4S1kgp6VSNTG2PNpQtGzB69khi9yqEHKlMIuBijXPt wVM98StblddzH6RrEltWiitY8s/phgG+S9vFAI4K4StPn0VNsGLNXA6/I5SZpmFqrbJj ZWgbjOifqwwxt1i1vxPYjZf4ZtPMD1d1ffx2Y2OajVmFKEbiGRPmwuKpctMHIuoE798U KYGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=jv+Sab47; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id zk1-20020a17090733c100b006db5a513630si8283036ejb.676.2022.03.14.07.05.44; Mon, 14 Mar 2022 07:06:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=jv+Sab47; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234029AbiCMHYy (ORCPT + 99 others); Sun, 13 Mar 2022 03:24:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233777AbiCMHXK (ORCPT ); Sun, 13 Mar 2022 03:23:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD50119457A; Sat, 12 Mar 2022 23:21:57 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A9DE160F61; Sun, 13 Mar 2022 07:21:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DC66C36AF5; Sun, 13 Mar 2022 07:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647156114; bh=RaL/DjhnewSUdj+qno9sudrcNvYsIQdEbgl12mplx+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jv+Sab47rTS3urpWiBAgD6YgrVJGu51H2DL6pIHzEGh3L4vgFZXufw1OJzBz2Y9JC Opzz7X2gbQqW/p0R8ICDvmbgJq7MoUp1cLphkkC3xDXcz7Gc/8JMQd1jw5NQ6E+ZKN 7TWS6+9eBjXusbZyoiqweMbJH2pQO55iwlEwjCDDdLGJcZVuK+if8d5snEi26oVOam CnJlptb4yAYn/VnOLSsGzb/RjTRB9pfj8QN0WkJ6XIJEbA1CRleeIsK9DvjIshjTi6 o9MeA225Bf+q17njhnLG6IDuX9f30/cxyLtO5SRBj0jKfzihW1UMDFQ5RcKL13ixxc jpusxu/dNrKbw== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nTIY4-0012xU-Bi; Sun, 13 Mar 2022 08:21:52 +0100 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Benoit Parrot , Dmitry Osipenko , Hans Verkuil , Jernej Skrabec , Laurent Pinchart , Ming Qian , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v3 31/39] media: platform: ti-vpe: move config to its own file Date: Sun, 13 Mar 2022 08:21:40 +0100 Message-Id: X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to better organize the platform/Kconfig, place ti-vpe-specific config stuff on a separate Kconfig file. Reviewed-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- To avoid mailbombing on a large number of people, only mailing lists were C/C on the cover. See [PATCH v3 00/39] at: https://lore.kernel.org/all/cover.1647155572.git.mchehab@kernel.org/ drivers/media/platform/Kconfig | 60 +------------------------- drivers/media/platform/ti-vpe/Kconfig | 62 +++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 59 deletions(-) create mode 100644 drivers/media/platform/ti-vpe/Kconfig diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index b0acbf3ccb69..228881ae0d22 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -66,6 +66,7 @@ source "drivers/media/platform/stm32/Kconfig" source "drivers/media/platform/sunxi/sun8i-di/Kconfig" source "drivers/media/platform/sunxi/sun8i-rotate/Kconfig" source "drivers/media/platform/tegra/vde/Kconfig" +source "drivers/media/platform/ti-vpe/Kconfig" config VIDEO_MUX tristate "Video Multiplexer" @@ -106,33 +107,6 @@ source "drivers/media/platform/xilinx/Kconfig" source "drivers/media/platform/atmel/Kconfig" source "drivers/media/platform/sunxi/Kconfig" -config VIDEO_TI_CAL - tristate "TI CAL (Camera Adaptation Layer) driver" - depends on V4L_PLATFORM_DRIVERS - depends on VIDEO_DEV && VIDEO_V4L2 - select MEDIA_CONTROLLER - select VIDEO_V4L2_SUBDEV_API - depends on SOC_DRA7XX || ARCH_K3 || COMPILE_TEST - select VIDEOBUF2_DMA_CONTIG - select V4L2_FWNODE - help - Support for the TI CAL (Camera Adaptation Layer) block - found on DRA72X SoC. - In TI Technical Reference Manual this module is referred as - Camera Interface Subsystem (CAMSS). - -config VIDEO_TI_CAL_MC - bool "Media Controller centric mode by default" - depends on VIDEO_TI_CAL - default n - help - Enables Media Controller centric mode by default. - - If set, CAL driver will start in Media Controller mode by - default. Note that this behavior can be overridden via - module parameter 'mc_api'. - - # Mem2mem drivers config VIDEO_MEM2MEM_DEINTERLACE @@ -212,37 +186,5 @@ config VIDEO_STI_DELTA_DRIVER select V4L2_MEM2MEM_DEV select RPMSG -config VIDEO_TI_VPE - tristate "TI VPE (Video Processing Engine) driver" - depends on V4L_MEM2MEM_DRIVERS - depends on VIDEO_DEV && VIDEO_V4L2 - depends on SOC_DRA7XX || COMPILE_TEST - select VIDEOBUF2_DMA_CONTIG - select V4L2_MEM2MEM_DEV - select VIDEO_TI_VPDMA - select VIDEO_TI_SC - select VIDEO_TI_CSC - help - Support for the TI VPE(Video Processing Engine) block - found on DRA7XX SoC. - -config VIDEO_TI_VPE_DEBUG - bool "VPE debug messages" - depends on V4L_MEM2MEM_DRIVERS - depends on VIDEO_TI_VPE - help - Enable debug messages on VPE driver. - -# TI VIDEO PORT Helper Modules -# These will be selected by VPE and VIP -config VIDEO_TI_VPDMA - tristate - -config VIDEO_TI_SC - tristate - -config VIDEO_TI_CSC - tristate - # DVB platform drivers source "drivers/media/platform/sti/c8sectpfe/Kconfig" diff --git a/drivers/media/platform/ti-vpe/Kconfig b/drivers/media/platform/ti-vpe/Kconfig new file mode 100644 index 000000000000..a9ee0189f2f2 --- /dev/null +++ b/drivers/media/platform/ti-vpe/Kconfig @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0-only + +# TI VIDEO PORT Helper Modules +# These will be selected by VPE and VIP +config VIDEO_TI_VPDMA + tristate + +config VIDEO_TI_SC + tristate + +config VIDEO_TI_CSC + tristate + +# V4L drivers + +config VIDEO_TI_CAL + tristate "TI CAL (Camera Adaptation Layer) driver" + depends on VIDEO_DEV && VIDEO_V4L2 + depends on V4L_PLATFORM_DRIVERS + select MEDIA_CONTROLLER + select VIDEO_V4L2_SUBDEV_API + depends on SOC_DRA7XX || ARCH_K3 || COMPILE_TEST + select VIDEOBUF2_DMA_CONTIG + select V4L2_FWNODE + help + Support for the TI CAL (Camera Adaptation Layer) block + found on DRA72X SoC. + In TI Technical Reference Manual this module is referred as + Camera Interface Subsystem (CAMSS). + +config VIDEO_TI_CAL_MC + bool "Media Controller centric mode by default" + depends on VIDEO_TI_CAL + default n + help + Enables Media Controller centric mode by default. + + If set, CAL driver will start in Media Controller mode by + default. Note that this behavior can be overridden via + module parameter 'mc_api'. + +# Mem2mem drivers + +config VIDEO_TI_VPE + tristate "TI VPE (Video Processing Engine) driver" + depends on V4L_MEM2MEM_DRIVERS + depends on VIDEO_DEV && VIDEO_V4L2 + depends on SOC_DRA7XX || COMPILE_TEST + select VIDEOBUF2_DMA_CONTIG + select V4L2_MEM2MEM_DEV + select VIDEO_TI_VPDMA + select VIDEO_TI_SC + select VIDEO_TI_CSC + help + Support for the TI VPE(Video Processing Engine) block + found on DRA7XX SoC. + +config VIDEO_TI_VPE_DEBUG + bool "VPE debug messages" + depends on VIDEO_TI_VPE + help + Enable debug messages on VPE driver. -- 2.35.1