diff options
author | Deepak M <m.deepak@intel.com> | 2016-04-26 13:14:24 (GMT) |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-05-02 13:17:38 (GMT) |
commit | 9a41e17de38e8528816598e728f784da68df17f7 (patch) | |
tree | cef3be2f733841693b5f559c259fc9e6db6668bc /drivers/gpu/drm/i915/intel_vbt_defs.h | |
parent | ea9d9768a497e23713366a0e2ca290332bc1ed81 (diff) | |
download | linux-9a41e17de38e8528816598e728f784da68df17f7.tar.xz |
drm/i915: Parse LFP brightness control field in VBT
These fields in VBT indicates the PWM source which
is used and also the controller number.
v2 by Jani: check for out of bounds access, some renames, change default
type, etc.
v3 by Jani: s/INTEL_BACKLIGHT_CABC/INTEL_BACKLIGHT_DSI_DCS/
Signed-off-by: Deepak M <m.deepak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/eee2f7b683a081f006a7df1ddad9b20fbf53c48c.1461676337.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_vbt_defs.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_vbt_defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_vbt_defs.h b/drivers/gpu/drm/i915/intel_vbt_defs.h index 9ff1e96..a4a42f2 100644 --- a/drivers/gpu/drm/i915/intel_vbt_defs.h +++ b/drivers/gpu/drm/i915/intel_vbt_defs.h @@ -446,10 +446,16 @@ struct bdb_lfp_backlight_data_entry { u8 obsolete3; } __packed; +struct bdb_lfp_backlight_control_method { + u8 type:4; + u8 controller:4; +} __packed; + struct bdb_lfp_backlight_data { u8 entry_size; struct bdb_lfp_backlight_data_entry data[16]; u8 level[16]; + struct bdb_lfp_backlight_control_method backlight_control[16]; } __packed; struct aimdb_header { |