From b440a0d099d4b4b8cf519f6f834ff233b29bb384 Mon Sep 17 00:00:00 2001 From: CHLin Date: Wed, 20 Sep 2017 14:32:50 +0800 Subject: [PATCH] npcx7_evb: change the default setting of npcx7 evb In this CL, we add the follow changes for npcx7 evb board: 1. Add comments in the build.mk to indicate how to set CHIP_VARIANT for EVBs which use different npcx7 ec. - npcx7m6f : 144 pins (default) - npcx7m6g : 128 pins 2. Turn on the eSPI host interface as default in board.h BRANCH=none BUG=none TEST=No build errors for "make buildall". Change-Id: Ib926e8596a09a28f547c35a0256be2aa394f9a36 Signed-off-by: CHLin Reviewed-on: https://chromium-review.googlesource.com/674887 Commit-Ready: CH Lin Tested-by: CH Lin Reviewed-by: Randall Spangler --- board/npcx7_evb/board.h | 3 +++ board/npcx7_evb/build.mk | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/board/npcx7_evb/board.h b/board/npcx7_evb/board.h index 0c93999497..7e8afa78d8 100644 --- a/board/npcx7_evb/board.h +++ b/board/npcx7_evb/board.h @@ -14,6 +14,9 @@ #define CONFIG_SPI #define CONFIG_LPC #define CONFIG_I2C +/* Features of eSPI */ +#define CONFIG_ESPI /* Use eSPI protocol for host interface of x86 CPU */ +#define CONFIG_ESPI_VW_SIGNALS /* Use VW signals instead of GPIOs */ /* Optional features */ #define CONFIG_BOARD_VERSION diff --git a/board/npcx7_evb/build.mk b/board/npcx7_evb/build.mk index 438573deb4..4ef64f71fa 100644 --- a/board/npcx7_evb/build.mk +++ b/board/npcx7_evb/build.mk @@ -6,7 +6,10 @@ # Board specific files build # -# the IC is Nuvoton NPCX7 M-Series EC (npcx7m6f) +# the IC is Nuvoton NPCX7 M-Series EC (npcx7m6g, npcx7m6f) +# CHIP_VARIANT: +# npcx7m6f - for npcx7 ec with 144 pins package +# npcx7m6g - for npcx7 ec with 128 pins package CHIP:=npcx CHIP_FAMILY:=npcx7