Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271334
b: refs/heads/master
c: c174e3a
h: refs/heads/master
v: v3
  • Loading branch information
Florian Tobias Schandinat authored and Florian Tobias Schandinat committed Aug 5, 2011
1 parent c787ab2 commit af61b37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 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: f18e3e0ce0dacca497e3f1547095b3f9b111b0f7
refs/heads/master: c174e3a3cd0594958c9afc6cdb8fbe20780d9c76
7 changes: 0 additions & 7 deletions trunk/drivers/video/via/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1507,18 +1507,11 @@ void viafb_fill_crtc_timing(struct crt_mode_table *crt_table,
crt_reg.ver_sync_end += crt_reg.ver_sync_start;
h_addr = crt_reg.hor_addr;
v_addr = crt_reg.ver_addr;
if (set_iga == IGA1) {
viafb_unlock_crt();
viafb_write_reg_mask(CR17, VIACR, 0x00, BIT7);
}

if (set_iga == IGA1)
via_set_primary_timing(&crt_reg);
else if (set_iga == IGA2)
via_set_secondary_timing(&crt_reg);

viafb_lock_crt();
viafb_write_reg_mask(CR17, VIACR, 0x80, BIT7);
viafb_load_fetch_count_reg(h_addr, bpp_byte, set_iga);

/* load FIFO */
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/video/via/via_modesetting.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ void via_set_primary_timing(const struct display_timing *timing)

/* lock timing registers */
via_write_reg_mask(VIACR, 0x11, 0x80, 0x80);

/* reset timing control */
via_write_reg_mask(VIACR, 0x17, 0x00, 0x80);
via_write_reg_mask(VIACR, 0x17, 0x80, 0x80);
}

void via_set_secondary_timing(const struct display_timing *timing)
Expand Down

0 comments on commit af61b37

Please sign in to comment.