kernel: update linux 3.8 to 3.8.3
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches-3.8 / 0020-MIPS-lantiq-adds-4dword-burst-length-for-dma.patch
1 From 5be3837d01ea56e1455781f1b51764bd896973f2 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 6 Dec 2012 11:59:23 +0100
4 Subject: [PATCH 20/40] MIPS: lantiq: adds 4dword burst length for dma
5
6 ---
7 arch/mips/lantiq/xway/dma.c | 4 +++-
8 1 file changed, 3 insertions(+), 1 deletion(-)
9
10 --- a/arch/mips/lantiq/xway/dma.c
11 +++ b/arch/mips/lantiq/xway/dma.c
12 @@ -47,6 +47,7 @@
13 #define DMA_IRQ_ACK 0x7e /* IRQ status register */
14 #define DMA_POLL BIT(31) /* turn on channel polling */
15 #define DMA_CLK_DIV4 BIT(6) /* polling clock divider */
16 +#define DMA_4W_BURST BIT(2) /* 4 word burst length */
17 #define DMA_2W_BURST BIT(1) /* 2 word burst length */
18 #define DMA_MAX_CHANNEL 20 /* the soc has 20 channels */
19 #define DMA_ETOP_ENDIANNESS (0xf << 8) /* endianness swap etop channels */
20 @@ -195,7 +196,8 @@ ltq_dma_init_port(int p)
21 * Tell the DMA engine to swap the endianness of data frames and
22 * drop packets if the channel arbitration fails.
23 */
24 - ltq_dma_w32_mask(0, DMA_ETOP_ENDIANNESS | DMA_PDEN,
25 + ltq_dma_w32_mask(0, (DMA_4W_BURST << 4) | (DMA_4W_BURST << 2) |
26 + DMA_ETOP_ENDIANNESS | DMA_PDEN,
27 LTQ_DMA_PCTRL);
28 break;
29