mailbox: mailbox-test: add support for separate tx/rx buffer with single channel
authorSudeep Holla <sudeep.holla@arm.com>
Fri, 19 Feb 2016 16:01:18 +0000 (16:01 +0000)
committerJassi Brar <jaswinder.singh@linaro.org>
Fri, 4 Mar 2016 07:02:19 +0000 (12:32 +0530)
commit2d74ffdc910e06c407f0a3ace9795f77cc07d05b
tree6ad10150122a1dfd3c9d13df76afc0f32e39557f
parent27fa680f7f4143f1d04945dbcded0f52e26e5d56
mailbox: mailbox-test: add support for separate tx/rx buffer with single channel

This patch adds support for different MMIO region for Tx and Rx paths.
If only one region is specified, it's assumed to be shared between Rx
and Tx, thereby retaining backward compatibility.

Also in order to support single channel dealing with both Tx and Rx with
dedicated MMIO regions, Tx channel itself is assigned to Rx if MMIO
regions are different and Rx is not specified.

Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox-test.c