]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: enetc: add preliminary i.MX94 NETC blocks control support
authorWei Fang <wei.fang@nxp.com>
Wed, 29 Oct 2025 01:38:57 +0000 (09:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Oct 2025 01:44:19 +0000 (18:44 -0700)
commitba5d7d45ce8eec93fafd171da110386f97ecfed4
treec69066f6b53aabb5b0d63bdc0e7b840121a88193
parentc4430f2ac0475e3525d9b2d0550e4421af54d7e9
net: enetc: add preliminary i.MX94 NETC blocks control support

NETC blocks control is used for warm reset and pre-boot initialization.
Different versions of NETC blocks control are not exactly the same. We
need to add corresponding netc_devinfo data for each version. i.MX94
series are launched after i.MX95, so its NETC version (v4.3) is higher
than i.MX95 NETC (v4.1). Currently, the patch adds the following
configurations for ENETCs.

1. Set the link's MII protocol.
2. ENETC 0 (MAC 3) and the switch port 2 (MAC 2) share the same parallel
interface, but due to SoC constraint, they cannot be used simultaneously.
Since the switch is not supported yet, so the interface is assigned to
ENETC 0 by default.

The switch configuration will be added separately in a subsequent patch.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251029013900.407583-4-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/netc_blk_ctrl.c