aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Huang <patrick.huang@amd.corp-partner.google.com>2023-03-21 16:35:11 +0800
committerFelix Held <felix-coreboot@felixheld.de>2023-03-27 12:05:52 +0000
commitb6436600ca9e5fb9197fb035bda5c8dfb0843ca3 (patch)
tree51a07a7dd40b8dc7b2997d6d9f8a50f476657a42
parent25b5982d107b48642036c19c495364b72fed71ff (diff)
soc/amd/mendocino: Add UPDs for DPTC current limits
Add UPD vrm_current_limit_mA, vrm_maximum_current_limit_mA, vrm_soc_current_limit_mA for DPTC. Make sure UPD parameterare are set to be aligned. BUG=b:245942343 BRANCH=none TEST=confirm the UPD parameters has been set correspondingly with the FSP UPD. Change-Id: Iacf0ce0d51d4c8698ec1ae7e810fd00574deeadb Signed-off-by: Patrick Huang <patrick.huang@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73875 Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
-rw-r--r--src/vendorcode/amd/fsp/mendocino/FspmUpd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vendorcode/amd/fsp/mendocino/FspmUpd.h b/src/vendorcode/amd/fsp/mendocino/FspmUpd.h
index 9f68101c4d..bed13afa63 100644
--- a/src/vendorcode/amd/fsp/mendocino/FspmUpd.h
+++ b/src/vendorcode/amd/fsp/mendocino/FspmUpd.h
@@ -97,7 +97,10 @@ typedef struct __packed {
/* usb_phy_ptr is actually struct usb_phy_config *, but that won't work for 64bit coreboot */
/** Offset 0x04D8**/ uint32_t usb_phy_ptr;
/** Offset 0x04DC**/ uint8_t dxio_tx_vboost_enable;
- /** Offset 0x04DD**/ uint8_t UnusedUpdSpace2[291];
+ /** Offset 0x04DD**/ uint32_t vrm_current_limit_mA;
+ /** Offset 0x04E1**/ uint32_t vrm_maximum_current_limit_mA;
+ /** Offset 0x04E5**/ uint32_t vrm_soc_current_limit_mA;
+ /** Offset 0x04E9**/ uint8_t UnusedUpdSpace2[279];
/** Offset 0x0600**/ uint16_t UpdTerminator;
} FSP_M_CONFIG;