mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
Clear the backlight level when it's turned off. Also, reduce the delay times to
less conservative values, also found in the radeonkms driver. MFC after: 2 weeks X-MFC-with: r264205
This commit is contained in:
parent
1c6ca154ca
commit
be9b614d12
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264207
@ -235,21 +235,21 @@ atibl_setlevel(struct atibl_softc *sc, int newlevel)
|
||||
lvds_gen_cntl |= (newlevel << RADEON_LVDS_BL_MOD_LEVEL_SHIFT) &
|
||||
RADEON_LVDS_BL_MOD_LEVEL_MASK;
|
||||
lvds_gen_cntl |= RADEON_LVDS_BL_MOD_EN;
|
||||
DELAY(2000000);
|
||||
DELAY(200000);
|
||||
bus_write_4(sc->sc_memr, RADEON_LVDS_GEN_CNTL, lvds_gen_cntl);
|
||||
} else {
|
||||
pixclks_cntl = atibl_pll_rreg(sc, RADEON_PIXCLKS_CNTL);
|
||||
atibl_pll_wreg(sc, RADEON_PIXCLKS_CNTL,
|
||||
pixclks_cntl & ~RADEON_PIXCLK_LVDS_ALWAYS_ONb);
|
||||
lvds_gen_cntl |= RADEON_LVDS_DISPLAY_DIS;
|
||||
lvds_gen_cntl &= ~RADEON_LVDS_BL_MOD_EN;
|
||||
lvds_gen_cntl &= ~(RADEON_LVDS_BL_MOD_EN | RADEON_LVDS_BL_MOD_LEVEL_MASK);
|
||||
bus_write_4(sc->sc_memr, RADEON_LVDS_GEN_CNTL, lvds_gen_cntl);
|
||||
lvds_gen_cntl &= ~(RADEON_LVDS_ON | RADEON_LVDS_EN);
|
||||
DELAY(2000000);
|
||||
DELAY(200000);
|
||||
bus_write_4(sc->sc_memr, RADEON_LVDS_GEN_CNTL, lvds_gen_cntl);
|
||||
|
||||
atibl_pll_wreg(sc, RADEON_PIXCLKS_CNTL, pixclks_cntl);
|
||||
DELAY(2000000);
|
||||
DELAY(200000);
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user