summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/zork/variants/vilboz/overridetree.cb13
-rw-r--r--src/mainboard/google/zork/variants/vilboz/variant.c14
2 files changed, 13 insertions, 14 deletions
diff --git a/src/mainboard/google/zork/variants/vilboz/overridetree.cb b/src/mainboard/google/zork/variants/vilboz/overridetree.cb
index 6af363d26b..3f5bfc356a 100644
--- a/src/mainboard/google/zork/variants/vilboz/overridetree.cb
+++ b/src/mainboard/google/zork/variants/vilboz/overridetree.cb
@@ -30,19 +30,6 @@ chip soc/amd/picasso
register "telemetry_vddcr_soc_slope_mA" = "26559"
register "telemetry_vddcr_soc_offset" = "89"
- # eDP phy tuning settings
- register "edp_phy_override" = "ENABLE_EDP_TUNINGSET"
-
- # bit vector of phy, bit0=1: DP0, bit1=1: DP1, bit2=1: DP2 bit3=1: DP3
- register "edp_physel" = "0x1"
-
- register "edp_tuningset" = "{
- .dp_vs_pemph_level = 0x00,
- .margin_deemph = 0x004b,
- .deemph_6db4 = 0x0,
- .boostadj = 0x80,
- }"
-
# eDP power sequence. all pwr sequence numbers below are in uint of 4ms,
# and "0" as default value
register "edp_pwr_adjust_enable" = "1"
diff --git a/src/mainboard/google/zork/variants/vilboz/variant.c b/src/mainboard/google/zork/variants/vilboz/variant.c
index 57563ccaa0..747e893a1c 100644
--- a/src/mainboard/google/zork/variants/vilboz/variant.c
+++ b/src/mainboard/google/zork/variants/vilboz/variant.c
@@ -4,6 +4,7 @@
#include <soc/pci_devs.h>
#include <fw_config.h>
#include <sar.h>
+#include "chip.h"
static const fsp_ddi_descriptor hdmi_ddi_descriptors[] = {
{ // DDI0, DP0, eDP
@@ -40,8 +41,19 @@ void variant_devtree_update(void)
soc_cfg = config_of_soc();
/* b:/174121847 Use external OSC to mitigate noise for WWAN sku. */
- if (variant_has_wwan())
+ if (variant_has_wwan()) {
soc_cfg->acp_i2s_use_external_48mhz_osc = 1;
+
+ /* eDP phy tuning settings */
+ soc_cfg->edp_phy_override = ENABLE_EDP_TUNINGSET;
+ /* bit vector of phy, bit0=1: DP0, bit1=1: DP1, bit2=1: DP2 bit3=1: DP3 */
+ soc_cfg->edp_physel = 0x1;
+ /* override for 0.6v 0db swing 1, pre-emphasis 0 */
+ soc_cfg->edp_tuningset.dp_vs_pemph_level = 0x01;
+ soc_cfg->edp_tuningset.margin_deemph = 0x004b;
+ soc_cfg->edp_tuningset.deemph_6db4 = 0x00;
+ soc_cfg->edp_tuningset.boostadj = 0x80;
+ }
}
/*