]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/nvidia/common/board.c
tegra: Add a board ID function
[karo-tx-uboot.git] / board / nvidia / common / board.c
index f1a9496c04199a9843e43174e04db00482cb6ce2..b5a69dfbbcd5bd7a8263042b31b04dc68aa2d9af 100644 (file)
@@ -81,10 +81,20 @@ static void power_det_init(void)
 #endif
 }
 
+__weak int tegra_board_id(void)
+{
+       return -1;
+}
+
 #ifdef CONFIG_DISPLAY_BOARDINFO
 int checkboard(void)
 {
-       printf("Board: %s\n", CONFIG_TEGRA_BOARD_STRING);
+       int board_id = tegra_board_id();
+
+       printf("Board: %s", CONFIG_TEGRA_BOARD_STRING);
+       if (board_id != -1)
+               printf(", ID: %d\n", board_id);
+       printf("\n");
 
        return 0;
 }