tegra: Fix mmap_region_t struct mismatch
Commit fdb1964 ("xlat: Introduce
MAP_REGION2() macro") added a granularity field to mmap_region_t.

Tegra platforms were using the v2 xlat_tables implementation in
common/tegra_common.mk, but v1 xlat_tables.h headers in soc/*/plat_setup.c
where arrays are being defined. This caused the next physical address to
be read as granularity, causing EINVAL error and triggering an assert.

Consistently use xlat_tables_v2.h header to avoid this.

Fixes ARM-software/tf-issues#548.

Signed-off-by: Andreas Färber <afaerber@suse.de>
1 parent 885b7c8 commit 28db3e96efd3e172a2973962130dca952c9f21cd
@Andreas Färber Andreas Färber authored on 17 Feb 2018
Showing 4 changed files
View
plat/nvidia/tegra/include/tegra_private.h
View
plat/nvidia/tegra/soc/t132/plat_setup.c
View
plat/nvidia/tegra/soc/t186/plat_setup.c
View
plat/nvidia/tegra/soc/t210/plat_setup.c