ccmp15: add overlay for SOM hardware version 1

At the moment, this overlay adds RTC calibration to compensate
the drift observed in the 32kHz input frequency of hardware
version 1 of the SOM.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8987
This commit is contained in:
Hector Palacios 2024-04-22 18:49:49 +02:00
parent c1fa1190d3
commit 18ba3f592c
2 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,7 @@ STM32MP_KERNEL_DEVICETREE:ccmp15-dvk += " \
_ov_som_bt_ccmp15.dtbo \
_ov_som_bt_test_ccmp15.dtbo \
_ov_som_m4_ccmp15.dtbo \
_ov_som_v1_ccmp15.dtbo \
_ov_som_wifi_ccmp15.dtbo \
"
# Set DTB load address to U-Boot fdt_addr_r

View File

@ -57,6 +57,13 @@ setexpr module_has_wifi ${hwid_2} \& 20000
setexpr module_has_wifi ${module_has_wifi} / 20000
setexpr module_has_bt ${hwid_2} \& 40000
setexpr module_has_bt ${module_has_bt} / 40000
setexpr som_hv ${hwid_2} \& 78
setexpr som_hv ${som_hv} / 8
# Apply SOMv1 overlay if the HWID field 'hv' is 1
if test "${som_hv}" -eq "1"; then
setenv overlays _ov_som_v1_ccmp15.dtbo,${overlays}
fi
if test "${module_has_bt}" = "1" && test -z "${disable_bt}"; then
setenv overlays _ov_som_bt_ccmp15.dtbo,${overlays}