/* Check Board Identity: I don' know, how the next board revisions will be coded. Thats why its a static interpretation ...  */
int checkboard(void)
/* Check Board Identity: I don' know, how the next board revisions will be coded. Thats why its a static interpretation ...  */
int checkboard(void)
{
	volatile t_ep_regs *regs = (t_ep_regs *) CONFIG_SYS_REGS_BASE;
	uint major = 0, minor = 0;
	switch (regs->bcsr0) {
	case 0x02:
		major = 1;
		break;
	case 0x03:
		major = 1;
		minor = 1;
		break;
	case 0x06:
		major = 1;
		minor = 3;
		break;
	default:
		break;
	}
	printf ("Board: Embedded Planet EP8260, Revision %d.%d\n",
		major, minor);
	return 0;
}