i2c: qup: Add V2 tags support
authorSricharan R <sricharan@codeaurora.org>
Tue, 19 Jan 2016 10:02:42 +0000 (15:32 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 12 Feb 2016 18:32:08 +0000 (19:32 +0100)
commit191424bb6166f638aaf6f18387818e9e771e441b
treed2484e03f317b512a85692db886ab0cb818f8c61
parentc4f0c5fb383adb9e703d7de2bd45d3604e572528
i2c: qup: Add V2 tags support

QUP from version 2.1.1 onwards, supports a new format of
i2c command tags. Tag codes instructs the controller to
perform a operation like read/write. This new tagging version
supports bam dma and transfers of more than 256 bytes without 'stop'
in between. Adding the support for the same.

For each block a data_write/read tag and data_len tag is added to
the output fifo. For the final block of data write_stop/read_stop
tag is used.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Tested-by: Archit Taneja <architt@codeaurora.org>
Tested-by: Telkar Nagender <ntelkar@codeaurora.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-qup.c