From 130a5c796c27494c095b98a58ba4d5477af76abd Mon Sep 17 00:00:00 2001 From: Isaac Hermida Date: Wed, 7 Jun 2023 09:44:48 +0200 Subject: [PATCH] ccimx93: add support for NPU dtb overlay Load the NPU overlay based on the CPU model. https://onedigi.atlassian.net/browse/DEL-8565 https://onedigi.atlassian.net/browse/DEL-8563 Signed-off-by: Isaac Hermida --- .../u-boot/u-boot-dey/ccimx93-dvk/boot.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 04aa40eba..99aa7c59a 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 @@ -75,6 +75,17 @@ if test "${module_has_mca}" = "1" && test -z "${disable_mca}"; then setenv overlays _ov_som_mca_ccimx93.dtbo,${overlays} fi +if test "${cpu_type}" = "imx9352" || \ + test "${cpu_type}" = "imx9351" || \ + test "${cpu_type}" = "imx9322" || \ + test "${cpu_type}" = "imx9321"; then + module_has_npu="1" +fi + +if test "${module_has_npu}" = "1" && test -z "${disable_npu}"; then + setenv overlays _ov_som_npu_ccimx93.dtbo,${overlays} +fi + dboot linux mmc ${mmcbootdev}:${mmcpart} #