SH: fix TS field shift calculation for DMA drivers
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 21 Apr 2010 15:14:19 +0000 (15:14 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 26 Apr 2010 07:02:09 +0000 (16:02 +0900)
commitc2fe3092e5b85c8c65ebac88a3ffa4355e51a9b6
treeb000864a48f0880b6b9afaf7b7cbdc672100cdb3
parentb91ce4d14a21fc04d165be30319541e0f9204f15
SH: fix TS field shift calculation for DMA drivers

CHCR_TS_HIGH_SHIFT is defined as a shift of TS high bits in CHCR register,
relative to low bits. The TS_INDEX2VAL() macro has to take this into account.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/cpu-sh4/cpu/dma-register.h