diff options
| author | Simon Glass <sjg@chromium.org> | 2012-12-13 20:48:46 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-02-01 15:42:45 -0500 | 
| commit | 748cd0591a9fe9eb23f20748bcb23035cd5ff517 (patch) | |
| tree | 17b2050dadcc11761f35f42e789995636abc6d40 /arch/powerpc/cpu/mpc85xx/speed.c | |
| parent | 9fb23624a644d9a09f85fc1230b34829005c0021 (diff) | |
| download | olio-uboot-2014.01-748cd0591a9fe9eb23f20748bcb23035cd5ff517.tar.xz olio-uboot-2014.01-748cd0591a9fe9eb23f20748bcb23035cd5ff517.zip | |
ppc: Move clock fields to arch_global_data
Move vco_out, cpm_clk, scc_clk, brg_clk into arch_global_data and tidy
up. Leave pci_clk on its own since this should really depend only on
CONFIG_PCI and not any particular chip type.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/powerpc/cpu/mpc85xx/speed.c')
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/speed.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/arch/powerpc/cpu/mpc85xx/speed.c b/arch/powerpc/cpu/mpc85xx/speed.c index 8a581ef76..c4ca48105 100644 --- a/arch/powerpc/cpu/mpc85xx/speed.c +++ b/arch/powerpc/cpu/mpc85xx/speed.c @@ -435,10 +435,10 @@ int get_clocks (void)  #endif /* defined(CONFIG_FSL_ESDHC) */  #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; -	gd->arch.brg_clk = gd->vco_out / (1 << (2 * (dfbrg + 1))); +	gd->arch.vco_out = 2*sys_info.freqSystemBus; +	gd->arch.cpm_clk = gd->arch.vco_out / 2; +	gd->arch.scc_clk = gd->arch.vco_out / 4; +	gd->arch.brg_clk = gd->arch.vco_out / (1 << (2 * (dfbrg + 1)));  #endif  	if(gd->cpu_clk != 0) return (0); |