From: Mike Frysinger Date: Fri, 12 Aug 2011 14:42:44 -0400 Subject: [U-Boot] [PATCH v5 1/3] gpio: Move common gpio.h to include/asm-generic In-Reply-To: <1313136684-4204-1-git-send-email-joe.hershberger@ni.com> References: <201108102326.32316.vapier@gentoo.org> <1313136684-4204-1-git-send-email-joe.hershberger@ni.com> Message-ID: <201108121442.47451.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday, August 12, 2011 04:11:22 Joe Hershberger wrote: > +int gpio_request(int gp, const char *label); > +void gpio_free(int gp); > +int gpio_direction_input(int gp); > +int gpio_direction_output(int gp, int value); > +int gpio_get_value(int gp); > +void gpio_set_value(int gp, int value); please use "unsigned gpio". this is what linux does and what most implementations should be doing (since sane people will pull from linux). > +void gpio_toggle_value(int gp); this is not currently part of the generic gpio api. this should stay in arm's asm/gpio.h for now, or not implement it at all. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20110812/4177be54/attachment.pgp