* [U-Boot] [PATCH] ppc4xx: Make pll_write global
@ 2009-07-06 14:27 Matthias Fuchs
2009-07-08 9:01 ` Stefan Roese
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Fuchs @ 2009-07-06 14:27 UTC (permalink / raw)
To: u-boot
This patch makes pll_write on PPC405EP boards
global and callable from C code.
pll_write can be used to dynamically modify the PLB:PCI divider
as it is required for 33/66 MHz pci adapters based on the 405EP.
board_early_init_f() is a good place to do that (check M66EN signal
and call pll_write() when it is required).
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
---
cpu/ppc4xx/start.S | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/cpu/ppc4xx/start.S b/cpu/ppc4xx/start.S
index ac96fc2..582c781 100644
--- a/cpu/ppc4xx/start.S
+++ b/cpu/ppc4xx/start.S
@@ -2021,6 +2021,7 @@ pci_wait:
! Output r3 = none
!-----------------------------------------------------------------------------
*/
+ .globl pll_write
pll_write:
mfdcr r5, CPC0_UCR
andis. r5,r5,0xFFFF
--
1.6.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] ppc4xx: Make pll_write global
2009-07-06 14:27 [U-Boot] [PATCH] ppc4xx: Make pll_write global Matthias Fuchs
@ 2009-07-08 9:01 ` Stefan Roese
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Roese @ 2009-07-08 9:01 UTC (permalink / raw)
To: u-boot
On Monday 06 July 2009 16:27:33 Matthias Fuchs wrote:
> This patch makes pll_write on PPC405EP boards
> global and callable from C code.
>
> pll_write can be used to dynamically modify the PLB:PCI divider
> as it is required for 33/66 MHz pci adapters based on the 405EP.
>
> board_early_init_f() is a good place to do that (check M66EN signal
> and call pll_write() when it is required).
Applied to ppc4xx. Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-08 9:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06 14:27 [U-Boot] [PATCH] ppc4xx: Make pll_write global Matthias Fuchs
2009-07-08 9:01 ` Stefan Roese
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox