diff options
author | wdenk <wdenk> | 2004-07-01 21:40:08 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-07-01 21:40:08 +0000 |
commit | e55ca7e2624988f82d6f77ddab54246621260c8b (patch) | |
tree | 4ad4972b23b77b712d1cc0d4894dadad17a811c9 /cpu | |
parent | 93f6a6771ba04b217e4c8bbca9196fd16e364479 (diff) | |
download | u-boot-e55ca7e2624988f82d6f77ddab54246621260c8b.tar.gz u-boot-e55ca7e2624988f82d6f77ddab54246621260c8b.tar.xz u-boot-e55ca7e2624988f82d6f77ddab54246621260c8b.zip |
Patch by Andrea Marson, 11 Jun 2004:
Update for PPChameleon board:
- support for SysClk @ 25MHz
- support for Silicon Motion SM712 VGA controller
- some clean ups
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ppc4xx/speed.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpu/ppc4xx/speed.c b/cpu/ppc4xx/speed.c index f8f88ff45b..be0de0c32a 100644 --- a/cpu/ppc4xx/speed.c +++ b/cpu/ppc4xx/speed.c @@ -383,8 +383,13 @@ void get_sys_info (PPC405_SYS_INFO * sysInfo) */ pllmr0_ccdv = ((pllmr0 & PLLMR0_CPU_DIV_MASK) >> 20) + 1; if (pllmr1 & PLLMR1_SSCS_MASK) { - sysInfo->freqProcessor = (CONFIG_SYS_CLK_FREQ * sysInfo->pllFbkDiv) - / pllmr0_ccdv; + /* + * This is true if FWDVA == FWDVB: + * sysInfo->freqProcessor = (CONFIG_SYS_CLK_FREQ * sysInfo->pllFbkDiv) + * / pllmr0_ccdv; + */ + sysInfo->freqProcessor = (CONFIG_SYS_CLK_FREQ * sysInfo->pllFbkDiv * sysInfo->pllFwdDivB) + / sysInfo->pllFwdDiv / pllmr0_ccdv; } else { sysInfo->freqProcessor = CONFIG_SYS_CLK_FREQ / pllmr0_ccdv; } |