diff options
author | Roland Stigge <stigge@antcom.de> | 2012-08-16 09:15:35 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-09-29 09:53:08 -0400 |
commit | 9c6f62a7ef230253a7dfc0547c431f07d8a64721 (patch) | |
tree | 90f2b0913b8993b86f62759359063714107a8be9 /include/linux/mtd | |
parent | de20c22d2bf41f970a6300a89dd550f12121c126 (diff) |
mtd: lpc32xx_mlc: Make driver independent of AMBA DMA engine driver
This patch makes the MLC NAND driver independent of the single AMBA DMA engine
driver by using the platform data provided dma_filter callback.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/lpc32xx_mlc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/mtd/lpc32xx_mlc.h b/include/linux/mtd/lpc32xx_mlc.h new file mode 100644 index 000000000000..d91b1e35631e --- /dev/null +++ b/include/linux/mtd/lpc32xx_mlc.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * Platform data for LPC32xx SoC MLC NAND controller | ||
3 | * | ||
4 | * Copyright © 2012 Roland Stigge | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | |||
11 | #ifndef __LINUX_MTD_LPC32XX_MLC_H | ||
12 | #define __LINUX_MTD_LPC32XX_MLC_H | ||
13 | |||
14 | #include <linux/dmaengine.h> | ||
15 | |||
16 | struct lpc32xx_mlc_platform_data { | ||
17 | bool (*dma_filter)(struct dma_chan *chan, void *filter_param); | ||
18 | }; | ||
19 | |||
20 | #endif /* __LINUX_MTD_LPC32XX_MLC_H */ | ||