From 5450b509517a763035d4beaf8700e5103ab67f4c Mon Sep 17 00:00:00 2001 From: ouyangxiangzhen Date: Mon, 4 Nov 2024 21:03:57 +0800 Subject: [PATCH] net/igc: Support Intel I226V. This commit supported Intel I226V. Signed-off-by: ouyangxiangzhen --- drivers/net/Kconfig | 4 ++++ drivers/net/igc.c | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 6cc7e5fcea592..5ab12232e8ed1 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -818,6 +818,10 @@ config NET_IGC_I225LM bool "Intel I225LM" default n +config NET_IGC_I226V + bool "Intel I226V" + default n + endif # NET_IGC endif # NETDEVICES diff --git a/drivers/net/igc.c b/drivers/net/igc.c index 1dbaec901ef56..4f8bd135d0181 100644 --- a/drivers/net/igc.c +++ b/drivers/net/igc.c @@ -213,6 +213,16 @@ static const struct igc_type_s g_igc_i225lm = }; #endif +#ifdef CONFIG_NET_IGC_I226V +/* Intel I226V */ + +static const struct igc_type_s g_igc_i226v = +{ + .desc_align = 128, + .mta_regs = 128 +}; +#endif + static const struct pci_device_id_s g_igc_id_table[] = { #ifdef CONFIG_NET_IGC_I225LM @@ -220,6 +230,12 @@ static const struct pci_device_id_s g_igc_id_table[] = PCI_DEVICE(0x8086, 0x15f2), .driver_data = (uintptr_t)&g_igc_i225lm }, +#endif +#ifdef CONFIG_NET_IGC_I226V + { + PCI_DEVICE(0x8086, 0x125c), + .driver_data = (uintptr_t)&g_igc_i226v + }, #endif { } };