Commit 47a3bb5d authored by Thomas Schäfer's avatar Thomas Schäfer
Browse files

arm: imx8m: fix build error when PHYS_SDRAM_2 not defined

- If total memory amount is 3 GiB or less, PHYS_SDRAM_2 memory
  range is not used. Enable setup of memory range only if
  PHYS_SDRAM_2 is defined.
Signed-off-by: Thomas Schäfer's avatarThomas Schaefer <>
parent 949a0855
......@@ -266,7 +266,9 @@ int dram_init_banksize(void)
puts("CONFIG_NR_DRAM_BANKS is too small for SDRAM_2\n");
return -1;
#ifdef PHYS_SDRAM_2
gd->bd->bi_dram[bank].start = PHYS_SDRAM_2;
gd->bd->bi_dram[bank].size = PHYS_SDRAM_2_SIZE;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment