[U-Boot] [PATCH 3/5] bx50v3: Use imx_ddr_size() for calculating the DDR size

Stefano Babic sbabic at denx.de
Thu Jul 28 12:44:51 CEST 2016


On 23/07/2016 18:23, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at nxp.com>
> 
> imx_ddr_size() can be used to calculate the DDR size in runtime.
> 
> By using this function we no longer need to define PHYS_SDRAM_SIZE.
> 
> Cc: Martin Donnelly <martin.donnelly at ge.com>
> Signed-off-by: Fabio Estevam <fabio.estevam at nxp.com>
> ---
>  board/ge/bx50v3/bx50v3.c    | 2 +-
>  include/configs/ge_bx50v3.h | 2 --
>  2 files changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
> index d45ed44..e9729f8 100644
> --- a/board/ge/bx50v3/bx50v3.c
> +++ b/board/ge/bx50v3/bx50v3.c
> @@ -60,7 +60,7 @@ DECLARE_GLOBAL_DATA_PTR;
>  
>  int dram_init(void)
>  {
> -	gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
> +	gd->ram_size = imx_ddr_size();
>  
>  	return 0;
>  }
> diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h
> index 4de2460..7a54546 100644
> --- a/include/configs/ge_bx50v3.h
> +++ b/include/configs/ge_bx50v3.h
> @@ -32,8 +32,6 @@
>  #define CONFIG_MXC_UART_BASE	UART3_BASE
>  #define CONFIG_CONSOLE_DEV	"ttymxc2"
>  
> -#define PHYS_SDRAM_SIZE		(2u * 1024 * 1024 * 1024)
> -
>  #define CONFIG_SUPPORT_EMMC_BOOT
>  
>  
> 

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list