Skip to content
Snippets Groups Projects
Commit 369012e7 authored by Vanessa Maegima's avatar Vanessa Maegima Committed by Stefano Babic
Browse files

mx6qsabreauto: Avoid hardcoded RAM size


Instead of passing the total RAM size via PHYS_SDRAM_SIZE option,
we should better use imx_ddr_size() function, which automatically
determines the RAM size.

Signed-off-by: default avatarVanessa Maegima <vanessa.maegima@nxp.com>
Acked-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
parent 876a25d2
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ DECLARE_GLOBAL_DATA_PTR; ...@@ -64,7 +64,7 @@ DECLARE_GLOBAL_DATA_PTR;
int dram_init(void) int dram_init(void)
{ {
gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE); gd->ram_size = imx_ddr_size();
return 0; return 0;
} }
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
#define CONFIG_MXC_UART_BASE UART4_BASE #define CONFIG_MXC_UART_BASE UART4_BASE
#define CONFIG_CONSOLE_DEV "ttymxc3" #define CONFIG_CONSOLE_DEV "ttymxc3"
#define CONFIG_MMCROOT "/dev/mmcblk0p2" #define CONFIG_MMCROOT "/dev/mmcblk0p2"
#define PHYS_SDRAM_SIZE (2u * 1024 * 1024 * 1024)
/* USB Configs */ /* USB Configs */
#define CONFIG_USB_EHCI #define CONFIG_USB_EHCI
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment