diff options
author | Tejun Heo <tj@kernel.org> | 2010-07-30 05:42:42 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-08-01 19:46:44 -0400 |
commit | 5b6ae5ba0c45c4d04721537308728688414c9e6b (patch) | |
tree | 55a1e83bebb236fd5cb85e22aaa1eb9862015808 | |
parent | 213373cf974fe69e78ec894b07f45ae2f5a3a078 (diff) |
libata: more PCI IDs for jmicron controllers
Add support for JMB364 and 369.
Patch-originally-from: Aries Lee <arieslee@jmicron.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r-- | drivers/pci/quirks.c | 6 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 477345d41641..a0c20d9e8396 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -1459,6 +1459,7 @@ static void quirk_jmicron_ata(struct pci_dev *pdev) | |||
1459 | switch (pdev->device) { | 1459 | switch (pdev->device) { |
1460 | case PCI_DEVICE_ID_JMICRON_JMB360: /* SATA single port */ | 1460 | case PCI_DEVICE_ID_JMICRON_JMB360: /* SATA single port */ |
1461 | case PCI_DEVICE_ID_JMICRON_JMB362: /* SATA dual ports */ | 1461 | case PCI_DEVICE_ID_JMICRON_JMB362: /* SATA dual ports */ |
1462 | case PCI_DEVICE_ID_JMICRON_JMB364: /* SATA dual ports */ | ||
1462 | /* The controller should be in single function ahci mode */ | 1463 | /* The controller should be in single function ahci mode */ |
1463 | conf1 |= 0x0002A100; /* Set 8, 13, 15, 17 */ | 1464 | conf1 |= 0x0002A100; /* Set 8, 13, 15, 17 */ |
1464 | break; | 1465 | break; |
@@ -1470,6 +1471,7 @@ static void quirk_jmicron_ata(struct pci_dev *pdev) | |||
1470 | /* Fall through */ | 1471 | /* Fall through */ |
1471 | case PCI_DEVICE_ID_JMICRON_JMB361: | 1472 | case PCI_DEVICE_ID_JMICRON_JMB361: |
1472 | case PCI_DEVICE_ID_JMICRON_JMB363: | 1473 | case PCI_DEVICE_ID_JMICRON_JMB363: |
1474 | case PCI_DEVICE_ID_JMICRON_JMB369: | ||
1473 | /* Enable dual function mode, AHCI on fn 0, IDE fn1 */ | 1475 | /* Enable dual function mode, AHCI on fn 0, IDE fn1 */ |
1474 | /* Set the class codes correctly and then direct IDE 0 */ | 1476 | /* Set the class codes correctly and then direct IDE 0 */ |
1475 | conf1 |= 0x00C2A1B3; /* Set 0, 1, 4, 5, 7, 8, 13, 15, 17, 22, 23 */ | 1477 | conf1 |= 0x00C2A1B3; /* Set 0, 1, 4, 5, 7, 8, 13, 15, 17, 22, 23 */ |
@@ -1496,16 +1498,20 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB360, qui | |||
1496 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361, quirk_jmicron_ata); | 1498 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361, quirk_jmicron_ata); |
1497 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB362, quirk_jmicron_ata); | 1499 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB362, quirk_jmicron_ata); |
1498 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363, quirk_jmicron_ata); | 1500 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363, quirk_jmicron_ata); |
1501 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB364, quirk_jmicron_ata); | ||
1499 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365, quirk_jmicron_ata); | 1502 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365, quirk_jmicron_ata); |
1500 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366, quirk_jmicron_ata); | 1503 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366, quirk_jmicron_ata); |
1501 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368, quirk_jmicron_ata); | 1504 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368, quirk_jmicron_ata); |
1505 | DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB369, quirk_jmicron_ata); | ||
1502 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB360, quirk_jmicron_ata); | 1506 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB360, quirk_jmicron_ata); |
1503 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361, quirk_jmicron_ata); | 1507 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361, quirk_jmicron_ata); |
1504 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB362, quirk_jmicron_ata); | 1508 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB362, quirk_jmicron_ata); |
1505 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363, quirk_jmicron_ata); | 1509 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363, quirk_jmicron_ata); |
1510 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB364, quirk_jmicron_ata); | ||
1506 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365, quirk_jmicron_ata); | 1511 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365, quirk_jmicron_ata); |
1507 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366, quirk_jmicron_ata); | 1512 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366, quirk_jmicron_ata); |
1508 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368, quirk_jmicron_ata); | 1513 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368, quirk_jmicron_ata); |
1514 | DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB369, quirk_jmicron_ata); | ||
1509 | 1515 | ||
1510 | #endif | 1516 | #endif |
1511 | 1517 | ||
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 3bedcc149c84..eb200e6beb65 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -2324,9 +2324,11 @@ | |||
2324 | #define PCI_DEVICE_ID_JMICRON_JMB361 0x2361 | 2324 | #define PCI_DEVICE_ID_JMICRON_JMB361 0x2361 |
2325 | #define PCI_DEVICE_ID_JMICRON_JMB362 0x2362 | 2325 | #define PCI_DEVICE_ID_JMICRON_JMB362 0x2362 |
2326 | #define PCI_DEVICE_ID_JMICRON_JMB363 0x2363 | 2326 | #define PCI_DEVICE_ID_JMICRON_JMB363 0x2363 |
2327 | #define PCI_DEVICE_ID_JMICRON_JMB364 0x2364 | ||
2327 | #define PCI_DEVICE_ID_JMICRON_JMB365 0x2365 | 2328 | #define PCI_DEVICE_ID_JMICRON_JMB365 0x2365 |
2328 | #define PCI_DEVICE_ID_JMICRON_JMB366 0x2366 | 2329 | #define PCI_DEVICE_ID_JMICRON_JMB366 0x2366 |
2329 | #define PCI_DEVICE_ID_JMICRON_JMB368 0x2368 | 2330 | #define PCI_DEVICE_ID_JMICRON_JMB368 0x2368 |
2331 | #define PCI_DEVICE_ID_JMICRON_JMB369 0x2369 | ||
2330 | #define PCI_DEVICE_ID_JMICRON_JMB38X_SD 0x2381 | 2332 | #define PCI_DEVICE_ID_JMICRON_JMB38X_SD 0x2381 |
2331 | #define PCI_DEVICE_ID_JMICRON_JMB38X_MMC 0x2382 | 2333 | #define PCI_DEVICE_ID_JMICRON_JMB38X_MMC 0x2382 |
2332 | #define PCI_DEVICE_ID_JMICRON_JMB38X_MS 0x2383 | 2334 | #define PCI_DEVICE_ID_JMICRON_JMB38X_MS 0x2383 |