drm/i915/bios: Parse HOBL parameter

HOBL means hours of battery life, it is a power-saving feature
were supported motherboards can use a special voltage swing table
that uses less power.

So here parsing the VBT to check if this feature is supported.

BSpec: 20150
Reviewed-by: default avatarAnusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200708205512.21625-3-jose.souza@intel.com
parent f0e86e05
...@@ -722,6 +722,9 @@ parse_power_conservation_features(struct drm_i915_private *dev_priv, ...@@ -722,6 +722,9 @@ parse_power_conservation_features(struct drm_i915_private *dev_priv,
*/ */
if (!(power->drrs & BIT(panel_type))) if (!(power->drrs & BIT(panel_type)))
dev_priv->vbt.drrs_type = DRRS_NOT_SUPPORTED; dev_priv->vbt.drrs_type = DRRS_NOT_SUPPORTED;
if (bdb->version >= 232)
dev_priv->vbt.edp.hobl = power->hobl & BIT(panel_type);
} }
static void static void
......
...@@ -820,6 +820,7 @@ struct bdb_lfp_power { ...@@ -820,6 +820,7 @@ struct bdb_lfp_power {
u16 adb; u16 adb;
u16 lace_enabled_status; u16 lace_enabled_status;
struct agressiveness_profile_entry aggressivenes[16]; struct agressiveness_profile_entry aggressivenes[16];
u16 hobl; /* 232+ */
} __packed; } __packed;
/* /*
......
...@@ -692,6 +692,7 @@ struct intel_vbt_data { ...@@ -692,6 +692,7 @@ struct intel_vbt_data {
bool initialized; bool initialized;
int bpp; int bpp;
struct edp_power_seq pps; struct edp_power_seq pps;
bool hobl;
} edp; } edp;
struct { struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment