* [PATCH] Kirkwood: initialize PCIE1 for QNAP TS-419P+
@ 2011-02-14 16:38 Zintis Pētersons
0 siblings, 0 replies; only message in thread
From: Zintis Pētersons @ 2011-02-14 16:38 UTC (permalink / raw)
To: linux-arm-kernel
Initialize PCIE1 on the 6282-based QNAP TS-419P+ since it has a Marvell 9125
SATA chip on each PCI bus.
Signed-off-by: Zintis P?tersons <zintis.petersons@abcsolutions.lv>
diff --git a/arch/arm/mach-kirkwood/ts41x-setup.c
b/arch/arm/mach-kirkwood/ts41x-setup.c
index 9a44029..11f23c3 100644
--- a/arch/arm/mach-kirkwood/ts41x-setup.c
+++ b/arch/arm/mach-kirkwood/ts41x-setup.c
@@ -153,6 +153,8 @@ static void __init qnap_ts41x_init(void)
static int __init ts41x_pci_init(void)
{
+ u32 dev, rev;
+
if (machine_is_ts41x()) {
/*
* Without this explicit reset, the PCIe SATA
controller @@ -161,7 +163,11 @@ static int __init ts41x_pci_init(void)
*/
orion_pcie_reset((void __iomem
*)PCIE_VIRT_BASE);
- kirkwood_pcie_init(KW_PCIE0);
+ kirkwood_pcie_id(&dev, &rev);
+ if (dev == MV88F6282_DEV_ID)
+ kirkwood_pcie_init(KW_PCIE1 |
KW_PCIE0);
+ else
+ kirkwood_pcie_init(KW_PCIE0);
}
return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110214/1bb9a865/attachment-0001.html>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-14 16:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-14 16:38 [PATCH] Kirkwood: initialize PCIE1 for QNAP TS-419P+ Zintis Pētersons
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox