@@ -1504,6 +1504,43 @@ static inline int dw_dma_parse_dt(struct
platform_device *pdev)
}
#endif
+static void dw_dma_parse_dt_debug(struct dw_dma_platform_data *pdata)
+{
+ int i = -1;
+
+ if (!pdata) {
+ printk(KERN_ERR "dw_dma: unable to read info from DT\n");
+ return;
+ }
+
+ printk(KERN_ERR "\nPrinting dw_dma DT info\n");
+
+ printk(KERN_ERR "nr_channels: %x\n", pdata->nr_channels);
+ printk(KERN_ERR "is_private: %x\n", pdata->is_private);
+ printk(KERN_ERR "chan_allocation_order: %x\n",
+ pdata->chan_allocation_order);
+
+ printk(KERN_ERR "chan_priority: %x\n", pdata->chan_priority);
+ printk(KERN_ERR "block_size: %x\n", pdata->block_size);
+
+ printk(KERN_ERR "nr_masters: %x\n", pdata->nr_masters);
+ printk(KERN_ERR "data_width: %d %d %d %d\n", pdata->data_width[0],
+ pdata->data_width[1], pdata->data_width[2],
+ pdata->data_width[3]);
+
+ /* parse slave data */
+ printk(KERN_ERR "slave_info\n");
+
+ while (++i < pdata->sd_count) {
+ printk(KERN_INFO "bus_id: %s\n", pdata->sd[i].bus_id);
+ printk(KERN_INFO "cfg_hi: %x\n", pdata->sd[i].cfg_hi);
+ printk(KERN_INFO "cfg_lo: %x\n", pdata->sd[i].cfg_lo);
+ printk(KERN_INFO "src_master: %x\n",
+ pdata->sd[i].src_master);
+ printk(KERN_INFO "dst_master: %x\n",
+ pdata->sd[i].dst_master);
+ }
+}
static int __devinit dw_probe(struct platform_device *pdev)
{