aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorToshiharu Okada <toshiharu-linux@dsn.okisemi.com>2011-09-01 10:20:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-21 12:40:05 -0400
commit7814e8ef7e4c7affe33e975075df09f8a7812250 (patch)
tree7d02874d337c9ee8b87d1f4e8759a003a043a5a6 /drivers/net
parent20149346fc897be5a7a4eed1203b446dabf75183 (diff)
pch_gbe: support ML7831 IOH
commit 7756332f5b64c9c1535712b9679792e8bd4f0019 upstream. 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> Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/Kconfig11
-rw-r--r--drivers/net/pch_gbe/pch_gbe_main.c10
2 files changed, 16 insertions, 5 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 93359fab240..0c3f234afc0 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -2543,7 +2543,7 @@ config S6GMAC
2543source "drivers/net/stmmac/Kconfig" 2543source "drivers/net/stmmac/Kconfig"
2544 2544
2545config PCH_GBE 2545config PCH_GBE
2546 tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GbE" 2546 tristate "Intel EG20T PCH/OKI SEMICONDUCTOR IOH(ML7223/ML7831) GbE"
2547 depends on PCI 2547 depends on PCI
2548 select MII 2548 select MII
2549 ---help--- 2549 ---help---
@@ -2556,10 +2556,11 @@ config PCH_GBE
2556 This driver enables Gigabit Ethernet function. 2556 This driver enables Gigabit Ethernet function.
2557 2557
2558 This driver also can be used for OKI SEMICONDUCTOR IOH(Input/ 2558 This driver also can be used for OKI SEMICONDUCTOR IOH(Input/
2559 Output Hub), ML7223. 2559 Output Hub), ML7223/ML7831.
2560 ML7223 IOH is for MP(Media Phone) use. 2560 ML7223 IOH is for MP(Media Phone) use. ML7831 IOH is for general
2561 ML7223 is companion chip for Intel Atom E6xx series. 2561 purpose use.
2562 ML7223 is completely compatible for Intel EG20T PCH. 2562 ML7223/ML7831 is companion chip for Intel Atom E6xx series.
2563 ML7223/ML7831 is completely compatible for Intel EG20T PCH.
2563 2564
2564endif # NETDEV_1000 2565endif # NETDEV_1000
2565 2566
diff --git a/drivers/net/pch_gbe/pch_gbe_main.c b/drivers/net/pch_gbe/pch_gbe_main.c
index 48ff87c455a..d6d9c0b2d9b 100644
--- a/drivers/net/pch_gbe/pch_gbe_main.c
+++ b/drivers/net/pch_gbe/pch_gbe_main.c
@@ -39,6 +39,9 @@ const char pch_driver_version[] = DRV_VERSION;
39#define PCI_VENDOR_ID_ROHM 0x10db 39#define PCI_VENDOR_ID_ROHM 0x10db
40#define PCI_DEVICE_ID_ROHM_ML7223_GBE 0x8013 40#define PCI_DEVICE_ID_ROHM_ML7223_GBE 0x8013
41 41
42/* Macros for ML7831 */
43#define PCI_DEVICE_ID_ROHM_ML7831_GBE 0x8802
44
42#define PCH_GBE_TX_WEIGHT 64 45#define PCH_GBE_TX_WEIGHT 64
43#define PCH_GBE_RX_WEIGHT 64 46#define PCH_GBE_RX_WEIGHT 64
44#define PCH_GBE_RX_BUFFER_WRITE 16 47#define PCH_GBE_RX_BUFFER_WRITE 16
@@ -2459,6 +2462,13 @@ static DEFINE_PCI_DEVICE_TABLE(pch_gbe_pcidev_id) = {
2459 .class = (PCI_CLASS_NETWORK_ETHERNET << 8), 2462 .class = (PCI_CLASS_NETWORK_ETHERNET << 8),
2460 .class_mask = (0xFFFF00) 2463 .class_mask = (0xFFFF00)
2461 }, 2464 },
2465 {.vendor = PCI_VENDOR_ID_ROHM,
2466 .device = PCI_DEVICE_ID_ROHM_ML7831_GBE,
2467 .subvendor = PCI_ANY_ID,
2468 .subdevice = PCI_ANY_ID,
2469 .class = (PCI_CLASS_NETWORK_ETHERNET << 8),
2470 .class_mask = (0xFFFF00)
2471 },
2462 /* required last entry */ 2472 /* required last entry */
2463 {0} 2473 {0}
2464}; 2474};