aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Gaston <jason.d.gaston@intel.com>2005-04-16 18:24:44 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:24:44 -0400
commitc368ca4ef471aa8e82ee1de7086cb7ef5053cb95 (patch)
tree0b6a05017869cda984304bb24f6327da543d31b3
parentc4c8ea948aa21527d502e87227b2f1d951bc506d (diff)
[PATCH] ata_piix: IDE mode SATA patch for Intel ESB2
This patch adds the Intel ESB2 DID's to the ata_piix.c and quirks.c file for IDE mode SATA support. Signed-off-by: Jason Gaston <Jason.d.gaston@intel.com> Cc: Jeff Garzik <jgarzik@pobox.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/pci/quirks.c1
-rw-r--r--drivers/scsi/ata_piix.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 1cfe9538fd19..15a398051682 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1189,6 +1189,7 @@ static void __devinit quirk_intel_ide_combined(struct pci_dev *pdev)
1189 case 0x2651: 1189 case 0x2651:
1190 case 0x2652: 1190 case 0x2652:
1191 case 0x2653: 1191 case 0x2653:
1192 case 0x2680: /* ESB2 */
1192 ich = 6; 1193 ich = 6;
1193 break; 1194 break;
1194 case 0x27c0: 1195 case 0x27c0:
diff --git a/drivers/scsi/ata_piix.c b/drivers/scsi/ata_piix.c
index ce19728aa8a4..3867f91ef8c7 100644
--- a/drivers/scsi/ata_piix.c
+++ b/drivers/scsi/ata_piix.c
@@ -61,6 +61,7 @@ enum {
61 ich6_sata = 3, 61 ich6_sata = 3,
62 ich6_sata_rm = 4, 62 ich6_sata_rm = 4,
63 ich7_sata = 5, 63 ich7_sata = 5,
64 esb2_sata = 6,
64}; 65};
65 66
66static int piix_init_one (struct pci_dev *pdev, 67static int piix_init_one (struct pci_dev *pdev,
@@ -93,6 +94,7 @@ static struct pci_device_id piix_pci_tbl[] = {
93 { 0x8086, 0x2653, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich6_sata_rm }, 94 { 0x8086, 0x2653, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich6_sata_rm },
94 { 0x8086, 0x27c0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich7_sata }, 95 { 0x8086, 0x27c0, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich7_sata },
95 { 0x8086, 0x27c4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich7_sata }, 96 { 0x8086, 0x27c4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich7_sata },
97 { 0x8086, 0x2680, PCI_ANY_ID, PCI_ANY_ID, 0, 0, esb2_sata },
96 98
97 { } /* terminate list */ 99 { } /* terminate list */
98}; 100};
@@ -256,6 +258,18 @@ static struct ata_port_info piix_port_info[] = {
256 .udma_mask = 0x7f, /* udma0-6 */ 258 .udma_mask = 0x7f, /* udma0-6 */
257 .port_ops = &piix_sata_ops, 259 .port_ops = &piix_sata_ops,
258 }, 260 },
261
262 /* esb2_sata */
263 {
264 .sht = &piix_sht,
265 .host_flags = ATA_FLAG_SATA | ATA_FLAG_SRST |
266 PIIX_FLAG_COMBINED | PIIX_FLAG_CHECKINTR |
267 ATA_FLAG_SLAVE_POSS | PIIX_FLAG_AHCI,
268 .pio_mask = 0x1f, /* pio0-4 */
269 .mwdma_mask = 0x07, /* mwdma0-2 */
270 .udma_mask = 0x7f, /* udma0-6 */
271 .port_ops = &piix_sata_ops,
272 },
259}; 273};
260 274
261static struct pci_bits piix_enable_bits[] = { 275static struct pci_bits piix_enable_bits[] = {