drivers/intel/gma: Hook up libgfxinit in romstage
commit765e5df0dddbb12927dbcc8a8315ed4c99357984
authorJeremy Compostella <jeremy.compostella@intel.com>
Thu, 1 Dec 2022 22:45:51 +0000 (1 15:45 -0700)
committerSubrata Banik <subratabanik@google.com>
Wed, 11 Jan 2023 13:59:54 +0000 (11 13:59 +0000)
tree571327fd8ebbcb5aec26981ef01848cb97a29883
parentea2dbdba2e5a27d47fb3b7834951cff2e0f40628
drivers/intel/gma: Hook up libgfxinit in romstage

A mainboard port needs to:

- select `CONFIG_MAINBOARD_HAS_EARLY_LIBGFXINIT'

- implement the Ada package `GMA.Mainboard' with a single function
  `ports' that returns a list of ports to be probed for displays.

- set the desired `GFX_GMA_DEFAULT_MMIO' IO memory address to use
  in romstage (and ramstage) for the graphic device.

BUG=b:252792591
BRANCH=firmware-brya-14505.B
TEST=libgfxinit compiles in romstage.
     libgfxinit successfully executes in romstage and ramstage using
     the requested MMIO setting on skolas.

Change-Id: I3c2101de10dc5df54fe873e43bbe0f1c4dccff44
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70276
Reviewed-by: Tarun Tuli <taruntuli@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/arch/x86/car.ld
src/device/Kconfig
src/drivers/intel/gma/Kconfig
src/drivers/intel/gma/Makefile.inc
src/soc/intel/common/block/graphics/graphics.c