1/* 2 * (C) Copyright 2016 3 * Cédric Schieli <cschieli@gmail.com> 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8#include <config.h> 9 10.align 8 11.global fw_dtb 12fw_dtb: 13 .dword 0x0 14 15/* 16 * Routine: save_boot_params (called after reset from start.S) 17 * Description: save ATAG/FDT address provided by the firmware at boot time 18 */ 19 20.global save_boot_params 21save_boot_params: 22 23 /* The firmware provided ATAG/FDT address can be found in r2/x0 */ 24 adr x8, fw_dtb 25 str x0, [x8] 26 27 /* Returns */ 28 b save_boot_params_ret 29