Vadim Bendebury | 71558f5 | 2015-03-09 15:50:56 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 Google, Inc. |
| 3 | * |
| 4 | * This software is licensed under the terms of the GNU General Public |
| 5 | * License version 2, as published by the Free Software Foundation, and |
| 6 | * may be copied, distributed, and modified under those terms. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #ifndef __SRC_DRIVERS_VIDEO_WW_RING__H__ |
| 15 | #define __SRC_DRIVERS_VIDEO_WW_RING__H__ |
| 16 | |
Vadim Bendebury | 4e0de32 | 2015-03-17 15:37:54 -0700 | [diff] [blame] | 17 | /* |
| 18 | * Different types of display patterns to be shown by the LED ring while |
| 19 | * contrlled by coreboot. |
| 20 | */ |
| 21 | enum display_pattern { |
| 22 | WWR_ALL_OFF, /* Turn the LEDs off. */ |
| 23 | WWR_RECOVERY_PUSHED, /* Recovery button push detected on start up. */ |
| 24 | WWR_WIPEOUT_REQUEST, /* Held long enough for wipout request. */ |
| 25 | WWR_RECOVERY_REQUEST, /* Held long enough for recovery request. */ |
Vadim Bendebury | ace3e3f | 2015-04-13 16:25:51 -0700 | [diff] [blame] | 26 | WWR_NORMAL_BOOT /* No buttons pressed, normal boot sequence. */ |
Vadim Bendebury | 4e0de32 | 2015-03-17 15:37:54 -0700 | [diff] [blame] | 27 | }; |
Vadim Bendebury | 71558f5 | 2015-03-09 15:50:56 -0700 | [diff] [blame] | 28 | /* |
| 29 | * ww_ring_display_pattern |
| 30 | * |
| 31 | * Display pattern on the ring LEDs. |
| 32 | */ |
Vadim Bendebury | 4e0de32 | 2015-03-17 15:37:54 -0700 | [diff] [blame] | 33 | int ww_ring_display_pattern(unsigned i2c_bus, enum display_pattern pattern); |
Vadim Bendebury | 71558f5 | 2015-03-09 15:50:56 -0700 | [diff] [blame] | 34 | |
Vadim Bendebury | 71558f5 | 2015-03-09 15:50:56 -0700 | [diff] [blame] | 35 | #endif |