diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2020-07-14 17:24:31 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-16 20:06:21 +0000 |
commit | c1284dc1da4aa6865d4375a67abf6b2f8d3d2219 (patch) | |
tree | 7e5569db4708cc0c1aae537ee48ed3b591ca74c2 | |
parent | 462da130d5770fa997b466111c1ab53047f4e563 (diff) | |
download | chrome-ec-c1284dc1da4aa6865d4375a67abf6b2f8d3d2219.tar.gz |
morphius: update battery led on/off level
This patch update battery led on/off level
due to schematic update.
on = 1
off =0
BUG=b:150278507
BRANCH=none
TEST=verify led color follow EC code
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: Ifc0c1f9d3a3a24a8a9ee2b479a2182846006db9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2297068
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Edward Hill <ecgh@chromium.org>
-rw-r--r-- | board/morphius/gpio.inc | 4 | ||||
-rw-r--r-- | board/morphius/led.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/board/morphius/gpio.inc b/board/morphius/gpio.inc index 39dd4ea42f..ac7b82d168 100644 --- a/board/morphius/gpio.inc +++ b/board/morphius/gpio.inc @@ -57,8 +57,8 @@ GPIO(EC_H1_PACKET_MODE, PIN(8, 6), GPIO_OUT_LOW) /* H1 Packet Mode */ UNIMPLEMENTED(PCH_SMI_L) -GPIO(LED_FULL_L, PIN(6, 0), GPIO_OUT_HIGH) -GPIO(LED_CHRG_L, PIN(C, 0), GPIO_OUT_HIGH) +GPIO(LED_FULL_L, PIN(6, 0), GPIO_OUT_LOW) +GPIO(LED_CHRG_L, PIN(C, 0), GPIO_OUT_LOW) IOEX_INT(USB_C0_SBU_FAULT_ODL, EXPIN(USBC_PORT_C0, 1, 2), GPIO_INT_FALLING, sbu_fault_interrupt) IOEX_INT(USB_C1_SBU_FAULT_DB_ODL, EXPIN(USBC_PORT_C1, 1, 2), GPIO_INT_FALLING, sbu_fault_interrupt) diff --git a/board/morphius/led.c b/board/morphius/led.c index a3b57d6546..b722136cbd 100644 --- a/board/morphius/led.c +++ b/board/morphius/led.c @@ -16,8 +16,8 @@ #include "timer.h" #include "util.h" -#define LED_BAT_OFF_LVL 1 -#define LED_BAT_ON_LVL 0 +#define LED_BAT_OFF_LVL 0 +#define LED_BAT_ON_LVL 1 #define LED_BAT_S3_OFF_TIME_MS 3000 #define LED_BAT_S3_PWM_RESCALE 5 #define LED_BAT_S3_TICK_MS 50 |