summaryrefslogtreecommitdiff
path: root/board/nvidia
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-04-14 21:03:25 -0600
committerTom Warren <twarren@nvidia.com>2015-05-13 09:24:07 -0700
commitec7466443432966db95ed2324732ee810bfa8229 (patch)
tree05f077b76f72fbc1ad0e0f898248659b1c2f842f /board/nvidia
parent7d874132c45ef21ea56350e941362b6a45f16747 (diff)
downloadu-boot-imx-ec7466443432966db95ed2324732ee810bfa8229.zip
u-boot-imx-ec7466443432966db95ed2324732ee810bfa8229.tar.gz
u-boot-imx-ec7466443432966db95ed2324732ee810bfa8229.tar.bz2
tegra: Add a board ID function
Add a way of displaying a numeric board ID on start-up. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'board/nvidia')
-rw-r--r--board/nvidia/common/board.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index f1a9496..b5a69df 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -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;
}