Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3079480pxb; Mon, 9 Nov 2020 01:48:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3KY9r3sIJRQ7+ih6Lv65qIAbQ5KVj1OnEopjvinzSQjweOQ7hRXuMJxDOi1DHOT+49awS X-Received: by 2002:a17:906:5fd9:: with SMTP id k25mr15126114ejv.166.1604915315386; Mon, 09 Nov 2020 01:48:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604915315; cv=none; d=google.com; s=arc-20160816; b=eF60DeGBMkQaBI7/DtsPE9lRkNYtTuUaz+0FUbpndhR76q6xUKMoywO1sWIx2A7dy8 IHdUIpkX4O9LNl6ErE8jaVtiSyQfU9SGtH0+Zxcq5R0PKufs78dZ6y5BFzOzEjiMR78P b0mvsdn+DBqvLlTz0jNud3sRMzXKaArmjh6KGfrh8Npka9zUyR/kPfthBrC0e77K48Ms gZXjSL8T2ZohKO2tzgh5QHUw8jqKXUswvv/PmWMtbUBd6VbbIg1uegbNqa4GmA7W6Tur t47QroY1bHie3/yzThGjw20R7vLhF3ZHnV16H5pFUmVROOXgevSQ+fnc9XRUMzLv4a9k gzDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from; bh=W7B+tJL6CX9aUbC8VB1v9M4Dp/lD2UAnJy6HanU1IKU=; b=nbYg3jBkCMvKtl9x9AVJZrnv+TTYuqsaGxhx9S638HZIXTO0mK/njA7YNN0Nojvo/d jIGjAyifPtoCcOs7BP05pWMnHui3PgllNps24+15kojBs6p4PkBEqX2WecJMP0IYDL2d K5B33R/9ynr49hWNfHREVEIgDfMaIx+ROS8j7daJMWm3FLePeVUHxn36fyOzKGN54B6y r0NmzsFc2xjHEKnRKusWG9c+7m15Wwj+66Oa3eSS5nY94mo32J8IUcsMzWPWrCM+NrNN OMSQpT0EPuVFACJRd9qaWG1Q52YKh5WO99szqVPbVY3jM21zY17UepfddxsTvvmZ3jHe i2NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m16si6427985ejc.357.2020.11.09.01.48.12; Mon, 09 Nov 2020 01:48:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729046AbgKIJqt (ORCPT + 99 others); Mon, 9 Nov 2020 04:46:49 -0500 Received: from comms.puri.sm ([159.203.221.185]:59448 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728866AbgKIJqs (ORCPT ); Mon, 9 Nov 2020 04:46:48 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 275A4E03D9; Mon, 9 Nov 2020 01:46:48 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W6rHdbftXP-5; Mon, 9 Nov 2020 01:46:47 -0800 (PST) From: Martin Kepplinger To: rogerio.silva@nxp.com, slongerbeam@gmail.com, p.zabel@pengutronix.de, mchehab@kernel.org, shawnguo@kernel.org, festevam@gmail.com Cc: iain.galloway@nxp.com, kernel@puri.sm, kernel@pengutronix.de, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH] staging: media: imx: Split config option in 2 Date: Mon, 9 Nov 2020 10:46:33 +0100 Message-Id: <20201109094633.13518-1-martin.kepplinger@puri.sm> In-Reply-To: <2aec3ae20bf5a9eefbe691a69c76c91b09af2a35.camel@pengutronix.de> References: <2aec3ae20bf5a9eefbe691a69c76c91b09af2a35.camel@pengutronix.de> Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As described in NXPs' linux tree, the imx8m SoC includes the same CSI bridge hardware that is part of imx7d. We should be able to use the "fsl,imx7-csi" driver for imx8m directly. Since ipuv3 is not relevant for imx8m we create VIDEO_IMX7_MEDIA and split up the configuration option in 2 menus (on 1 entry each for now but that can be changed later). Signed-off-by: Martin Kepplinger --- thanks, you're right. did you have something like this in mind? martin drivers/staging/media/imx/Kconfig | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/imx/Kconfig b/drivers/staging/media/imx/Kconfig index f555aac8a9d5..a888d9b918b5 100644 --- a/drivers/staging/media/imx/Kconfig +++ b/drivers/staging/media/imx/Kconfig @@ -13,6 +13,20 @@ config VIDEO_IMX_MEDIA Say yes here to enable support for video4linux media controller driver for the i.MX5/6 SOC. +config VIDEO_IMX7_MEDIA + tristate "i.MX7/8 V4L2 media core driver" + depends on ARCH_MXC || COMPILE_TEST + depends on VIDEO_V4L2 + select MEDIA_CONTROLLER + select VIDEO_V4L2_SUBDEV_API + depends on HAS_DMA + select VIDEOBUF2_DMA_CONTIG + select V4L2_FWNODE + select V4L2_MEM2MEM_DEV + help + Say yes here to enable support for video4linux media controller + driver for the i.MX7/8M SOC. + if VIDEO_IMX_MEDIA menu "i.MX5/6/7 Media Sub devices" @@ -23,12 +37,19 @@ config VIDEO_IMX_CSI help A video4linux camera sensor interface driver for i.MX5/6. +endmenu +endif + +if VIDEO_IMX7_MEDIA +menu "i.MX7/8 Media Sub devices" + config VIDEO_IMX7_CSI - tristate "i.MX6UL/L / i.MX7 Camera Sensor Interface driver" - depends on VIDEO_IMX_MEDIA && VIDEO_DEV && I2C + tristate "i.MX7 / i.MX8M Camera Sensor Interface driver" + depends on VIDEO_IMX7_MEDIA && VIDEO_DEV && I2C default y help Enable support for video4linux camera sensor interface driver for - i.MX6UL/L or i.MX7. + i.MX6UL/L, i.MX7 or i.MX8M. + endmenu endif -- 2.20.1