]> git.baikalelectronics.ru Git - uboot.git/commit
ram: sifive: Avoid using hardcoded ram base and size
authorBin Meng <bin.meng@windriver.com>
Mon, 20 Jul 2020 06:06:35 +0000 (23:06 -0700)
committerAndes <uboot@andestech.com>
Fri, 24 Jul 2020 06:56:29 +0000 (14:56 +0800)
commit190a6d47dda5ea6136f473c3ddb376c0f8457470
tree485ffa28131bed87158d66b6533654c168294661
parent3058240abb4cfc930c9bab9c5e373c38a0cd4b5b
ram: sifive: Avoid using hardcoded ram base and size

At present the SiFive FU540 RAM driver uses hard-coded memory base
address and size to initialize the DDR controller. This may not be
true when this driver is used on another board based on FU540.

Update the driver to read the memory information from DT and use
that during the initialization.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Leo Liang <ycliang@andestech.com>
Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
drivers/ram/sifive/fu540_ddr.c