Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Jorge Ramirez-Ortiz | 2cd3db9 | 2018-01-10 11:34:35 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2016 |
| 4 | * Cédric Schieli <cschieli@gmail.com> |
Jorge Ramirez-Ortiz | 2cd3db9 | 2018-01-10 11:34:35 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <config.h> |
| 8 | |
| 9 | .align 8 |
| 10 | .global fw_dtb |
| 11 | fw_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 |
| 20 | save_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 |