tegra: Fix mmap_region_t struct mismatch
authorAndreas Färber <afaerber@suse.de>
Sat, 17 Feb 2018 05:02:32 +0000 (06:02 +0100)
committerAndreas Färber <afaerber@suse.de>
Sat, 17 Feb 2018 05:15:35 +0000 (06:15 +0100)
commit28db3e96efd3e172a2973962130dca952c9f21cd
treecebaa2477e2685abbfc75c28199efad6ae6eb692
parent885b7c85c1aa2d4c55ab8eeb848e4b72691fde35
tegra: Fix mmap_region_t struct mismatch

Commit fdb1964c34968921379d3592e7ac6e9a685dbab1 ("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>
plat/nvidia/tegra/include/tegra_private.h
plat/nvidia/tegra/soc/t132/plat_setup.c
plat/nvidia/tegra/soc/t186/plat_setup.c
plat/nvidia/tegra/soc/t210/plat_setup.c