]> git.sur5r.net Git - u-boot/commitdiff
ppc4xx: Make pll_write global
authorMatthias Fuchs <matthias.fuchs@esd.eu>
Mon, 6 Jul 2009 14:27:33 +0000 (16:27 +0200)
committerStefan Roese <sr@denx.de>
Wed, 8 Jul 2009 08:59:07 +0000 (10:59 +0200)
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>
Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/start.S

index ac96fc28f77522098123822b0c185cdabe9c9cf3..582c781cacf66436b92d4597ddfb7a12f9e765a4 100644 (file)
@@ -2021,6 +2021,7 @@ pci_wait:
 ! Output r3 = none
 !-----------------------------------------------------------------------------
 */
+       .globl  pll_write
 pll_write:
        mfdcr  r5, CPC0_UCR
        andis. r5,r5,0xFFFF