Marvel IDE 88SE6101 2.4.XX support

From: ivaylo
Date: Thu Sep 04 2008 - 14:27:18 EST



Another one small patch to support Marvel IDE 88SE6101 controler. I have one on Intel DG33BU motherboard. It is detect as
02:00.0 IDE interface: Marvell Technology Group Ltd. 88SE6101 single-port PATA133 interface (rev b2)

I add it in kernel as generic IDE. This patch and the other which is to support ICH9 AHCI works for me from few month.

The patch is in attached file and I post it bellow:


diff -ru a/drivers/ide/pci/generic.c b/drivers/ide/pci/generic.c
--- a/drivers/ide/pci/generic.c 2008-01-01 14:06:40.000000000 +0200
+++ b/drivers/ide/pci/generic.c 2008-05-02 02:57:28.000000000 +0300
@@ -144,6 +144,7 @@
{ PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO_1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 10},
{ PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO_2, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 11},
{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_20363, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 12},
+ { PCI_VENDOR_ID_MARVEL, PCI_DEVICE_ID_MARVEL_6101, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 13},
{ 0, },
};


diff -ru a/drivers/ide/pci/generic.h b/drivers/ide/pci/generic.h
--- a/drivers/ide/pci/generic.h 2008-01-01 14:06:40.000000000 +0200
+++ b/drivers/ide/pci/generic.h 2008-05-02 02:58:18.000000000 +0300
@@ -167,6 +167,16 @@
.channels = 1,
.autodma = NOAUTODMA,
.bootable = ON_BOARD,
+ },{ /* 13 */
+ .vendor = PCI_VENDOR_ID_MARVEL,
+ .device = PCI_DEVICE_ID_MARVEL_6101,
+ .name = "MARVEL_6101",
+ .init_chipset = init_chipset_generic,
+ .init_hwif = init_hwif_generic,
+ .init_dma = init_dma_generic,
+ .channels = 1,
+ .autodma = NOAUTODMA,
+ .bootable = ON_BOARD,
},{
.vendor = 0,
.device = 0,


diff -ru a/include/linux/pci_ids.h b/include/linux/pci_ids.h
--- a/include/linux/pci_ids.h 2008-01-01 14:06:40.000000000 +0200
+++ b/include/linux/pci_ids.h 2008-05-02 02:52:41.000000000 +0300
@@ -2105,3 +2105,6 @@
#define PCI_VENDOR_ID_JMICRON 0x197b
#define PCI_DEVICE_ID_JMICRON_20363 0x2363

+#define PCI_VENDOR_ID_MARVEL 0x11ab
+#define PCI_DEVICE_ID_MARVEL_6101 0x6101
+




Best Regards,
Ivaylo Josifov

Attachment: Marvel-IDE.patch.gz
Description: Binary data