| // SPDX-License-Identifier: GPL-2.0+ |
| * Copyright (c) 2023 Collabora Ltd. |
| #ifdef CONFIG_OF_BOARD_SETUP |
| int rock5a_add_reserved_memory_fdt_nodes(void *new_blob) |
| struct fdt_memory gap1 = { |
| struct fdt_memory gap2 = { |
| unsigned long flags = FDTDEC_RESERVED_MEMORY_NO_MAP; |
| * Inject the reserved-memory nodes into the DTS |
| ret = fdtdec_add_reserved_memory(new_blob, "gap1", &gap1, NULL, 0, |
| return fdtdec_add_reserved_memory(new_blob, "gap2", &gap2, NULL, 0, |
| int ft_board_setup(void *blob, struct bd_info *bd) |
| return rock5a_add_reserved_memory_fdt_nodes(blob); |