]>
Commit | Line | Data |
---|---|---|
9ef89ea9 PF |
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: | |
bef9fdbe | 19 | #ifndef CONFIG_XPL_BUILD |
9ef89ea9 PF |
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 | |
ba472a20 | 24 | #endif |
9ef89ea9 PF |
25 | /* Returns */ |
26 | b save_boot_params_ret |