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>master
parent
5bef39982a
commit
e2beb872f7
@ -0,0 +1,28 @@ |
||||
/* |
||||
* (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 |
Loading…
Reference in new issue