X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fsis%2Finit301.c;h=2d88f908170aad459568e84c2e89d29ca87bcbff;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=c3e070a6effd9f61a25f5a98e2d8ba674da37954;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/drivers/video/sis/init301.c b/drivers/video/sis/init301.c index c3e070a6e..2d88f9081 100644 --- a/drivers/video/sis/init301.c +++ b/drivers/video/sis/init301.c @@ -8564,9 +8564,11 @@ SiS_ChrontelDoSomething3(struct SiS_Private *SiS_Pr, unsigned short ModeNo) static void SiS_ChrontelDoSomething2(struct SiS_Private *SiS_Pr) { - unsigned short temp; + unsigned short temp,tempcl,tempch; SiS_LongDelay(SiS_Pr, 1); + tempcl = 3; + tempch = 0; do { temp = SiS_GetCH701x(SiS_Pr,0x66); @@ -8580,6 +8582,13 @@ SiS_ChrontelDoSomething2(struct SiS_Private *SiS_Pr) SiS_SetCH701xForLCD(SiS_Pr); + if(tempcl == 0) { + if(tempch == 3) break; + SiS_ChrontelResetDB(SiS_Pr); + tempcl = 3; + tempch++; + } + tempcl--; temp = SiS_GetCH701x(SiS_Pr,0x76); temp &= 0xfb; /* Reset PLL */ SiS_SetCH701x(SiS_Pr,0x76,temp);