summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8548cds/mpc8548cds.c
diff options
context:
space:
mode:
authorchenhui zhao <chenhui.zhao@freescale.com>2011-09-15 14:52:34 +0800
committerKumar Gala <galak@kernel.crashing.org>2011-10-03 08:52:14 -0500
commit568336ecc7083afd0b8b16a6b8b4a796491c142f (patch)
tree09c9fbbaab4ee23b2f8d368fdf3c6b2bf886954d /board/freescale/mpc8548cds/mpc8548cds.c
parenta6d0bfa86f5af3bab7bd0d14653c80e4188e076c (diff)
downloadu-boot-imx-568336ecc7083afd0b8b16a6b8b4a796491c142f.zip
u-boot-imx-568336ecc7083afd0b8b16a6b8b4a796491c142f.tar.gz
u-boot-imx-568336ecc7083afd0b8b16a6b8b4a796491c142f.tar.bz2
powerpc/mpc85xxcds: Fix PCI speed
The CDS uses PCICLK as SYSCLK. The PCICLK should be 33333333Hz or 66666666Hz. Signed-off-by: Ebony Zhu <ebony.zhu@freescale.com> Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8548cds/mpc8548cds.c')
-rw-r--r--board/freescale/mpc8548cds/mpc8548cds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index 8ab9752..3bcaac4 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -214,6 +214,7 @@ void pci_init_board(void)
u32 devdisr, pordevsr, io_sel;
u32 porpllsr, pci_agent, pci_speed, pci_32, pci_arb, pci_clk_sel;
int first_free_busno = 0;
+ char buf[32];
devdisr = in_be32(&gur->devdisr);
pordevsr = in_be32(&gur->pordevsr);
@@ -238,8 +239,7 @@ void pci_init_board(void)
pci_agent = fsl_setup_hose(&pci1_hose, pci_info.regs);
printf("PCI1: %d bit, %s MHz, %s, %s, %s (base address %lx)\n",
(pci_32) ? 32 : 64,
- (pci_speed == 33333000) ? "33" :
- (pci_speed == 66666000) ? "66" : "unknown",
+ strmhz(buf, pci_speed),
pci_clk_sel ? "sync" : "async",
pci_agent ? "agent" : "host",
pci_arb ? "arbiter" : "external-arbiter",