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