diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-06-05 04:07:08 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-06-12 13:25:03 -0400 |
commit | 534b5a5341cb7e16a98d44623d8fce9464ebf22c (patch) | |
tree | 5cac679026a01f3f56817d9c1c7fd542682e77d8 /drivers/gpu/drm/i915 | |
parent | afba018898ae54b498e82b3cd4d2b61c74032c90 (diff) |
drm/i915: pnv has a backlight polarity control bit, too
We already correctly ignore bit0 on gen < 4, now we also know why ;-)
I've decided that losing that single bit of precision isn't worth the
trouble to sprinkle IS_PINEVIEW checks all over the backlight control
code - that code is way too fragile imo.
Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 7dcc04f2143e..20244b971fc6 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -1828,6 +1828,8 @@ | |||
1828 | */ | 1828 | */ |
1829 | #define BACKLIGHT_DUTY_CYCLE_SHIFT (0) | 1829 | #define BACKLIGHT_DUTY_CYCLE_SHIFT (0) |
1830 | #define BACKLIGHT_DUTY_CYCLE_MASK (0xffff) | 1830 | #define BACKLIGHT_DUTY_CYCLE_MASK (0xffff) |
1831 | #define BACKLIGHT_DUTY_CYCLE_MASK_PNV (0xfffe) | ||
1832 | #define BLM_POLARITY_PNV (1 << 0) /* pnv only */ | ||
1831 | 1833 | ||
1832 | #define BLC_HIST_CTL 0x61260 | 1834 | #define BLC_HIST_CTL 0x61260 |
1833 | 1835 | ||