Hi Ye, On 09/03/2014 03:34 AM, Ye.Li wrote: > diff --git a/board/freescale/mx6qarm2/mx6qarm2.c > b/board/freescale/mx6qarm2/mx6qarm2.c > index f2e577d..090f3a8 100644 > --- a/board/freescale/mx6qarm2/mx6qarm2.c > +++ b/board/freescale/mx6qarm2/mx6qarm2.c > @@ -32,7 +32,11 @@ DECLARE_GLOBAL_DATA_PTR; > > int dram_init(void) > { > - gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE); > +#ifdef CONFIG_DDR_32BIT > + gd->ram_size = (phys_size_t)CONFIG_DDR_MB * 512 * 1024; > +#else > + gd->ram_size = (phys_size_t)CONFIG_DDR_MB * 1024 * 1024; > +#endif > > return 0; > }
I thought this (CONFIG_DDR_32BIT) is true only for mx6dlarm2 DDR3 board. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot