Date:2012-04-12 22:05:29 (8 years 6 months ago)
Author:Maarten ter Huurne
Commit:0de2b2b3be81048189a32f7a3d3ba0ba9ec817b6
Message:MIPS: JZ4740: Fixed value for round robin constant.

The register recieved the right value because I also switched the args
to the masked write call.
Files: arch/mips/jz4740/dma.c (2 diffs)

Change Details

arch/mips/jz4740/dma.c
6666#define JZ_DMA_CTRL_PRIORITY_012345 (0x0 << 8)
6767#define JZ_DMA_CTRL_PRIORITY_023145 (0x1 << 8)
6868#define JZ_DMA_CTRL_PRIORITY_201345 (0x2 << 8)
69#define JZ_DMA_CTRL_PRIORITY_ROUND_ROBIN (0x2 << 8)
69#define JZ_DMA_CTRL_PRIORITY_ROUND_ROBIN (0x3 << 8)
7070#define JZ_DMA_CTRL_PRIORITY_MASK (0x3 << 8)
7171#define JZ_DMA_CTRL_HALT BIT(3)
7272#define JZ_DMA_CTRL_ADDRESS_ERROR BIT(2)
...... 
291291    }
292292
293293    jz4740_dma_write_mask(JZ_REG_DMA_CTRL,
294                  JZ_DMA_CTRL_PRIORITY_MASK,
295                  JZ_DMA_CTRL_PRIORITY_ROUND_ROBIN);
294                  JZ_DMA_CTRL_PRIORITY_ROUND_ROBIN,
295                  JZ_DMA_CTRL_PRIORITY_MASK);
296296
297297    return 0;
298298

Archive Download the corresponding diff file



interactive