riscv: ax25-ae350: Use generic memory size setup
authorRick Chen <rick@andestech.com>
Thu, 14 Nov 2019 05:52:23 +0000 (13:52 +0800)
committerAndes <uboot@andestech.com>
Tue, 10 Dec 2019 00:23:10 +0000 (08:23 +0800)
commit7e24518c904d9cab8185a1248a24e86c4ceb19ae
treed5ab0b034288ff6acda40b47c2ac5ca6d8c1d755
parentcd61e86e6d2a86b3affd90eeae3f5c97fe990b04
riscv: ax25-ae350: Use generic memory size setup

To get memory size from device tree instead of
get_ram_size(). This can avoid memory access fault
in U-Boot proper after PMP configurations in OpenSBI.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: KC Lin <kclin@andestech.com>
Cc: Alan Kao <alankao@andestech.com>
board/AndesTech/ax25-ae350/ax25-ae350.c