blob: 762fed56170e0fea2ff5a88b6926df00fd70039f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Jorge Ramirez-Ortiz2cd3db92018-01-10 11:34:35 +01002/*
3 * (C) Copyright 2016
4 * Cédric Schieli <cschieli@gmail.com>
Jorge Ramirez-Ortiz2cd3db92018-01-10 11:34:35 +01005 */
6
7#include <config.h>
8
9.align 8
10.global fw_dtb
11fw_dtb:
12 .dword 0x0
13
14/*
15 * Routine: save_boot_params (called after reset from start.S)
16 * Description: save ATAG/FDT address provided by the firmware at boot time
17 */
18
19.global save_boot_params
20save_boot_params:
21
22 /* The firmware provided ATAG/FDT address can be found in r2/x0 */
23 adr x8, fw_dtb
24 str x0, [x8]
25
26 /* Returns */
27 b save_boot_params_ret