ccmp15: add DT overlay for the DVK v1

This commit adds an overlay for DVK v1 and modifies the boot script to apply it
based on the board_version variable.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2023-03-07 13:59:29 +01:00
parent 5c5fb956f2
commit 0773e31fd4
2 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,7 @@ STM32MP_KERNEL_DEVICETREE:ccmp15-dvk += " \
_ov_board_mikroe-gyro-click_ccmp15-dvk.dtbo \
_ov_board_mikroe-i2c-to-spi-click_ccmp15-dvk.dtbo \
_ov_board_uart7_rs232_ccmp15-dvk.dtbo \
_ov_board_v1_ccmp15-dvk.dtbo \
_ov_som_bt_ccmp15.dtbo \
_ov_som_wifi_ccmp15.dtbo \
"

View File

@ -58,6 +58,11 @@ if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
setenv overlays _ov_som_wifi_ccmp15.dtbo,${overlays}
fi
# Apply DVKv1 overlay if the board_version is 1
if test "${board_version}" -eq "1"; then
setenv overlays _ov_board_v1_ccmp15-dvk.dtbo,${overlays}
fi
dboot linux nand ${mtdbootpart}