drm/i915/dg1: Read OPROM via SPI controller
authorClint Taylor <clinton.a.taylor@intel.com>
Thu, 16 Dec 2021 06:26:45 +0000 (22:26 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 16 Dec 2021 16:39:06 +0000 (08:39 -0800)
commita36e7dc0af1cc7e5eaa89136c35a5305fd693731
treee70c6e808840e9c834973f7e1c7879614dc541e0
parentd0c0cf22d7071e9ba8d30be91723e1d997a07970
drm/i915/dg1: Read OPROM via SPI controller

Read OPROM SPI through MMIO and find VBT entry since we can't use
OpRegion and PCI mapping may not work on some systems due to most BIOSes
not leaving the Option ROM mapped.

v2: Remove message with allocation failure

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211216062645.3477854-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_bios.c
drivers/gpu/drm/i915/i915_reg.h