From 1eb894a506e161f970d61333f68f7efbf362065d Mon Sep 17 00:00:00 2001 From: Timple Raj M Date: Thu, 5 Jan 2023 16:40:27 +0530 Subject: [PATCH] configs: ipq5332: Enable CONFIG_FLASH_PROTECT This config is needed to enable mmc protection based on gpt readonly attribute. Usecase: 1. In emmc partition xml, set readonly attribute of a partition to true. 2. Generate partition bin, flash and reboot. 3. From uboot, read & write the partition. 4. Write should not go through. Crc32 checksum of the content before & after write should match. Change-Id: I161f594f13c88b6d22c4b4932399d18eeb951372 Signed-off-by: Timple Raj M --- include/configs/ipq5332.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/ipq5332.h b/include/configs/ipq5332.h index cafe63bfbb..6c5c18ff4d 100644 --- a/include/configs/ipq5332.h +++ b/include/configs/ipq5332.h @@ -448,4 +448,7 @@ extern loff_t board_env_size; #define CONFIG_COMPRESSED_DTB_MAX_SIZE 0x40000 #define CONFIG_COMPRESSED_DTB_BASE CONFIG_SYS_TEXT_BASE -\ CONFIG_COMPRESSED_DTB_MAX_SIZE +/* Flash Protect */ +#define CONFIG_FLASH_PROTECT + #endif /* _IPQ5332_H */