#ifdef CONFIG_FB_E1356 if ((argptr = strstr(argptr, "video=")) == NULL) { argptr = prom_getcmdline(); #ifdef CONFIG_MIPS_PB1000 strcat(argptr, " video=e1356fb:system:pb1000,mmunalign:1"); #else strcat(argptr, " video=e1356fb:system:pb1500"); #endif } #endif  
void __init plat_setup(void){	struct	cpu_spec *sp;	char *argptr;	unsigned long prid, cpupll, bclk = 1;	set_cpuspec();	sp = cur_cpu_spec[0];	board_setup();  /* board specific setup */	prid = read_c0_prid();	cpupll = (au_readl(0xB1900060) & 0x3F) * 12;	printk("(PRId %08lx) @ %ldMHZ\n", prid, cpupll);	bclk = sp->cpu_bclk;	if (bclk)	{		/* Enable BCLK switching */		bclk = au_readl(0xB190003C);		au_writel(bclk | 0x60, 0xB190003C);		printk("BCLK switching enabled!\n");	}	if (sp->cpu_od) {		/* Various early Au1000 Errata corrected by this */		set_c0_config(1<<19); /* Set Config[OD] */	}	else {		/* Clear to obtain best system bus performance */		clear_c0_config(1<<19); /* Clear Config[OD] */ 	}	argptr = prom_getcmdline();#ifdef CONFIG_SERIAL_AU1X00_CONSOLE	if ((argptr = strstr(argptr, "console=")) == NULL) {		argptr = prom_getcmdline();		strcat(argptr, " console=ttyS0,115200");	}#endif#ifdef CONFIG_FB_AU1100    if ((argptr = strstr(argptr, "video=")) == NULL) {        argptr = prom_getcmdline();        /* default panel */        /*strcat(argptr, " video=au1100fb:panel:Sharp_320x240_16");*/#ifdef CONFIG_MIPS_HYDROGEN3         strcat(argptr, " video=au1100fb:panel:Hydrogen_3_NEC_panel_320x240,nohwcursor");#endif    }#endif#ifdef CONFIG_FB_E1356	if ((argptr = strstr(argptr, "video=")) == NULL) {		argptr = prom_getcmdline();#ifdef CONFIG_MIPS_PB1000		strcat(argptr, " video=e1356fb:system:pb1000,mmunalign:1");#else		strcat(argptr, " video=e1356fb:system:pb1500");#endif	}#endif#ifdef CONFIG_FB_XPERT98	if ((argptr = strstr(argptr, "video=")) == NULL) {		argptr = prom_getcmdline();		strcat(argptr, " video=atyfb:1024x768-8@70");	}#endif#if defined(CONFIG_SOUND_AU1X00) && !defined(CONFIG_SOC_AU1000)	/* au1000 does not support vra, au1500 and au1100 do */	strcat(argptr, " au1000_audio=vra");	argptr = prom_getcmdline();#endif	_machine_restart = au1000_restart;	_machine_halt = au1000_halt;	_machine_power_off = au1000_power_off;	board_time_init = au1xxx_time_init;	board_timer_setup = au1xxx_timer_setup;	/* IO/MEM resources. */	set_io_port_base(0);	ioport_resource.start = IOPORT_RESOURCE_START;	ioport_resource.end = IOPORT_RESOURCE_END;	iomem_resource.start = IOMEM_RESOURCE_START;	iomem_resource.end = IOMEM_RESOURCE_END;	while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_E0S);	au_writel(SYS_CNTRL_E0 | SYS_CNTRL_EN0, SYS_COUNTER_CNTRL);	au_sync();	while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_T0S);	au_writel(0, SYS_TOYTRIM);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/01a16fae8e0e99a5abdd1c6c9a2b67e7e6167c18/setup.c/buggy/arch/mips/au1000/common/setup.c