mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-11 05:02:26 -04:00
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>
This commit is contained in:
parent
327474f854
commit
606667d252
@ -43,6 +43,9 @@ phys_size_t initdram(int board_type)
|
|||||||
volatile siu_t *siu = (siu_t *) (MMAP_SIU);
|
volatile siu_t *siu = (siu_t *) (MMAP_SIU);
|
||||||
volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
|
volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
|
||||||
u32 dramsize, i;
|
u32 dramsize, i;
|
||||||
|
#ifdef CONFIG_SYS_DRAMSZ1
|
||||||
|
u32 temp;
|
||||||
|
#endif
|
||||||
|
|
||||||
siu->drv = CONFIG_SYS_SDRAM_DRVSTRENGTH;
|
siu->drv = CONFIG_SYS_SDRAM_DRVSTRENGTH;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user