[U-Boot] [PATCH 4/4] iMX6Q/DL:arm2: Add support for i.MX6Q/DL arm2 LPDDR2 boards

Nitin Garg nitin.garg at freescale.com
Thu Sep 4 03:40:18 CEST 2014


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.



More information about the U-Boot mailing list