board: dragonboard410c: Fix PHYS_SDRAM_1_SIZE
authorStephan Gerhold <stephan@gerhold.net>
Wed, 14 Jul 2021 08:56:24 +0000 (10:56 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Jul 2021 22:53:45 +0000 (18:53 -0400)
commit1d667227ea512537b8453abeb49abbf19a1a18e8
tree790ebb5aa40dd24a32f2d2435c3d6804fbd252f1
parent0204d1b56b2fa681d9f47c2fed0c626d48429151
board: dragonboard410c: Fix PHYS_SDRAM_1_SIZE

The DragonBoard 410c has proprietary firmware from Qualcomm that
reserves 8 MiB of memory for tz/smem/hyp/rmtfs/rfsa from 0x86000000
to 0x86800000. I'm not aware of any ATF (ARM Trusted Firmware) port
for DB410c that would reserve 30 MiB of memory at the end of RAM.
I suspect the comment might have been copied from hikey.h which has
a very similar comment (and which actually does have an ATF port).

Reducing the memory size just prevents U-Boot from using the end of
the RAM, not the reserved region inbetween. Therefore we might as well
display the correct DRAM size (1 GiB) instead of strange 986 MiB.

Fixes: 626f048bbc14 ("board: Add Qualcomm Dragonboard 410C support")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
include/configs/dragonboard410c.h