Messages in this thread | | | Date | Tue, 28 Aug 2012 12:35:29 +0530 | Subject | Re: [PATCH 1/2] dw_dmac: make driver endianness configurable | From | Viresh Kumar <> |
| |
On 28 August 2012 12:25, Hein Tibosch <hein_tibosch@yahoo.es> wrote: > What about this: > > In case of AVR32, the arch code will indicate: > > static struct dw_dma_platform_data dw_dmac0_data = { > .nr_channels = 3, > /* DMAC supports up to 32-bit memory access */ > .mem_access_32_bit_only = true, > }; > > ARM users won't have to change anything because mem_access_32_bit_only > will be false and therefor 'dw->mem_64_bit' will become true
I will go for the earlier solution that you sent: with max-mem-width. 0 = 64 bit, so nothing to be changed for ARM as global structures would be getting initialized to zero 1=32 bit, pass this for AVR32.
-- viresh
| |