diff options
author | stany MARCEL <stany.marcel@novasys-ingenierie.com> | 2011-10-14 04:38:06 +0000 |
---|---|---|
committer | jason <jason@jason-ThinkPad-T61.(none)> | 2011-10-19 00:14:16 +0800 |
commit | 606667d252c09d1c4d5d8b12186bee634ad63b55 (patch) | |
tree | e853e0937a7b6e62a409f679fabb71561e4341c6 /board | |
parent | 327474f854a33b5b7a11c374b0446d1d40d9f673 (diff) | |
download | u-boot-imx-606667d252c09d1c4d5d8b12186bee634ad63b55.zip u-boot-imx-606667d252c09d1c4d5d8b12186bee634ad63b55.tar.gz u-boot-imx-606667d252c09d1c4d5d8b12186bee634ad63b55.tar.bz2 |
ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined
A temp variable was used but not declared, with CONFIG_SYS_DRAMSZ1
defined. This variable is now declared in the functione when needed.
Signed-off-by: Stany MARCEL <stany.marcel@novasys-ingenierie.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/m548xevb/m548xevb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/freescale/m548xevb/m548xevb.c b/board/freescale/m548xevb/m548xevb.c index 4a2a5c7..fbc0888 100644 --- a/board/freescale/m548xevb/m548xevb.c +++ b/board/freescale/m548xevb/m548xevb.c @@ -43,6 +43,9 @@ phys_size_t initdram(int board_type) volatile siu_t *siu = (siu_t *) (MMAP_SIU); volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM); u32 dramsize, i; +#ifdef CONFIG_SYS_DRAMSZ1 + u32 temp; +#endif siu->drv = CONFIG_SYS_SDRAM_DRVSTRENGTH; |