diff options
| author | Pritesh Raithatha <praithatha@nvidia.com> | 2018-05-22 07:15:43 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-25 08:15:05 -0400 |
| commit | 9aaa63fc173bd26a06f15912e25effb13f8125fe (patch) | |
| tree | f4179820c7bd68a248fc7edc03daa84a84f29255 /include/linux | |
| parent | 61d704bd019424da007ecf4de99115556ca03737 (diff) | |
platform: tegra: add tegra_vpr and smc-calls from Kerenl 4.9
Add tegra specific files tegra_vpr.c, smc-calls.S, ote_protocol.h
and smc-calls.h to nvidia repo that is removed from kernel-4.9.
Bug 200415588
Change-Id: Ibaf02dfb7dad5df3169228c5655e20862b142312
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1727046
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ote_protocol.h | 29 | ||||
| -rw-r--r-- | include/linux/smc-calls.h | 24 |
2 files changed, 53 insertions, 0 deletions
diff --git a/include/linux/ote_protocol.h b/include/linux/ote_protocol.h new file mode 100644 index 000000000..ef71ac978 --- /dev/null +++ b/include/linux/ote_protocol.h | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2013-2018 NVIDIA Corporation. All rights reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License along | ||
| 15 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef __OTE_PROTOCOL_H__ | ||
| 20 | #define __OTE_PROTOCOL_H__ | ||
| 21 | |||
| 22 | int tegra_set_vpr_params(void *vpr_base, size_t vpr_size); | ||
| 23 | |||
| 24 | void trusty_restore_keyslots(void); | ||
| 25 | void tlk_restore_keyslots(void); | ||
| 26 | |||
| 27 | int te_is_secos_dev_enabled(void); | ||
| 28 | |||
| 29 | #endif | ||
diff --git a/include/linux/smc-calls.h b/include/linux/smc-calls.h new file mode 100644 index 000000000..249a2764a --- /dev/null +++ b/include/linux/smc-calls.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2016-2018 NVIDIA Corporation. All rights reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | * | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __LINUX_SMC_CALLS_H__ | ||
| 17 | #define __LINUX_SMC_CALLS_H__ | ||
| 18 | |||
| 19 | /* SMC Definitions*/ | ||
| 20 | #define TE_SMC_PROGRAM_VPR 0x82000003 | ||
| 21 | |||
| 22 | uint32_t invoke_smc(uint32_t arg0, uintptr_t arg1, uintptr_t arg2); | ||
| 23 | |||
| 24 | #endif /* !__LINUX_SMC_CALLS_H__ */ | ||
