All of lore.kernel.org
 help / color / mirror / Atom feed
From: benjamin.zores@alcatel-lucent.com (Benjamin Zores)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3 v3] [ARM] Kirkwood: add support for PCIe1
Date: Mon, 07 Jun 2010 10:04:08 +0200	[thread overview]
Message-ID: <4C0CA7F8.3080506@alcatel-lucent.com> (raw)
In-Reply-To: <1275819882-8373-1-git-send-email-saeed@marvell.com>

On 06/06/2010 12:24, Saeed Bishara wrote:
> This patch extens the kirkwood's PCIe support up to 2 controllers as in the 6282 devices.
>
> diff --git a/arch/arm/mach-kirkwood/db88f6281-bp-setup.c b/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
> index 39bdf4b..c428348 100644
> --- a/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
> +++ b/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
> @@ -74,9 +74,15 @@ static void __init db88f6281_init(void)
>
>   static int __init db88f6281_pci_init(void)
>   {
> -	if (machine_is_db88f6281_bp())
> -		kirkwood_pcie_init();
> +	if (machine_is_db88f6281_bp()) {
> +		u32 dev, rev;
>
> +		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;
>    

This is still not likely to be possible: I don't think a given board can 
have 2 different SoCs.

> +#define CGC_PEX1		(1<<  18)
>   #define CGC_GE1			(1<<  19)
>   #define CGC_TDM			(1<<  20)
>   #define CGC_RESERVED		((1<<  18) | (0x6<<  21))
>    

(1 << 18) is no longer reserved.

Except from that you still miss the mapping definition and phy 
initialization in common.c

See 
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-June/017176.html 
for details.

Ben

  reply	other threads:[~2010-06-07  8:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-01 15:09 [PATCH 1/3] [ARM] Kirkwood: add support for rev A1 of the 88f6192 and 88f6180 chips Saeed Bishara
2010-06-01 15:09 ` [PATCH 2/3] [ARM] Kirkwood: Add support for 88f6282 Saeed Bishara
2010-06-01 15:09   ` [PATCH 3/3] [ARM] Kirkwood: add support for PCIe1 Saeed Bishara
2010-06-01 19:55     ` Nicolas Pitre
2010-06-02 10:34       ` saeed bishara
2010-06-02 19:29         ` Nicolas Pitre
2010-06-03 11:43       ` saeed bishara
2010-06-03 16:30         ` Nicolas Pitre
2010-06-06 10:24           ` [PATCH 3/3 v3] " Saeed Bishara
2010-06-07  8:04             ` Benjamin Zores [this message]
2010-06-08 11:20               ` saeed bishara
2010-06-08 11:21                 ` [PATCH 3/3 v4] " Saeed Bishara
2010-06-08 11:43                   ` Benjamin Zores
2010-06-08 12:20                     ` saeed bishara
2010-06-08 12:43                       ` Benjamin Zores
2010-06-08 12:49                         ` saeed bishara

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=4C0CA7F8.3080506@alcatel-lucent.com \
    --to=benjamin.zores@alcatel-lucent.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.