/* Return code for board revision and network speed  */
int checkboard(void)
/* Return code for board revision and network speed  */
int checkboard(void)
{
	char *s = getenv ("serial#");
	char *e;
	puts ("Board: ");
	if (!s || strncmp (s, "HERMES", 6)) {
		puts ("### No HW ID - assuming HERMES-PRO");
	} else {
		for (e = s; *e; ++e) {
			if (*e == ' ')
				break;
		}
		for (; s < e; ++s) {
			putc (*s);
		}
	}
	gd->board_type = board_init ();
	printf ("  Rev. %ld.x\n", (gd->board_type >> 16));
	return (0);
}