net: enetc: add standalone ENETC support for i.MX94

The revision of i.MX94 ENETC is changed to v4.3, so add this revision to
enetc_info to support i.MX94 ENETC. And add PTP suspport for i.MX94.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251029013900.407583-7-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Wei Fang
2025-10-29 09:39:00 +08:00
committed by Jakub Kicinski
parent 5175c1e4ad
commit 2d673b0e2f
2 changed files with 7 additions and 0 deletions

View File

@@ -3749,6 +3749,10 @@ static const struct enetc_platform_info enetc_info[] = {
.dev_id = NXP_ENETC_PPM_DEV_ID,
.data = &enetc4_ppm_data,
},
{ .revision = ENETC_REV_4_3,
.dev_id = NXP_ENETC_PF_DEV_ID,
.data = &enetc4_pf_data,
},
};
int enetc_get_driver_data(struct enetc_si *si)

View File

@@ -936,6 +936,9 @@ static int enetc_get_phc_index_by_pdev(struct enetc_si *si)
case ENETC_REV_4_1:
devfn = PCI_DEVFN(24, 0);
break;
case ENETC_REV_4_3:
devfn = PCI_DEVFN(0, 1);
break;
default:
return -1;
}