diff mbox series

[18/35] drm/i915/bios: Define VBT block 18 (Driver Rotation) contents

Message ID 20240503122449.27266-19-ville.syrjala@linux.intel.com (mailing list archive)
State New
Headers show
Series drm/i915/bios: Define (almost) all BDB blocks | expand

Commit Message

Ville Syrjala May 3, 2024, 12:24 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Define the contents of block 18 (Driver Rotation).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/display/intel_vbt_defs.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Jani Nikula May 6, 2024, 9:31 a.m. UTC | #1
On Fri, 03 May 2024, Ville Syrjala <ville.syrjala@linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Define the contents of block 18 (Driver Rotation).
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_vbt_defs.h | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> index c97bca5d12d1..2792da3c916e 100644
> --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> @@ -845,6 +845,18 @@ struct bdb_sv_test_functions {
>  	u8 sv_bits[8];
>  } __packed;
>  
> +/*
> + * Block 18 - Driver Rotation
> + */
> +
> +struct bdb_driver_rotation {
> +	u8 rotation_enable;
> +	u8 rotation_flags_1;
> +	u16 rotation_flags_2;
> +	u32 rotation_flags_3;
> +	u32 rotation_flags_4;
> +} __packed;
> +
>  /*
>   * Block 22 - SDVO LVDS General Options
>   */
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
index c97bca5d12d1..2792da3c916e 100644
--- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
+++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
@@ -845,6 +845,18 @@  struct bdb_sv_test_functions {
 	u8 sv_bits[8];
 } __packed;
 
+/*
+ * Block 18 - Driver Rotation
+ */
+
+struct bdb_driver_rotation {
+	u8 rotation_enable;
+	u8 rotation_flags_1;
+	u16 rotation_flags_2;
+	u32 rotation_flags_3;
+	u32 rotation_flags_4;
+} __packed;
+
 /*
  * Block 22 - SDVO LVDS General Options
  */