uniphier: make all BL images completely position-independent
This platform supports multiple SoCs. The next SoC will still keep
quite similar architecture, but the memory base will be changed.

The ENABLE_PIE improves the maintainability and usability. You can reuse
a single set of BL images for other SoC/board without re-compiling TF-A
at all. This will also keep the code cleaner because it avoids #ifdef
around various base addresses.

By defining ENABLE_PIE, BL2_AT_EL3, BL31, and BL32 (TSP) are really
position-independent now. You can load them anywhere irrespective of
their link address.

Change-Id: I8d5e3124ee30012f5b3bfa278b0baff8efd2fff7
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent c64873a commit 7af2131787ed1e5a4fea17f17d13967d13f7d9ee
@Masahiro Yamada Masahiro Yamada authored on 16 Jan 2020
Showing 6 changed files
View
plat/socionext/uniphier/include/platform_def.h
View
plat/socionext/uniphier/platform.mk
View
plat/socionext/uniphier/uniphier.h
View
plat/socionext/uniphier/uniphier_bl2_setup.c
View
plat/socionext/uniphier/uniphier_image_desc.c
View
plat/socionext/uniphier/uniphier_io_storage.c