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 <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
Wei Fang authored and Jakub Kicinski committed 2025-10-29 18:44:19 -07:00
1 parent 5175c1e4ad
commit 2d673b0e2f
2 files changed
+7

No files matched your search

@@ -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)
@@ -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;
}