diff options
author | Jon Loeliger <jdl@freescale.com> | 2005-07-23 10:37:35 -0500 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2005-07-23 10:37:35 -0500 |
commit | 9c4c5ae3e10e4f2ca799aacbb74e1f5adb86e0b5 (patch) | |
tree | ce06516d3935e9f3e2dac253a78742c7d3c211df /cpu/mpc85xx/speed.c | |
parent | 2d5df63e4f596fe439405048fd85157cdff079dc (diff) | |
download | u-boot-imx-9c4c5ae3e10e4f2ca799aacbb74e1f5adb86e0b5.zip u-boot-imx-9c4c5ae3e10e4f2ca799aacbb74e1f5adb86e0b5.tar.gz u-boot-imx-9c4c5ae3e10e4f2ca799aacbb74e1f5adb86e0b5.tar.bz2 |
* Patch by Jon Loeliger, Kumar Gala 2005-02-08
- Convert the CPM2 based functionality to use new CONFIG_CPM2
option rather than a myriad of CONFIG_MPC8560-like variants.
Applies to MPC85xx and MPC8260 boards, includes stxgp3 and sbc8560.
Eliminates the CONFIG_MPC8560 option entirely. Distributes the
new CONFIG_CPM2 option to each 8260 board.
Diffstat (limited to 'cpu/mpc85xx/speed.c')
-rw-r--r-- | cpu/mpc85xx/speed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/mpc85xx/speed.c b/cpu/mpc85xx/speed.c index 787f7fa..d736742 100644 --- a/cpu/mpc85xx/speed.c +++ b/cpu/mpc85xx/speed.c @@ -82,7 +82,7 @@ int get_clocks (void) { DECLARE_GLOBAL_DATA_PTR; sys_info_t sys_info; -#if defined(CONFIG_MPC8560) +#if defined(CONFIG_CPM2) volatile immap_t *immap = (immap_t *) CFG_IMMR; uint sccr, dfbrg; @@ -94,7 +94,7 @@ int get_clocks (void) get_sys_info (&sys_info); gd->cpu_clk = sys_info.freqProcessor; gd->bus_clk = sys_info.freqSystemBus; -#if defined(CONFIG_MPC8560) +#if defined(CONFIG_CPM2) gd->vco_out = 2*sys_info.freqSystemBus; gd->cpm_clk = gd->vco_out / 2; gd->scc_clk = gd->vco_out / 4; |