arm-trusted-firmware/plat/socionext/uniphier
Sandrine Bailleux a9ad848ccf xlat lib v2: Expose *_ctx() APIs
In a previous patch, the xlat_ctx_t type has been made public.
This patch now makes the *_ctx() APIs public.

Each API now has a *_ctx() variant. Most of them were already implemented
and this patch just makes them public. However, some of them were missing
so this patch introduces them.

Now that all these APIs are public, there's no good reason for splitting
them accross 2 files (xlat_tables_internal.c and xlat_tables_common.c).
Therefore, this patch moves all code into xlat_tables_internal.c and
removes xlat_tables_common.c. It removes it from the library's makefile
as well.

This last change introduces a compatibility break for platform ports
that specifically include the xlat_tables_common.c file instead of
including the library's Makefile. The UniPhier platform makefile has
been updated to now omit this file from the list of source files.

The prototype of mmap_add_region_ctx() has been slightly changed. The
mmap_region_t passed in argument needs to be constant because it gets
called from map_add(), which receives a constant region. The former
implementation of mmap_add() used to cast the const qualifier away,
which is not a good practice.

Also remove init_xlation_table(), which was a sub-function of
init_xlat_tables(). Now there's just init_xlat_tables() (and
init_xlat_tables_ctx()). Both names were too similar, which was
confusing. Besides, now that all the code is in a single file,
it's no longer needed to have 2 functions for that.

Change-Id: I4ed88c68e44561c3902fbebb89cb197279c5293b
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
2017-07-26 09:20:05 +01:00
..
include uniphier: add TSP support 2017-06-13 00:32:57 +09:00
tsp uniphier: add TSP support 2017-06-13 00:32:57 +09:00
platform.mk xlat lib v2: Expose *_ctx() APIs 2017-07-26 09:20:05 +01:00
uniphier.h uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_bl1_helpers.S uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_bl1_setup.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_bl2_setup.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_bl31_setup.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_boot_device.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_cci.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_console.S uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_emmc.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_gicv3.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_helpers.S uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_image_desc.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_io_storage.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_nand.c uniphier: fix memory over-run bug 2017-06-15 09:39:37 +09:00
uniphier_psci.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_rotpk.S uniphier: embed ROTPK hash into BL1/BL2 2017-06-20 23:54:28 +09:00
uniphier_scp.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_smp.S uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_soc_info.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_syscnt.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_tbbr.c uniphier: embed ROTPK hash into BL1/BL2 2017-06-20 23:54:28 +09:00
uniphier_topology.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_usb.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00
uniphier_xlat_setup.c uniphier: support Socionext UniPhier platform 2017-06-13 00:32:57 +09:00