diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2018-05-17 11:10:13 -0700 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2020-01-31 13:20:57 -0800 |
commit | 57c539f9299666d8015d6d12f6293cbb0419308e (patch) | |
tree | 9dd210f9497ad1bd7205f288aac4787b3be899fe /plat/nvidia/tegra/soc/t210 | |
parent | f561a17967af5b467d32342b95ac6bb1bc25f679 (diff) | |
download | trusted-firmware-a-57c539f9299666d8015d6d12f6293cbb0419308e.tar.gz |
Tegra: compile PMC driver for Tegra132/Tegra210 platforms
The PMC driver is used only by Tegra210 and Tegra132 platforms. This
patch removes pmc.c from the common makefile and moves it to the
platform specific makefiles.
As a result, the PMC code from common code has been moved to Tegra132
and Tegra210 platform ports.
Change-Id: Ia157f70e776b3eff3c12eb8f0f02d30102670a98
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'plat/nvidia/tegra/soc/t210')
-rw-r--r-- | plat/nvidia/tegra/soc/t210/plat_psci_handlers.c | 5 | ||||
-rw-r--r-- | plat/nvidia/tegra/soc/t210/platform_t210.mk | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/plat/nvidia/tegra/soc/t210/plat_psci_handlers.c b/plat/nvidia/tegra/soc/t210/plat_psci_handlers.c index bbbfcf5bf4..4ef9558eec 100644 --- a/plat/nvidia/tegra/soc/t210/plat_psci_handlers.c +++ b/plat/nvidia/tegra/soc/t210/plat_psci_handlers.c @@ -579,6 +579,11 @@ int tegra_soc_prepare_system_reset(void) /* Wait 1 ms to make sure clock source/device logic is stabilized. */ mdelay(1); + /* + * Program the PMC in order to restart the system. + */ + tegra_pmc_system_reset(); + return PSCI_E_SUCCESS; } diff --git a/plat/nvidia/tegra/soc/t210/platform_t210.mk b/plat/nvidia/tegra/soc/t210/platform_t210.mk index a11aef4dd2..4f2db53864 100644 --- a/plat/nvidia/tegra/soc/t210/platform_t210.mk +++ b/plat/nvidia/tegra/soc/t210/platform_t210.mk @@ -1,5 +1,6 @@ # # Copyright (c) 2015-2019, ARM Limited and Contributors. All rights reserved. +# Copyright (c) 2020, NVIDIA Corporation. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -33,6 +34,7 @@ BL31_SOURCES += drivers/ti/uart/aarch64/16550_console.S \ ${COMMON_DIR}/drivers/bpmp/bpmp.c \ ${COMMON_DIR}/drivers/flowctrl/flowctrl.c \ ${COMMON_DIR}/drivers/memctrl/memctrl_v1.c \ + ${COMMON_DIR}/drivers/pmc/pmc.c \ ${SOC_DIR}/plat_psci_handlers.c \ ${SOC_DIR}/plat_setup.c \ ${SOC_DIR}/drivers/se/security_engine.c \ |