Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337800
b: refs/heads/master
c: 7e29d63
h: refs/heads/master
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent c2052b8 commit aa77e6a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 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: 7c5c07a611069a97aafc316d701da7bd08de14ee
refs/heads/master: 7e29d632f3e8ac2c4607e869f1601ac590d6e5f4
8 changes: 4 additions & 4 deletions trunk/drivers/staging/xgifb/vb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ static void XGINew_SetDRAMDefaultRegister340(
temp2 = 0;
for (i = 0; i < 4; i++) {
/* CR6E DQM fine tune delay */
temp = pVBInfo->CR6E[pVBInfo->ram_type][i];
temp = 0;
for (j = 0; j < 4; j++) {
temp1 = ((temp >> (2 * j)) & 0x03) << 2;
temp2 |= temp1;
Expand All @@ -463,7 +463,7 @@ static void XGINew_SetDRAMDefaultRegister340(
temp2 = 0;
for (i = 0; i < 8; i++) {
/* CR6F DQ fine tune delay */
temp = pVBInfo->CR6F[pVBInfo->ram_type][8 * k + i];
temp = 0;
for (j = 0; j < 4; j++) {
temp1 = (temp >> (2 * j)) & 0x03;
temp2 |= temp1;
Expand All @@ -486,7 +486,7 @@ static void XGINew_SetDRAMDefaultRegister340(

temp2 = 0x80;
/* CR89 terminator type select */
temp = pVBInfo->CR89[pVBInfo->ram_type][0];
temp = 0;
for (j = 0; j < 4; j++) {
temp1 = (temp >> (2 * j)) & 0x03;
temp2 |= temp1;
Expand All @@ -496,7 +496,7 @@ static void XGINew_SetDRAMDefaultRegister340(
temp2 += 0x10;
}

temp = pVBInfo->CR89[pVBInfo->ram_type][1];
temp = 0;
temp1 = temp & 0x03;
temp2 |= temp1;
xgifb_reg_set(P3d4, 0x89, temp2);
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ void InitTo330Pointer(unsigned char ChipType, struct vb_device_info *pVBInfo)
pVBInfo->SR15 = XGI340_SR13;
pVBInfo->CR40 = XGI340_cr41;
pVBInfo->CR6B = XGI340_CR6B;
pVBInfo->CR6E = XGI340_CR6E;
pVBInfo->CR6F = XGI340_CR6F;
pVBInfo->CR89 = XGI340_CR89;
pVBInfo->AGPReg = XGI340_AGPReg;
pVBInfo->SR16 = XGI340_SR16;

Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/xgifb/vb_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ struct vb_device_info {
unsigned long BaseAddr;

unsigned char (*CR6B)[4];
unsigned char (*CR6E)[4];
unsigned char (*CR6F)[32];
unsigned char (*CR89)[2];

unsigned char (*SR15)[8];
unsigned char (*CR40)[8];
Expand Down
6 changes: 0 additions & 6 deletions trunk/drivers/staging/xgifb/vb_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ static unsigned char XGI340_CR6B[8][4] = {
{0x00, 0x00, 0x00, 0x00}
};

static unsigned char XGI340_CR6E[8][4];

static unsigned char XGI340_CR6F[8][32];

static unsigned char XGI340_CR89[8][2];

/* CR47,CR48,CR49,CR4A,CR4B,CR4C,CR70,CR71,CR74,CR75,CR76,CR77 */
static unsigned char XGI340_AGPReg[12] = {
0x28, 0x23, 0x00, 0x20, 0x00, 0x20,
Expand Down

0 comments on commit aa77e6a

Please sign in to comment.