X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=board%2Ffads%2Ffads.c;h=317d279603a017b2c54a8723a7170e35afa18d36;hb=721d0b0026971924605701a0e409ded91e093caa;hp=9f7faaf47d7cef1f202fa7e6ce2347426e2dcd96;hpb=8ed44d91c8122d00368523b0b746691c895d3b3c;p=u-boot diff --git a/board/fads/fads.c b/board/fads/fads.c index 9f7faaf47d..317d279603 100644 --- a/board/fads/fads.c +++ b/board/fads/fads.c @@ -603,15 +603,17 @@ static int initsdram(uint base, uint *noMbytes) phys_size_t initdram (int board_type) { uint sdramsz = 0; /* size of sdram in Mbytes */ - uint base = 0; /* base of dram in bytes */ uint m = 0; /* size of dram in Mbytes */ #ifndef CONFIG_MPC885ADS + uint base = 0; /* base of dram in bytes */ uint k, s; #endif #ifdef CONFIG_FADS if (!initsdram (0x00000000, &sdramsz)) { +#ifndef CONFIG_MPC885ADS base = sdramsz << 20; +#endif printf ("(%u MB SDRAM) ", sdramsz); } #endif