Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247852
b: refs/heads/master
c: c5593d2
h: refs/heads/master
v: v3
  • Loading branch information
Florian Tobias Schandinat authored and Florian Tobias Schandinat committed Mar 24, 2011
1 parent de49e2d commit 54b817c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 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: 6c1093af5833d4c69634711d9453287ab9e0cb77
refs/heads/master: c5593d26aea3aba2a7703a0b5d74b4ea8b726889
38 changes: 37 additions & 1 deletion trunk/drivers/video/via/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,42 @@ void viafb_load_FIFO_reg(int set_iga, int hor_active, int ver_active)

}

static void set_primary_clock_state(u8 state)
{
u8 value;

switch (state) {
case VIA_STATE_ON:
value = 0x20;
break;
case VIA_STATE_OFF:
value = 0x00;
break;
default:
return;
}

via_write_reg_mask(VIASR, 0x1B, value, 0x30);
}

static void set_secondary_clock_state(u8 state)
{
u8 value;

switch (state) {
case VIA_STATE_ON:
value = 0x80;
break;
case VIA_STATE_OFF:
value = 0x00;
break;
default:
return;
}

via_write_reg_mask(VIASR, 0x1B, value, 0xC0);
}

static void set_primary_pll_state(u8 state)
{
u8 value;
Expand Down Expand Up @@ -1442,7 +1478,7 @@ static void set_secondary_pll_state(u8 state)
return;
}

via_write_reg_mask(VIASR, 0x2D, value, 0x08);
via_write_reg_mask(VIASR, 0x2D, value, 0x0C);
}

static u32 cle266_encode_pll(struct pll_config pll)
Expand Down

0 comments on commit 54b817c

Please sign in to comment.