Thomas Fitzsimmons | 919646d | 2018-06-08 17:59:45 -0400 | [diff] [blame^] | 1 | /* 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 | |
| 10 | ENTRY(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 |
| 21 | ENDPROC(save_boot_params) |