ccmp15: add MCA DT overlay support

This commit modifies the boot script condition to apply the overlay for MCA
based on HWID MCA field.

https://onedigi.atlassian.net/browse/DEL-8521

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2023-05-29 12:18:40 +02:00
parent eecc3cf6c1
commit a44aa6e521
2 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,7 @@ STM32MP_KERNEL_DEVICETREE:ccmp15-dvk += " \
_ov_board_v1_ccmp15-dvk.dtbo \ _ov_board_v1_ccmp15-dvk.dtbo \
_ov_som_bt_ccmp15.dtbo \ _ov_som_bt_ccmp15.dtbo \
_ov_som_bt_test_ccmp15.dtbo \ _ov_som_bt_test_ccmp15.dtbo \
_ov_som_mca_ccmp15.dtbo \
_ov_som_wifi_ccmp15.dtbo \ _ov_som_wifi_ccmp15.dtbo \
" "

View File

@ -45,6 +45,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
@ -58,6 +60,10 @@ if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
setenv overlays _ov_som_wifi_ccmp15.dtbo,${overlays} setenv overlays _ov_som_wifi_ccmp15.dtbo,${overlays}
fi fi
if test "${module_has_mca}" = "1" && test -z "${disable_mca}"; then
setenv overlays _ov_som_mca_ccmp15.dtbo,${overlays}
fi
# Apply DVKv1 overlay if the board_version is 1 # Apply DVKv1 overlay if the board_version is 1
if test -z "${board_version}" || test "${board_version}" -eq "1"; then if test -z "${board_version}" || test "${board_version}" -eq "1"; then
setenv overlays _ov_board_v1_ccmp15-dvk.dtbo,${overlays} setenv overlays _ov_board_v1_ccmp15-dvk.dtbo,${overlays}