Change-Id: Ie58232a9fe0f1a5228fa8c7505fd30d856873caf
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
return dma_get_slave_channel(candidate);
}
EXPORT_SYMBOL_GPL(of_dma_xlate_by_chan_id);
+
+bool of_dma_multi_irq(struct device_node *np)
+{
+ bool ret = 0;
+ const __be32 *prop;
+
+ prop = of_get_property(np, "#dma-multi-irq", NULL);
+ if (prop)
+ ret = be32_to_cpup(prop);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(of_dma_multi_irq);
extern void __iomem *of_dma_get_instwrapper_address(struct device_node *np);
extern bool of_dma_get_wrapper_available(struct device_node *np);
extern u64 of_dma_get_mask(struct device_node *np, char *name);
+extern bool of_dma_multi_irq(struct device_node *np);
#else
static inline int of_dma_controller_register(struct device_node *np,
struct dma_chan *(*of_dma_xlate)
}
#define of_dma_xlate_by_chan_id NULL
+static inline bool of_dma_multi_irq(struct device_node *np)
+{
+ return NULL;
+}
+
#endif
#endif /* __LINUX_OF_DMA_H */