]> git.sur5r.net Git - u-boot/commit
rockchip: rk3188: Decode the actual amount of ram
authorHeiko Stübner <heiko@sntech.de>
Mon, 20 Mar 2017 11:40:30 +0000 (12:40 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Apr 2017 02:01:57 +0000 (20:01 -0600)
commit78959d4cbf429ac41f2903c87cbdf00852abb877
treeb56c40cd3e6363af180caefe8d4cdb9d965f2e9e
parent3408509f6f71cf5c46c64a34059bf88fdb83e670
rockchip: rk3188: Decode the actual amount of ram

There was still a static ram value set in the rk3188-board from the
time where we didn't have actual sdram init code.
Now the sdram init leaves the ram information in SYS_REG2 and we can
decode it similarly to the rk3288.

Right now we have two duplicates of that code, which is still ok and
doesn't really count as common code yet, but if we get a third copy
at some point from a newer soc, we should think about moving that to
a more general position.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/rk3188-board.c