mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
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>
This commit is contained in:
parent
de20c22d2b
commit
9c6f62a7ef
2 changed files with 31 additions and 2 deletions
20
include/linux/mtd/lpc32xx_mlc.h
Normal file
20
include/linux/mtd/lpc32xx_mlc.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Platform data for LPC32xx SoC MLC NAND controller
|
||||
*
|
||||
* Copyright © 2012 Roland Stigge
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_MTD_LPC32XX_MLC_H
|
||||
#define __LINUX_MTD_LPC32XX_MLC_H
|
||||
|
||||
#include <linux/dmaengine.h>
|
||||
|
||||
struct lpc32xx_mlc_platform_data {
|
||||
bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
|
||||
};
|
||||
|
||||
#endif /* __LINUX_MTD_LPC32XX_MLC_H */
|
Loading…
Add table
Add a link
Reference in a new issue