summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-08-25 23:45:41 +0200
committerWolfgang Denk <wd@denx.de>2008-08-25 23:45:41 +0200
commita49d10cf027d059ee15c262010a05cdaec0961e1 (patch)
treeac6c10171c0673aae27a956157b2e133ddc79632 /cpu
parentb97a31165ab042543bac38f692cf98575367afc4 (diff)
downloadu-boot-imx-a49d10cf027d059ee15c262010a05cdaec0961e1.zip
u-boot-imx-a49d10cf027d059ee15c262010a05cdaec0961e1.tar.gz
u-boot-imx-a49d10cf027d059ee15c262010a05cdaec0961e1.tar.bz2
Minor coding style cleanup, updte CHANGELOG
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc5xxx/cpu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpu/mpc5xxx/cpu.c b/cpu/mpc5xxx/cpu.c
index d87f42c..0ed2899 100644
--- a/cpu/mpc5xxx/cpu.c
+++ b/cpu/mpc5xxx/cpu.c
@@ -140,18 +140,18 @@ void ft_cpu_setup(void *blob, bd_t *bd)
void bootcount_store (ulong a)
{
- volatile ulong *save_addr = (volatile ulong *)(MPC5XXX_CDM_BRDCRMB);
+ volatile ulong *save_addr = (volatile ulong *) (MPC5XXX_CDM_BRDCRMB);
- *save_addr = (BOOTCOUNT_MAGIC & 0xffff0000) | a;
+ *save_addr = (BOOTCOUNT_MAGIC & 0xffff0000) | a;
}
ulong bootcount_load (void)
{
- volatile ulong *save_addr = (volatile ulong *)(MPC5XXX_CDM_BRDCRMB);
+ volatile ulong *save_addr = (volatile ulong *) (MPC5XXX_CDM_BRDCRMB);
- if ((*save_addr & 0xffff0000) != (BOOTCOUNT_MAGIC & 0xffff0000))
- return 0;
- else
- return (*save_addr & 0x0000ffff);
+ if ((*save_addr & 0xffff0000) != (BOOTCOUNT_MAGIC & 0xffff0000))
+ return 0;
+ else
+ return (*save_addr & 0x0000ffff);
}
#endif /* CONFIG_BOOTCOUNT_LIMIT */