ccimx8mn-dvk: add support to apply wifi/bluetooth overlays in the bootscript
Instead of having two separate device trees for the non-wireless and wireless variants of the ccimx8mn, use the non-wireless .dtb as a base and apply the overlays in the bootscript depending on the variant's capabilities. Also, update the board's device tree list accordingly. https://jira.digi.com/browse/DEL-2609 Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
ca3d27981f
commit
18ac2f63c1
|
|
@ -15,7 +15,8 @@ SPL_BINARY = "spl/u-boot-spl.bin"
|
|||
UBOOT_DTB_NAME = "ccimx8mn-dvk.dtb"
|
||||
|
||||
KERNEL_DEVICETREE ?= " \
|
||||
digi/ccimx8mn-dvk-wb.dtb \
|
||||
digi/ccimx8mn_ov_bt.dtbo \
|
||||
digi/ccimx8mn_ov_wifi.dtbo \
|
||||
digi/ccimx8mn-dvk.dtb \
|
||||
"
|
||||
|
||||
|
|
|
|||
|
|
@ -22,11 +22,14 @@ else
|
|||
setexpr module_has_bt ${hwid_2} \& 20000
|
||||
setexpr module_has_bt ${module_has_bt} / 20000
|
||||
|
||||
if test "${module_has_wifi}" = "1" &&
|
||||
test "${module_has_bt}" = "1"; then
|
||||
setenv fdt_file cc${soc_type}-dvk-wb.dtb
|
||||
else
|
||||
setenv fdt_file cc${soc_type}-dvk.dtb
|
||||
setenv fdt_file cc${soc_type}-dvk.dtb
|
||||
|
||||
if test "${module_has_bt}" = "1"; then
|
||||
setenv overlays cc${soc_type}_ov_bt.dtbo,${overlays}
|
||||
fi
|
||||
|
||||
if test "${module_has_wifi}" = "1"; then
|
||||
setenv overlays cc${soc_type}_ov_wifi.dtbo,${overlays}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue