From a637873162a94c7f8ff176e50e3953b2c160d199 Mon Sep 17 00:00:00 2001 From: Xi Chen Date: Tue, 21 Feb 2023 14:31:58 +0800 Subject: soc/mediatek: Add config to control DRAM scramble The DRAM scramble feature enhances DRAM data protection. When it's enabled, the written DRAM data will be scrambled and hence can prevent the data from being hacked. This feature would make debugging more difficult (for example ramoops would be lost after reset). Therefore, add a new config to allow enabling or disabling the feature from coreboot, without having to maintain two versions of the DRAM calibration blob. BUG=b:269049451 TEST=build pass and check scramble enable or disable successfully Signed-off-by: Xi Chen Change-Id: Ib4279bc1cc960fae9c9f5da39f4448a5627288d4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73176 Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/common/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/soc/mediatek/common/Kconfig') diff --git a/src/soc/mediatek/common/Kconfig b/src/soc/mediatek/common/Kconfig index 2fdeda9abc..1ca0b9867c 100644 --- a/src/soc/mediatek/common/Kconfig +++ b/src/soc/mediatek/common/Kconfig @@ -30,6 +30,13 @@ config MEDIATEK_DRAM_BLOB_FAST_INIT This option allows performing fast calibration through different open-source policy. +config MEDIATEK_DRAM_SCRAMBLE + bool + default y + help + This option enables DRAM data scramble, which can prevent DRAM data from + being hacked. + config MEMORY_TEST bool default y -- cgit v1.2.3