summaryrefslogtreecommitdiff
path: root/arch/arm/mach-kirkwood/ts219-setup.c
diff options
context:
space:
mode:
authorJohn Holland <john.holland@cellent-fs.de>2009-08-20 03:24:03 +0400
committerNicolas Pitre <nico@cam.org>2009-08-24 19:56:00 +0400
commitc55bf102b675c94edef006ce487d909669221d90 (patch)
tree0e652b01ce4a1a806859242549b06d1c6275ea5a /arch/arm/mach-kirkwood/ts219-setup.c
parent3e475f579e56caf57cadc0cc995c152f9da641a9 (diff)
downloadlinux-c55bf102b675c94edef006ce487d909669221d90.tar.xz
[ARM] Kirkwood: enable eSATA on QNAP TS-219P
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. Signed-off-by: John Holland <john.holland@cellent-fs.de> Tested-by: Thomas Reitmayr <treitmayr@devbase.at> Signed-off-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/mach-kirkwood/ts219-setup.c')
-rw-r--r--arch/arm/mach-kirkwood/ts219-setup.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/ts219-setup.c b/arch/arm/mach-kirkwood/ts219-setup.c
index 01aa213c0a6f..ec1a64f263d2 100644
--- a/arch/arm/mach-kirkwood/ts219-setup.c
+++ b/arch/arm/mach-kirkwood/ts219-setup.c
@@ -206,6 +206,15 @@ static void __init qnap_ts219_init(void)
}
+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 <tbm@cyrius.com> */
.phys_io = KIRKWOOD_REGS_PHYS_BASE,