u-boot-dey: customize boot script for ccimx93
This was a verbatim copy of the one for the ccimx8mm. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
d2693a3cfe
commit
60e499f423
|
|
@ -49,46 +49,35 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Back up environment variables
|
# Back up environment variables
|
||||||
setenv ORIG_overlays ${overlays}
|
setenv ORIG_overlays ${overlays}
|
||||||
setenv ORIG_extra_bootargs ${extra_bootargs}
|
setenv ORIG_extra_bootargs ${extra_bootargs}
|
||||||
|
|
||||||
# Set SOC type to "imx8mm" if not already defined by U-Boot
|
|
||||||
if test ! -n "${soc_type}"; then
|
|
||||||
setenv soc_type "imx8mm"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# 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.
|
||||||
#
|
#
|
||||||
if test -n "${module_ram}"; then
|
setexpr module_has_wifi ${hwid_2} \& 20000
|
||||||
setexpr som_hv ${hwid_2} \& 38
|
setexpr module_has_wifi ${module_has_wifi} / 20000
|
||||||
setexpr som_hv ${som_hv} / 8
|
setexpr module_has_bt ${hwid_2} \& 40000
|
||||||
|
setexpr module_has_bt ${module_has_bt} / 40000
|
||||||
|
|
||||||
setexpr module_has_wifi ${hwid_2} \& 10000
|
if test "${module_has_bt}" = "1" && test -z "${disable_bt}"; then
|
||||||
setexpr module_has_wifi ${module_has_wifi} / 10000
|
setenv overlays _ov_som_bt_ccimx93.dtbo,${overlays}
|
||||||
setexpr module_has_bt ${hwid_2} \& 20000
|
fi
|
||||||
setexpr module_has_bt ${module_has_bt} / 20000
|
|
||||||
|
|
||||||
if test "${module_has_bt}" = "1" && test -z "${disable_bt}"; then
|
if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
|
||||||
setenv overlays _ov_som_bt_ccimx8m.dtbo,${overlays}
|
setenv overlays _ov_som_wifi_ccimx93.dtbo,${overlays}
|
||||||
fi
|
|
||||||
|
|
||||||
if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then
|
|
||||||
setenv overlays _ov_som_wifi_ccimx8m.dtbo,${overlays}
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
setenv extra_bootargs fbcon=logo-pos:center ${extra_bootargs}
|
setenv extra_bootargs fbcon=logo-pos:center ${extra_bootargs}
|
||||||
dboot linux mmc ${mmcbootdev}:${mmcpart}
|
dboot linux mmc ${mmcbootdev}:${mmcpart}
|
||||||
|
|
||||||
|
#
|
||||||
|
|
||||||
# We only get here in case of an error on the dboot command.
|
|
||||||
|
|
||||||
# Undo changes to environment variables
|
# Undo changes to environment variables
|
||||||
|
#
|
||||||
|
# (we only get here in case of an error on the dboot command)
|
||||||
|
#
|
||||||
setenv overlays ${ORIG_overlays}
|
setenv overlays ${ORIG_overlays}
|
||||||
setenv ORIG_overlays
|
setenv ORIG_overlays
|
||||||
setenv extra_bootargs ${ORIG_extra_bootargs}
|
setenv extra_bootargs ${ORIG_extra_bootargs}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue