public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] PPC405EP CPC0_PCI init vs. update
@ 2005-12-06 12:45 Scott McNutt
  2005-12-06 16:05 ` Stefan Roese
  0 siblings, 1 reply; 2+ messages in thread
From: Scott McNutt @ 2005-12-06 12:45 UTC (permalink / raw)
  To: u-boot

Hi All,

In cpu/ppc4xx/start.S, the CPC0_PCI register is _initialized_,
rather than being simply _updated_. This clears bits that are
set during bootstrap from a serial eeprom. E.g. for the
PerWE/PCI_INT mux, CPC0_PCI[SPE] always gets cleared.

I'm proposing a simple change and would like some feedback ...
it's not clear to me if this will cause problems for existing
boards.

Comments welcome :-)

Regards,
--Scott
===============================================================
--- a/cpu/ppc4xx/start.S
+++ b/cpu/ppc4xx/start.S
@@ -1539,7 +1539,8 @@ ppc405ep_init:
         mtdcr   ebccfgd,r3
  #endif

-       addi    r3,0,CPC0_PCI_HOST_CFG_EN
+       mfdcr   r3, CPC0_PCI
+       ori     r3,r3,CPC0_PCI_HOST_CFG_EN
  #ifdef CONFIG_BUBINGA
         /*
 
!-----------------------------------------------------------------------

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

* [U-Boot-Users] PPC405EP CPC0_PCI init vs. update
  2005-12-06 12:45 [U-Boot-Users] PPC405EP CPC0_PCI init vs. update Scott McNutt
@ 2005-12-06 16:05 ` Stefan Roese
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2005-12-06 16:05 UTC (permalink / raw)
  To: u-boot

Hi Scott,

On Tuesday 06 December 2005 13:45, Scott McNutt wrote:
> In cpu/ppc4xx/start.S, the CPC0_PCI register is _initialized_,
> rather than being simply _updated_. This clears bits that are
> set during bootstrap from a serial eeprom. E.g. for the
> PerWE/PCI_INT mux, CPC0_PCI[SPE] always gets cleared.
>
> I'm proposing a simple change and would like some feedback ...
> it's not clear to me if this will cause problems for existing
> boards.
>
> Comments welcome :-)

Seems reasonable to me. I second this patch. Most likely, the current 405ep 
platforms need those bits cleared or configure them in some board specific 
code.

If nobody objects, I will check your patch in, in a few days/weeks...

Best regards,
Stefan

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

end of thread, other threads:[~2005-12-06 16:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-06 12:45 [U-Boot-Users] PPC405EP CPC0_PCI init vs. update Scott McNutt
2005-12-06 16:05 ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox