From 753424ae913c06223079ce6a29d773e254a6ffbe Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Mon, 23 Jan 2023 15:39:11 +0100 Subject: [PATCH] ccimx93: add support for MCA dtb overlay On boot, it is enabled dynamically depending on MCA setting in HWID. Signed-off-by: Javier Viguera --- meta-digi-arm/conf/machine/ccimx93-dvk.conf | 1 + .../recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/meta-digi-arm/conf/machine/ccimx93-dvk.conf b/meta-digi-arm/conf/machine/ccimx93-dvk.conf index 967aebb79..ffad8624e 100644 --- a/meta-digi-arm/conf/machine/ccimx93-dvk.conf +++ b/meta-digi-arm/conf/machine/ccimx93-dvk.conf @@ -13,6 +13,7 @@ KERNEL_DEVICETREE ?= " \ digi/ccimx93-dvk.dtb \ digi/_ov_board_lvds_ccimx93-dvk.dtbo \ digi/_ov_som_bt_ccimx93.dtbo \ + digi/_ov_som_mca_ccimx93.dtbo \ digi/_ov_som_wifi_ccimx93.dtbo \ " diff --git a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt index 67f0811fd..04aa40eba 100644 --- a/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt +++ b/meta-digi-arm/recipes-bsp/u-boot/u-boot-dey/ccimx93-dvk/boot.txt @@ -56,6 +56,8 @@ 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_mca ${hwid_2} \& 10000 +setexpr module_has_mca ${module_has_mca} / 10000 setexpr module_has_wifi ${hwid_2} \& 20000 setexpr module_has_wifi ${module_has_wifi} / 20000 setexpr module_has_bt ${hwid_2} \& 40000 @@ -69,6 +71,10 @@ if test "${module_has_wifi}" = "1" && test -z "${disable_wifi}"; then setenv overlays _ov_som_wifi_ccimx93.dtbo,${overlays} fi +if test "${module_has_mca}" = "1" && test -z "${disable_mca}"; then + setenv overlays _ov_som_mca_ccimx93.dtbo,${overlays} +fi + dboot linux mmc ${mmcbootdev}:${mmcpart} #