summaryrefslogtreecommitdiff
path: root/include/power_led.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/power_led.h')
-rw-r--r--include/power_led.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/power_led.h b/include/power_led.h
index 9c8fa49f86..9301a5fdf5 100644
--- a/include/power_led.h
+++ b/include/power_led.h
@@ -18,7 +18,17 @@ enum powerled_color {
POWERLED_COLOR_COUNT /* Number of colors, not a color itself */
};
+enum powerled_state {
+ POWERLED_STATE_OFF,
+ POWERLED_STATE_ON,
+ POWERLED_STATE_SUSPEND,
+ POWERLED_STATE_COUNT
+};
+
/* Set the power adapter LED to the specified color. */
int powerled_set(enum powerled_color color);
+/* Set the power LED according to the specified state. */
+void powerled_set_state(enum powerled_state state);
+
#endif /* __CROS_EC_POWER_LED_H */