memory: tegra: Add API for retrieving carveout bounds
authorMikko Perttunen <mperttunen@nvidia.com>
Tue, 20 Sep 2022 08:11:56 +0000 (11:11 +0300)
committerThierry Reding <treding@nvidia.com>
Fri, 25 Nov 2022 15:14:58 +0000 (16:14 +0100)
commit7946920d402d9a4b5bf53c3adc3783105dbf3966
tree44c2ba374f822cc8d353c541b8fbcb158e439ade
parent17c2984492c4b4fb130c50c85d48d382cbb9471f
memory: tegra: Add API for retrieving carveout bounds

On Tegra234 NVDEC firmware is loaded from a secure carveout, where it
has been loaded by a bootloader. When booting NVDEC, we need to tell it
the address of this firmware, which we can determine by checking the
starting address of the carveout. As such, add an MC API to query the
bounds of carveouts, and add related information on Tegra234.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/mc.c
drivers/memory/tegra/tegra234.c
include/soc/tegra/mc.h