]> git.sur5r.net Git - u-boot/commitdiff
ARM: keystone2: Define board_fit_config_name_match for Keystone 2 boards
authorCooper Jr., Franklin <fcooper@ti.com>
Fri, 16 Jun 2017 22:25:16 +0000 (17:25 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 10 Jul 2017 18:25:55 +0000 (14:25 -0400)
Now with support for U-boot runtime dtb selection each board needs to
define board_fit_config_name_match so U-boot can determine what the
correct dtb is within the FIT blob.

Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/ks2_evm/board_k2e.c
board/ti/ks2_evm/board_k2g.c
board/ti/ks2_evm/board_k2hk.c
board/ti/ks2_evm/board_k2l.c

index 64f0c9cd5b5c5b4300967205372762a38cc177a0..266a66b678f23ea9614045b955043dd3acfcab60 100644 (file)
@@ -166,6 +166,16 @@ int get_num_eth_ports(void)
 }
 #endif
 
+#if defined(CONFIG_FIT_EMBED)
+int board_fit_config_name_match(const char *name)
+{
+       if (!strcmp(name, "keystone-k2e-evm"))
+               return 0;
+
+       return -1;
+}
+#endif
+
 #if defined(CONFIG_BOARD_EARLY_INIT_F)
 int board_early_init_f(void)
 {
index 3c75e221271ff0c62bb1e1eddcd9334764f1adcf..588bfff18393fef7185fd88699630cc800575b06 100644 (file)
@@ -214,6 +214,20 @@ int board_mmc_init(bd_t *bis)
 }
 #endif
 
+#if defined(CONFIG_FIT_EMBED)
+int board_fit_config_name_match(const char *name)
+{
+       bool eeprom_read = board_ti_was_eeprom_read();
+
+       if (!strcmp(name, "keystone-k2g-generic") && !eeprom_read)
+               return 0;
+       else if (!strcmp(name, "keystone-k2g-evm") && board_ti_is("66AK2GGP"))
+               return 0;
+       else
+               return -1;
+}
+#endif
+
 #if defined(CONFIG_DTB_RESELECT)
 static int k2g_alt_board_detect(void)
 {
index b35f24d7b5812510caddb448dd8966c6d8881569..c7330996d1abecd0e437679b14ab3dd9c0c24e3f 100644 (file)
@@ -150,6 +150,16 @@ int board_early_init_f(void)
 }
 #endif
 
+#if defined(CONFIG_FIT_EMBED)
+int board_fit_config_name_match(const char *name)
+{
+       if (!strcmp(name, "keystone-k2hk-evm"))
+               return 0;
+
+       return -1;
+}
+#endif
+
 #ifdef CONFIG_SPL_BUILD
 void spl_init_keystone_plls(void)
 {
index f3eea4200cbd0def1fbcfe48097fda507de00251..166367bfb97e01c99b3c62dad9e0f9e36857b6d3 100644 (file)
@@ -138,6 +138,16 @@ int board_early_init_f(void)
 }
 #endif
 
+#if defined(CONFIG_FIT_EMBED)
+int board_fit_config_name_match(const char *name)
+{
+       if (!strcmp(name, "keystone-k2l-evm"))
+               return 0;
+
+       return -1;
+}
+#endif
+
 #ifdef CONFIG_SPL_BUILD
 void spl_init_keystone_plls(void)
 {