]> git.dujemihanovic.xyz Git - u-boot.git/commit
ddr: altera: Stratix10: Add multi-banks DRAM size check
authorLey Foon Tan <ley.foon.tan@intel.com>
Thu, 21 Mar 2019 17:24:01 +0000 (01:24 +0800)
committerMarek Vasut <marex@denx.de>
Wed, 17 Apr 2019 20:20:17 +0000 (22:20 +0200)
commit6cd7134e7309a53f015a402e52e5863f29e366fd
tree826c653c4a9efe0076dca4f88fc5217ad8413afc
parentb6f7ee5d1f980ffa63e22749e2deae6caa57227e
ddr: altera: Stratix10: Add multi-banks DRAM size check

Stratix 10 maps dram from 0 to 128GB.  There is a 2GB hole
in the memory for peripherals and other IO from 2GB to 4GB.
However the dram controller ignores upper address bits for
smaller dram configurations.  Example: a 4GB dram
maps to multiple locations, every 4GB on the address.

Signed-off-by: Dalon Westergreen <dalon.westergreen@intel.com>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
drivers/ddr/altera/sdram_s10.c