xref: /openbmc/u-boot/include/pca9698.h (revision ed09a554)
1 /*
2  * (C) Copyright 2011
3  * Dirk Eibach,  Guntermann & Drunck GmbH, eibach@gdsys.de
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 
8 #ifndef __PCA9698_H_
9 #define __PCA9698_H_
10 
11 int pca9698_request(unsigned gpio, const char *label);
12 void pca9698_free(unsigned gpio);
13 int pca9698_direction_input(u8 addr, unsigned gpio);
14 int pca9698_direction_output(u8 addr, unsigned gpio, int value);
15 int pca9698_get_value(u8 addr, unsigned gpio);
16 int pca9698_set_value(u8 addr, unsigned gpio, int value);
17 
18 #endif /* __PCA9698_H_ */
19