Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: zintis.petersons@abcsolutions.lv (Zintis Pētersons)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Kirkwood: initialize PCIE1 for QNAP TS-419P+
Date: Mon, 14 Feb 2011 18:38:13 +0200	[thread overview]
Message-ID: <000001cbcc65$92744e10$b75cea30$@abcsolutions.lv> (raw)

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>

                 reply	other threads:[~2011-02-14 16:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001cbcc65$92744e10$b75cea30$@abcsolutions.lv' \
    --to=zintis.petersons@abcsolutions.lv \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox