driver/intel/gma: Allow use of GFX_GMA_ANALOG_I2C_HDMI_x in C NGI

These Kconfig options can be reused for the same purpose of selecting
the correct i2c pins for probing the analog output EDID in C native
graphic init. For this purpose this patch makes those options
independent of GFX_GMA and MAINBOARD_HAS_LIBGFXINIT.

Change-Id: If29c541d414e12b95d96ae9c249a7a20e863fe06
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/20894
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Arthur Heymans 2017-08-07 14:11:01 +02:00 committed by Nico Huber
parent 0f6187a55a
commit ccdef19cfb
1 changed files with 8 additions and 12 deletions

View File

@ -47,6 +47,14 @@ config INTEL_GMA_SSC_ALTERNATE_REF
supported platform with a choice seems to be Pineview, where the supported platform with a choice seems to be Pineview, where the
alternative is 100MHz vs. the default 96MHz. alternative is 100MHz vs. the default 96MHz.
config GFX_GMA_ANALOG_I2C_HDMI_B
bool
config GFX_GMA_ANALOG_I2C_HDMI_C
bool
config GFX_GMA_ANALOG_I2C_HDMI_D
bool
config GFX_GMA config GFX_GMA
def_bool y def_bool y
@ -85,18 +93,6 @@ config GFX_GMA_INTERNAL_PORT
default "DP" if GFX_GMA_INTERNAL_IS_EDP default "DP" if GFX_GMA_INTERNAL_IS_EDP
default "LVDS" default "LVDS"
config GFX_GMA_ANALOG_I2C_HDMI_B
bool
default n
config GFX_GMA_ANALOG_I2C_HDMI_C
bool
default n
config GFX_GMA_ANALOG_I2C_HDMI_D
bool
default n
config GFX_GMA_ANALOG_I2C_PORT config GFX_GMA_ANALOG_I2C_PORT
string string
default "PCH_HDMI_B" if GFX_GMA_ANALOG_I2C_HDMI_B default "PCH_HDMI_B" if GFX_GMA_ANALOG_I2C_HDMI_B