summaryrefslogtreecommitdiff
path: root/board/mpc8641hpcn/pixis.c
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2006-08-22 12:25:27 -0500
committerJon Loeliger <jdl@freescale.com>2006-08-22 12:25:27 -0500
commit80e955c7dd98f4b4fd23c2113caf75ed2b77b5b3 (patch)
treef4ab78e41f2875c81d3b6b0eeb8039f952ebd4fd /board/mpc8641hpcn/pixis.c
parentffff3ae56f5842ca3679e4ce7922b819a87aad9f (diff)
downloadu-boot-imx-80e955c7dd98f4b4fd23c2113caf75ed2b77b5b3.zip
u-boot-imx-80e955c7dd98f4b4fd23c2113caf75ed2b77b5b3.tar.gz
u-boot-imx-80e955c7dd98f4b4fd23c2113caf75ed2b77b5b3.tar.bz2
General indent and whitespace cleanups.
Diffstat (limited to 'board/mpc8641hpcn/pixis.c')
-rw-r--r--board/mpc8641hpcn/pixis.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/board/mpc8641hpcn/pixis.c b/board/mpc8641hpcn/pixis.c
index f226b3e..964a17c 100644
--- a/board/mpc8641hpcn/pixis.c
+++ b/board/mpc8641hpcn/pixis.c
@@ -92,13 +92,13 @@ int set_px_sysclk(ulong sysclk)
return 0;
}
- vclkh = (sysclk_s << 5) | sysclk_r ;
+ vclkh = (sysclk_s << 5) | sysclk_r;
vclkl = sysclk_v;
out8(PIXIS_BASE + PIXIS_VCLKH, vclkh);
out8(PIXIS_BASE + PIXIS_VCLKL, vclkl);
- out8(PIXIS_BASE + PIXIS_AUX,sysclk_aux);
+ out8(PIXIS_BASE + PIXIS_AUX, sysclk_aux);
return 1;
}
@@ -118,7 +118,7 @@ int set_px_mpxpll(ulong mpxpll)
case 12:
case 14:
case 16:
- val = (u8)mpxpll;
+ val = (u8) mpxpll;
break;
default:
printf("Unsupported MPXPLL ratio.\n");
@@ -245,19 +245,16 @@ int disable_watchdog(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
/* setting VCTL[WDEN] to 0 to disable watch dog */
tmp = in8(PIXIS_BASE + PIXIS_VCTL);
- tmp &= ~ 0x08;
+ tmp &= ~0x08;
out8(PIXIS_BASE + PIXIS_VCTL, tmp);
return 0;
}
-
U_BOOT_CMD(
- diswd, 1, 0, disable_watchdog,
- "diswd - Disable watchdog timer \n",
- NULL
-);
-
+ diswd, 1, 0, disable_watchdog,
+ "diswd - Disable watchdog timer \n",
+ NULL);
/*
* This function takes the non-integral cpu:mpx pll ratio
@@ -295,11 +292,11 @@ ulong strfractoint(uchar *strptr)
if (no_dec) {
/* Currently needed only for single digit corepll ratios */
- mulconst=10;
+ mulconst = 10;
decval = 0;
} else {
j = 0;
- i++; /* Skipping the decimal point */
+ i++; /* Skipping the decimal point */
while ((strptr[i] > 47) && (strptr[i] < 58)) {
decarr[j] = strptr[i];
i++;