Skip to content

Commit 7756332

Browse files
Toshiharu Okadadavem330
authored andcommitted
pch_gbe: support ML7831 IOH
Support new device OKI SEMICONDUCTOR ML7831 IOH(Input/Output Hub) ML7831 is for general purpose use. ML7831 is companion chip for Intel Atom E6xx series. ML7831 is completely compatible for Intel EG20T PCH. Signed-off-by: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 124d770 commit 7756332

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

drivers/net/Kconfig

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,7 +2535,7 @@ config S6GMAC
25352535
source "drivers/net/stmmac/Kconfig"
25362536

25372537
config PCH_GBE
2538-
tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GbE"
2538+
tristate "Intel EG20T PCH/OKI SEMICONDUCTOR IOH(ML7223/ML7831) GbE"
25392539
depends on PCI
25402540
select MII
25412541
---help---
@@ -2548,10 +2548,11 @@ config PCH_GBE
25482548
This driver enables Gigabit Ethernet function.
25492549

25502550
This driver also can be used for OKI SEMICONDUCTOR IOH(Input/
2551-
Output Hub), ML7223.
2552-
ML7223 IOH is for MP(Media Phone) use.
2553-
ML7223 is companion chip for Intel Atom E6xx series.
2554-
ML7223 is completely compatible for Intel EG20T PCH.
2551+
Output Hub), ML7223/ML7831.
2552+
ML7223 IOH is for MP(Media Phone) use. ML7831 IOH is for general
2553+
purpose use.
2554+
ML7223/ML7831 is companion chip for Intel Atom E6xx series.
2555+
ML7223/ML7831 is completely compatible for Intel EG20T PCH.
25552556

25562557
config FTGMAC100
25572558
tristate "Faraday FTGMAC100 Gigabit Ethernet support"

drivers/net/pch_gbe/pch_gbe_main.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ const char pch_driver_version[] = DRV_VERSION;
3939
#define PCI_VENDOR_ID_ROHM 0x10db
4040
#define PCI_DEVICE_ID_ROHM_ML7223_GBE 0x8013
4141

42+
/* Macros for ML7831 */
43+
#define PCI_DEVICE_ID_ROHM_ML7831_GBE 0x8802
44+
4245
#define PCH_GBE_TX_WEIGHT 64
4346
#define PCH_GBE_RX_WEIGHT 64
4447
#define PCH_GBE_RX_BUFFER_WRITE 16
@@ -2526,6 +2529,13 @@ static DEFINE_PCI_DEVICE_TABLE(pch_gbe_pcidev_id) = {
25262529
.class = (PCI_CLASS_NETWORK_ETHERNET << 8),
25272530
.class_mask = (0xFFFF00)
25282531
},
2532+
{.vendor = PCI_VENDOR_ID_ROHM,
2533+
.device = PCI_DEVICE_ID_ROHM_ML7831_GBE,
2534+
.subvendor = PCI_ANY_ID,
2535+
.subdevice = PCI_ANY_ID,
2536+
.class = (PCI_CLASS_NETWORK_ETHERNET << 8),
2537+
.class_mask = (0xFFFF00)
2538+
},
25292539
/* required last entry */
25302540
{0}
25312541
};

0 commit comments

Comments
 (0)