diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2019-03-18 01:52:05 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-04-09 17:36:19 +0300 |
commit | 96446e21d6e9303cce0374af3f4012556dc501ce (patch) | |
tree | 2009e3125850cee95578c8761d634a58c1114bbe /arch/arm/include/asm/trusted_foundations.h | |
parent | ebca2a6ee161502828de017b28a8f1d7422073f0 (diff) | |
download | linux-96446e21d6e9303cce0374af3f4012556dc501ce.tar.xz |
ARM: trusted_foundations: Make prepare_idle call to take mode argument
The Trusted Foundations firmware call varies depending on the required
suspend-mode. Make the firmware API to take the mode argument in order
to expose all of the modes to firmware user.
Tested-by: Robert Yang <decatf@gmail.com>
Tested-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'arch/arm/include/asm/trusted_foundations.h')
-rw-r--r-- | arch/arm/include/asm/trusted_foundations.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/trusted_foundations.h b/arch/arm/include/asm/trusted_foundations.h index 9e6a41e9215e..201ceb259e71 100644 --- a/arch/arm/include/asm/trusted_foundations.h +++ b/arch/arm/include/asm/trusted_foundations.h @@ -35,6 +35,12 @@ #include <asm/hardware/cache-l2x0.h> #include <asm/outercache.h> +#define TF_PM_MODE_LP0 0 +#define TF_PM_MODE_LP1 1 +#define TF_PM_MODE_LP1_NO_MC_CLK 2 +#define TF_PM_MODE_LP2 3 +#define TF_PM_MODE_LP2_NOFLUSH_L2 4 + struct trusted_foundations_platform_data { unsigned int version_major; unsigned int version_minor; |