| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #ifndef __SRC_DRIVERS_VIDEO_WW_RING__H__ |
| 4 | #define __SRC_DRIVERS_VIDEO_WW_RING__H__ |
| 5 | |
| 6 | /* |
| 7 | * Different types of display patterns to be shown by the LED ring while |
| 8 | * controlled by coreboot. |
| 9 | */ |
| 10 | enum display_pattern { |
| 11 | WWR_ALL_OFF, /* Turn the LEDs off. */ |
| 12 | WWR_RECOVERY_PUSHED, /* Recovery button push detected on start up. */ |
| 13 | WWR_WIPEOUT_REQUEST, /* Held long enough for wipeout request. */ |
| 14 | WWR_RECOVERY_REQUEST, /* Held long enough for recovery request. */ |
| 15 | WWR_NORMAL_BOOT /* No buttons pressed, normal boot sequence. */ |
| 16 | }; |
| 17 | /* |
| 18 | * ww_ring_display_pattern |
| 19 | * |
| 20 | * Display pattern on the ring LEDs. |
| 21 | */ |
| 22 | int ww_ring_display_pattern(unsigned int i2c_bus, enum display_pattern pattern); |
| 23 | |
| 24 | #endif |