mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 08:28:51 +09:00
![Jorge Ramirez-Ortiz](/assets/img/avatar_default.png)
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>
29 lines
505 B
ArmAsm
29 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
|