]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/arm/plat-nomadik/include/plat/ste_dma40.h
DMAENGINE: ste_dma40: config checks
[net-next-2.6.git] / arch / arm / plat-nomadik / include / plat / ste_dma40.h
index 4d12ea4ca3611a28e0fa28b9a7d456ce11ebb00e..ee5d8b2e46dd39a0ede3d7daa07f37c4db893531 100644 (file)
@@ -98,7 +98,7 @@ struct stedma40_half_channel_info {
 };
 
 enum stedma40_xfer_dir {
-       STEDMA40_MEM_TO_MEM,
+       STEDMA40_MEM_TO_MEM = 1,
        STEDMA40_MEM_TO_PERIPH,
        STEDMA40_PERIPH_TO_MEM,
        STEDMA40_PERIPH_TO_PERIPH
@@ -148,7 +148,8 @@ struct stedma40_chan_cfg {
  * @memcpy_conf_phy: default configuration of physical channel memcpy
  * @memcpy_conf_log: default configuration of logical channel memcpy
  * @llis_per_log: number of max linked list items per logical channel
- *
+ * @disabled_channels: A vector, ending with -1, that marks physical channels
+ * that are for different reasons not available for the driver.
  */
 struct stedma40_platform_data {
        u32                              dev_len;
@@ -159,6 +160,7 @@ struct stedma40_platform_data {
        struct stedma40_chan_cfg        *memcpy_conf_phy;
        struct stedma40_chan_cfg        *memcpy_conf_log;
        unsigned int                     llis_per_log;
+       int                              disabled_channels[8];
 };
 
 /**