Skip to content

Commit acb7abd

Browse files
committed
drivers: netc_switch: make the driver to be aarch64 compatible
Make netc switch driver to be Aarch64 compatible. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
1 parent 670b170 commit acb7abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcux/mcux-sdk-ng/drivers/netc/fsl_netc_switch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void SWT_GetBaseResource(swt_handle_t *handle, netc_hw_switch_idx_t sw)
4242
(NETC_PORT_Type *)((uintptr_t)handle->hw.base + (i + 1U) * NETC_SWT_PORT_GROUP_BASE_OFFSET);
4343
handle->hw.ports[i].eth = (NETC_ETH_LINK_Type *)((uintptr_t)handle->hw.ports[i].port + 0x1000U);
4444
}
45-
handle->hw.msixTable = (netc_msix_entry_t *)((uint32_t)FSL_FEATURE_NETC_MSIX_TABLE_BASE +
45+
handle->hw.msixTable = (netc_msix_entry_t *)((uintptr_t)FSL_FEATURE_NETC_MSIX_TABLE_BASE +
4646
NETC_MSIX_TABLE_OFFSET * (NETC_SOC_SWT_PCIE_FUNC_OFFSET + (uint32_t)sw));
4747
}
4848

0 commit comments

Comments
 (0)