hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/arch/arm/mach-tegra/reset.h
....@@ -1,19 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * arch/arm/mach-tegra/reset.h
34 *
45 * CPU reset dispatcher.
56 *
67 * Copyright (c) 2011, NVIDIA Corporation.
7
- *
8
- * This software is licensed under the terms of the GNU General Public
9
- * License version 2, as published by the Free Software Foundation, and
10
- * may be copied, distributed, and modified under those terms.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
178 */
189
1910 #ifndef __MACH_TEGRA_RESET_H
....@@ -25,7 +16,10 @@
2516 #define TEGRA_RESET_STARTUP_SECONDARY 3
2617 #define TEGRA_RESET_STARTUP_LP2 4
2718 #define TEGRA_RESET_STARTUP_LP1 5
28
-#define TEGRA_RESET_DATA_SIZE 6
19
+#define TEGRA_RESET_TF_PRESENT 6
20
+#define TEGRA_RESET_DATA_SIZE 7
21
+
22
+#define RESET_DATA(x) ((TEGRA_RESET_##x)*4)
2923
3024 #ifndef __ASSEMBLY__
3125
....@@ -47,9 +41,6 @@
4741 (IO_ADDRESS(TEGRA_IRAM_BASE + TEGRA_IRAM_RESET_HANDLER_OFFSET + \
4842 ((u32)&__tegra_cpu_reset_handler_data[TEGRA_RESET_MASK_LP2] - \
4943 (u32)__tegra_cpu_reset_handler_start)))
50
-#define tegra20_cpu1_resettable_status \
51
- (IO_ADDRESS(TEGRA_IRAM_BASE + TEGRA_IRAM_RESET_HANDLER_OFFSET + \
52
- (u32)__tegra20_cpu1_resettable_status_offset))
5344 #endif
5445
5546 #define tegra_cpu_reset_handler_offset \