diff options
author | Stefan Roese <sr@denx.de> | 2007-06-04 08:17:29 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-06-04 08:17:29 +0200 |
commit | d7d5204ce2e0985ff2dfdf3a6b5b6a526cdb1c1e (patch) | |
tree | c71da8013140d7bd5024dcde5f9cd075d4c012e2 /board/amcc/sequoia/sequoia.c | |
parent | 7ebb4479b07ff294eb4d76e420753a0349f7c93b (diff) | |
parent | 19bf91f9628f80a55d4f171df71041574882b3d6 (diff) | |
download | u-boot-imx-d7d5204ce2e0985ff2dfdf3a6b5b6a526cdb1c1e.zip u-boot-imx-d7d5204ce2e0985ff2dfdf3a6b5b6a526cdb1c1e.tar.gz u-boot-imx-d7d5204ce2e0985ff2dfdf3a6b5b6a526cdb1c1e.tar.bz2 |
Merge with git://www.denx.de/git/u-boot.git
Diffstat (limited to 'board/amcc/sequoia/sequoia.c')
-rw-r--r-- | board/amcc/sequoia/sequoia.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/board/amcc/sequoia/sequoia.c b/board/amcc/sequoia/sequoia.c index 930fa71..8704014 100644 --- a/board/amcc/sequoia/sequoia.c +++ b/board/amcc/sequoia/sequoia.c @@ -132,6 +132,12 @@ int board_early_init_f(void) (0x80000000 >> (28 + CFG_NAND_CS)); mtsdr(SDR0_CUST0, sdr0_cust0); + /* Update EBC speed after booting from i2c bootstrap settings + * on newer boards with 33.333 MHZ Clocks + */ + if (in8(CFG_BCSR_BASE + 3) & 0x80) + mtcpr(0xe0, 0x02000000); + return 0; } @@ -363,8 +369,8 @@ int checkboard(void) printf("Board: Rainier - AMCC PPC440GRx Evaluation Board"); #endif - rev = *(u8 *)(CFG_BCSR_BASE + 0); - val = *(u8 *)(CFG_BCSR_BASE + 5) & 0x01; + rev = in8(CFG_BCSR_BASE + 0); + val = in8(CFG_BCSR_BASE + 5) & 0x01; printf(", Rev. %X, PCI=%d MHz", rev, val ? 66 : 33); if (s != NULL) { |