[linux-sunxi] DMA channels on A20

2014-06-22 Thread jonsm...@gmail.com
Why is the channel for TX one less than RX? In the manual both of the DRQs are 27. spi0: spi@01c05000 { compatible = allwinner,sun4i-a10-spi; reg = 0x01c05000 0x1000; interrupts = 0 10 4; clocks = ahb_gates 20, spi0_clk; clock-names = ahb, mod; dmas = dma 1 27, dma 1 26; dma-names = rx, tx;

Re: [linux-sunxi] DMA channels on A20

2014-06-22 Thread Chen-Yu Tsai
On Sun, Jun 22, 2014 at 11:48 PM, jonsm...@gmail.com jonsm...@gmail.com wrote: Why is the channel for TX one less than RX? In the manual both of the DRQs are 27. If you looked at the bindings in the patch, you would see that dma 1 xx specifies dedicated DMA, which indeed has separate

Re: [linux-sunxi] DMA channels on A20

2014-06-22 Thread jonsm...@gmail.com
On Sun, Jun 22, 2014 at 12:36 PM, Chen-Yu Tsai w...@csie.org wrote: On Sun, Jun 22, 2014 at 11:48 PM, jonsm...@gmail.com jonsm...@gmail.com wrote: Why is the channel for TX one less than RX? In the manual both of the DRQs are 27. If you looked at the bindings in the patch, you would see