[PATCH 28/35] drm/i915/bios: Define VBT block 46 (Chromaticity For Narrow Gamut Panel) contents

Jani Nikula jani.nikula at linux.intel.com
Mon May 6 09:39:42 UTC 2024


On Fri, 03 May 2024, Ville Syrjala <ville.syrjala at linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Define the contents of VBT block 46 (Chromaticity For Narrow Gamut
> Panel). One entry per panel.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

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

but...

> ---
>  drivers/gpu/drm/i915/display/intel_vbt_defs.h | 26 +++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_vbt_defs.h b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> index 87d073154d49..5f1f485f8bf7 100644
> --- a/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> +++ b/drivers/gpu/drm/i915/display/intel_vbt_defs.h
> @@ -178,6 +178,7 @@ enum bdb_block_id {
>  	BDB_LFP_BACKLIGHT		= 43,
>  	BDB_LFP_POWER			= 44,
>  	BDB_EDP_BFI			= 45, /* 160+ */
> +	BDB_CHROMATICITY		= 46, /* 169+ */
>  	BDB_MIPI_CONFIG			= 52, /* 175+ */
>  	BDB_MIPI_SEQUENCE		= 53, /* 177+ */
>  	BDB_COMPRESSION_PARAMETERS	= 56, /* 213+ */
> @@ -1364,6 +1365,31 @@ struct bdb_edp_bfi {
>  	struct edp_bfi bfi[16];
>  } __packed;
>  
> +/*
> + * Block 46 - Chromaticity For Narrow Gamut Panel Configuration Block
> + */
> +
> +struct chromaticity {
> +	u8 chromaticity_enable:1;
> +	u8 chromaticity_from_edid_base_block:1;
> +	u8 rsvd:6;
> +
> +	u8 red_green;
> +	u8 blue_white;
> +	u8 red_x;
> +	u8 red_y;
> +	u8 green_x;
> +	u8 green_y;
> +	u8 blue_x;
> +	u8 blue_y;
> +	u8 white_x;
> +	u8 white_y;
> +} __packed;
> +
> +struct bdb_chromaticity {
> +	struct chromaticity chromaticity[16];

...you can have luminance/gamma stuff here from 211+. Can be added later.

> +} __packed;
> +
>  /*
>   * Block 52 - MIPI Configuration Block
>   */

-- 
Jani Nikula, Intel


More information about the Intel-gfx mailing list