blob: 41a9f08aedb8f07cdf8f6c36ff7ae936f8e5e40d [file] [log] [blame]
Suneel Garapati0a668f62019-10-19 18:47:37 -07001/* 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
14fdt_base_addr:
15 .dword 0x0
16
17.global save_boot_params
18save_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
26ENTRY(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
33ENDPROC(lowlevel_init)