diff options
author | Yu-Ping Wu <yupingso@chromium.org> | 2019-10-14 16:56:50 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-10-17 15:04:26 +0000 |
commit | e67dce0f9467340679950dab8fbe6dfe4f0ce1ba (patch) | |
tree | 2ccc25b14f95e7bb8b565ae0a936dd0e7b715064 /src/soc/mediatek/mt8183/dramc_param.c | |
parent | 553e2db9514919c14df63de7a8bfbfdbfe3def1b (diff) | |
download | coreboot-e67dce0f9467340679950dab8fbe6dfe4f0ce1ba.tar.xz |
soc/mediatek/mt8183: Verify checksum of cached calibration data
The checksum is stored in the header of calibration data and saved to
SPI flash. After reading the data from flash, checksum is used to verify
the integrity of the calibration parameters.
BUG=b:139099592
BRANCH=kukui
TEST=Calibration data successfully loaded from flash
Change-Id: Ie4a0688ed6e560d4c0c6b316f44e52fd10d71a9d
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36014
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'src/soc/mediatek/mt8183/dramc_param.c')
-rw-r--r-- | src/soc/mediatek/mt8183/dramc_param.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/soc/mediatek/mt8183/dramc_param.c b/src/soc/mediatek/mt8183/dramc_param.c index ef3c19159f..bf1fee43a2 100644 --- a/src/soc/mediatek/mt8183/dramc_param.c +++ b/src/soc/mediatek/mt8183/dramc_param.c @@ -35,7 +35,6 @@ int validate_dramc_param(const void *blob) if (hdr->size != sizeof(*param)) return DRAMC_ERR_INVALID_SIZE; - /* TODO(hungte) Verify and check hdr->checksum. */ return DRAMC_SUCCESS; } |