diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-21 22:11:05 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-21 22:11:05 +0100 |
commit | f9342e2c3e81d62e42393c0c1a8179c309ef3a20 (patch) | |
tree | 3611266f5c9c7a10d13ee181f2ec70b938d7109c /include | |
parent | 74faaf96564e6d60fb436e0c1f9e502b778fe9ec (diff) | |
parent | bd25fdba45de4371daa7338110731872c08bf7cf (diff) | |
download | u-boot-imx-f9342e2c3e81d62e42393c0c1a8179c309ef3a20.zip u-boot-imx-f9342e2c3e81d62e42393c0c1a8179c309ef3a20.tar.gz u-boot-imx-f9342e2c3e81d62e42393c0c1a8179c309ef3a20.tar.bz2 |
Merge branch 'sr@denx.de' of git://git.denx.de/u-boot-staging
* 'sr@denx.de' of git://git.denx.de/u-boot-staging:
Makefile: Add the missing dependency for spl target
gpio: Adapt PCA9698 to standard GPIO API
Diffstat (limited to 'include')
-rw-r--r-- | include/pca9698.h | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/include/pca9698.h b/include/pca9698.h index 2506088..67b364e 100644 --- a/include/pca9698.h +++ b/include/pca9698.h @@ -1,9 +1,34 @@ +/* + * (C) Copyright 2011 + * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + #ifndef __PCA9698_H_ #define __PCA9698_H_ -int pca9698_direction_input(u8 chip, unsigned offset); -int pca9698_direction_output(u8 chip, unsigned offset); -int pca9698_get_input(u8 chip, unsigned offset); -int pca9698_set_output(u8 chip, unsigned offset, int value); +int pca9698_request(unsigned gpio, const char *label); +void pca9698_free(unsigned gpio); +int pca9698_direction_input(u8 addr, unsigned gpio); +int pca9698_direction_output(u8 addr, unsigned gpio, int value); +int pca9698_get_value(u8 addr, unsigned gpio); +int pca9698_set_value(u8 addr, unsigned gpio, int value); #endif /* __PCA9698_H_ */ |