case 0x03: 
void __init omap_check_revision(void){	int i;	u16 jtag_id;	u8 die_rev;	u32 omap_id;	u8 cpu_type;	jtag_id = omap_get_jtag_id();	die_rev = omap_get_die_rev();	omap_id = omap_readl(OMAP32_ID_0);#ifdef DEBUG	printk("OMAP_DIE_ID_0: 0x%08x\n", omap_readl(OMAP_DIE_ID_0));	printk("OMAP_DIE_ID_1: 0x%08x DIE_REV: %i\n",		omap_readl(OMAP_DIE_ID_1),	       (omap_readl(OMAP_DIE_ID_1) >> 17) & 0xf);	printk("OMAP_PRODUCTION_ID_0: 0x%08x\n", omap_readl(OMAP_PRODUCTION_ID_0));	printk("OMAP_PRODUCTION_ID_1: 0x%08x JTAG_ID: 0x%04x\n",		omap_readl(OMAP_PRODUCTION_ID_1),		omap_readl(OMAP_PRODUCTION_ID_1) & 0xffff);	printk("OMAP32_ID_0: 0x%08x\n", omap_readl(OMAP32_ID_0));	printk("OMAP32_ID_1: 0x%08x\n", omap_readl(OMAP32_ID_1));	printk("JTAG_ID: 0x%04x DIE_REV: %i\n", jtag_id, die_rev);#endif	system_serial_high = omap_readl(OMAP_DIE_ID_0);	system_serial_low = omap_readl(OMAP_DIE_ID_1);	/* First check only the major version in a safe way */	for (i = 0; i < ARRAY_SIZE(omap_ids); i++) {		if (jtag_id == (omap_ids[i].jtag_id)) {			system_rev = omap_ids[i].type;			break;		}	}	/* Check if we can find the die revision */	for (i = 0; i < ARRAY_SIZE(omap_ids); i++) {		if (jtag_id == omap_ids[i].jtag_id && die_rev == omap_ids[i].die_rev) {			system_rev = omap_ids[i].type;			break;		}	}	/* Finally check also the omap_id */	for (i = 0; i < ARRAY_SIZE(omap_ids); i++) {		if (jtag_id == omap_ids[i].jtag_id		    && die_rev == omap_ids[i].die_rev		    && omap_id == omap_ids[i].omap_id) {			system_rev = omap_ids[i].type;			break;		}	}	/* Add the cpu class info (7xx, 15xx, 16xx, 24xx) */	cpu_type = system_rev >> 24;	switch (cpu_type) {	case 0x07:		system_rev |= 0x07;		break;	case 0x15:		system_rev |= 0x15;		break;	case 0x16:	case 0x17:		system_rev |= 0x16;		break;	case 0x24:		system_rev |= 0x24;		break;	default:		printk("Unknown OMAP cpu type: 0x%02x\n", cpu_type);	}	printk("OMAP%04x", system_rev >> 16);	if ((system_rev >> 8) & 0xff)		printk("%x", (system_rev >> 8) & 0xff);	printk(" revision %i handled as %02xxx id: %08x%08x\n",	       die_rev, system_rev & 0xff, system_serial_low,	       system_serial_high);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/3179a019391f0f8081245fd564a5f1be308ba64f/id.c/buggy/arch/arm/mach-omap1/id.c