From 56e7b64e86aabf352832854c6d50155942f60f14 Mon Sep 17 00:00:00 2001 From: Huang Shijie Date: Mon, 6 Feb 2012 10:47:02 +0800 Subject: ENGR00173731-1 mxs-dma : rename the dma.h for mxs-dma Move the header to a more common place. The mxs dma engine is not only used in mx23/mx28, but also used in mx50/mx6q. It will also be used in the future chips. rename it to mxs-dma.h Acked-by: Lily Zhang Signed-off-by: Huang Shijie --- include/linux/mxs-dma.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/linux/mxs-dma.h (limited to 'include') diff --git a/include/linux/mxs-dma.h b/include/linux/mxs-dma.h new file mode 100644 index 000000000000..9186f908d207 --- /dev/null +++ b/include/linux/mxs-dma.h @@ -0,0 +1,28 @@ +/* + * Copyright 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved. + * + * 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 __MACH_MXS_DMA_H__ +#define __MACH_MXS_DMA_H__ + +#include + +struct mxs_dma_data { + int chan_irq; +}; + +static inline int mxs_dma_is_apbh(struct dma_chan *chan) +{ + return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbh"); +} + +static inline int mxs_dma_is_apbx(struct dma_chan *chan) +{ + return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbx"); +} + +#endif /* __MACH_MXS_DMA_H__ */ -- cgit v1.2.3