From 33c666587a77608abe6b387fe97fc99a1681d24c Mon Sep 17 00:00:00 2001 From: Tarun Tuli Date: Thu, 4 May 2023 12:41:13 +0000 Subject: soc/intel/early_graphics: support to allow early graphics GPIO config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For early Sign of Life to work, we may need certain pin configurations very early in boot (e.g. HDMI). This may happen before romstage GPIOs are configured, and bootblock is not suitable for field upgrading existing devices. Add a separate GPIO table that can be configured when early graphics is invoked. BUG=b:277861633 BRANCH=firmware-brya-14505.B TEST=Builds and SoL functions on HDMI enabled variants Change-Id: I7b3ce96a4166451e72aa70b3086eff3fb8b082b7 Signed-off-by: Tarun Tuli Reviewed-on: https://review.coreboot.org/c/coreboot/+/74697 Tested-by: build bot (Jenkins) Reviewed-by: Jérémy Compostella --- src/soc/intel/common/block/include/intelblocks/early_graphics.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/intel/common/block/include') diff --git a/src/soc/intel/common/block/include/intelblocks/early_graphics.h b/src/soc/intel/common/block/include/intelblocks/early_graphics.h index c0313cf960..55aa9640d2 100644 --- a/src/soc/intel/common/block/include/intelblocks/early_graphics.h +++ b/src/soc/intel/common/block/include/intelblocks/early_graphics.h @@ -25,4 +25,7 @@ bool early_graphics_init(void); /* Clear graphics configuration, turn off the displays. */ void early_graphics_stop(void); +/* Allow early configuration of any display related GPIOs as needed */ +const struct pad_config *variant_early_graphics_gpio_table(size_t *num); + #endif /* SOC_INTEL_COMMON_BLOCK_GRAPHICS_EARLY_H */ -- cgit v1.2.3