|
66 | 66 | DMA_STATUS_TPS | DMA_STATUS_TI | \
|
67 | 67 | DMA_STATUS_MSK_COMMON_LOONGSON)
|
68 | 68 |
|
69 |
| -#define PCI_DEVICE_ID_LOONGSON_GMAC 0x7a03 |
| 69 | +#define PCI_DEVICE_ID_LOONGSON_GMAC1 0x7a03 |
| 70 | +#define PCI_DEVICE_ID_LOONGSON_GMAC2 0x7a23 |
70 | 71 | #define PCI_DEVICE_ID_LOONGSON_GNET 0x7a13
|
71 | 72 | #define DWMAC_CORE_MULTICHAN_V1 0x10 /* Loongson custom ID 0x10 */
|
72 | 73 | #define DWMAC_CORE_MULTICHAN_V2 0x12 /* Loongson custom ID 0x12 */
|
@@ -371,7 +372,7 @@ static struct mac_device_info *loongson_dwmac_setup(void *apriv)
|
371 | 372 | /* Loongson GMAC doesn't support the flow control. Loongson GNET
|
372 | 373 | * without multi-channel doesn't support the half-duplex link mode.
|
373 | 374 | */
|
374 |
| - if (pdev->device == PCI_DEVICE_ID_LOONGSON_GMAC) { |
| 375 | + if (pdev->device != PCI_DEVICE_ID_LOONGSON_GNET) { |
375 | 376 | mac->link.caps = MAC_10 | MAC_100 | MAC_1000;
|
376 | 377 | } else {
|
377 | 378 | if (ld->multichan)
|
@@ -659,7 +660,8 @@ static SIMPLE_DEV_PM_OPS(loongson_dwmac_pm_ops, loongson_dwmac_suspend,
|
659 | 660 | loongson_dwmac_resume);
|
660 | 661 |
|
661 | 662 | static const struct pci_device_id loongson_dwmac_id_table[] = {
|
662 |
| - { PCI_DEVICE_DATA(LOONGSON, GMAC, &loongson_gmac_pci_info) }, |
| 663 | + { PCI_DEVICE_DATA(LOONGSON, GMAC1, &loongson_gmac_pci_info) }, |
| 664 | + { PCI_DEVICE_DATA(LOONGSON, GMAC2, &loongson_gmac_pci_info) }, |
663 | 665 | { PCI_DEVICE_DATA(LOONGSON, GNET, &loongson_gnet_pci_info) },
|
664 | 666 | {}
|
665 | 667 | };
|
|
0 commit comments