blob: aa81f70248d71629ac744a31303fca5da3fd47aa [file] [log] [blame]
Thomas Fitzsimmons894c3ad2018-06-08 17:59:45 -04001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * (C) Copyright 2018 Cisco Systems, Inc.
4 *
5 * Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
6 */
7
8#include <linux/linkage.h>
9
10ENTRY(save_boot_params)
11 ldr r6, =bcmstb_boot_parameters
12 str r0, [r6, #0]
13 str r1, [r6, #4]
14 str r2, [r6, #8]
15 str r3, [r6, #12]
16 str sp, [r6, #16]
17 str lr, [r6, #20]
18 ldr r6, =prior_stage_fdt_address
19 str r2, [r6]
20 b save_boot_params_ret
21ENDPROC(save_boot_params)