ata_piix: add PCI IDs for Intel BayTail
PATCH 1/1 ata_piix: add PCI IDs for Intel BayTail
From: Chew, Chiau Ee <[email protected]>
Adds IDE-mode SATA Device IDs for the Intel BayTrail platform.
--- drivers/ata/ata_piix.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
drivers/ata/ata_piix.c +15 -0
@@ -151,6 +151,7 @@ enum piix_controller_ids { piix_pata_vmw,/* PIIX4 for VMware, spurious DMA_ERR */ ich8_sata_snb, ich8_2port_sata_snb, + ich8_2port_sata_byt, }; struct piix_map_db {
@@ -334,6 +335,9 @@ static const struct pci_device_id piix_pci_tbl[] = { { 0x8086, 0x8d60, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_sata_snb },/* SATA Controller IDE (Wellsburg) */ { 0x8086, 0x8d68, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata }, +/* SATA Controller IDE (BayTrail) */ + { 0x8086, 0x0F20, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata_byt }, + { 0x8086, 0x0F21, PCI_ANY_ID, PCI_ANY_ID, 0, 0, ich8_2port_sata_byt }, { } /* terminate list */ };
@@ -441,6 +445,7 @@ static const struct piix_map_db *piix_map_db_table[] = { [tolapai_sata] = &tolapai_map_db, [ich8_sata_snb] = &ich8_map_db, [ich8_2port_sata_snb] = &ich8_2port_map_db, + [ich8_2port_sata_byt] = &ich8_2port_map_db, };static struct pci_bits piix_enable_bits[] = {
@@ -1254,6 +1259,16 @@ static struct ata_port_info piix_port_info[] = { .udma_mask = ATA_UDMA6, .port_ops = &piix_sata_ops, }, + + [ich8_2port_sata_byt] = + { + .flags = PIIX_SATA_FLAGS | PIIX_FLAG_SIDPR | PIIX_FLAG_PIO16, + .pio_mask = ATA_PIO4, + .mwdma_mask = ATA_MWDMA2, + .udma_mask = ATA_UDMA6, + .port_ops = &piix_sata_ops, + }, + };#define AHCI_PCI_BAR 5
Signature · 1 line
1.7.4.4
Tejun Heo
AppliedQuoted 6 lines · Chew Chiau Ee
From: Chew, Chiau Ee <[email protected]>
Adds IDE-mode SATA Device IDs for the Intel BayTrail platform.
Signed-off-by Chew, Chiau Ee <[email protected]>Signed-off-by Artem Bityutskiy <[email protected]>
Applied to libata/for-3.10-fixes w/ stable cc added.
Thanks.
Signature · 1 line
tejun
Quoted 9 lines · Tejun Heo
Quoted 6 lines · Chew Chiau Ee
From: Chew, Chiau Ee <[email protected]>
Adds IDE-mode SATA Device IDs for the Intel BayTrail platform.
Signed-off-by Chew, Chiau Ee <[email protected]>Signed-off-by Artem Bityutskiy <[email protected]>Applied to libata/for-3.10-fixes w/ stable cc added.
BTW, why is it creating a new entry? Is there any difference with snb?
Thanks.
Signature · 1 line
tejun
A message that is not in the archive (sent off-list or not yet received): CAA9G2fWUZy3-QDMjGm2vZkZfoyvKiQO-kM3-6jHNUiQ62tHXVA@mail.gmail.com
Quoted 3 lines · chew chiau ee
Baytrail supports only two SATA ports.
Baytrail is using the mapping table ofich8_2port_map_dbwhile SNB is using mapping table ofich8_map_db.
Ah, alright. Thanks for the explanation. :)
Signature · 1 line
tejun