blob: 3eb1092fe2fd284b044edb832a7a484bb3b377ac [file] [log] [blame]
Vadim Bendebury71558f52015-03-09 15:50:56 -07001/*
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 Bendebury4e0de322015-03-17 15:37:54 -070017/*
18 * Different types of display patterns to be shown by the LED ring while
19 * contrlled by coreboot.
20 */
21enum 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 Bendeburyace3e3f2015-04-13 16:25:51 -070026 WWR_NORMAL_BOOT /* No buttons pressed, normal boot sequence. */
Vadim Bendebury4e0de322015-03-17 15:37:54 -070027};
Vadim Bendebury71558f52015-03-09 15:50:56 -070028/*
29 * ww_ring_display_pattern
30 *
31 * Display pattern on the ring LEDs.
32 */
Vadim Bendebury4e0de322015-03-17 15:37:54 -070033int ww_ring_display_pattern(unsigned i2c_bus, enum display_pattern pattern);
Vadim Bendebury71558f52015-03-09 15:50:56 -070034
Vadim Bendebury71558f52015-03-09 15:50:56 -070035#endif