Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281134
b: refs/heads/master
c: 9913b6c
h: refs/heads/master
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent c2a86e6 commit 84898e8
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 32 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 776115a0eb7d7e6ad3325c2ff1f09f8a5b09a807
refs/heads/master: 9913b6c0d72e74dfe2acdddd94f7e10e1b089884
58 changes: 29 additions & 29 deletions trunk/drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -3819,6 +3819,35 @@ static void XGI_XG27BLSignalVDD(unsigned short tempbh, unsigned short tempbl,
xgifb_reg_and_or(pVBInfo->P3d4, 0x48, ~tempbh, tempbl);
}

/* --------------------------------------------------------------------- */
/* Function : XGI_XG21SetPanelDelay */
/* Input : */
/* Output : */
/* Description : */
/* I/P : bl : 1 ; T1 : the duration between CPL on and signal on */
/* : bl : 2 ; T2 : the duration signal on and Vdd on */
/* : bl : 3 ; T3 : the duration between CPL off and signal off */
/* : bl : 4 ; T4 : the duration signal off and Vdd off */
/* --------------------------------------------------------------------- */
static void XGI_XG21SetPanelDelay(unsigned short tempbl,
struct vb_device_info *pVBInfo)
{
unsigned short index;

index = XGI_GetLVDSOEMTableIndex(pVBInfo);
if (tempbl == 1)
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S1);

if (tempbl == 2)
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S2);

if (tempbl == 3)
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S3);

if (tempbl == 4)
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S4);
}

void XGI_DisplayOn(struct xgi_hw_device_info *pXGIHWDE,
struct vb_device_info *pVBInfo)
{
Expand Down Expand Up @@ -6026,35 +6055,6 @@ unsigned short XGI_GetLVDSOEMTableIndex(struct vb_device_info *pVBInfo)
return 0;
}

/* --------------------------------------------------------------------- */
/* Function : XGI_XG21SetPanelDelay */
/* Input : */
/* Output : */
/* Description : */
/* I/P : bl : 1 ; T1 : the duration between CPL on and signal on */
/* : bl : 2 ; T2 : the duration signal on and Vdd on */
/* : bl : 3 ; T3 : the duration between CPL off and signal off */
/* : bl : 4 ; T4 : the duration signal off and Vdd off */
/* --------------------------------------------------------------------- */
void XGI_XG21SetPanelDelay(unsigned short tempbl,
struct vb_device_info *pVBInfo)
{
unsigned short index;

index = XGI_GetLVDSOEMTableIndex(pVBInfo);
if (tempbl == 1)
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S1);

if (tempbl == 2)
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S2);

if (tempbl == 3)
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S3);

if (tempbl == 4)
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S4);
}

unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo,
unsigned short ModeIdIndex, struct vb_device_info *pVBInfo)
{
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/staging/xgifb/vb_setmode.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ extern unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
unsigned short ModeNo,
unsigned short ModeIdIndex,
struct vb_device_info *);
extern void XGI_XG21SetPanelDelay(unsigned short tempbl,
struct vb_device_info *pVBInfo);
extern unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo,
unsigned short ModeIdIndex,
struct vb_device_info *pVBInfo);
Expand Down

0 comments on commit 84898e8

Please sign in to comment.