Add support for the RDC D1011 IDE controller used in EBOX-3300 devices

Signed-off-by: Kamil Wcislo <[email protected]>
---

diff --git a/package/kernel/linux/modules/block.mk 
b/package/kernel/linux/modules/block.mk
index 8a84aa4..bbad241 100644
--- a/package/kernel/linux/modules/block.mk
+++ b/package/kernel/linux/modules/block.mk
@@ -116,6 +116,17 @@ endef
 $(eval $(call KernelPackage,ata-nvidia-sata))


+define KernelPackage/ata-pata-821x
+  TITLE:=IT8211/2 PATA support
+  KCONFIG:=CONFIG_PATA_IT821X
+  FILES:=$(LINUX_DIR)/drivers/ata/pata_it821x.ko
+  AUTOLOAD:=$(call AutoLoad,41,pata_it821x,1)
+  $(call AddDepends/ata)
+endef
+
+$(eval $(call KernelPackage,ata-pata-821x))
+
+
 define KernelPackage/ata-pdc202xx-old
   SUBMENU:=$(BLOCK_MENU)
   TITLE:=Older Promise PATA controller support

diff --git a/target/linux/x86/patches-3.10/170-rdc_d1011_ids.patch 
b/target/linux/x86/patches-3.10/170-rdc_d1011_ids.patch
new file mode 100644
index 0000000..edd3eea
--- /dev/null
+++ b/target/linux/x86/patches-3.10/170-rdc_d1011_ids.patch
@@ -0,0 +1,20 @@
+--- a/drivers/ata/pata_it821x.c
++++ b/drivers/ata/pata_it821x.c
+@@ -957,6 +957,7 @@ static const struct pci_device_id it821x
+       { PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8211), },
+       { PCI_VDEVICE(ITE, PCI_DEVICE_ID_ITE_8212), },
+       { PCI_VDEVICE(RDC, PCI_DEVICE_ID_RDC_D1010), },
++      { PCI_VDEVICE(RDC, PCI_DEVICE_ID_RDC_D1011), },
+
+       { },
+ };
+--- a/include/linux/pci_ids.h
++++ b/include/linux/pci_ids.h
+@@ -2328,6 +2328,7 @@
+ #define PCI_DEVICE_ID_RDC_R6060               0x6060
+ #define PCI_DEVICE_ID_RDC_R6061               0x6061
+ #define PCI_DEVICE_ID_RDC_D1010               0x1010
++#define PCI_DEVICE_ID_RDC_D1011               0x1011
+
+ #define PCI_VENDOR_ID_LENOVO          0x17aa
+
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to