exynos: spl: initialize cache for as much memory as there is

The existing code uses fixed memory amount when deciding big the
dcache address space should be. But some devices have 4GB and some
have 2GB of DRAM.

Determine amount of memory at run time to make sure dcache is enabled
for the entire installed DRAM. To make it work on 5250 platforms add a
function returning fixed amount of memory (which is the case for
5250).

BRANCH=none
BUG=chrome-os-partner:25573

TEST=manual
  . both pit and pi come up all the way up to the Linux loginn screen.
  . verified that daisy builds fine

Change-Id: I6342c1aa67c1a44b571130d9171a8f8479601e9c
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/191163
2 files changed