summaryrefslogtreecommitdiff
path: root/board/boten/board.h
diff options
context:
space:
mode:
authorxiong.huang <xiong.huang@bitland.corp-partner.google.com>2020-07-07 13:23:20 +0800
committerCommit Bot <commit-bot@chromium.org>2020-07-15 05:41:33 +0000
commitd3a2090e1e0061ec664f914f10d1220395100635 (patch)
tree6cfed1454e67a289db322b5b09fcd73a3d7f4f4c /board/boten/board.h
parent234286a32f62067e06679faff0cc6c8f238fa877 (diff)
downloadchrome-ec-d3a2090e1e0061ec664f914f10d1220395100635.tar.gz
boten: define power and battery led behavior
Boten uses two types LED, battery LED and power LED. Battery LED uses dual-color LED, green and red. Power LED uses monochrome LED, white. BUG=b:160664441 BRANCH=none TEST=`ectool led battery red/amber/green/off` and `ectool led power white/off` work well. Cq-Depend: chromium:2296544 Signed-off-by: xiong.huang <xiong.huang@bitland.corp-partner.google.com> Change-Id: I6fb87d841ce837ebdc256154dc4b8557f6ed0401 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2282740 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/boten/board.h')
-rw-r--r--board/boten/board.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/boten/board.h b/board/boten/board.h
index 10d2588412..1d4524f155 100644
--- a/board/boten/board.h
+++ b/board/boten/board.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* Waddledee board configuration */
+/* Boten board configuration */
#ifndef __CROS_EC_BOARD_H
#define __CROS_EC_BOARD_H
@@ -30,8 +30,8 @@
#define CONFIG_OCPC_DEF_RBATT_MOHMS 22 /* R_DS(on) 11.6mOhm + 10mOhm sns rstr */
/* LED */
-#define CONFIG_LED_PWM
-#define CONFIG_LED_PWM_COUNT 1
+#define CONFIG_LED_POWER_LED
+#define CONFIG_LED_ONOFF_STATES
/* Sensors */
#define CONFIG_ACCEL_LIS2DWL /* Lid accel */
@@ -86,7 +86,7 @@ enum pwm_channel {
PWM_CH_KBLIGHT,
PWM_CH_LED_RED,
PWM_CH_LED_GREEN,
- PWM_CH_LED_BLUE,
+ PWM_CH_LED_WHITE,
PWM_CH_COUNT,
};