diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2017-04-26 14:49:26 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-09 23:20:11 -0700 |
commit | 375b60776156036ef458069c408e5ed4b24692f0 (patch) | |
tree | 63b2b33aae9e74061f4a4db43adcc6426c8879f0 /chip/npcx/build.mk | |
parent | 53b72194cdfdcdce50b5484ba0b06c2357fcc0b7 (diff) | |
download | chrome-ec-375b60776156036ef458069c408e5ed4b24692f0.tar.gz |
npcx: system: Add support for npcx7 series ec
This CL implements two methods for hibernating on npcx7 ec. One is using
PSL (Power Switch Logic) circuit to cut off ec's VCC power rail. The
other is turning off the power of all ram blocks except the last code
ram block. In order to make sure hibernate utilities are located in the
last code ram block and work properly, we introduce a new section called
'after_init' in ec.lds.S.
We also moved the hibernate utilities, workarounds for sysjump and so on
which are related to chip family into system-npcx5/7.c. It should be
easier to maintain.
It also includes:
1. Add CONFIG_HIBERNATE_PSL to select which method is used on npcx7 for
hibernating.
2. Add new flag GPIO_HIB_WAKE_HIGH to configure the active priority of
wake-up inputs during hibernating.
3. Add DEVICE_ID for npcx796f.
BRANCH=none
BUG=none
TEST=No build errors for all boards using npcx5 series.
Build poppy board and upload FW to platform. No issues found. Make
sure AC_PRESENT and POWER_BUTTON_L can wake up system from
hibernate. Passed hibernate tests no matter CONFIG_HIBERNATE_PSL is
enabled or not on npcx796f evb.
Change-Id: I4e045ebce4120b6fabaa582ed2ec31b5335dfdc3
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Reviewed-on: https://chromium-review.googlesource.com/493006
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/npcx/build.mk')
-rw-r--r-- | chip/npcx/build.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/npcx/build.mk b/chip/npcx/build.mk index f733ab168c..fc6ea0e765 100644 --- a/chip/npcx/build.mk +++ b/chip/npcx/build.mk @@ -18,6 +18,7 @@ endif # Required chip modules chip-y=header.o clock.o gpio.o hwtimer.o jtag.o system.o uart.o +chip-y+=system-$(CHIP_FAMILY).o # Optional chip modules chip-$(CONFIG_ADC)+=adc.o |