soc/intel/cmn/gfx: Skip warning msg in ChromeOS normal mode

This patch ensures avoiding displaying wrong warning msg as
`Graphics hand-off block not found` during ChromeOS normal mode
booting as FSP is not executing GFX PEIM hence, GFX hand-off HOB
is expected to be missing. 

TEST=Able to build and boot google/rex in normal mode w/o having
warning msg. 

Change-Id: Ia9192129852195f6183c0c43369cd33b253f9140
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73028
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com>
This commit is contained in:
Subrata Banik 2023-02-14 18:44:09 +05:30 committed by Eric Lai
parent 45df1066ef
commit be0590c3e1
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ static void gma_init(struct device *const dev)
* In case of non-FSP solution, SoC need to select another * In case of non-FSP solution, SoC need to select another
* Kconfig to perform GFX initialization. * Kconfig to perform GFX initialization.
*/ */
if (CONFIG(RUN_FSP_GOP)) { if (CONFIG(RUN_FSP_GOP) && display_init_required()) {
const struct soc_intel_common_config *config = chip_get_common_soc_structure(); const struct soc_intel_common_config *config = chip_get_common_soc_structure();
fsp_report_framebuffer_info(graphics_get_framebuffer_address(), fsp_report_framebuffer_info(graphics_get_framebuffer_address(),
config->panel_orientation); config->panel_orientation);