xlat: Make function to calculate TCR PA bits public
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 25 Oct 2017 10:53:25 +0000 (11:53 +0100)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Wed, 8 Nov 2017 18:05:14 +0000 (18:05 +0000)
commitad02a7596f73ea9f07ebc9e04970ab7e9961c868
tree435ae69cc9a11a59fb6ad16f8dda2022bed574a3
parent92cad5fa4bb4f7662574350df91196bb8017a820
xlat: Make function to calculate TCR PA bits public

This function can be useful to setup TCR_ELx by callers that don't use
the translation tables library to setup the system registers related
to them. By making it common, it can be reused whenever it is needed
without duplicating code.

Change-Id: Ibfada9e846d2a6cd113b1925ac911bb27327d375
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
include/lib/xlat_tables/aarch64/xlat_tables_aarch64.h
lib/xlat_tables_v2/aarch64/xlat_tables_arch.c