summaryrefslogtreecommitdiff
path: root/board/elemi/board.h
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2020-10-19 15:48:06 +0800
committerCommit Bot <commit-bot@chromium.org>2020-10-29 01:53:08 +0000
commit4def417c483e0aab7be73cbab429cf093ae4644c (patch)
tree6934a8cc751502d8bf6bebe7636f2458aae1d8f4 /board/elemi/board.h
parent2dfac202ed424dbef9c9a50b4bec36b450e7e0d2 (diff)
downloadchrome-ec-4def417c483e0aab7be73cbab429cf093ae4644c.tar.gz
elemi: Implement LED behavior
Elemi have two charging leds on left side and right side. Each side have two colors amber and white. The led behavior define as following: 1. Charging led: led on with charging port active, other port is off. 2. Charging: Amber. 3. Discharging: Off. 4. Battery Error: Blinking white (0.4 sec on, 0.4 sec off) 5. Fuel < 10%: Blinking white on right side port (1 sec on, 1 sec off) 6. Force idle for factory: Blinking amber (1 sec on, 1 sec off) 7. S0ix without charging state: Blinking both side LED white (1 sec on, 1 sec off) BUG=b:169409487 BRANCH=firmware-volteer-13521.B-master TEST=make sure led behavior intended. make sure ectool led left white/amber/off/auto work correctly. make sure ectool led right white/amber/off/auto work correctly. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I9e4837ddbf300ec7a6c0e0dc8660dc157f9228aa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2484115 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board/elemi/board.h')
-rw-r--r--board/elemi/board.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/board/elemi/board.h b/board/elemi/board.h
index 15e6938562..236b64a174 100644
--- a/board/elemi/board.h
+++ b/board/elemi/board.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* Volteer board configuration */
+/* Elemi board configuration */
#ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
@@ -24,11 +24,6 @@
/* Chipset features */
#define CONFIG_POWER_PP5000_CONTROL
-/* LED defines */
-#define CONFIG_LED_PWM
-/* Although there are 2 LEDs, they are both controlled by the same lines. */
-#define CONFIG_LED_PWM_COUNT 1
-
/* Keyboard features */
/* Sensors */
@@ -167,10 +162,6 @@ enum battery_type {
};
enum pwm_channel {
- PWM_CH_LED1_BLUE = 0,
- PWM_CH_LED2_GREEN,
- PWM_CH_LED3_RED,
- PWM_CH_LED4_SIDESEL,
PWM_CH_FAN,
PWM_CH_KBLIGHT,
PWM_CH_COUNT