[U-Boot] [PATCH 2/9] powerpc/mpc85xxcds: Fix PCI speed
Zhao Chenhui
chenhui.zhao at freescale.com
Tue Sep 13 09:15:24 CEST 2011
From: chenhui zhao <chenhui.zhao at freescale.com>
Use 33333333Hz for 33MHz, 66666666Hz for 66MHz.
Signed-off-by: Ebony Zhu <ebony.zhu at freescale.com>
Signed-off-by: Zhao Chenhui <chenhui.zhao at freescale.com>
---
board/freescale/common/cadmus.c | 8 ++++----
board/freescale/mpc8541cds/mpc8541cds.c | 6 +++---
board/freescale/mpc8548cds/mpc8548cds.c | 4 ++--
board/freescale/mpc8555cds/mpc8555cds.c | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/board/freescale/common/cadmus.c b/board/freescale/common/cadmus.c
index db54bc4..50b6e9f 100644
--- a/board/freescale/common/cadmus.c
+++ b/board/freescale/common/cadmus.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 Freescale Semiconductor.
+ * Copyright 2004, 2011 Freescale Semiconductor.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -61,12 +61,12 @@ get_clock_freq(void)
uint pci1_speed = (cadmus->cm_pci >> 2) & 0x3; /* PSPEED in [4:5] */
if (pci1_speed == 0) {
- return 33000000;
+ return 33333333;
} else if (pci1_speed == 1) {
- return 66000000;
+ return 66666666;
} else {
/* Really, unknown. Be safe? */
- return 33000000;
+ return 33333333;
}
}
diff --git a/board/freescale/mpc8541cds/mpc8541cds.c b/board/freescale/mpc8541cds/mpc8541cds.c
index 0d3752d..a314f5c 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 at artesyncp.com>
*
@@ -222,8 +222,8 @@ int checkboard (void)
printf("PCI1: %d bit, %s MHz, %s\n",
(pci1_32) ? 32 : 64,
- (pci1_speed == 33000000) ? "33" :
- (pci1_speed == 66000000) ? "66" : "unknown",
+ (pci1_speed == 33333333) ? "33" :
+ (pci1_speed == 66666666) ? "66" : "unknown",
pci1_clk_sel ? "sync" : "async");
if (pci_dual) {
diff --git a/board/freescale/mpc8548cds/mpc8548cds.c b/board/freescale/mpc8548cds/mpc8548cds.c
index 8ab9752..d9f79b9 100644
--- a/board/freescale/mpc8548cds/mpc8548cds.c
+++ b/board/freescale/mpc8548cds/mpc8548cds.c
@@ -238,8 +238,8 @@ 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",
+ (pci_speed == 33333333) ? "33" :
+ (pci_speed == 66666666) ? "66" : "unknown",
pci_clk_sel ? "sync" : "async",
pci_agent ? "agent" : "host",
pci_arb ? "arbiter" : "external-arbiter",
diff --git a/board/freescale/mpc8555cds/mpc8555cds.c b/board/freescale/mpc8555cds/mpc8555cds.c
index 60d1758..4dda331 100644
--- a/board/freescale/mpc8555cds/mpc8555cds.c
+++ b/board/freescale/mpc8555cds/mpc8555cds.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 Freescale Semiconductor.
+ * Copyright 2004, 2011 Freescale Semiconductor.
*
* See file CREDITS for list of people who contributed to this
* project.
@@ -220,8 +220,8 @@ int checkboard (void)
printf("PCI1: %d bit, %s MHz, %s\n",
(pci1_32) ? 32 : 64,
- (pci1_speed == 33000000) ? "33" :
- (pci1_speed == 66000000) ? "66" : "unknown",
+ (pci1_speed == 33333333) ? "33" :
+ (pci1_speed == 66666666) ? "66" : "unknown",
pci1_clk_sel ? "sync" : "async");
if (pci_dual) {
--
1.6.4.1
More information about the U-Boot
mailing list