soc/mediatek/mt8183: Verify checksum of cached calibration data
commite67dce0f9467340679950dab8fbe6dfe4f0ce1ba
authorYu-Ping Wu <yupingso@chromium.org>
Mon, 14 Oct 2019 08:56:50 +0000 (14 16:56 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Thu, 17 Oct 2019 15:04:26 +0000 (17 15:04 +0000)
tree2ccc25b14f95e7bb8b565ae0a936dd0e7b715064
parent553e2db9514919c14df63de7a8bfbfdbfe3def1b
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>
src/soc/mediatek/mt8183/dramc_param.c
src/soc/mediatek/mt8183/memory.c