Suneel Garapati | 0a668f6 | 2019-10-19 18:47:37 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 |
| 2 | * |
| 3 | * Copyright (C) 2018 Marvell International Ltd. |
| 4 | * |
| 5 | * https://spdx.org/licenses |
| 6 | */ |
| 7 | |
| 8 | #include <config.h> |
| 9 | #include <linux/linkage.h> |
| 10 | #include <asm/macro.h> |
| 11 | |
| 12 | .align 8 |
| 13 | .global fdt_base_addr |
| 14 | fdt_base_addr: |
| 15 | .dword 0x0 |
| 16 | |
| 17 | .global save_boot_params |
| 18 | save_boot_params: |
| 19 | /* Read FDT base from x1 register passed by ATF */ |
| 20 | adr x21, fdt_base_addr |
| 21 | str x1, [x21] |
| 22 | |
| 23 | /* Returns */ |
| 24 | b save_boot_params_ret |
| 25 | |
| 26 | ENTRY(lowlevel_init) |
| 27 | mov x29, lr /* Save LR */ |
| 28 | |
| 29 | /* any lowlevel init should go here */ |
| 30 | |
| 31 | mov lr, x29 /* Restore LR */ |
| 32 | ret |
| 33 | ENDPROC(lowlevel_init) |