Tegra: allow platforms to override plat_core_pos_by_mpidr()
authorVarun Wadekar <vwadekar@nvidia.com>
Tue, 31 Jan 2017 22:53:37 +0000 (14:53 -0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 7 Apr 2017 16:32:35 +0000 (09:32 -0700)
commitae8ac2d233f21fa8c1f7b7329559f75726de8e4d
tree080ab9d241286d006a256550bec811dbd41c9bf7
parent06803cfd020b1c953b9a4a32fbfa401b3f4f5491
Tegra: allow platforms to override plat_core_pos_by_mpidr()

This patch makes the default implementation of plat_core_pos_by_mpidr()
as weakly linked, so that platforms can override it with their own.

Tegra186, for one, does not have CPU IDs 2 and 3, so it has its own
implementation of plat_core_pos_by_mpidr().

Change-Id: I7a5319869c01ede3775386cb95af1431792f74b3
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/tegra_topology.c
plat/nvidia/tegra/soc/t186/plat_setup.c