]> git.sur5r.net Git - u-boot/commitdiff
board: am57xx: fit: add support for selecting dtb dynamically
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 10 Jun 2016 04:05:43 +0000 (09:35 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 13 Jun 2016 12:56:36 +0000 (08:56 -0400)
FIT allows for a multiple dtb in a single image. SPL needs away to
detect the right dtb to be used. Adding support for the same for am57xx
platforms.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
board/ti/am57xx/board.c

index ccf97b2b13bb4ab11002a6490d9210c125b0011d..ac5b7941b28195a9d929e857b959445298437cd0 100644 (file)
@@ -736,3 +736,15 @@ int ft_board_setup(void *blob, bd_t *bd)
        return 0;
 }
 #endif
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+       if (board_is_x15() && !strcmp(name, "am57xx-beagle-x15"))
+               return 0;
+       else if (board_is_am572x_evm() && !strcmp(name, "am57xx-beagle-x15"))
+               return 0;
+       else
+               return -1;
+}
+#endif