lcdtg_set_phadadj(par); 
lcdtg_set_phadadj(mode); 
static void lcdtg_hw_init(struct w100fb_par *par){	if (!lcd_inited) {		int comadj;		/* Initialize Internal Logic & Port */		corgi_ssp_lcdtg_send(PICTRL_ADRS, PICTRL_POWER_DOWN | PICTRL_INIOFF | PICTRL_INIT_STATE	  			| PICTRL_COM_SIGNAL_OFF | PICTRL_DAC_SIGNAL_OFF);		corgi_ssp_lcdtg_send(POWERREG0_ADRS, POWER0_COM_DCLK | POWER0_COM_DOUT | POWER0_DAC_OFF				| POWER0_COM_OFF | POWER0_VCC5_OFF);		corgi_ssp_lcdtg_send(POWERREG1_ADRS, POWER1_VW_OFF | POWER1_GVSS_OFF | POWER1_VDD_OFF);		/* VDD(+8V), SVSS(-4V) ON */		corgi_ssp_lcdtg_send(POWERREG1_ADRS, POWER1_VW_OFF | POWER1_GVSS_OFF | POWER1_VDD_ON);		mdelay(3);		/* DAC ON */		corgi_ssp_lcdtg_send(POWERREG0_ADRS, POWER0_COM_DCLK | POWER0_COM_DOUT | POWER0_DAC_ON				| POWER0_COM_OFF | POWER0_VCC5_OFF);		/* INIB = H, INI = L  */		/* PICTL[0] = H , PICTL[1] = PICTL[2] = PICTL[4] = L */		corgi_ssp_lcdtg_send(PICTRL_ADRS, PICTRL_INIT_STATE | PICTRL_COM_SIGNAL_OFF);		/* Set Common Voltage */		comadj = sharpsl_param.comadj;		if (comadj < 0)			comadj = DEFAULT_COMADJ;		lcdtg_set_common_voltage((POWER0_DAC_ON | POWER0_COM_OFF | POWER0_VCC5_OFF), comadj);		/* VCC5 ON, DAC ON */		corgi_ssp_lcdtg_send(POWERREG0_ADRS, POWER0_COM_DCLK | POWER0_COM_DOUT | POWER0_DAC_ON |				POWER0_COM_OFF | POWER0_VCC5_ON);		/* GVSS(-8V) ON, VDD ON */		corgi_ssp_lcdtg_send(POWERREG1_ADRS, POWER1_VW_OFF | POWER1_GVSS_ON | POWER1_VDD_ON);		mdelay(2);		/* COM SIGNAL ON (PICTL[3] = L) */		corgi_ssp_lcdtg_send(PICTRL_ADRS, PICTRL_INIT_STATE);		/* COM ON, DAC ON, VCC5_ON */		corgi_ssp_lcdtg_send(POWERREG0_ADRS, POWER0_COM_DCLK | POWER0_COM_DOUT | POWER0_DAC_ON				| POWER0_COM_ON | POWER0_VCC5_ON);		/* VW ON, GVSS ON, VDD ON */		corgi_ssp_lcdtg_send(POWERREG1_ADRS, POWER1_VW_ON | POWER1_GVSS_ON | POWER1_VDD_ON);		/* Signals output enable */		corgi_ssp_lcdtg_send(PICTRL_ADRS, 0);		/* Set Phase Adjuct */		lcdtg_set_phadadj(par);		/* Initialize for Input Signals from ATI */		corgi_ssp_lcdtg_send(POLCTRL_ADRS, POLCTRL_SYNC_POL_RISE | POLCTRL_EN_POL_RISE				| POLCTRL_DATA_POL_RISE | POLCTRL_SYNC_ACT_L | POLCTRL_EN_ACT_H);		udelay(1000);		lcd_inited=1;	} else {		lcdtg_set_phadadj(par);	}	switch(par->xres) {		case 480:		case 640:			/* Set Lcd Resolution (VGA) */			corgi_ssp_lcdtg_send(RESCTL_ADRS, RESCTL_VGA);			break;		case 240:		case 320:		default:			/* Set Lcd Resolution (QVGA) */			corgi_ssp_lcdtg_send(RESCTL_ADRS, RESCTL_QVGA);			break;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/9fc7896b62b48714fafecf9266d9dc14c1cd6e33/corgi_lcd.c/buggy/arch/arm/mach-pxa/corgi_lcd.c