From c7cfefc6fecda7953f019893626e17ce9afa961f Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Tue, 23 Jul 2024 14:10:39 +0200 Subject: [PATCH] u-boot-dey: ccmp25: fix boot script to correctly parse HWID In CCMP2 the HWID is stored in 3 consecutive fuse words, now the third word has the following scheme: | 31..18 | 17 | 16 |15..12| 11..7 |6..3| 2..0 | +--------+----+-------+------+---------+----+------+ | -- | BT | Wi-Fi | RAM | Variant | HV | Cert | +--------+----+-------+------+---------+----+------+ Signed-off-by: Arturo Buzarra --- .../recipes-bsp/u-boot/u-boot-dey/ccmp25-dvk/boot.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp25-dvk/boot.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp25-dvk/boot.txt index 93457c87f..fb478a3e4 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp25-dvk/boot.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccmp25-dvk/boot.txt @@ -60,10 +60,10 @@ setenv ORIG_overlays ${overlays} # Determine overlays to apply depending on the hardware capabilities # described by the HWID, SOM version, and carrier board version. # -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 module_has_wifi ${hwid_2} \& 10000 +setexpr module_has_wifi ${module_has_wifi} / 10000 +setexpr module_has_bt ${hwid_2} \& 20000 +setexpr module_has_bt ${module_has_bt} / 20000 if test "${module_has_bt}" = "1" && test -z "${disable_bt}"; then setenv overlays _ov_som_bt_ccmp25.dtbo,${overlays}