initial commit with v3.6.7
[linux-3.6.7-moxart.git] / arch / arm / mach-mxs / devices / platform-dma.c
blob46824501de003505a6f7332ac819a65d67a5549e
1 /*
2 * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License version 2 as published by the
6 * Free Software Foundation.
7 */
8 #include <linux/compiler.h>
9 #include <linux/dma-mapping.h>
10 #include <linux/err.h>
11 #include <linux/init.h>
13 #include <mach/mx23.h>
14 #include <mach/mx28.h>
15 #include <mach/devices-common.h>
17 struct platform_device *__init mxs_add_dma(const char *devid,
18 resource_size_t base)
20 struct resource res[] = {
22 .start = base,
23 .end = base + SZ_8K - 1,
24 .flags = IORESOURCE_MEM,
28 return mxs_add_platform_device_dmamask(devid, -1,
29 res, ARRAY_SIZE(res), NULL, 0,
30 DMA_BIT_MASK(32));