From: b32955@freescale.com (Huang Shijie)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/5] dma: mxs-dma: enable apbh-dma for imx6q
Date: Thu, 24 May 2012 18:50:57 +0800 [thread overview]
Message-ID: <1337856659-24812-3-git-send-email-b32955@freescale.com> (raw)
In-Reply-To: <1337856659-24812-1-git-send-email-b32955@freescale.com>
enable the apbh-dma for imx6q.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Cc: Vinod Koul <vinod.koul@intel.com>
---
drivers/dma/Kconfig | 2 +-
drivers/dma/mxs-dma.c | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index aadeb5b..c8416d5 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -237,7 +237,7 @@ config IMX_DMA
config MXS_DMA
bool "MXS DMA support"
- depends on SOC_IMX23 || SOC_IMX28
+ depends on SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q
select STMP_DEVICE
select DMA_ENGINE
help
diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index c96ab15..f41eb9e 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
@@ -29,7 +29,6 @@
#include <linux/of_device.h>
#include <asm/irq.h>
-#include <mach/mxs.h>
#include "dmaengine.h"
@@ -129,6 +128,7 @@ enum mxs_dma_devtype {
enum mxs_dma_id {
IMX23_DMA,
IMX28_DMA,
+ IMX6Q_DMA,
};
struct mxs_dma_engine {
@@ -159,6 +159,9 @@ static struct mxs_dma_type mxs_dma_types[] = {
}, {
.id = IMX28_DMA,
.type = MXS_DMA_APBX,
+ }, {
+ .id = IMX6Q_DMA,
+ .type = MXS_DMA_APBH,
}
};
@@ -176,6 +179,9 @@ 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 */
}
};
@@ -185,6 +191,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);
--
1.7.0.4
next prev parent reply other threads:[~2012-05-24 10:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-24 10:50 [PATCH 1/5] ARM: imx6q: add DT node for apbh-dma Huang Shijie
2012-05-24 10:50 ` [PATCH 2/5] ARM: imx6q: add clock " Huang Shijie
2012-05-24 17:30 ` Sascha Hauer
2012-05-25 2:07 ` Huang Shijie
2012-05-25 2:41 ` Shawn Guo
2012-05-25 6:47 ` Sascha Hauer
2012-05-24 10:50 ` Huang Shijie [this message]
2012-05-25 2:36 ` [PATCH 3/5] dma: mxs-dma: enable apbh-dma for imx6q Shawn Guo
2012-05-24 10:50 ` [PATCH 4/5] ARM: imx6q: add DT node for gpmi-nand Huang Shijie
2012-05-25 2:50 ` Shawn Guo
2012-05-24 10:50 ` [PATCH 5/5] ARM: imx6q: add clocks " Huang Shijie
2012-05-25 2:31 ` [PATCH 1/5] ARM: imx6q: add DT node for apbh-dma Shawn Guo
2012-05-25 15:09 ` Huang Shijie
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=1337856659-24812-3-git-send-email-b32955@freescale.com \
--to=b32955@freescale.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).