From 8916b65502796a48c3422c0e867fe6edfa67037a Mon Sep 17 00:00:00 2001 From: Frank Li Date: Tue, 26 Oct 2010 16:54:19 +0800 Subject: ENGR00133049 Support nand flash for MX28 Support nand basic read/write in MX28 u-boot. Signed-off-by: Frank Li Signed-off-by: Terry Lv --- drivers/dma/apbh_dma.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'drivers/dma/apbh_dma.c') diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index 296125a..71d9842 100644 --- a/drivers/dma/apbh_dma.c +++ b/drivers/dma/apbh_dma.c @@ -16,12 +16,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include - #include #include #include #include +#include #include #ifdef CONFIG_ARCH_MMU @@ -268,7 +267,7 @@ static int mxs_dma_apbh_probe(void) BM_APBH_CTRL0_APB_BURST_EN); #endif - mxs_dma_apbh.chan_base = MXS_DMA_CHANNEL_AHB_APBH_GPMI0; + mxs_dma_apbh.chan_base = MXS_DMA_CHANNEL_AHB_APBH; mxs_dma_apbh.chan_num = MXS_MAX_DMA_CHANNELS; return mxs_dma_device_register(&mxs_dma_apbh); @@ -566,7 +565,7 @@ struct mxs_dma_desc *mxs_dma_alloc_desc(void) if (pdesc == NULL) return NULL; memset(pdesc, 0, sizeof(*pdesc)); - pdesc->address = pdesc; + pdesc->address = (dma_addr_t)pdesc; #endif return pdesc; -- cgit v1.1