Svyatoslav Ryhel | b8aa0b9 | 2023-07-11 13:47:02 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * (C) Copyright 2010-2013 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
| 5 | * |
| 6 | * (C) Copyright 2023 |
| 7 | * Svyatoslav Ryhel <clamor95@gmail.com> |
| 8 | */ |
| 9 | |
| 10 | #include <fdt_support.h> |
| 11 | |
| 12 | #if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP) |
| 13 | int ft_board_setup(void *blob, struct bd_info *bd) |
| 14 | { |
| 15 | /* Remove TrustZone nodes */ |
| 16 | fdt_del_node_and_alias(blob, "/firmware"); |
| 17 | fdt_del_node_and_alias(blob, "/reserved-memory/trustzone@bfe00000"); |
| 18 | |
| 19 | return 0; |
| 20 | } |
| 21 | #endif |