DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] common/cnxk: add cnf10ka A1 platform
@ 2023-02-22  5:33 Srikanth Yalavarthi
  2023-02-22  5:33 ` [PATCH 2/2] common/cnxk: add cn10ka B0 platform Srikanth Yalavarthi
  0 siblings, 1 reply; 3+ messages in thread
From: Srikanth Yalavarthi @ 2023-02-22  5:33 UTC (permalink / raw)
  To: Nithin Dabilpuram, Kiran Kumar K, Sunil Kumar Kori, Satha Rao
  Cc: dev, sshankarnara, jerinj, pbhagavatula, Harman Kalra

From: Harman Kalra <hkalra@marvell.com>

Adding support for cnf10ka A1 pass

Signed-off-by: Harman Kalra <hkalra@marvell.com>
---
 drivers/common/cnxk/roc_model.c | 1 +
 drivers/common/cnxk/roc_model.h | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/drivers/common/cnxk/roc_model.c b/drivers/common/cnxk/roc_model.c
index 04338311ec..9d3ce24231 100644
--- a/drivers/common/cnxk/roc_model.c
+++ b/drivers/common/cnxk/roc_model.c
@@ -62,6 +62,7 @@ static const struct 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_105xx, 0, 1, ROC_MODEL_CNF105xx_A1, "cnf10ka_a1"},
 	{VENDOR_ARM, PART_103xx, 0, 0, ROC_MODEL_CN103xx_A0, "cn10kb_a0"},
 	{VENDOR_ARM, PART_105xxN, 0, 0, ROC_MODEL_CNF105xxN_A0, "cnf10kb_a0"},
 	{VENDOR_CAVIUM, PART_98xx, 0, 0, ROC_MODEL_CN98xx_A0, "cn98xx_a0"},
diff --git a/drivers/common/cnxk/roc_model.h b/drivers/common/cnxk/roc_model.h
index 081c03915c..3f97e548ce 100644
--- a/drivers/common/cnxk/roc_model.h
+++ b/drivers/common/cnxk/roc_model.h
@@ -29,6 +29,7 @@ struct roc_model {
 #define ROC_MODEL_CNF105xxN_A0 BIT_ULL(22)
 #define ROC_MODEL_CN103xx_A0   BIT_ULL(23)
 #define ROC_MODEL_CN106xx_A1   BIT_ULL(24)
+#define ROC_MODEL_CNF105xx_A1  BIT_ULL(25)
 /* Following flags describe platform code is running on */
 #define ROC_ENV_HW   BIT_ULL(61)
 #define ROC_ENV_EMUL BIT_ULL(62)
@@ -54,7 +55,7 @@ struct roc_model {
 	 ROC_MODEL_CNF95xxN_B0)
 
 #define ROC_MODEL_CN106xx   (ROC_MODEL_CN106xx_A0 | ROC_MODEL_CN106xx_A1)
-#define ROC_MODEL_CNF105xx  (ROC_MODEL_CNF105xx_A0)
+#define ROC_MODEL_CNF105xx  (ROC_MODEL_CNF105xx_A0 | ROC_MODEL_CNF105xx_A1)
 #define ROC_MODEL_CNF105xxN (ROC_MODEL_CNF105xxN_A0)
 #define ROC_MODEL_CN103xx   (ROC_MODEL_CN103xx_A0)
 #define ROC_MODEL_CN10K                                                        \
@@ -232,6 +233,12 @@ roc_model_is_cnf10ka_a0(void)
 	return roc_model->flag & ROC_MODEL_CNF105xx_A0;
 }
 
+static inline uint64_t
+roc_model_is_cnf10ka_a1(void)
+{
+	return roc_model->flag & ROC_MODEL_CNF105xx_A1;
+}
+
 static inline uint64_t
 roc_model_is_cnf10kb_a0(void)
 {
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-26 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-22  5:33 [PATCH 1/2] common/cnxk: add cnf10ka A1 platform Srikanth Yalavarthi
2023-02-22  5:33 ` [PATCH 2/2] common/cnxk: add cn10ka B0 platform Srikanth Yalavarthi
2023-02-26 22:30   ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).