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-01-09 20:08:31 +0800
commit6257fa54c1c66de2c9f72172895ea7e0e3c0845c (patch)
treec0cc503a22ae064f6b87e68c03315bd9c0e31aab /drivers/dma
parent1eaf2997502ae404b40b00bca3fcbe1e82f2b8b2 (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 25cf327cd1cb..589c6c5aa0de 100644
--- a/drivers/dma/Kconfig
+++ b/drivers/dma/Kconfig
@@ -231,7 +231,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;