]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/platform_data/dma-imx.h
ENGR00317981: pxp: forward pxp driver to 3.14 kernel
[karo-tx-linux.git] / include / linux / platform_data / dma-imx.h
index bcbc6c3c14c0da82547b861e7108ccee41351f71..0eff734f88c49302b789fc811093a105b85f8e7b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2004-2013 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
@@ -59,6 +59,11 @@ static inline int imx_dma_is_ipu(struct dma_chan *chan)
        return !strcmp(dev_name(chan->device->dev), "ipu-core");
 }
 
+static inline int imx_dma_is_pxp(struct dma_chan *chan)
+{
+       return strstr(dev_name(chan->device->dev), "pxp") != NULL;
+}
+
 static inline int imx_dma_is_general_purpose(struct dma_chan *chan)
 {
        return !strcmp(chan->device->dev->driver->name, "imx-sdma") ||