DescriptionImplement direct pineview backlight control.
This adds a Kconfig variable CONFIG_DRM_I915_DIRECT_BACKLIGHT to
optionally include the new source file i915_backlight.c. This file
registers a couple backlight set/get routines with the standard
drivers/video/backlight interface to add a directory under
/sys/class/backlight/.
The big problem I see with this modification is that the i915 driver
_already_ supports backlight level adjustment in i915_opregion.c.
Unfortunately, that requires an IRQ to occur as the result of writing
some ASLE (ACPI Source Language Event) register, and this requires
BIOS support for the ACPI hook. It looks like we will not have such
support in our initial custom BIOS.
So I copy a small amount of code from i915_opregion.c to make backlight
adjustment directly available to the backlight framework.
Another problem is that I do not cover all the cases handled by the
i915_opregion.c code. It would be too much untested code copying to
do so. I enforce the lack of support by checking for IS_PINEVIEW()
in i915_backlight_init().
Patch Set 1 #
Total comments: 5
Patch Set 2 : Changes to backlight control as per review. #Patch Set 3 : Move config file changes to another patch for upstreamability, as per msb. #
Messages
Total messages: 8 (0 generated)
|