| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm/mach-tegra/reset.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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 | | - * |
|---|
| 15 | 6 | */ |
|---|
| 16 | 7 | |
|---|
| 17 | 8 | #include <linux/bitops.h> |
|---|
| 18 | 9 | #include <linux/cpumask.h> |
|---|
| 19 | 10 | #include <linux/init.h> |
|---|
| 20 | 11 | #include <linux/io.h> |
|---|
| 12 | + |
|---|
| 13 | +#include <linux/firmware/trusted_foundations.h> |
|---|
| 21 | 14 | |
|---|
| 22 | 15 | #include <soc/tegra/fuse.h> |
|---|
| 23 | 16 | |
|---|
| .. | .. |
|---|
| 77 | 70 | switch (err) { |
|---|
| 78 | 71 | case -ENOSYS: |
|---|
| 79 | 72 | tegra_cpu_reset_handler_set(reset_address); |
|---|
| 80 | | - /* pass-through */ |
|---|
| 73 | + fallthrough; |
|---|
| 81 | 74 | case 0: |
|---|
| 82 | 75 | is_enabled = true; |
|---|
| 83 | 76 | break; |
|---|
| .. | .. |
|---|
| 89 | 82 | |
|---|
| 90 | 83 | void __init tegra_cpu_reset_handler_init(void) |
|---|
| 91 | 84 | { |
|---|
| 85 | + __tegra_cpu_reset_handler_data[TEGRA_RESET_TF_PRESENT] = |
|---|
| 86 | + trusted_foundations_registered(); |
|---|
| 92 | 87 | |
|---|
| 93 | 88 | #ifdef CONFIG_SMP |
|---|
| 94 | 89 | __tegra_cpu_reset_handler_data[TEGRA_RESET_MASK_PRESENT] = |
|---|