intel_extreme: backlight control on pre-PCH devices

Thanks to oco for letting me test this on his old laptop.
This commit is contained in:
Adrien Destugues
2017-11-23 23:59:39 +01:00
parent e042a53b7d
commit 8ddec194c6
2 changed files with 25 additions and 8 deletions
@@ -812,9 +812,11 @@ struct intel_free_graphics_memory {
#define PANEL_DIVISOR_POW_CYCLE_DLY_SHIFT 0x1f
// Backlight control registers
#define INTEL_BLC_PWM_CTL2 (0x8250 | REGS_NORTH_SHARED)
#define INTEL_BLC_PWM_CTL (0x8254 | REGS_NORTH_SHARED)
#define INTEL_SBLC_PWM_CTL2 (0x8254 | REGS_SOUTH_SHARED)
#define PCH_BLC_PWM_CTL2 (0x8250 | REGS_NORTH_SHARED)
#define PCH_BLC_PWM_CTL (0x8254 | REGS_NORTH_SHARED)
#define PCH_SBLC_PWM_CTL2 (0x8254 | REGS_SOUTH_SHARED)
#define MCH_BLC_PWM_CTL (0x1254 | REGS_NORTH_PIPE_AND_PORT)
// ring buffer commands