From a1e602f8ca6c09ddbbe3bf9f44001a79cd350596 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 27 Jan 2026 19:16:26 +0530 Subject: [PATCH] mb/google/bluey: Reduce WP_RO size to 8MB for SPI compatibility The previous 12MB WP_RO size is an invalid range for the SPI controller. Hardware write-protection requires power-of-two or specific block-aligned boundaries, making 12MB unenforceable. Reduce WP_RO to 8MB to ensure hardware WP can be correctly enabled. The reclaimed space is assigned to RW_UNUSED. BUG=b:479139462 TEST=Build and verify FMAP layout on Bluey; confirm hardware WP enforcement. Change-Id: I4515eab3941913942fc5994e7094986e2edbd6d6 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/90952 Reviewed-by: Jayvik Desai Reviewed-by: Kapil Porwal Reviewed-by: Avi Uday Tested-by: build bot (Jenkins) --- src/mainboard/google/bluey/chromeos.fmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/bluey/chromeos.fmd b/src/mainboard/google/bluey/chromeos.fmd index 01a2331b22..b70b49811d 100644 --- a/src/mainboard/google/bluey/chromeos.fmd +++ b/src/mainboard/google/bluey/chromeos.fmd @@ -1,7 +1,7 @@ ## SPDX-License-Identifier: GPL-2.0-only FLASH@0x0 CONFIG_ROM_SIZE { - WP_RO 12M { + WP_RO 8M { RO_SECTION { BOOTBLOCK 512K FMAP 4K @@ -38,5 +38,7 @@ FLASH@0x0 CONFIG_ROM_SIZE { RW_FWID_B 256 } + RW_UNUSED 4M + RW_LEGACY(CBFS) }