| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm/mach-tegra/reset.h |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * CPU reset dispatcher. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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 | | - * |
|---|
| 17 | 8 | */ |
|---|
| 18 | 9 | |
|---|
| 19 | 10 | #ifndef __MACH_TEGRA_RESET_H |
|---|
| .. | .. |
|---|
| 25 | 16 | #define TEGRA_RESET_STARTUP_SECONDARY 3 |
|---|
| 26 | 17 | #define TEGRA_RESET_STARTUP_LP2 4 |
|---|
| 27 | 18 | #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) |
|---|
| 29 | 23 | |
|---|
| 30 | 24 | #ifndef __ASSEMBLY__ |
|---|
| 31 | 25 | |
|---|
| .. | .. |
|---|
| 47 | 41 | (IO_ADDRESS(TEGRA_IRAM_BASE + TEGRA_IRAM_RESET_HANDLER_OFFSET + \ |
|---|
| 48 | 42 | ((u32)&__tegra_cpu_reset_handler_data[TEGRA_RESET_MASK_LP2] - \ |
|---|
| 49 | 43 | (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)) |
|---|
| 53 | 44 | #endif |
|---|
| 54 | 45 | |
|---|
| 55 | 46 | #define tegra_cpu_reset_handler_offset \ |
|---|