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