]> git.baikalelectronics.ru Git - uboot.git/commit
arm: dart6ul: fix ddr size macro
authorMarc Ferland <ferlandm@amotus.ca>
Mon, 4 Jan 2021 19:07:53 +0000 (14:07 -0500)
committerStefano Babic <sbabic@denx.de>
Sat, 23 Jan 2021 12:47:50 +0000 (13:47 +0100)
commitf1f0897e921a1646cc1878a70e6129c73e28dd32
tree130ca4583aa9dc1879c3401cfd78373fe8860992
parentd1b26aa142c88ff9e664c753c09333639149fb23
arm: dart6ul: fix ddr size macro

The previous macro was off by one bit and so we were getting a ddr
size which was twice the real size. This commit refactors the macro so
it returns the right size in _bytes_ and modifies the printf call so the
size is still printed in MiB.

Signed-off-by: Marc Ferland <ferlandm@amotus.ca>
board/variscite/dart_6ul/dart_6ul.c