ccimx93: add support for MCA dtb overlay

On boot, it is enabled dynamically depending on MCA setting in HWID.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2023-01-23 15:39:11 +01:00
parent aab5eda5c2
commit 753424ae91
2 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,7 @@ KERNEL_DEVICETREE ?= " \
digi/ccimx93-dvk.dtb \ digi/ccimx93-dvk.dtb \
digi/_ov_board_lvds_ccimx93-dvk.dtbo \ digi/_ov_board_lvds_ccimx93-dvk.dtbo \
digi/_ov_som_bt_ccimx93.dtbo \ digi/_ov_som_bt_ccimx93.dtbo \
digi/_ov_som_mca_ccimx93.dtbo \
digi/_ov_som_wifi_ccimx93.dtbo \ digi/_ov_som_wifi_ccimx93.dtbo \
" "

View File

@ -56,6 +56,8 @@ setenv ORIG_overlays ${overlays}
# Determine overlays to apply depending on the hardware capabilities # Determine overlays to apply depending on the hardware capabilities
# described by the HWID, SOM version, and carrier board version. # described by the HWID, SOM version, and carrier board version.
# #
setexpr module_has_mca ${hwid_2} \& 10000
setexpr module_has_mca ${module_has_mca} / 10000
setexpr module_has_wifi ${hwid_2} \& 20000 setexpr module_has_wifi ${hwid_2} \& 20000
setexpr module_has_wifi ${module_has_wifi} / 20000 setexpr module_has_wifi ${module_has_wifi} / 20000
setexpr module_has_bt ${hwid_2} \& 40000 setexpr module_has_bt ${hwid_2} \& 40000
@ -69,6 +71,10 @@ if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
setenv overlays _ov_som_wifi_ccimx93.dtbo,${overlays} setenv overlays _ov_som_wifi_ccimx93.dtbo,${overlays}
fi fi
if test "${module_has_mca}" = "1" && test -z "${disable_mca}"; then
setenv overlays _ov_som_mca_ccimx93.dtbo,${overlays}
fi
dboot linux mmc ${mmcbootdev}:${mmcpart} dboot linux mmc ${mmcbootdev}:${mmcpart}
# #