Peng Fan | b15705a | 2021-08-07 16:00:35 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2020 NXP |
| 4 | */ |
| 5 | |
| 6 | #include <config.h> |
| 7 | |
| 8 | .align 8 |
| 9 | .global rom_pointer |
| 10 | rom_pointer: |
| 11 | .space 256 |
| 12 | |
| 13 | /* |
| 14 | * Routine: save_boot_params (called after reset from start.S) |
| 15 | */ |
| 16 | |
| 17 | .global save_boot_params |
| 18 | save_boot_params: |
Ye Li | 853cc9d | 2021-08-07 16:00:55 +0800 | [diff] [blame] | 19 | #ifndef CONFIG_SPL_BUILD |
Peng Fan | b15705a | 2021-08-07 16:00:35 +0800 | [diff] [blame] | 20 | /* The firmware provided ATAG/FDT address can be found in r2/x0 */ |
| 21 | adr x0, rom_pointer |
| 22 | stp x1, x2, [x0], #16 |
| 23 | stp x3, x4, [x0], #16 |
Ye Li | 853cc9d | 2021-08-07 16:00:55 +0800 | [diff] [blame] | 24 | #endif |
Peng Fan | b15705a | 2021-08-07 16:00:35 +0800 | [diff] [blame] | 25 | /* Returns */ |
| 26 | b save_boot_params_ret |