]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: k3: drop redundant tifsstub runtime filter
authorAristo Chen <aristo.chen@canonical.com>
Tue, 23 Jun 2026 14:15:18 +0000 (14:15 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 16 Jul 2026 18:03:40 +0000 (12:03 -0600)
With all AM62x family boards (TI EVMs, phytec phycore, toradex
verdin) now using per-security-state FIT configurations and selecting
the right one via board_fit_config_name_match(), the runtime filter
in board_fit_image_post_process() that zero'd out *p_size for the
wrong tifsstub variant is no longer reached. Only one tifsstub
variant is present in the selected FIT configuration, and it is
always the correct one for the current silicon.

Drop the filter so board_fit_image_post_process() simply debug-logs
the variant name and returns.

Acked-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Anshul Dalal <anshuld@ti.com>
Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
arch/arm/mach-k3/r5/common.c

index 484d96f953691fbd8c07d5ec389d14c1536e563c..13736ca5dbc02c4da44c12415c7752f42144452c 100644 (file)
@@ -348,19 +348,7 @@ void board_fit_image_post_process(const void *fit, int node, void **p_image,
        }
 
        if (i < IMAGE_AMT && i > IMAGE_ID_DM_FW) {
-               int device_type = get_device_type();
-
-               if ((device_type == K3_DEVICE_TYPE_HS_SE &&
-                    strcmp(os, "tifsstub-hs")) ||
-                  (device_type == K3_DEVICE_TYPE_HS_FS &&
-                    strcmp(os, "tifsstub-fs")) ||
-                  (device_type == K3_DEVICE_TYPE_GP &&
-                    strcmp(os, "tifsstub-gp"))) {
-                       *p_size = 0;
-               } else {
-                       debug("tifsstub-type: %s\n", os);
-               }
-
+               debug("tifsstub-type: %s\n", os);
                return;
        }