eqos: set ssnic to 6

Set SSIN to 6 for EQOS mac version 5.3

Bug 200760072

Change-Id: I72923d42313880dd362b7b6b197269f3495a18de
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2575178
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Narayan Reddy
2021-08-12 08:20:51 +00:00
committed by mobile promotions
parent 5f8d32d75d
commit 36510e26ad
3 changed files with 6 additions and 0 deletions

View File

@@ -272,6 +272,7 @@ typedef my_lint_64 nvel64_t;
*/ */
#define OSI_PTP_SSINC_16 16U #define OSI_PTP_SSINC_16 16U
#define OSI_PTP_SSINC_4 4U #define OSI_PTP_SSINC_4 4U
#define OSI_PTP_SSINC_6 6U
/** @} */ /** @} */
/** /**

View File

@@ -4304,6 +4304,8 @@ static void eqos_config_ssir(struct osi_core_priv_data *const osi_core,
if ((mac_tcr & EQOS_MAC_TCR_TSCFUPDT) == EQOS_MAC_TCR_TSCFUPDT) { if ((mac_tcr & EQOS_MAC_TCR_TSCFUPDT) == EQOS_MAC_TCR_TSCFUPDT) {
if (osi_core->mac_ver <= OSI_EQOS_MAC_4_10) { if (osi_core->mac_ver <= OSI_EQOS_MAC_4_10) {
val = OSI_PTP_SSINC_16; val = OSI_PTP_SSINC_16;
} else if (osi_core->mac_ver == OSI_EQOS_MAC_5_30) {
val = OSI_PTP_SSINC_6;
} else { } else {
val = OSI_PTP_SSINC_4; val = OSI_PTP_SSINC_4;
} }

View File

@@ -837,6 +837,9 @@ nve32_t osi_ptp_configuration(struct osi_core_priv_data *const osi_core,
ssinc = OSI_PTP_SSINC_16; ssinc = OSI_PTP_SSINC_16;
} else { } else {
ssinc = OSI_PTP_SSINC_4; ssinc = OSI_PTP_SSINC_4;
if (osi_core->mac_ver == OSI_EQOS_MAC_5_30) {
ssinc = OSI_PTP_SSINC_6;
}
} }
temp = ((nveu64_t)1000 << 32); temp = ((nveu64_t)1000 << 32);