Skip to contentSkip to conversation

dma: mxs_dma: Add the missing entries for mx6

PATCH In review Fabio Estevam 2 participants 2 messages Jul 25, 2012 – Jul 28, 2012

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 dma: mxs_dma: Add the missing entries for mx6

From: Fabio Estevam <[email protected]>

Add the missing entries for mx6.

---
Build tested only, as I currently do not have mx6 board handy.

 drivers/dma/mxs-dma.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
drivers/dma/mxs-dma.c +8 -1
index 7f41b25..6e8509b 100644
@@ -128,6 +128,7 @@ enum mxs_dma_devtype {
 enum mxs_dma_id {
 	IMX23_DMA,
 	IMX28_DMA,
+	IMX6Q_DMA,
 };
 
 struct mxs_dma_engine {
@@ -158,7 +159,10 @@ static struct mxs_dma_type mxs_dma_types[] = {
 	}, {
 		.id = IMX28_DMA,
 		.type = MXS_DMA_APBX,
-	}
+	}, {
+		.id = IMX6Q_DMA,
+		.type = MXS_DMA_APBH,
+	},
 };
 
 static struct platform_device_id mxs_dma_ids[] = {
@@ -175,6 +179,8 @@ static struct platform_device_id mxs_dma_ids[] = {
 		.name = "imx28-dma-apbx",
 		.driver_data = (kernel_ulong_t) &mxs_dma_types[3],
 	}, {
+		.name = "imx6q-dma-apbh",
+		.driver_data = (kernel_ulong_t) &mxs_dma_types[4],
 		/* end of list */
 	}
 };
@@ -184,6 +190,7 @@ static const struct of_device_id mxs_dma_dt_ids[] = {
 	{ .compatible = "fsl,imx23-dma-apbx", .data = &mxs_dma_ids[1], },
 	{ .compatible = "fsl,imx28-dma-apbh", .data = &mxs_dma_ids[2], },
 	{ .compatible = "fsl,imx28-dma-apbx", .data = &mxs_dma_ids[3], },
+	{ .compatible = "fsl,imx6q-dma-apbh", .data = &mxs_dma_ids[4], },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mxs_dma_dt_ids);
Signature · 1 line
1.7.1
#1 lore raw
Quoted 45 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Add the missing entries for mx6.

---
Build tested only, as I currently do not have mx6 board handy.

 drivers/dma/mxs-dma.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
drivers/dma/mxs-dma.c +7 -1
index 7f41b25..6e8509b 100644
@@ -128,6 +128,7 @@ enum mxs_dma_devtype {
 enum mxs_dma_id {
 	IMX23_DMA,
 	IMX28_DMA,
+	IMX6Q_DMA,
 };
 
 struct mxs_dma_engine {
@@ -158,7 +159,10 @@ static struct mxs_dma_type mxs_dma_types[] = {
 	}, {
 		.id = IMX28_DMA,
 		.type = MXS_DMA_APBX,
-	}
+	}, {
+		.id = IMX6Q_DMA,
+		.type = MXS_DMA_APBH,
+	},
 };
 
 static struct platform_device_id mxs_dma_ids[] = {
@@ -175,6 +179,8 @@ static struct platform_device_id mxs_dma_ids[] = {
 		.name = "imx28-dma-apbx",
 		.driver_data = (kernel_ulong_t) &mxs_dma_types[3],
 	}, {
+		.name = "imx6q-dma-apbh",
+		.driver_data = (kernel_ulong_t) &mxs_dma_types[4],
 		/* end of list */
 	}
 };

drivers/dma/mxs-dma.c static const struct of_device_id mxs_dma_dt_ids[] = { · line 193

Quoted 4 lines
drivers/dma/mxs-dma.c +1 -0
@@ -184,6 +190,7 @@ static const struct of_device_id mxs_dma_dt_ids[] = {
 	{ .compatible = "fsl,imx23-dma-apbx", .data = &mxs_dma_ids[1], },
 	{ .compatible = "fsl,imx28-dma-apbh", .data = &mxs_dma_ids[2], },
 	{ .compatible = "fsl,imx28-dma-apbx", .data = &mxs_dma_ids[3], },
+	{ .compatible = "fsl,imx6q-dma-apbh", .data = &mxs_dma_ids[4], },

We do not need it. "fsl,imx28-dma-apbh" should just work for imx6q.

Regards,
Shawn

Quoted 6 lines
drivers/dma/mxs-dma.c +0 -0
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mxs_dma_dt_ids);
Signature · 1 line
1.7.1