OSDN Git Service

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)
commit2d248812aa14d5f9bc6fc11a222c722524f25159
tree2b9b4431413600402652b0e36ff692f81b954623
parentf4aa3183c36d2f32695b0e7f0ce7296568729830
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