summaryrefslogtreecommitdiff
path: root/arch/avr32/cpu/cpu.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:49:10 +0000
committerTom Rini <trini@ti.com>2013-02-04 09:05:45 -0500
commit3d0f8c8f8072a3f2844fc54bfaf2a42026903755 (patch)
treee2457b1cde899c21cdd41d3ca46fbe9763f7d250 /arch/avr32/cpu/cpu.c
parent1c865d58974cf3a45f87e65c3f348b5b9e398990 (diff)
downloadu-boot-imx-3d0f8c8f8072a3f2844fc54bfaf2a42026903755.zip
u-boot-imx-3d0f8c8f8072a3f2844fc54bfaf2a42026903755.tar.gz
u-boot-imx-3d0f8c8f8072a3f2844fc54bfaf2a42026903755.tar.bz2
avr32: Move cpu_hz to arch_global_data
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/avr32/cpu/cpu.c')
-rw-r--r--arch/avr32/cpu/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/avr32/cpu/cpu.c b/arch/avr32/cpu/cpu.c
index 7907837..9d82ca4 100644
--- a/arch/avr32/cpu/cpu.c
+++ b/arch/avr32/cpu/cpu.c
@@ -47,7 +47,7 @@ int cpu_init(void)
{
extern void _evba(void);
- gd->cpu_hz = CONFIG_SYS_OSC0_HZ;
+ gd->arch.cpu_hz = CONFIG_SYS_OSC0_HZ;
/* TODO: Move somewhere else, but needs to be run before we
* increase the clock frequency. */
@@ -59,7 +59,7 @@ int cpu_init(void)
clk_init();
/* Update the CPU speed according to the PLL configuration */
- gd->cpu_hz = get_cpu_clk_rate();
+ gd->arch.cpu_hz = get_cpu_clk_rate();
/* Set up the exception handler table and enable exceptions */
sysreg_write(EVBA, (unsigned long)&_evba);