summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2011-04-28 14:39:44 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:13:43 +0800
commit9ed769f5e29559e181161081a0513c99c0a35dce (patch)
tree040729a371eeea3b1105bc806dfdffda0ab32f84 /drivers/dma
parentf4be829edcbcf71bba558c27f983917c960c98e7 (diff)
ENGR00143126-3 ARM: add DMA driver for mx50
add the DMA driver for mx50. Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/Kconfig2
-rw-r--r--drivers/dma/mxs-dma.c10
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig
index 6a718b77a2b1..90dded695fc5 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -230,7 +230,7 @@ config IMX_DMA
config MXS_DMA
bool "MXS DMA support"
- depends on SOC_IMX23 || SOC_IMX28
+ depends on SOC_IMX23 || SOC_IMX28 || SOC_IMX50
select DMA_ENGINE
help
Support the MXS DMA engine. This engine including APBH-DMA
diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index 88aad4f54002..c912fc6f80da 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
*
* Refer to drivers/dma/imx-sdma.c
*
@@ -27,6 +27,9 @@
#include <mach/mxs.h>
#include <mach/dma.h>
#include <mach/common.h>
+#ifdef CONFIG_SOC_IMX50
+#include <mach/system.h>
+#endif
/*
* NOTE: The term "PIO" throughout the mxs-dma implementation means
@@ -576,7 +579,12 @@ static int __init mxs_dma_init(struct mxs_dma_engine *mxs_dma)
if (ret)
goto err_out;
+#if defined(CONFIG_SOC_IMX23) || defined(CONFIG_SOC_IMX28)
ret = mxs_reset_block(mxs_dma->base);
+#elif defined(CONFIG_SOC_IMX50)
+ ret = mxs_reset_block(mxs_dma->base, true);
+#endif
+
if (ret)
goto err_out;