common/octeontx2: add mailbox base support infra
authorJerin Jacob <jerinj@marvell.com>
Sat, 22 Jun 2019 13:23:54 +0000 (18:53 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 25 Jun 2019 21:35:57 +0000 (23:35 +0200)
commit5ca59711f77140155b8b50a78577d2f443dd3b03
tree127d3d894c88166b1eae97204fe45275c37241e6
parent2b71657c866098a6f7b6c0d175ed585b9068a278
common/octeontx2: add mailbox base support infra

This patch adds mailbox init and fini support.
Each RVU device has a dedicated 64KB mailbox region
shared with its peer for communication. RVU AF has
a separate mailbox region shared with each of RVU PFs
and an RVU PF has a separate region shared with
each of it's VF.

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
drivers/common/octeontx2/otx2_mbox.c
drivers/common/octeontx2/otx2_mbox.h