summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wang <chris.wang@amd.corp-partner.google.com>2023-04-26 19:27:54 +0800
committerMartin L Roth <gaumless@gmail.com>2023-04-27 14:40:17 +0000
commitc2059fa72a654f8927f05bcecb4d98ef856c9b64 (patch)
tree31c4d0a984fd9a3795dbd0f259e9ee6824791915
parent31e5133b63c2388e3307245a287f6f3046403e09 (diff)
soc/amd/mendocino: rename pwr_on_vary_bl_to_blon to edp_panel_t8_ms
Rename the UPD pwr_on_vary_bl_to_blon to edp_panel_t8_ms to match the eDP sequence timing in milliseconds. BUG=b:271704149 BRANCH=Skyrim Test=Build/Boot to ChromeOS Signed-off-by: Chris Wang <chris.wang@amd.corp-partner.google.com> Change-Id: Iecdfe47cd9142d8a1ddeee0ec988d37b2a11028e Reviewed-on: https://review.coreboot.org/c/coreboot/+/74787 Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
-rw-r--r--src/mainboard/google/skyrim/variants/winterhold/overridetree.cb4
-rw-r--r--src/soc/amd/mendocino/chip.h5
-rw-r--r--src/soc/amd/mendocino/fsp_m_params.c2
-rw-r--r--src/vendorcode/amd/fsp/mendocino/FspmUpd.h4
4 files changed, 7 insertions, 8 deletions
diff --git a/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb b/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb
index 4297f903b0..2e32b28919 100644
--- a/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb
+++ b/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb
@@ -112,8 +112,8 @@ chip soc/amd/mendocino
register "dxio_tx_vboost_enable" = "1"
- # The unit is set to one per 4ms
- register "pwr_on_vary_bl_to_blon" = "0x1c"
+ # The unit is set to one per ms
+ register "edp_panel_t8_ms" = "112"
device ref gpp_bridge_1 on
# Required so the NVMe gets placed into D3 when entering S0i3.
diff --git a/src/soc/amd/mendocino/chip.h b/src/soc/amd/mendocino/chip.h
index 774ce5ea59..5eb7c41cb7 100644
--- a/src/soc/amd/mendocino/chip.h
+++ b/src/soc/amd/mendocino/chip.h
@@ -177,9 +177,8 @@ struct soc_amd_mendocino_config {
/* Force USB3 port to gen1, bit0 - controller0 Port0, bit1 - Port1 */
union usb3_force_gen1 usb3_port_force_gen1;
- /* Set for eDP power sequence adjustment timing from varybl to blon. The unit is set to
- one per 4ms*/
- uint8_t pwr_on_vary_bl_to_blon;
+ /* Set for eDP power sequence adjustment timing T8 (from varybl to blon). */
+ uint8_t edp_panel_t8_ms;
};
diff --git a/src/soc/amd/mendocino/fsp_m_params.c b/src/soc/amd/mendocino/fsp_m_params.c
index 453ce69788..cea26a9acd 100644
--- a/src/soc/amd/mendocino/fsp_m_params.c
+++ b/src/soc/amd/mendocino/fsp_m_params.c
@@ -170,7 +170,7 @@ void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
}
mcfg->dxio_tx_vboost_enable = config->dxio_tx_vboost_enable;
- mcfg->pwr_on_vary_bl_to_blon = config->pwr_on_vary_bl_to_blon;
+ mcfg->edp_panel_t8_ms = config->edp_panel_t8_ms;
fsp_fill_pcie_ddi_descriptors(mcfg);
fsp_assign_ioapic_upds(mcfg);
diff --git a/src/vendorcode/amd/fsp/mendocino/FspmUpd.h b/src/vendorcode/amd/fsp/mendocino/FspmUpd.h
index 391c64b822..b3d6dc39d9 100644
--- a/src/vendorcode/amd/fsp/mendocino/FspmUpd.h
+++ b/src/vendorcode/amd/fsp/mendocino/FspmUpd.h
@@ -101,8 +101,8 @@ typedef struct __packed {
/** Offset 0x04E1**/ uint32_t vrm_maximum_current_limit_mA;
/** Offset 0x04E5**/ uint32_t vrm_soc_current_limit_mA;
/** Offset 0x04E9**/ uint8_t fch_usb_3_port_force_gen1;
- /** Offset 0x04E9**/ uint8_t pwr_on_vary_bl_to_blon;
- /** Offset 0x04EA**/ uint8_t UnusedUpdSpace2[277];
+ /** Offset 0x04EA**/ uint8_t edp_panel_t8_ms;
+ /** Offset 0x04EB**/ uint8_t UnusedUpdSpace2[277];
/** Offset 0x0600**/ uint16_t UpdTerminator;
} FSP_M_CONFIG;