platform.c (2ac5e38ea4203852d6e99edd3cf11f044b0a409f) | platform.c (7b0c03ecc42fb223baf015877fee9d517c2c8af1) |
---|---|
1/* 2 * Platform driver for the Synopsys DesignWare DMA Controller 3 * 4 * Copyright (C) 2007-2008 Atmel Corporation 5 * Copyright (C) 2010-2011 ST Microelectronics 6 * Copyright (C) 2013 Intel Corporation 7 * 8 * Some parts of this driver are derived from the original dw_dmac. --- 148 unchanged lines hidden (view full) --- 157 if (!of_property_read_u32_array(np, "multi-block", mb, nr_channels)) { 158 for (tmp = 0; tmp < nr_channels; tmp++) 159 pdata->multi_block[tmp] = mb[tmp]; 160 } else { 161 for (tmp = 0; tmp < nr_channels; tmp++) 162 pdata->multi_block[tmp] = 1; 163 } 164 | 1/* 2 * Platform driver for the Synopsys DesignWare DMA Controller 3 * 4 * Copyright (C) 2007-2008 Atmel Corporation 5 * Copyright (C) 2010-2011 ST Microelectronics 6 * Copyright (C) 2013 Intel Corporation 7 * 8 * Some parts of this driver are derived from the original dw_dmac. --- 148 unchanged lines hidden (view full) --- 157 if (!of_property_read_u32_array(np, "multi-block", mb, nr_channels)) { 158 for (tmp = 0; tmp < nr_channels; tmp++) 159 pdata->multi_block[tmp] = mb[tmp]; 160 } else { 161 for (tmp = 0; tmp < nr_channels; tmp++) 162 pdata->multi_block[tmp] = 1; 163 } 164 |
165 if (!of_property_read_u32(np, "snps,dma-protection-control", &tmp)) { 166 if (tmp > CHAN_PROTCTL_MASK) 167 return NULL; 168 pdata->protctl = tmp; 169 } 170 |
|
165 return pdata; 166} 167#else 168static inline struct dw_dma_platform_data * 169dw_dma_parse_dt(struct platform_device *pdev) 170{ 171 return NULL; 172} --- 178 unchanged lines hidden --- | 171 return pdata; 172} 173#else 174static inline struct dw_dma_platform_data * 175dw_dma_parse_dt(struct platform_device *pdev) 176{ 177 return NULL; 178} --- 178 unchanged lines hidden --- |