diff options
author | Stefan Roese <sr@denx.de> | 2007-10-15 11:29:33 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-10-15 11:29:33 +0200 |
commit | 5a5958b7de70ae99f0e7cbd5c97ec1346e051587 (patch) | |
tree | 3f3830d2dfc19992bc1631c090d2a46d89cc989e /board/amcc/sequoia/sequoia.c | |
parent | f8bf90461d9bad2e6fed31fcebaf235f60dd6763 (diff) | |
download | u-boot-imx-5a5958b7de70ae99f0e7cbd5c97ec1346e051587.zip u-boot-imx-5a5958b7de70ae99f0e7cbd5c97ec1346e051587.tar.gz u-boot-imx-5a5958b7de70ae99f0e7cbd5c97ec1346e051587.tar.bz2 |
ppc4xx: Fix incorrect 33/66MHz PCI clock log-message on Sequoia & Yosemite
The BCSR status bit for the 66MHz PCI operation was correctly
addressed (MSB/LSB problem). Now the correct currently setup
PCI frequency is displayed upon bootup.
This patch also fixes this problem on Rainier & Yellowstone, since these
boards use the same souce code as Sequoia & Yosemite do.
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/amcc/sequoia/sequoia.c')
-rw-r--r-- | board/amcc/sequoia/sequoia.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/board/amcc/sequoia/sequoia.c b/board/amcc/sequoia/sequoia.c index f823117..4e47ab3 100644 --- a/board/amcc/sequoia/sequoia.c +++ b/board/amcc/sequoia/sequoia.c @@ -1,5 +1,5 @@ /* - * (C) Copyright 2006 + * (C) Copyright 2006-2007 * Stefan Roese, DENX Software Engineering, sr@denx.de. * * (C) Copyright 2006 @@ -24,6 +24,7 @@ #include <common.h> #include <asm/processor.h> +#include <asm/io.h> #include <ppc440.h> DECLARE_GLOBAL_DATA_PTR; @@ -362,8 +363,8 @@ int checkboard(void) printf("Board: Rainier - AMCC PPC440GRx Evaluation Board"); #endif - rev = in8(CFG_BCSR_BASE + 0); - val = in8(CFG_BCSR_BASE + 5) & 0x01; + rev = in_8((void *)(CFG_BCSR_BASE + 0)); + val = in_8((void *)(CFG_BCSR_BASE + 5)) & CFG_BCSR5_PCI66EN; printf(", Rev. %X, PCI=%d MHz", rev, val ? 66 : 33); if (s != NULL) { |