spi-topcliff-pch: add recovery processing in case wait-event timeout
[zen-stable.git] / arch / arm / mach-mxs / include / mach / dma.h
blob203d7c4a3e1142e67979a74f6711040d83cbd5a6
1 /*
2 * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #ifndef __MACH_MXS_DMA_H__
10 #define __MACH_MXS_DMA_H__
12 #include <linux/dmaengine.h>
14 struct mxs_dma_data {
15 int chan_irq;
18 static inline int mxs_dma_is_apbh(struct dma_chan *chan)
20 return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbh");
23 static inline int mxs_dma_is_apbx(struct dma_chan *chan)
25 return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbx");
28 #endif /* __MACH_MXS_DMA_H__ */