/* Routine: zoom2_identify Description: Detect which version of Zoom2 we are running on.  */
void zoom2_identify(void)
/* Routine: zoom2_identify Description: Detect which version of Zoom2 we are running on.  */
void zoom2_identify(void)
{
	if (!omap_request_gpio(94)) {
		unsigned int val;
		omap_set_gpio_direction(94, 1);
		val = omap_get_gpio_datain(94);
		omap_free_gpio(94);
		if (val)
			revision = ZOOM2_REVISION_BETA;
		else
			revision = ZOOM2_REVISION_PRODUCTION;
	}
	printf("Board revision ");
	switch (revision) {
	case ZOOM2_REVISION_PRODUCTION:
		printf("Production\n");
		break;
	case ZOOM2_REVISION_BETA:
		printf("Beta\n");
		break;
	default:
		printf("Unknown\n");
		break;
	}
}