1*894c3ad2SThomas Fitzsimmons/* SPDX-License-Identifier: GPL-2.0+ */
2*894c3ad2SThomas Fitzsimmons/*
3*894c3ad2SThomas Fitzsimmons * (C) Copyright 2018  Cisco Systems, Inc.
4*894c3ad2SThomas Fitzsimmons *
5*894c3ad2SThomas Fitzsimmons * Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
6*894c3ad2SThomas Fitzsimmons */
7*894c3ad2SThomas Fitzsimmons
8*894c3ad2SThomas Fitzsimmons#include <linux/linkage.h>
9*894c3ad2SThomas Fitzsimmons
10*894c3ad2SThomas FitzsimmonsENTRY(save_boot_params)
11*894c3ad2SThomas Fitzsimmons	ldr	r6, =bcmstb_boot_parameters
12*894c3ad2SThomas Fitzsimmons	str	r0, [r6, #0]
13*894c3ad2SThomas Fitzsimmons	str	r1, [r6, #4]
14*894c3ad2SThomas Fitzsimmons	str	r2, [r6, #8]
15*894c3ad2SThomas Fitzsimmons	str	r3, [r6, #12]
16*894c3ad2SThomas Fitzsimmons	str	sp, [r6, #16]
17*894c3ad2SThomas Fitzsimmons	str	lr, [r6, #20]
18*894c3ad2SThomas Fitzsimmons	ldr	r6, =prior_stage_fdt_address
19*894c3ad2SThomas Fitzsimmons	str	r2, [r6]
20*894c3ad2SThomas Fitzsimmons	b	save_boot_params_ret
21*894c3ad2SThomas FitzsimmonsENDPROC(save_boot_params)
22