Skip to contentSkip to conversation

media: mx2-emmaprp: Allow MX2-EMMA driver support to be selected with i.MX21

PATCH In review Alexander Shiyan 2 participants 3 messages Dec 16, 2018 – May 10, 2019 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 media: mx2-emmaprp: Allow MX2-EMMA driver support to be selected with i.MX21

Freescale i.MX21 chip has enhanced Multimedia Accelerator (eMMA) video Pre-processor (PrP) unit. This patch allows MX2-EMMA support to be selected for this SoC.

---
 drivers/media/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/Kconfig +1 -1
index 70c4f6c..fb70d21 100644
@@ -293,7 +293,7 @@ config VIDEO_SAMSUNG_S5P_MFC
 config VIDEO_MX2_EMMAPRP
 	tristate "MX2 eMMa-PrP support"
 	depends on VIDEO_DEV && VIDEO_V4L2
-	depends on SOC_IMX27 || COMPILE_TEST
+	depends on SOC_IMX21 || SOC_IMX27 || COMPILE_TEST
 	select VIDEOBUF2_DMA_CONTIG
 	select V4L2_MEM2MEM_DEV
 	help
Signature · 1 line
2.10.2
#1 lore raw

PATCH 2/3 media: mx2-emmaprp: Add devicetree support

This patch adds devicetree support for the Freescale enhanced Multimedia Accelerator (eMMA) video Pre-processor (PrP).

---
 drivers/media/platform/mx2_emmaprp.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/media/platform/mx2_emmaprp.c +8 -0
index 27b078c..f64c244 100644
@@ -18,6 +18,7 @@
  */
 #include <linux/module.h>
 #include <linux/clk.h>
+#include <linux/of.h>
 #include <linux/slab.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
@@ -978,11 +979,18 @@ static int emmaprp_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static const struct of_device_id __maybe_unused emmaprp_dt_ids[] = {
+	{ .compatible = "fsl,imx21-emmaprp", },
+	{ }
+};
+MODULE_DEVICE_TABLE(of, emmaprp_dt_ids);
+
 static struct platform_driver emmaprp_pdrv = {
 	.probe		= emmaprp_probe,
 	.remove		= emmaprp_remove,
 	.driver		= {
 		.name	= MEM2MEM_NAME,
+		.of_match_table = of_match_ptr(emmaprp_dt_ids),
 	},
 };
 module_platform_driver(emmaprp_pdrv);
Signature · 1 line
2.10.2
#2 lore raw
In reply to Alexander Shiyan

Hi Alexander,

This series has been stalled since I still haven't received a Reviewed-By of the binding patch. I recommend that you rebase it and post it again, hopefully it will get a review the second time around.

Regards,

Hans

Quoted 23 lines · Alexander Shiyan

Freescale i.MX21 chip has enhanced Multimedia Accelerator (eMMA) video Pre-processor (PrP) unit. This patch allows MX2-EMMA support to be selected for this SoC.

---
 drivers/media/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/Kconfig +1 -1
index 70c4f6c..fb70d21 100644
@@ -293,7 +293,7 @@ config VIDEO_SAMSUNG_S5P_MFC
 config VIDEO_MX2_EMMAPRP
 	tristate "MX2 eMMa-PrP support"
 	depends on VIDEO_DEV && VIDEO_V4L2
-	depends on SOC_IMX27 || COMPILE_TEST
+	depends on SOC_IMX21 || SOC_IMX27 || COMPILE_TEST
 	select VIDEOBUF2_DMA_CONTIG
 	select V4L2_MEM2MEM_DEV
 	help