Skip to content

Commit

Permalink
[ARM] Kirkwood: initialize PCIE1 for QNAP TS-419P+
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
  • Loading branch information
Zintis Pētersons authored and Nicolas Pitre committed Mar 3, 2011
1 parent 9c15364 commit 1ab6962
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion arch/arm/mach-kirkwood/ts41x-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,20 @@ static void __init qnap_ts41x_init(void)
static int __init ts41x_pci_init(void)
{
if (machine_is_ts41x()) {
u32 dev, rev;

/*
* Without this explicit reset, the PCIe SATA controller
* (Marvell 88sx7042/sata_mv) is known to stop working
* after a few minutes.
*/
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;
Expand Down

0 comments on commit 1ab6962

Please sign in to comment.