Skip to contentSkip to conversation

ppc4xx: Make pll_write global

PATCH New Matthias Fuchs 2 participants 2 messages Jul 6, 2009 – Jul 8, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc4xx: Make pll_write global

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).

---
 cpu/ppc4xx/start.S |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
cpu/ppc4xx/start.S +1 -0
index ac96fc2..582c781 100644
@@ -2021,6 +2021,7 @@ pci_wait:
 ! Output r3 = none
 !-----------------------------------------------------------------------------
 */
+	.globl	pll_write
 pll_write:
 	mfdcr  r5, CPC0_UCR
 	andis. r5,r5,0xFFFF
Signature · 1 line
1.6.1
Applied
#1 lore raw

PATCH 1/1 ppc4xx: Make pll_write global

Quoted 8 lines · 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
=====================================================================