Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317348
b: refs/heads/master
c: 4e55d0b
h: refs/heads/master
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Jun 14, 2012
1 parent 9aee090 commit 53691c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 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: 672f5ee27e622c995bd0c19d2ba1bb5a55b6d902
refs/heads/master: 4e55d0b3ee13bb21dc0f74217675e86486004b8b
16 changes: 4 additions & 12 deletions trunk/drivers/staging/xgifb/vb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,17 +579,6 @@ static void XGINew_SetDRAMDefaultRegister340(
pVBInfo->SR15[3][pVBInfo->ram_type]); /* SR1B */
}

static void XGINew_SetDRAMSizingType(int index,
const unsigned short DRAMTYPE_TABLE[][5],
struct vb_device_info *pVBInfo)
{
unsigned short data;

data = DRAMTYPE_TABLE[index][4];
xgifb_reg_and_or(pVBInfo->P3c4, 0x13, 0x80, data);
udelay(15);
/* should delay 50 ns */
}

static unsigned short XGINew_SetDRAMSize20Reg(int index,
const unsigned short DRAMTYPE_TABLE[][5],
Expand Down Expand Up @@ -912,7 +901,10 @@ static int XGINew_DDRSizing340(struct xgi_hw_device_info *HwDeviceExtension,
}

for (i = 0; i < size; i++) {
XGINew_SetDRAMSizingType(i, dram_table, pVBInfo);
/* SetDRAMSizingType */
xgifb_reg_and_or(pVBInfo->P3c4, 0x13, 0x80, dram_table[i][4]);
udelay(15); /* should delay 50 ns */

memsize = XGINew_SetDRAMSize20Reg(i, dram_table, pVBInfo);

if (memsize == 0)
Expand Down

0 comments on commit 53691c8

Please sign in to comment.