drm/i915: Add ACPI OpRegion support for Ironlake
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 28 Oct 2009 05:10:00 +0000 (05:10 +0000)
committerEric Anholt <eric@anholt.net>
Thu, 5 Nov 2009 22:49:13 +0000 (14:49 -0800)
commit01c66889c14aa163c49355b3be2ccfb214500599
tree278e3e9a1fb0001d61d531804e8db6ea83bc712c
parent1dc7546d1a73664e5d117715b214bea9cae5951c
drm/i915: Add ACPI OpRegion support for Ironlake

Add the support of ACPI opregion on Ironlake so that the backlight
brightness can be adjusted by using ACPI interface
   >/sys/class/backlight/acpi_video0/brightness

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Tested-by: Zhao Yakui <yakui.zhao@intel.com>
[zhenyuw: cleanups, fix typo for checking GSE irq and convert to
current irq handling logic.]
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_opregion.c