mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Kepplinger <martin.kepplinger@puri.sm>
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 <martin.kepplinger@puri.sm>
Subject: [PATCH] staging: media: imx: Split config option in 2
Date: Mon,  9 Nov 2020 10:46:33 +0100	[thread overview]
Message-ID: <20201109094633.13518-1-martin.kepplinger@puri.sm> (raw)
In-Reply-To: <2aec3ae20bf5a9eefbe691a69c76c91b09af2a35.camel@pengutronix.de>

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 <martin.kepplinger@puri.sm>
---

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


  reply	other threads:[~2020-11-09  9:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09  9:13 [PATCH] staging: media: imx: drop dependency on ipuv3 Martin Kepplinger
2020-11-09  9:22 ` Philipp Zabel
2020-11-09  9:46   ` Martin Kepplinger [this message]
2020-11-09 11:27     ` [PATCH] staging: media: imx: Split config option in 2 Philipp Zabel
2020-12-02  8:24 ` [PATCH] staging: media: imx: drop dependency on ipuv3 Hans Verkuil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201109094633.13518-1-martin.kepplinger@puri.sm \
    --to=martin.kepplinger@puri.sm \
    --cc=festevam@gmail.com \
    --cc=iain.galloway@nxp.com \
    --cc=kernel@pengutronix.de \
    --cc=kernel@puri.sm \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=rogerio.silva@nxp.com \
    --cc=shawnguo@kernel.org \
    --cc=slongerbeam@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®