]> git.sur5r.net Git - u-boot/blobdiff - board/ti/dra7xx/evm.c
ARM: dts: dra72: add rev C evm support
[u-boot] / board / ti / dra7xx / evm.c
index 0394e4ee57adc2e79ccc377b4b3af059500f27c0..588918f4d6964b86a7ed332f4d01d31165b03669 100644 (file)
@@ -17,6 +17,8 @@
 #include <asm/gpio.h>
 #include <usb.h>
 #include <linux/usb/gadget.h>
+#include <asm/omap_common.h>
+#include <asm/omap_sec_common.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/dra7xx_iodelay.h>
 #include <asm/emif.h>
@@ -413,10 +415,14 @@ int board_late_init(void)
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
        char *name = "unknown";
 
-       if (is_dra72x())
-               name = "dra72x";
-       else
+       if (is_dra72x()) {
+               if (board_is_dra72x_revc_or_later())
+                       name = "dra72x-revc";
+               else
+                       name = "dra72x";
+       } else {
                name = "dra7xx";
+       }
 
        set_board_info_env(name);
 
@@ -822,11 +828,24 @@ int ft_board_setup(void *blob, bd_t *bd)
 #ifdef CONFIG_SPL_LOAD_FIT
 int board_fit_config_name_match(const char *name)
 {
-       if (is_dra72x() && !strcmp(name, "dra72-evm"))
-               return 0;
-       else if (!is_dra72x() && !strcmp(name, "dra7-evm"))
+       if (is_dra72x()) {
+               if (board_is_dra72x_revc_or_later()) {
+                       if (!strcmp(name, "dra72-evm-revc"))
+                               return 0;
+               } else if (!strcmp(name, "dra72-evm")) {
+                       return 0;
+               }
+       } else if (!is_dra72x() && !strcmp(name, "dra7-evm")) {
                return 0;
-       else
-               return -1;
+       }
+
+       return -1;
+}
+#endif
+
+#ifdef CONFIG_TI_SECURE_DEVICE
+void board_fit_image_post_process(void **p_image, size_t *p_size)
+{
+       secure_boot_verify_image(p_image, p_size);
 }
 #endif