diff options
author | Kyoung Kim <kyoung.il.kim@intel.com> | 2015-03-23 18:18:36 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-17 18:09:55 +0000 |
commit | 0e53f9d425e9a5bdad084b231438b7ec87432f3a (patch) | |
tree | 43c25ac86f19de0c0d1f812c2052b4e61fbbb456 /chip/mec1322/registers.h | |
parent | 2e9ab7cbe48934deab914d96feb9141fdae95197 (diff) | |
download | chrome-ec-0e53f9d425e9a5bdad084b231438b7ec87432f3a.tar.gz |
mec1322: heavysleep in idle task and console deepsleep
Implemented mec1322's heavysleep in idle task to
reduce further EC power down on S3.
MEC1322 needs sleep-enabled for all blocks to
acheive max power down including UART.
Real heavysleep will be effective only when
console/uart is not active.
To enable this commit, board-specific commit is required.
For example, check commit, "Enabling heavysleep idle task at S3".
Test:
1. Put device into S3 mode by typing 'powerd_dbus_suspend" in Linux
shell.
2. wait at least 1 min till EC console sleeps
3. measure EC power.
Since idle task is continuously scheduled, EC will enters/exits
to/from heavy sleep mode frequently in S3 and power consumption
will be changed dynamically.
For acurate power measurement, high-sampling-rate measurement
system might be required and using DMM might not give accurate
number.
BUG=None
TEST=Tested on evt1p0/evt1p7/DVT
BRANCH=None
Change-Id: I435ca347cab2f4d51cefeee802c3bf30fb393fa1
Signed-off-by: Kyoung Kim <kyoung.il.kim@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/283603
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Tested-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'chip/mec1322/registers.h')
-rw-r--r-- | chip/mec1322/registers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/mec1322/registers.h b/chip/mec1322/registers.h index aab3da935c..7da25ae059 100644 --- a/chip/mec1322/registers.h +++ b/chip/mec1322/registers.h @@ -89,6 +89,8 @@ #define MEC1322_UART_MSR REG8(MEC1322_UART_RUNTIME_BASE + 0x6) #define MEC1322_UART_SCR REG8(MEC1322_UART_RUNTIME_BASE + 0x7) +/* Bit defines for MEC1322_UART_LSR */ +#define MEC1322_LSR_TX_EMPTY (1 << 5) /* GPIO */ #define MEC1322_GPIO_BASE 0x40081000 @@ -161,6 +163,7 @@ static inline uintptr_t gpio_port_base(int port_id) #define MEC1322_LPC_RT_BASE 0x400f3100 #define MEC1322_LPC_BUS_MONITOR REG32(MEC1322_LPC_RT_BASE + 0x4) +#define MEC1322_LPC_CLK_CTRL REG32(MEC1322_LPC_RT_BASE + 0x10) #define MEC1322_LPC_MEM_HOST_CFG REG32(MEC1322_LPC_RT_BASE + 0xfc) |