Initialize PCI/PCIe on the QNAP TS-119, TS-219 and TS-219P hardware
allowing the use of the discrete eSATA controller connected to the PCIe
bus in the TS-219P using the kirkwood platform. Also the ACHI module has
been enabled to allow the controller to be properly recognized and
initialized.

The patches are based off the debian source for lenny backport of the
2.6.30-1 kernel image for the kirkwood platform leading to:

        linux-image-2.6.30-bpo.1-kirkwood



Signed-off-by: John Holland <[email protected]>

diff -Naur linux-source-2.6.30 linux-source-2.6.30.new
--- linux-source-2.6.30/arch/arm/mach-kirkwood/ts219-setup.c        2009-06-10 
05:05:27.000000000 +0200
+++ linux-source-2.6.30.new/arch/arm/mach-kirkwood/ts219-setup.c    2009-08-08 
20:12:24.000000000 +0200
@@ -206,6 +206,15 @@

 }

+static int __init ts219_pci_init(void)
+{
+   if (machine_is_ts219())
+           kirkwood_pcie_init();
+
+   return 0;
+}
+subsys_initcall(ts219_pci_init);
+
 MACHINE_START(TS219, "QNAP TS-119/TS-219")
    /* Maintainer: Martin Michlmayr <[email protected]> */
    .phys_io        = KIRKWOOD_REGS_PHYS_BASE,
--


diff -u /boot/config-2.6.30-bpo.1-kirkwood /boot/config-2.6.30-bpopci.1-kirkwood
--- /boot/config-2.6.30-bpo.1-kirkwood      2009-07-20 12:08:36.000000000 +0200
+++ /boot/config-2.6.30-bpopci.1-kirkwood   2009-08-09 12:04:33.000000000 +0200
@@ -1096,7 +1097,7 @@
 CONFIG_ATA=m
 # CONFIG_ATA_NONSTANDARD is not set
 CONFIG_SATA_PMP=y
-# CONFIG_SATA_AHCI is not set
+CONFIG_SATA_AHCI=m
 # CONFIG_SATA_SIL24 is not set
 CONFIG_ATA_SFF=y
 # CONFIG_SATA_SVW is not set
--



Thanx,

John

___________________________________________

Cellent Finance Solutions AG

Firmensitz: Calwer Straße 33, 70173 Stuttgart
Registergericht: Amtsgericht Stuttgart, HRB 720743
Vorstand: Thomas Wild
Vorsitzender des Aufsichtsrats: Rudolf Zipf

Reply via email to