Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp764210pxp; Fri, 11 Mar 2022 14:30:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfqKcQ9SkNxOUlo7CyFD7b1FpWkUX6UuaKELiHmgOaTXKDmnG7lkoB27red7qyj0hBRTk7 X-Received: by 2002:a05:6a00:1582:b0:4f7:63da:dfea with SMTP id u2-20020a056a00158200b004f763dadfeamr12168766pfk.27.1647037828253; Fri, 11 Mar 2022 14:30:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647037828; cv=none; d=google.com; s=arc-20160816; b=hGYyPlb20elkn5wP923gQzjcuYAOIdmGZJIFT9VU1E+nCOqF4xZJB2tiLPGuo0QF5Q eGOQYBP2VdRDBZk3ZvjN4YHclWkEM/VTvZ6rdHIPFpOo/q4baxvCdZEtFt1gziYEokm6 dTLAVD/M0wKCNg37kRQIq3vnkHfoY6eJQRTjHq0POQDMcsSgkswjhNhQerlagS57vugL kowxfjWWVzR/TSJ89jkFmiAGT6+uwBQUvo5DwEzr90zejvTZBrEpNphlXOvkggDigQKa VM8HB5cPY31IUMiusGx9Cgtmm9vKdJ9vKDk2ZXAzEO7C2aAP8sj4GQPsv2Ws4QfjO+pR 968w== 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=T2D+oLPGBqpVgZlhpmQk1lOvnKdwOmq3o9rGBaoyqdU=; b=ARV1qyq82YET+MbfwzYCtszBbf7k2zarN0DUoktRttyXnsLDb9rJ1ecDQGJxqVdLpb jGWS4mcqX+aDbN7YEMtvq7ZlQwbxVpTzgd/l1CZ/iZjogMy+RvyjYd5X/fAS66yex9Is KEhtNjTtkBJ19KM32FyghS6+HUxbS1NEWpn58NaD77heNtnMz6zb02svQ5FZNiSMn9pB XloK90m0veHtDz06V0p7SceBAv+STGwVTqGOCUxgm220IWt2VU0BD82L8+cwpWWDsf0i 6MO0lVev5zZgEsrTTvwkL06aayFqGDJ9Xw7eurcyBHCJoDYYfiZjHayK7SgKaRA4Djm0 aSqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=rstGkDpQ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t7-20020a170902e84700b00151eb0f1d02si9619803plg.301.2022.03.11.14.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:30:28 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@kernel.org header.s=k20201202 header.b=rstGkDpQ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2AE70318B9F; Fri, 11 Mar 2022 13:40:50 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349426AbiCKOMx (ORCPT + 99 others); Fri, 11 Mar 2022 09:12:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349208AbiCKOLE (ORCPT ); Fri, 11 Mar 2022 09:11:04 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68DA81AD959; Fri, 11 Mar 2022 06:09:48 -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 58DC861EFA; Fri, 11 Mar 2022 14:09:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11959C34111; Fri, 11 Mar 2022 14:09:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647007778; bh=YDr+LkSJ9LsOY8UPhtMHd6OG6zfQyitjAjU4i6/8mwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rstGkDpQYmG/gWcfzx7m3ztE18p618LViwjGLvAVyQrUhaOYOjdu6p1RneC4x5i8p NDnSl8BxCLxxSS+v+E5fd05wK+pYVt2ubPR92zmOdfU3jczzIEJmYZ4C68LPDG0imz CrhQHSJf0QXkCYlVKkaedfInLJNEHXoHPR9PZ7ey2n33sq6qOk4N0v6kX7aE3kFa6W XxX5UU0SL5+ofGfhXJF306xCPBkWtqaQgetS3Aaz7xZr4sxO6Q20sbcvojDsmFl0ky 2OZ2N7X1lPyXuety6phZ0A5kAa2x31fGVusPf/Ay43+AMUgm0q/G5to/Gk2PeYw2Ap s3cmdK66UwNJQ== Received: from mchehab by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1nSfxX-000lI5-R3; Fri, 11 Mar 2022 15:09:35 +0100 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Alexandre Torgue , Dmitry Osipenko , Hans Verkuil , Laurent Pinchart , Maxime Coquelin , Ming Qian , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v2 27/38] media: platform: stm32: move config to its own file Date: Fri, 11 Mar 2022 15:07: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=-1.9 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 stm32-specific config stuff on a separate Kconfig file. Signed-off-by: Mauro Carvalho Chehab 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/38] at: https://lore.kernel.org/all/cover.1647006877.git.mchehab@kernel.org/ drivers/media/platform/Kconfig | 29 +------------------------- drivers/media/platform/stm32/Kconfig | 31 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 28 deletions(-) create mode 100644 drivers/media/platform/stm32/Kconfig diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index 7e2b120a2057..460ad793b89b 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -69,6 +69,7 @@ source "drivers/media/platform/rockchip/rga/Kconfig" source "drivers/media/platform/s3c-camif/Kconfig" source "drivers/media/platform/s5p-g2d/Kconfig" source "drivers/media/platform/sti/hva/Kconfig" +source "drivers/media/platform/stm32/Kconfig" config VIDEO_MUX tristate "Video Multiplexer" @@ -84,21 +85,6 @@ config VIDEO_MUX source "drivers/media/platform/intel/Kconfig" -config VIDEO_STM32_DCMI - tristate "STM32 Digital Camera Memory Interface (DCMI) support" - depends on V4L_PLATFORM_DRIVERS - depends on VIDEO_V4L2 && OF - depends on ARCH_STM32 || COMPILE_TEST - select VIDEOBUF2_DMA_CONTIG - select MEDIA_CONTROLLER - select V4L2_FWNODE - help - This module makes the STM32 Digital Camera Memory Interface (DCMI) - available as a v4l2 device. - - To compile this driver as a module, choose M here: the module - will be called stm32-dcmi. - config VIDEO_ROCKCHIP_ISP1 tristate "Rockchip Image Signal Processing v1 Unit driver" depends on V4L_PLATFORM_DRIVERS @@ -233,19 +219,6 @@ config VIDEO_STI_DELTA_DRIVER select V4L2_MEM2MEM_DEV select RPMSG -config VIDEO_STM32_DMA2D - tristate "STM32 Chrom-Art Accelerator (DMA2D)" - depends on V4L_MEM2MEM_DRIVERS - depends on VIDEO_DEV && VIDEO_V4L2 - depends on ARCH_STM32 || COMPILE_TEST - select VIDEOBUF2_DMA_CONTIG - select V4L2_MEM2MEM_DEV - help - Enables DMA2D hardware support on stm32. - - The STM32 DMA2D is a memory-to-memory engine for pixel conversion - and specialized DMA dedicated to image manipulation. - config VIDEO_TI_VPE tristate "TI VPE (Video Processing Engine) driver" depends on V4L_MEM2MEM_DRIVERS diff --git a/drivers/media/platform/stm32/Kconfig b/drivers/media/platform/stm32/Kconfig new file mode 100644 index 000000000000..f4726010ca14 --- /dev/null +++ b/drivers/media/platform/stm32/Kconfig @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0 + +# V4L drivers +config VIDEO_STM32_DCMI + tristate "STM32 Digital Camera Memory Interface (DCMI) support" + depends on V4L_PLATFORM_DRIVERS + depends on VIDEO_V4L2 && OF + depends on ARCH_STM32 || COMPILE_TEST + select VIDEOBUF2_DMA_CONTIG + select MEDIA_CONTROLLER + select V4L2_FWNODE + help + This module makes the STM32 Digital Camera Memory Interface (DCMI) + available as a v4l2 device. + + To compile this driver as a module, choose M here: the module + will be called stm32-dcmi. + +# Mem2mem drivers +config VIDEO_STM32_DMA2D + tristate "STM32 Chrom-Art Accelerator (DMA2D)" + depends on V4L_MEM2MEM_DRIVERS + depends on VIDEO_DEV && VIDEO_V4L2 + depends on ARCH_STM32 || COMPILE_TEST + select VIDEOBUF2_DMA_CONTIG + select V4L2_MEM2MEM_DEV + help + Enables DMA2D hardware support on stm32. + + The STM32 DMA2D is a memory-to-memory engine for pixel conversion + and specialized DMA dedicated to image manipulation. -- 2.35.1