56e6b4c3dcc05d3d9423ed9c0fa2d1e0fb163582
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches-3.9 / 0002-MIPS-lantiq-adds-4dword-burst-length-for-dma.patch
1 From e9e520f4f10fdd673e5083bdc082515425ed7457 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 02/22] 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 diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c
11 index 08f7ebd..ccf1451 100644
12 --- a/arch/mips/lantiq/xway/dma.c
13 +++ b/arch/mips/lantiq/xway/dma.c
14 @@ -48,6 +48,7 @@
15 #define DMA_IRQ_ACK 0x7e /* IRQ status register */
16 #define DMA_POLL BIT(31) /* turn on channel polling */
17 #define DMA_CLK_DIV4 BIT(6) /* polling clock divider */
18 +#define DMA_4W_BURST BIT(2) /* 4 word burst length */
19 #define DMA_2W_BURST BIT(1) /* 2 word burst length */
20 #define DMA_MAX_CHANNEL 20 /* the soc has 20 channels */
21 #define DMA_ETOP_ENDIANNESS (0xf << 8) /* endianness swap etop channels */
22 @@ -196,7 +197,8 @@ ltq_dma_init_port(int p)
23 * Tell the DMA engine to swap the endianness of data frames and
24 * drop packets if the channel arbitration fails.
25 */
26 - ltq_dma_w32_mask(0, DMA_ETOP_ENDIANNESS | DMA_PDEN,
27 + ltq_dma_w32_mask(0, (DMA_4W_BURST << 4) | (DMA_4W_BURST << 2) |
28 + DMA_ETOP_ENDIANNESS | DMA_PDEN,
29 LTQ_DMA_PCTRL);
30 break;
31
32 --
33 1.7.10.4
34