uniphier: allocate xlat region of on-chip SRAM only when needed
Currently, the xlat region of the on-chip SRAM is always allocated
for all BL images.

The access to the on-chip SRAM is necessary for loading images from
a USB memory device (i.e. when updating firmware), so unneeded for
the usual boot procedure.

To avoid this waste, allocate the xlat region dynamically only for
BL2, and only when it is necessary.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 7e51ca8 commit 9c740a58e140dfab13be1e5f41b427737428c210
@Masahiro Yamada Masahiro Yamada authored on 30 Jan 2018
Showing 2 changed files
View
plat/socionext/uniphier/uniphier_io_storage.c
View
plat/socionext/uniphier/uniphier_xlat_setup.c