linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix
@ 2008-08-22  4:53 fkan
  2008-08-22 13:30 ` Josh Boyer
  0 siblings, 1 reply; 6+ messages in thread
From: fkan @ 2008-08-22  4:53 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Tirumala R Marri

From: Tirumala R Marri <tmarri@amcc.com>

During recent tests with PCI-E , it has been found the
DRV + De-Emphasis values are not optimum. These new values
are tested thouroughly.

Signed-off-by: Tirumala R Marri <tmarri@amcc.com>
---
 arch/powerpc/sysdev/ppc4xx_pci.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c
index bdb3663..0ce3f46 100644
--- a/arch/powerpc/sysdev/ppc4xx_pci.c
+++ b/arch/powerpc/sysdev/ppc4xx_pci.c
@@ -815,7 +815,7 @@ static int ppc460ex_pciex_init_port_hw(struct ppc4xx_pciex_port *port)
 	switch (port->index) {
 	case 0:
 		mtdcri(SDR0, PESDR0_460EX_L0CDRCTL, 0x00003230);
-		mtdcri(SDR0, PESDR0_460EX_L0DRV, 0x00000136);
+		mtdcri(SDR0, PESDR0_460EX_L0DRV, 0x00000130);
 		mtdcri(SDR0, PESDR0_460EX_L0CLK, 0x00000006);
 
 		mtdcri(SDR0, PESDR0_460EX_PHY_CTL_RST,0x10000000);
@@ -826,10 +826,10 @@ static int ppc460ex_pciex_init_port_hw(struct ppc4xx_pciex_port *port)
 		mtdcri(SDR0, PESDR1_460EX_L1CDRCTL, 0x00003230);
 		mtdcri(SDR0, PESDR1_460EX_L2CDRCTL, 0x00003230);
 		mtdcri(SDR0, PESDR1_460EX_L3CDRCTL, 0x00003230);
-		mtdcri(SDR0, PESDR1_460EX_L0DRV, 0x00000136);
-		mtdcri(SDR0, PESDR1_460EX_L1DRV, 0x00000136);
-		mtdcri(SDR0, PESDR1_460EX_L2DRV, 0x00000136);
-		mtdcri(SDR0, PESDR1_460EX_L3DRV, 0x00000136);
+		mtdcri(SDR0, PESDR1_460EX_L0DRV, 0x00000130);
+		mtdcri(SDR0, PESDR1_460EX_L1DRV, 0x00000130);
+		mtdcri(SDR0, PESDR1_460EX_L2DRV, 0x00000130);
+		mtdcri(SDR0, PESDR1_460EX_L3DRV, 0x00000130);
 		mtdcri(SDR0, PESDR1_460EX_L0CLK, 0x00000006);
 		mtdcri(SDR0, PESDR1_460EX_L1CLK, 0x00000006);
 		mtdcri(SDR0, PESDR1_460EX_L2CLK, 0x00000006);
-- 
1.5.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix
  2008-08-22  4:53 [PATCH] AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix fkan
@ 2008-08-22 13:30 ` Josh Boyer
  2008-08-22 15:33   ` Feng Kan
  2008-08-22 19:44   ` Stefan Roese
  0 siblings, 2 replies; 6+ messages in thread
From: Josh Boyer @ 2008-08-22 13:30 UTC (permalink / raw)
  To: fkan; +Cc: sr, Tirumala R Marri, linuxppc-embedded

On Thu, Aug 21, 2008 at 09:53:34PM -0700, fkan@amcc.com wrote:
>From: Tirumala R Marri <tmarri@amcc.com>
>
>During recent tests with PCI-E , it has been found the
>DRV + De-Emphasis values are not optimum. These new values
>are tested thouroughly.
>
>Signed-off-by: Tirumala R Marri <tmarri@amcc.com>

If you are sending out a patch for someone, you need to include your
Signed-off-by as well.  Just reply to this with it, no need to resend
the just for this.

Stefan, this looks good to me.  Or at least as far as I can tell from
the somewhat magic values :)  Any comments?

josh

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH] AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix
  2008-08-22 13:30 ` Josh Boyer
@ 2008-08-22 15:33   ` Feng Kan
  2008-08-22 19:44   ` Stefan Roese
  1 sibling, 0 replies; 6+ messages in thread
From: Feng Kan @ 2008-08-22 15:33 UTC (permalink / raw)
  To: Josh Boyer; +Cc: sr, Tirumala Reddy Marri, linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 913 bytes --]

Signed-off-by: Feng Kan fkan@amcc.com

________________________________

From: Josh Boyer [mailto:jwboyer@gmail.com]
Sent: Fri 8/22/2008 6:30 AM
To: Feng Kan
Cc: linuxppc-embedded@ozlabs.org; Tirumala Reddy Marri; sr@denx.de
Subject: Re: [PATCH] AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix



On Thu, Aug 21, 2008 at 09:53:34PM -0700, fkan@amcc.com wrote:
>From: Tirumala R Marri <tmarri@amcc.com>
>
>During recent tests with PCI-E , it has been found the
>DRV + De-Emphasis values are not optimum. These new values
>are tested thouroughly.
>
>Signed-off-by: Tirumala R Marri <tmarri@amcc.com>

If you are sending out a patch for someone, you need to include your
Signed-off-by as well.  Just reply to this with it, no need to resend
the just for this.

Stefan, this looks good to me.  Or at least as far as I can tell from
the somewhat magic values :)  Any comments?

josh



[-- Attachment #2: Type: text/html, Size: 1508 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix
  2008-08-22 13:30 ` Josh Boyer
  2008-08-22 15:33   ` Feng Kan
@ 2008-08-22 19:44   ` Stefan Roese
  2008-08-26  7:41     ` AMCC PPC460EX Canyonlands Hardwired interrupt Henry Bausley
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Roese @ 2008-08-22 19:44 UTC (permalink / raw)
  To: Josh Boyer; +Cc: Tirumala R Marri, fkan, linuxppc-embedded

On Friday 22 August 2008, Josh Boyer wrote:
> On Thu, Aug 21, 2008 at 09:53:34PM -0700, fkan@amcc.com wrote:
> >From: Tirumala R Marri <tmarri@amcc.com>
> >
> >During recent tests with PCI-E , it has been found the
> >DRV + De-Emphasis values are not optimum. These new values
> >are tested thouroughly.
> >
> >Signed-off-by: Tirumala R Marri <tmarri@amcc.com>
>
> If you are sending out a patch for someone, you need to include your
> Signed-off-by as well.  Just reply to this with it, no need to resend
> the just for this.
>
> Stefan, this looks good to me.  Or at least as far as I can tell from
> the somewhat magic values :)  Any comments?

Looks good for me too, so:

Acked-by: Stefan Roese <sr@denx.de>

Best regards,
Stefan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* AMCC PPC460EX Canyonlands Hardwired interrupt
  2008-08-22 19:44   ` Stefan Roese
@ 2008-08-26  7:41     ` Henry Bausley
  2008-08-26  8:00       ` Stefan Roese
  0 siblings, 1 reply; 6+ messages in thread
From: Henry Bausley @ 2008-08-26  7:41 UTC (permalink / raw)
  To: linuxppc-embedded


How do I go about using one of the gpio pins for my own interrupt with the 
Canyonlands board.  Previously I used a yosemite (ppc) board and modified 
the yosemite.c file so that IRQ0 and IRQ1 were edge sensitive and and stole 
the ETH0/1 phy hardware interrupts for my own purposes and everything 
worked.

I am trying to do the same with the Canyonlands (powerpc) board.but cannot 
seem to enable the interrupt.

I am using the 2.6.26.2 denx kernel and xenomai 2.4.5 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: AMCC PPC460EX Canyonlands Hardwired interrupt
  2008-08-26  7:41     ` AMCC PPC460EX Canyonlands Hardwired interrupt Henry Bausley
@ 2008-08-26  8:00       ` Stefan Roese
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Roese @ 2008-08-26  8:00 UTC (permalink / raw)
  To: linuxppc-embedded

On Tuesday 26 August 2008, Henry Bausley wrote:
> How do I go about using one of the gpio pins for my own interrupt with the
> Canyonlands board.  Previously I used a yosemite (ppc) board and modified
> the yosemite.c file so that IRQ0 and IRQ1 were edge sensitive and and stole
> the ETH0/1 phy hardware interrupts for my own purposes and everything
> worked.
>
> I am trying to do the same with the Canyonlands (powerpc) board.but cannot
> seem to enable the interrupt.

arch/powerpc now uses virtual interrupts instead of the physical interrupts 
used in arch/ppc. So you can't just use the physical interrupt number in your 
request_irq() anymore. You need an of-platform driver to generate the virtual 
interrupt from the physical interrupt in the device-tree 
(irq_of_parse_and_map()). And you need to add this new node with the 
interrupt property to your device-tree of course.

Best regards,
Stefan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-08-26  8:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22  4:53 [PATCH] AMCC PPC460GT/EX PCI-E de-emphasis adjustment fix fkan
2008-08-22 13:30 ` Josh Boyer
2008-08-22 15:33   ` Feng Kan
2008-08-22 19:44   ` Stefan Roese
2008-08-26  7:41     ` AMCC PPC460EX Canyonlands Hardwired interrupt Henry Bausley
2008-08-26  8:00       ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).