soc/amd/stoneyridge/northbridge.c: Create a way to change eDP training value

The careena board needs different video settings to pass eye diagram test,
which does not affect negatively the grunt board. In preparation for new
VBIOS, create code that allows changing eDP training parameter.

BUG=b:111673328
TEST=Tested in child patch.

Change-Id: Ic0452618bfc5e05b9ef8280bb8ba398ec7b4ce95
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/27625
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Richard Spiegel 2018-07-24 12:08:22 -07:00 committed by Patrick Georgi
parent 9b7e096073
commit 2e90ee38e7
2 changed files with 4 additions and 0 deletions

View File

@ -62,5 +62,6 @@ void SetFchEnvParams(FCH_INTERFACE *params);
void SetNbEnvParams(GNB_ENV_CONFIGURATION *params);
void SetFchMidParams(FCH_INTERFACE *params);
void SetNbMidParams(GNB_MID_CONFIGURATION *params);
void set_board_env_params(GNB_ENV_CONFIGURATION *params);
#endif /* __AGESAWRAPPER_H__ */

View File

@ -481,9 +481,12 @@ u32 map_oprom_vendev(u32 vendev)
return new_vendev;
}
__weak void set_board_env_params(GNB_ENV_CONFIGURATION *params) { }
void SetNbEnvParams(GNB_ENV_CONFIGURATION *params)
{
params->IommuSupport = FALSE;
set_board_env_params(params);
}
void SetNbMidParams(GNB_MID_CONFIGURATION *params)