diff options
author | Priyanka Jain <priyanka.jain@nxp.com> | 2016-12-07 12:04:05 +0530 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-12-15 11:57:05 -0800 |
commit | 8e62f1ee03c82ad285a4e2245e25fc348320749e (patch) | |
tree | c3b641d318ed92f03158da5deaf41f6907bfcf01 /drivers/net/fsl-mc/dpio/qbman_portal.h | |
parent | 4002eab2c2bdbcb730620a12dafab32298c48135 (diff) |
driver: fsl-mc: qbman: Add QBMAN 4.1 support
LS2080A SoC family has QBMAN ver 4.0 whereas newer
SoCs like LS2088A, LS1088A has QBMAN ver 4.1
QBMAN ver 4.0 and ver 4.1 supports dqrr size as 4 and 8 respectively.
Add support of
to check QBMAN version based on SoC SVR
update dqrr_size accordingly
update code to support larger dqrr_size
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/net/fsl-mc/dpio/qbman_portal.h')
-rw-r--r-- | drivers/net/fsl-mc/dpio/qbman_portal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/fsl-mc/dpio/qbman_portal.h b/drivers/net/fsl-mc/dpio/qbman_portal.h index 86e2c3aac4..97a47aa94e 100644 --- a/drivers/net/fsl-mc/dpio/qbman_portal.h +++ b/drivers/net/fsl-mc/dpio/qbman_portal.h @@ -14,8 +14,8 @@ /* Management command result codes */ #define QBMAN_MC_RSLT_OK 0xf0 -/* TBD: as of QBMan 4.1, DQRR will be 8 rather than 4! */ -#define QBMAN_DQRR_SIZE 4 +#define QBMAN_VER_4_0_DQRR_SIZE 4 +#define QBMAN_VER_4_1_DQRR_SIZE 8 /* --------------------- */ @@ -71,6 +71,7 @@ struct qbman_swp { struct { uint32_t next_idx; uint32_t valid_bit; + uint8_t dqrr_size; } dqrr; }; |