diff options
author | Alison Wang <b18965@freescale.com> | 2012-03-26 21:49:04 +0000 |
---|---|---|
committer | jason <jason@jason-ThinkPad-T61.(none)> | 2012-09-20 20:39:26 +0800 |
commit | 32dbaafa5a1fda97dbf99e6627309e7570dc14ca (patch) | |
tree | 9ebd26f798f8b24dcd6c8af1967605daec0246eb /board/freescale/m5272c3/m5272c3.c | |
parent | 849fc424713d176f90af0b05f6161bc3803ca887 (diff) | |
download | u-boot-32dbaafa5a1fda97dbf99e6627309e7570dc14ca.zip u-boot-32dbaafa5a1fda97dbf99e6627309e7570dc14ca.tar.gz u-boot-32dbaafa5a1fda97dbf99e6627309e7570dc14ca.tar.bz2 |
ColdFire: Clean up checkpatch warnings for MCF52x2
Signed-off-by: Alison Wang <b18965@freescale.com>
Diffstat (limited to 'board/freescale/m5272c3/m5272c3.c')
-rw-r--r-- | board/freescale/m5272c3/m5272c3.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/freescale/m5272c3/m5272c3.c b/board/freescale/m5272c3/m5272c3.c index 902ca3a..c3160ce 100644 --- a/board/freescale/m5272c3/m5272c3.c +++ b/board/freescale/m5272c3/m5272c3.c @@ -2,6 +2,8 @@ * (C) Copyright 2000-2003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * + * Copyright (C) 2012 Freescale Semiconductor, Inc. All Rights Reserved. + * * See file CREDITS for list of people who contributed to this * project. * @@ -23,6 +25,7 @@ #include <common.h> #include <asm/immap.h> +#include <asm/io.h> int checkboard (void) { @@ -32,10 +35,10 @@ int checkboard (void) { }; phys_size_t initdram (int board_type) { - volatile sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM); + sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM); - sdp->sdram_sdtr = 0xf539; - sdp->sdram_sdcr = 0x4211; + out_be16(&sdp->sdram_sdtr, 0xf539); + out_be16(&sdp->sdram_sdcr, 0x4211); /* Dummy write to start SDRAM */ *((volatile unsigned long *)0) = 0; |