diff options
author | Simon Glass <sjg@chromium.org> | 2012-12-13 20:48:44 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-02-01 15:42:45 -0500 |
commit | 1206c18403ff25814673a4dbfa071ae06bbefaef (patch) | |
tree | a4a38c741e9b7a2cb98566785093c3984ec15454 /arch/powerpc/cpu/mpc8xx | |
parent | 6cb49c13f687fb8c1e2936466edf154f4132abb1 (diff) | |
download | u-boot-imx-1206c18403ff25814673a4dbfa071ae06bbefaef.zip u-boot-imx-1206c18403ff25814673a4dbfa071ae06bbefaef.tar.gz u-boot-imx-1206c18403ff25814673a4dbfa071ae06bbefaef.tar.bz2 |
ppc: Move brg_clk 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/powerpc/cpu/mpc8xx')
-rw-r--r-- | arch/powerpc/cpu/mpc8xx/fdt.c | 2 | ||||
-rw-r--r-- | arch/powerpc/cpu/mpc8xx/speed.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc8xx/fdt.c b/arch/powerpc/cpu/mpc8xx/fdt.c index 7130983..7edd7e4 100644 --- a/arch/powerpc/cpu/mpc8xx/fdt.c +++ b/arch/powerpc/cpu/mpc8xx/fdt.c @@ -37,7 +37,7 @@ void ft_cpu_setup(void *blob, bd_t *bd) do_fixup_by_prop_u32(blob, "device_type", "cpu", 4, "clock-frequency", bd->bi_intfreq, 1); do_fixup_by_compat_u32(blob, "fsl,cpm-brg", "clock-frequency", - gd->brg_clk, 1); + gd->arch.brg_clk, 1); /* Fixup ethernet MAC addresses */ fdt_fixup_ethernet(blob); diff --git a/arch/powerpc/cpu/mpc8xx/speed.c b/arch/powerpc/cpu/mpc8xx/speed.c index 6e13e5d..091b49f 100644 --- a/arch/powerpc/cpu/mpc8xx/speed.c +++ b/arch/powerpc/cpu/mpc8xx/speed.c @@ -192,7 +192,7 @@ void get_brgclk(uint sccr) divider = 64; break; } - gd->brg_clk = gd->cpu_clk/divider; + gd->arch.brg_clk = gd->cpu_clk/divider; } #if !defined(CONFIG_8xx_CPUCLK_DEFAULT) |