blob: 6424c514ba37992ec2c6f54ad0c6ac1f27fac9c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*/
/* GPIO interface for Chrome OS verified boot */
#ifndef __GPIO_H__
#define __GPIO_H__
enum polarity {
GPIO_ACTIVE_LOW = 0,
GPIO_ACTIVE_HIGH = 1
};
/* GPIO accessor functions: returns 0 if false, nonzero if true */
int is_firmware_write_protect_gpio_asserted(enum polarity polarity);
int is_recovery_mode_gpio_asserted(enum polarity polarity);
int is_developer_mode_gpio_asserted(enum polarity polarity);
#endif /* __GPIO_H__ */
|