mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-15 09:27:35 +00:00
e2beb872f7
The firmware that runs before u-boot modifies u-boot's device tree adding the local-mac-address and local-bd-address properties for the compatibles "qcom,wcnss-bt" and "qcom,wcnss-wlan". This commit reads that firmware, retrieves the properties and fixups the device tree that is passed to the kernel before booting. Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
28 lines
505 B
ArmAsm
28 lines
505 B
ArmAsm
/*
|
|
* (C) Copyright 2016
|
|
* Cédric Schieli <cschieli@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
.align 8
|
|
.global fw_dtb
|
|
fw_dtb:
|
|
.dword 0x0
|
|
|
|
/*
|
|
* Routine: save_boot_params (called after reset from start.S)
|
|
* Description: save ATAG/FDT address provided by the firmware at boot time
|
|
*/
|
|
|
|
.global save_boot_params
|
|
save_boot_params:
|
|
|
|
/* The firmware provided ATAG/FDT address can be found in r2/x0 */
|
|
adr x8, fw_dtb
|
|
str x0, [x8]
|
|
|
|
/* Returns */
|
|
b save_boot_params_ret
|