Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3671553pxp; Tue, 15 Mar 2022 04:02:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw65BpWqxUc/omMFdZepgmajUsSz2L78hixr69QovXI6OOgTIY0+sLwL0pnC1sERJbrZ1TD X-Received: by 2002:a17:902:ecd0:b0:151:dd64:c79b with SMTP id a16-20020a170902ecd000b00151dd64c79bmr27643152plh.79.1647342174379; Tue, 15 Mar 2022 04:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647342174; cv=none; d=google.com; s=arc-20160816; b=tDdRGs5apHcu/tdMUxM3ORx/iAtSHkK0Ph5b1mTqvq2gL4yPnyTEsWTuh49DdrlSDz TsogMLvEoSVLtt7sFwo0JzrWJQUxX1aC0ydKEiAzjztpWzc8pHejcd8S+8Y2H8XV/E2o vSf36bUhv1Z7uvjl+TocaLcKHs8Bf9QhdS9IGaNjwhpJkb6PVqeKkT828c7W2Aho9V/7 Y1c9o/mCP/5KQdwdLdXqvTOLuNbZwxYAeJvwGv1t/knMyT0mcsQK/V/M017lm4nCg5so pJtkUnZ2L0vi6uYsia0ErfjB9Cc7YMp1lMfHQb8v+vl7mSpdrhF8dLFrh1y8E+dfM8m+ owNQ== 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=UY5118+taGFMuU2BAgoBEtqNaS3sOmAnebyeZv61s58=; b=etVJ9MDGrjHhyaneJ85lGt7Jz5lklUXRqxsA4wn/cdLNPYb5efX+fvf+1tP6arS+wa 0jKgACGw34bC31yAVtOxwZHR5bPs4dACHr9nYRIwWw1g8BMyIDa2x4DAKC92kaSSkC/T 5U/4G9heT2OOvfe0w04lb8pei263zhQtgdaKLk+LFBllvrwZTFxXPEV5ihVbm+bEdkyE Ut/zABpDJXg8dUEFHkgHn7AE3IGvsKZ+568mVIVacLKxnflukWPnr1AaoWEVR3XdVi4k rbgE/LD+lYAuqOVM3Xdlziq5ainOB/CcOoXCl5zzWQpRiqu1fAU/+3gcOUEyJS3AFA48 snng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=s+qcgHhX; 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 h2-20020a170902b94200b0015161c0ea2esi16888073pls.164.2022.03.15.04.02.35; Tue, 15 Mar 2022 04:02:54 -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=s+qcgHhX; 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 S243903AbiCNQi1 (ORCPT + 99 others); Mon, 14 Mar 2022 12:38:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243189AbiCNQgc (ORCPT ); Mon, 14 Mar 2022 12:36:32 -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 3E82017AA8; Mon, 14 Mar 2022 09:35:15 -0700 (PDT) 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 AD5976142A; Mon, 14 Mar 2022 16:35:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02396C341C8; Mon, 14 Mar 2022 16:35:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647275708; bh=SB8rYBhhqW8OTCQreZ+dhIMVbrYEuNXdyMG8Z7pJUEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s+qcgHhXu3iVj+EEsxhamROTF4Rc46Iikiupdx35fsyKlX979tjKygdO2Z2nrYxnt kCO7PMFh6EOy8H7Cp5KyimUjCkl3pYD71s28hOHdZtjn3VSBNXAmqKm2jvji0OnS08 2zTLxO15Zjt3e+v4KCF1NXOtH94KwArqLnAvFPyvRy2IEPL43RLDs7H34cZaZMFB63 sLyibkmNu0xO7xhzhkSwQouc74XS0x5BYZpxTEp6Q10GumBhnttpzQjrbIAK9i2eDt 62wJYZC591ixyo1J2O2uDCW3/0JFy/0fsErtN/2FaMUjXF7fdh3F35Os5arhkKQOvv GYwfYJEiFv1jA== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nTnez-001wy8-QW; Mon, 14 Mar 2022 17:35:05 +0100 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Dmitry Osipenko , Hans Verkuil , Jernej Skrabec , Laurent Pinchart , Ming Qian , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: [PATCH v2 31/67] media: platform: ti-vpe: move config to its own file Date: Mon, 14 Mar 2022 17:34:26 +0100 Message-Id: <08be9797320eccf9db85730ef5e931b7e8bc320a.1647274406.git.mchehab@kernel.org> 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=-8.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 v2 00/67] at: https://lore.kernel.org/all/cover.1647274406.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