Skip to content

Commit 2ba10e9

Browse files
committed
drivers: dsa_nxp_imx_netc: add tag protocol support
Added tag protocol support. Signed-off-by: Yangbo Lu <[email protected]>
1 parent 91286b3 commit 2ba10e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/ethernet/dsa/dsa_nxp_imx_netc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ LOG_MODULE_REGISTER(dsa_netc, CONFIG_ETHERNET_LOG_LEVEL);
1010
#include <zephyr/net/ethernet.h>
1111
#include <zephyr/drivers/pinctrl.h>
1212
#include <zephyr/drivers/ethernet/nxp_imx_netc.h>
13+
#include <zephyr/dt-bindings/ethernet/dsa_tag_proto.h>
1314

1415
#include "../eth.h"
1516
#include "fsl_netc_switch.h"
@@ -128,6 +129,7 @@ static struct dsa_api dsa_netc_api = {
128129
.port_idx = DT_REG_ADDR(port), \
129130
.phy_dev = DEVICE_DT_GET_OR_NULL(DT_PHANDLE(port, phy_handle)), \
130131
.phy_mode = DT_PROP_OR(port, phy_connection_type, ""), \
132+
.tag_proto = DT_PROP_OR(port, dsa_tag_protocol, DSA_TAG_PROTO_NOTAG), \
131133
.ethernet_connection = DEVICE_DT_GET_OR_NULL(DT_PHANDLE(port, ethernet)), \
132134
.prv_config = &dsa_netc_##n##_##port##_config, \
133135
}; \

0 commit comments

Comments
 (0)