common/cnxk: add BPHY communication with atf
authorTomasz Duszynski <tduszynski@marvell.com>
Mon, 21 Jun 2021 15:04:19 +0000 (17:04 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Jul 2021 21:06:45 +0000 (23:06 +0200)
commit857721d62d42acfb04ae5cf4a75555d1ba6437b3
tree51b7f3a7dd64ef90c931018b5e161ae37291f536
parent0399ff9d2b139a3a76312c97500c5b0f6597e9bf
common/cnxk: add BPHY communication with atf

Messages can be exchanged between userspace software and firmware
via set of two dedicated registers, namely scratch1 and scratch0.

scratch1 acts as a command register i.e message is sent to firmware,
while scratch0 holds response to previously sent message.

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Signed-off-by: Jakub Palider <jpalider@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_bphy_cgx.c
drivers/common/cnxk/roc_bphy_cgx.h
drivers/common/cnxk/roc_bphy_cgx_priv.h [new file with mode: 0644]
drivers/common/cnxk/roc_priv.h