Commit f615cb6a authored by José Roberto de Souza's avatar José Roberto de Souza
Browse files

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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -722,6 +722,9 @@ parse_power_conservation_features(struct drm_i915_private *dev_priv,
	 */
	if (!(power->drrs & BIT(panel_type)))
		dev_priv->vbt.drrs_type = DRRS_NOT_SUPPORTED;

	if (bdb->version >= 232)
		dev_priv->vbt.edp.hobl = power->hobl & BIT(panel_type);
}

static void
+1 −0
Original line number Diff line number Diff line
@@ -820,6 +820,7 @@ struct bdb_lfp_power {
	u16 adb;
	u16 lace_enabled_status;
	struct agressiveness_profile_entry aggressivenes[16];
	u16 hobl; /* 232+ */
} __packed;

/*
+1 −0
Original line number Diff line number Diff line
@@ -692,6 +692,7 @@ struct intel_vbt_data {
		bool initialized;
		int bpp;
		struct edp_power_seq pps;
		bool hobl;
	} edp;

	struct {