common/cnxk: add CN10KA A1 platform

Adding support for cn10ka A1 pass.
It is next minor pass of A0.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
This commit is contained in:
Harman Kalra 2022-09-12 18:43:57 +05:30 committed by Jerin Jacob
parent 59ceaa72d5
commit 80608c805c
2 changed files with 9 additions and 1 deletions

View File

@ -60,6 +60,7 @@ static const struct model_db {
char name[ROC_MODEL_STR_LEN_MAX];
} model_db[] = {
{VENDOR_ARM, PART_106xx, 0, 0, ROC_MODEL_CN106xx_A0, "cn10ka_a0"},
{VENDOR_ARM, PART_106xx, 0, 1, ROC_MODEL_CN106xx_A1, "cn10ka_a1"},
{VENDOR_ARM, PART_105xx, 0, 0, ROC_MODEL_CNF105xx_A0, "cnf10ka_a0"},
{VENDOR_ARM, PART_103xx, 0, 0, ROC_MODEL_CN103xx_A0, "cn10kb_a0"},
{VENDOR_ARM, PART_105xxN, 0, 0, ROC_MODEL_CNF105xxN_A0, "cnf10kb_a0"},

View File

@ -25,6 +25,7 @@ struct roc_model {
#define ROC_MODEL_CNF105xx_A0 BIT_ULL(21)
#define ROC_MODEL_CNF105xxN_A0 BIT_ULL(22)
#define ROC_MODEL_CN103xx_A0 BIT_ULL(23)
#define ROC_MODEL_CN106xx_A1 BIT_ULL(24)
/* Following flags describe platform code is running on */
#define ROC_ENV_HW BIT_ULL(61)
#define ROC_ENV_EMUL BIT_ULL(62)
@ -48,7 +49,7 @@ struct roc_model {
ROC_MODEL_CNF95xxN_A0 | ROC_MODEL_CNF95xxN_A1 | \
ROC_MODEL_CNF95xxN_B0)
#define ROC_MODEL_CN106xx (ROC_MODEL_CN106xx_A0)
#define ROC_MODEL_CN106xx (ROC_MODEL_CN106xx_A0 | ROC_MODEL_CN106xx_A1)
#define ROC_MODEL_CNF105xx (ROC_MODEL_CNF105xx_A0)
#define ROC_MODEL_CNF105xxN (ROC_MODEL_CNF105xxN_A0)
#define ROC_MODEL_CN103xx (ROC_MODEL_CN103xx_A0)
@ -191,6 +192,12 @@ roc_model_is_cn10ka_a0(void)
return roc_model->flag & ROC_MODEL_CN106xx_A0;
}
static inline uint64_t
roc_model_is_cn10ka_a1(void)
{
return roc_model->flag & ROC_MODEL_CN106xx_A1;
}
static inline uint64_t
roc_model_is_cnf10ka_a0(void)
{