aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/i2c/ww_ring/ww_ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/i2c/ww_ring/ww_ring.h')
-rw-r--r--src/drivers/i2c/ww_ring/ww_ring.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/drivers/i2c/ww_ring/ww_ring.h b/src/drivers/i2c/ww_ring/ww_ring.h
index 628cd6c504..d2804ed46e 100644
--- a/src/drivers/i2c/ww_ring/ww_ring.h
+++ b/src/drivers/i2c/ww_ring/ww_ring.h
@@ -14,17 +14,21 @@
#ifndef __SRC_DRIVERS_VIDEO_WW_RING__H__
#define __SRC_DRIVERS_VIDEO_WW_RING__H__
-#if IS_ENABLED(CONFIG_CHROMEOS)
-#include <vboot_api.h>
-
+/*
+ * Different types of display patterns to be shown by the LED ring while
+ * contrlled by coreboot.
+ */
+enum display_pattern {
+ WWR_ALL_OFF, /* Turn the LEDs off. */
+ WWR_RECOVERY_PUSHED, /* Recovery button push detected on start up. */
+ WWR_WIPEOUT_REQUEST, /* Held long enough for wipout request. */
+ WWR_RECOVERY_REQUEST, /* Held long enough for recovery request. */
+};
/*
* ww_ring_display_pattern
*
* Display pattern on the ring LEDs.
*/
-int ww_ring_display_pattern(unsigned i2c_bus, enum VbScreenType_t screen_type);
+int ww_ring_display_pattern(unsigned i2c_bus, enum display_pattern pattern);
-#else
-static inline int ww_ring_display_pattern(unsigned i2c_bus, int screen_type) { return 0;}
-#endif
#endif