commit | 078a033f45471c44befd72ccacf3f31d75299dba | [log] [tgz] |
---|---|---|
author | Li Peng <peng.li@linux.intel.com> | Tue Sep 15 13:03:36 2009 +0800 |
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | Thu Sep 17 14:32:08 2009 -0700 |
tree | dc5b9c868684b28040fdafaeeef57cb6489feb8e | |
parent | 8dd81a381e8886129c0923f1fe22ff5ca36ae8da [diff] |
drm/i915: fix opregion backlight chip detect and range BLC_PWM_CTL2 is for 965+ only, so add device model check for legacy backlight control. For native backlight control, it maps the backlight value (0~255) in opregion ASLE[BCLP] to backlight duty cycle (0~max_backlight) and set into control register. It also add support for IGD device, which follows opregion spec. Signed-off-by: Li Peng <peng.li@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>