common/cnxk: add helpers for reading runplatform
authorTomasz Duszynski <tduszynski@marvell.com>
Fri, 1 Oct 2021 20:24:56 +0000 (22:24 +0200)
committerJerin Jacob <jerinj@marvell.com>
Fri, 8 Oct 2021 08:12:49 +0000 (10:12 +0200)
commitb89f023e540f84700bb4c2771ac2afb9a5916c05
tree6a48c3379025771bc1f814d06032189736ddd61f
parent3d1cd3a803b3a8ac8eadf7b9b27de0a90c52ccc7
common/cnxk: add helpers for reading runplatform

Add helper functions that allow one to check platform
ROC is running on. Platform type is retrieved from device
tree attribute runplatform which is updated by EBF accordingly.

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_model.c
drivers/common/cnxk/roc_model.h