/* Check board identity. Always successful (gives information only)  */
int checkboard(void)
/* Check board identity. Always successful (gives information only)  */
int checkboard(void)
{
	char *s;
	char buf[64];
	int i;
	i = getenv_r ("board_id", buf, sizeof (buf));
	s = (i > 0) ? buf : NULL;
	if (s) {
		printf ("%s ", s);
	} else {
		printf ("<unknown> ");
	}
	i = getenv_r ("serial#", buf, sizeof (buf));
	s = (i > 0) ? buf : NULL;
	if (s) {
		printf ("S/N %s\n", s);
	} else {
		printf ("S/N <unknown>\n");
	}
	printf ("CPU at %s MHz, ", strmhz (buf, gd->cpu_clk));
	printf ("local bus at %s MHz\n", strmhz (buf, gd->bus_clk));
	return (0);
}