dmaengine: dw: introduce block2bytes() and bytes2block()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 17 Jan 2017 11:57:29 +0000 (13:57 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 25 Jan 2017 06:21:40 +0000 (11:51 +0530)
commitcd08718dab9094dc05a1631943ed3ba656e985c2
tree2b9b4431413600402652b0e36ff692f81b954623
parentc53b8088363f0ed32c302e242308a579bd85f3e2
dmaengine: dw: introduce block2bytes() and bytes2block()

The newly introduced helpers prepare driver to support new DMA controller
hardware.

While here, introduce DWC_CTLH_BLOCK_TS() macro as well.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw/core.c
drivers/dma/dw/regs.h