summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8541cds/mpc8541cds.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/mpc8541cds/mpc8541cds.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/mpc8541cds/mpc8541cds.c')
-rw-r--r--board/freescale/mpc8541cds/mpc8541cds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/freescale/mpc8541cds/mpc8541cds.c b/board/freescale/mpc8541cds/mpc8541cds.c
index 0d3752d..d127137 100644
--- a/board/freescale/mpc8541cds/mpc8541cds.c
+++ b/board/freescale/mpc8541cds/mpc8541cds.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 Freescale Semiconductor.
+ * Copyright 2004, 2011 Freescale Semiconductor.
*
* (C) Copyright 2002 Scott McNutt <smcnutt@artesyncp.com>
*
@@ -200,6 +200,7 @@ const iop_conf_t iop_conf_tab[4][32] = {
int checkboard (void)
{
volatile ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
+ char buf[32];
/* PCI slot in USER bits CSR[6:7] by convention. */
uint pci_slot = get_pci_slot ();
@@ -222,8 +223,7 @@ int checkboard (void)
printf("PCI1: %d bit, %s MHz, %s\n",
(pci1_32) ? 32 : 64,
- (pci1_speed == 33000000) ? "33" :
- (pci1_speed == 66000000) ? "66" : "unknown",
+ strmhz(buf, pci1_speed),
pci1_clk_sel ? "sync" : "async");
if (pci_dual) {