From c721060be197e0b93ae1a054a7176be73dfa875b Mon Sep 17 00:00:00 2001 From: CHLin Date: Wed, 12 Jul 2017 14:21:42 +0800 Subject: npcx: Add support for chip variant npcx7m6g This CL adds CHIP_VARIANT_NPCX7M6G to support another npcx7 ec SKU. Please note that the default setting in npcx7_evb is npcx7m6f. For the EVB using the 128-pins EC package, please change CHIP_VARIANT from npcx7m6f to npcx7m6g in build.mk. BRANCH=none BUG=none TEST=No build errors for make buildall; Set CHIP_VARIANT=npcx7m6g in board/npcx7_evb/build.mk; Build the image and test on EVB. Change-Id: I2f857e4f6524eab45930bac3cc209409d4a53ee8 Signed-off-by: CHLin Reviewed-on: https://chromium-review.googlesource.com/569320 Commit-Ready: Jun Lin Tested-by: Jun Lin Reviewed-by: Aseda Aboagye Reviewed-by: Mulin Chao --- chip/npcx/config_chip-npcx7.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chip/npcx/config_chip-npcx7.h') diff --git a/chip/npcx/config_chip-npcx7.h b/chip/npcx/config_chip-npcx7.h index 54b5feca6b..1ccc2c64cb 100644 --- a/chip/npcx/config_chip-npcx7.h +++ b/chip/npcx/config_chip-npcx7.h @@ -45,7 +45,7 @@ /* no low power ram in npcx7 series */ /* Use chip variant to specify the size and start address of program memory */ -#if defined(CHIP_VARIANT_NPCX7M6F) +#if defined(CHIP_VARIANT_NPCX7M6F) || defined(CHIP_VARIANT_NPCX7M6G) /* 62KB data ram */ #define CONFIG_RAM_SIZE (0x00010000 - NPCX_BTRAM_SIZE) /* 192KB RAM for FW code */ @@ -59,7 +59,7 @@ /* Total RAM size checking for npcx ec */ #define NPCX_RAM_SIZE (NPCX_BTRAM_SIZE + CONFIG_RAM_SIZE + \ NPCX_PROGRAM_MEMORY_SIZE) -#if defined(CHIP_VARIANT_NPCX7M6F) +#if defined(CHIP_VARIANT_NPCX7M6F) || defined(CHIP_VARIANT_NPCX7M6G) /* 256KB RAM in NPCX7M6F */ #if (NPCX_RAM_SIZE != 0x40000) #error "Wrong memory mapping layout for NPCX7M6F" -- cgit v1.2.1