Re: [PATCH 1/2] dw_dmac: make driver endianness configurable

From: Viresh Kumar
Date: Tue Aug 28 2012 - 03:05:22 EST


On 28 August 2012 12:25, Hein Tibosch <hein_tibosch@xxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/