summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Spiegel <richard.spiegel@amd.corp-partner.google.com>2018-07-24 12:08:22 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-07-30 18:57:06 +0000
commit2e90ee38e76db64368aea6a97ad78df0ae6c351c (patch)
treed031e151a0ba037b5c3254fe51218ef6f7b975b2 /src
parent9b7e0960739f3495be27ddf9ce0b5c2e503128c3 (diff)
downloadcoreboot-2e90ee38e76db64368aea6a97ad78df0ae6c351c.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/agesawrapper.h1
-rw-r--r--src/soc/amd/stoneyridge/northbridge.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/amd/common/block/include/amdblocks/agesawrapper.h b/src/soc/amd/common/block/include/amdblocks/agesawrapper.h
index 986d6f8be6..942936613e 100644
--- a/src/soc/amd/common/block/include/amdblocks/agesawrapper.h
+++ b/src/soc/amd/common/block/include/amdblocks/agesawrapper.h
@@ -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__ */
diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c
index 6af1351294..c78ca7cb58 100644
--- a/src/soc/amd/stoneyridge/northbridge.c
+++ b/src/soc/amd/stoneyridge/northbridge.c
@@ -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)