From faf0f29f8dcde9e6c6ed6358c1dbd9fa2da4a59d Mon Sep 17 00:00:00 2001 From: "P, Usha" Date: Tue, 24 Jun 2025 10:49:50 +0530 Subject: [PATCH] mb/google/ocelot: Update EC host command range for variants This patch updates the EC host command range configuration for Ocelot board variants, ensuring that each variant uses the correct range based on its specific EC. BOARD_GOOGLE_OCELOTMCHP and BOARD_GOOGLE_OCELOTMCHP4ES uses Microchip EC. BOARD_GOOGLE_OCELOT and BOARD_GOOGLE_OCELOT4ES uses Nuvoton EC. BOARD_GOOGLE_OCELOTITE and BOARD_GOOGLE_OCELOTITE4ES uses ITE EC. Key changes: - Microchip EC: Configured to use host command ranges 0x800-0x807 and 0x200-0x20f. The register is set to 0x00040801 to accommodate these constraints. BUG=b:394208231 TEST=Build Ocelot and verify it compiles without any error. Change-Id: If08f2362a7b3bafca69375ce3b346f75435a83df Signed-off-by: P, Usha Reviewed-on: https://review.coreboot.org/c/coreboot/+/88179 Reviewed-by: Nick Vaccaro Tested-by: build bot (Jenkins) --- .../google/ocelot/variants/baseboard/ocelot/devicetree.cb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/ocelot/variants/baseboard/ocelot/devicetree.cb b/src/mainboard/google/ocelot/variants/baseboard/ocelot/devicetree.cb index 1ac4027eec..b79a3b3674 100644 --- a/src/mainboard/google/ocelot/variants/baseboard/ocelot/devicetree.cb +++ b/src/mainboard/google/ocelot/variants/baseboard/ocelot/devicetree.cb @@ -8,7 +8,8 @@ chip soc/intel/pantherlake # EC host command ranges are in 0x800-0x807 & 0x200-0x20f # For Ocelot variants with ITE/Nuvoton EC: # EC host command ranges are in 0x800-0x8ff & 0x200-0x20f - register "gen1_dec" = "CONFIG(BOARD_GOOGLE_OCELOT)? 0x00040801 : 0x00fc0801" + register "gen1_dec" = "CONFIG(BOARD_GOOGLE_OCELOTMCHP) || + CONFIG(BOARD_GOOGLE_OCELOTMCHP4ES)? 0x00040801 : 0x00fc0801" register "gen2_dec" = "0x000c0201" # EC memory map range is 0x900-0x9ff register "gen3_dec" = "0x00fc0901"