]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ppc4xx: Add function to check and dynamically change PCI sync clock
authorStefan Roese <sr@denx.de>
Mon, 19 Oct 2009 12:06:23 +0000 (14:06 +0200)
committerStefan Roese <sr@denx.de>
Fri, 23 Oct 2009 14:04:36 +0000 (16:04 +0200)
commit5e47f9535f53fd4cc05f32fb6166870f976fbb4e
tree68b7e4f2a7167fac1d056de8bcf0b9d5fb4769eb
parent92b8964bed0d1b779d9e26be4e16755b5c635415
ppc4xx: Add function to check and dynamically change PCI sync clock

PPC440EP(x)/PPC440GR(x):
In asynchronous PCI mode, the synchronous PCI clock must meet
certain requirements. The following equation describes the
relationship that must be maintained between the asynchronous PCI
clock and synchronous PCI clock. Select an appropriate PCI:PLB
ratio to maintain the relationship:

AsyncPCIClk - 1MHz <= SyncPCIclock <= (2 * AsyncPCIClk) - 1MHz

This patch now adds a function to check and reconfigure the sync
PCI clock to meet this requirement. This is in preparation for
some AMCC boards (Sequoia/Rainier and Yosemite/Yellowstone) using this
function to not violate the PCI clocking rules.

Signed-off-by: Stefan Roese <sr@denx.de>
cpu/ppc4xx/cpu_init.c
include/ppc440.h
include/ppc4xx.h