summaryrefslogtreecommitdiff
path: root/cpu/mpc86xx/speed.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2006-08-22 12:06:18 -0500
committerJon Loeliger <jdl@freescale.com>2006-08-22 12:06:18 -0500
commitffff3ae56f5842ca3679e4ce7922b819a87aad9f (patch)
tree21066b4a4b67a6610ad694f4200252a965d7e790 /cpu/mpc86xx/speed.c
parent41a0e8b304d3ff55fe27a230507aac79684016ac (diff)
downloadu-boot-imx-ffff3ae56f5842ca3679e4ce7922b819a87aad9f.zip
u-boot-imx-ffff3ae56f5842ca3679e4ce7922b819a87aad9f.tar.gz
u-boot-imx-ffff3ae56f5842ca3679e4ce7922b819a87aad9f.tar.bz2
General indent and whitespace cleanups.
Diffstat (limited to 'cpu/mpc86xx/speed.c')
-rw-r--r--cpu/mpc86xx/speed.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpu/mpc86xx/speed.c b/cpu/mpc86xx/speed.c
index e130705..312ca12 100644
--- a/cpu/mpc86xx/speed.c
+++ b/cpu/mpc86xx/speed.c
@@ -30,16 +30,16 @@
#include <asm/processor.h>
-void get_sys_info (sys_info_t *sysInfo)
+void get_sys_info(sys_info_t *sysInfo)
{
- volatile immap_t *immap = (immap_t *)CFG_IMMR;
+ volatile immap_t *immap = (immap_t *) CFG_IMMR;
volatile ccsr_gur_t *gur = &immap->im_gur;
uint plat_ratio, e600_ratio;
plat_ratio = (gur->porpllsr) & 0x0000003e;
plat_ratio >>= 1;
- switch(plat_ratio) {
+ switch (plat_ratio) {
case 0x0:
sysInfo->freqSystemBus = 16 * CONFIG_SYS_CLK_FREQ;
break;
@@ -56,7 +56,7 @@ void get_sys_info (sys_info_t *sysInfo)
sysInfo->freqSystemBus = plat_ratio * CONFIG_SYS_CLK_FREQ;
break;
default:
- sysInfo->freqSystemBus = 0;
+ sysInfo->freqSystemBus = 0;
break;
}
@@ -68,19 +68,19 @@ void get_sys_info (sys_info_t *sysInfo)
sysInfo->freqProcessor = 2 * sysInfo->freqSystemBus;
break;
case 0x19:
- sysInfo->freqProcessor = 5 * sysInfo->freqSystemBus/2;
+ sysInfo->freqProcessor = 5 * sysInfo->freqSystemBus / 2;
break;
case 0x20:
sysInfo->freqProcessor = 3 * sysInfo->freqSystemBus;
break;
case 0x39:
- sysInfo->freqProcessor = 7 * sysInfo->freqSystemBus/2;
+ sysInfo->freqProcessor = 7 * sysInfo->freqSystemBus / 2;
break;
case 0x28:
sysInfo->freqProcessor = 4 * sysInfo->freqSystemBus;
break;
case 0x1d:
- sysInfo->freqProcessor = 9 * sysInfo->freqSystemBus/2;
+ sysInfo->freqProcessor = 9 * sysInfo->freqSystemBus / 2;
break;
default:
sysInfo->freqProcessor = e600_ratio + sysInfo->freqSystemBus;