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 <arturo.buzarra@digi.com>
This commit is contained in:
parent
bf183f4093
commit
c7cfefc6fe
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue