forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm/mach-tegra/reset.c
....@@ -1,23 +1,16 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * arch/arm/mach-tegra/reset.c
34 *
45 * Copyright (C) 2011,2012 NVIDIA Corporation.
5
- *
6
- * This software is licensed under the terms of the GNU General Public
7
- * License version 2, as published by the Free Software Foundation, and
8
- * may be copied, distributed, and modified under those terms.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
156 */
167
178 #include <linux/bitops.h>
189 #include <linux/cpumask.h>
1910 #include <linux/init.h>
2011 #include <linux/io.h>
12
+
13
+#include <linux/firmware/trusted_foundations.h>
2114
2215 #include <soc/tegra/fuse.h>
2316
....@@ -77,7 +70,7 @@
7770 switch (err) {
7871 case -ENOSYS:
7972 tegra_cpu_reset_handler_set(reset_address);
80
- /* pass-through */
73
+ fallthrough;
8174 case 0:
8275 is_enabled = true;
8376 break;
....@@ -89,6 +82,8 @@
8982
9083 void __init tegra_cpu_reset_handler_init(void)
9184 {
85
+ __tegra_cpu_reset_handler_data[TEGRA_RESET_TF_PRESENT] =
86
+ trusted_foundations_registered();
9287
9388 #ifdef CONFIG_SMP
9489 __tegra_cpu_reset_handler_data[TEGRA_RESET_MASK_PRESENT] =