rk3288: Dig up two more KB of SRAM from under the couch cushions
commit60828b7fa9ad888aee0c7dfff17b5b6a507f2469
authorJulius Werner <jwerner@chromium.org>
Tue, 7 Aug 2018 22:06:24 +0000 (7 15:06 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 9 Aug 2018 08:46:16 +0000 (9 08:46 +0000)
tree51a406bce7104d268354d2da235c8b41bed41140
parent79ab843edf622d861cb470ae2b610df9c0ca36f1
rk3288: Dig up two more KB of SRAM from under the couch cushions

RK3288 has always been notoriously low on SRAM, to the point where its
boards have less than 100 bytes left in both their bootblock/verstage
sections. This becomes a problem every time we try to add a tiny amount
of code to common coreboot interfaces that are included in them.

This patch manages to add another KB to each, one from the CBMEM console
(which now might get cut off a bit, but that's life) and one by moving
the TTB_SUBTABLES to PMUSRAM. PMUSRAM is a weird world where write
accesses must always be exactly 4 bytes long or they hang the CPU, so we
mostly ignore it... but thankfully, page table entries are exactly 4
bytes long and that's the only thing we write to this region, so it
works out in this case.

Change-Id: I5aecd66db40b3f52299b270322b8c8784dbe7e6f
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/27950
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/soc/rockchip/rk3288/include/soc/memlayout.ld