]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/bios: Extract soc/intel_rom.c
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 23 Sep 2024 15:24:53 +0000 (18:24 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Oct 2024 14:30:58 +0000 (17:30 +0300)
commite622905020fb8e2152804971db47586ccc846b9f
tree56d77fd03b0190f531648c6a489f5fe1db813ed3
parent0667ca80024a0ffb73ac42544b152b421a205b11
drm/i915/bios: Extract soc/intel_rom.c

Abstract away the nuts and bolts of the SPI vs. PCI ROM
stuff, and hide it all in soc/intel_rom.c so that the
VBT code doesn't have to care about this stuff.

This leaves intel_bios.c with a single codepath that
can focus on the details related to the VBT layout.

This should have no functional changes.

v2: Rebase due to vbt_signature changes
    Drop unnecessary cast (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240923152453.11230-7-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/soc/intel_rom.c [new file with mode: 0644]
drivers/gpu/drm/i915/soc/intel_rom.h [new file with mode: 0644]
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/compat-i915-headers/soc/intel_rom.h [new file with mode: 0644]