diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-06-24 11:27:39 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-07-23 01:05:56 -0400 |
commit | 1de6068eb755cf8f87b985277fc396903d6bccd2 (patch) | |
tree | e6debcbd54629df083c599dab205e160e3b66b47 /drivers/gpu/drm/i915 | |
parent | b98856a86b0a44ef9d0ab61f6855baf6d941fe6f (diff) |
drm/i915: extract backlight minimum brightness from VBT
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Jani Nikula <jani.nikula@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_drv.h | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_bios.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 30b23bf7df28..12ab3201ee1e 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1270,6 +1270,7 @@ struct intel_vbt_data { | |||
1270 | u16 pwm_freq_hz; | 1270 | u16 pwm_freq_hz; |
1271 | bool present; | 1271 | bool present; |
1272 | bool active_low_pwm; | 1272 | bool active_low_pwm; |
1273 | u8 min_brightness; /* min_brightness/255 of max */ | ||
1273 | } backlight; | 1274 | } backlight; |
1274 | 1275 | ||
1275 | /* MIPI DSI */ | 1276 | /* MIPI DSI */ |
diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index 827498e081df..608ed302f24d 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c | |||
@@ -336,11 +336,12 @@ parse_lfp_backlight(struct drm_i915_private *dev_priv, struct bdb_header *bdb) | |||
336 | 336 | ||
337 | dev_priv->vbt.backlight.pwm_freq_hz = entry->pwm_freq_hz; | 337 | dev_priv->vbt.backlight.pwm_freq_hz = entry->pwm_freq_hz; |
338 | dev_priv->vbt.backlight.active_low_pwm = entry->active_low_pwm; | 338 | dev_priv->vbt.backlight.active_low_pwm = entry->active_low_pwm; |
339 | dev_priv->vbt.backlight.min_brightness = entry->min_brightness; | ||
339 | DRM_DEBUG_KMS("VBT backlight PWM modulation frequency %u Hz, " | 340 | DRM_DEBUG_KMS("VBT backlight PWM modulation frequency %u Hz, " |
340 | "active %s, min brightness %u, level %u\n", | 341 | "active %s, min brightness %u, level %u\n", |
341 | dev_priv->vbt.backlight.pwm_freq_hz, | 342 | dev_priv->vbt.backlight.pwm_freq_hz, |
342 | dev_priv->vbt.backlight.active_low_pwm ? "low" : "high", | 343 | dev_priv->vbt.backlight.active_low_pwm ? "low" : "high", |
343 | entry->min_brightness, | 344 | dev_priv->vbt.backlight.min_brightness, |
344 | backlight_data->level[panel_type]); | 345 | backlight_data->level[panel_type]); |
345 | } | 346 | } |
346 | 347 | ||