]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/arch-pxa/hardware.h
[PATCH] GPIO API: PXA wrapper cleanup
[linux-2.6-omap-h63xx.git] / include / asm-arm / arch-pxa / hardware.h
index 3e70bd95472ca8baa912995791b62c6e3bd8e545..e2bdc2fbede1efdd52e1a393601edb3c2f5f4e91 100644 (file)
 /*
  * Handy routine to set GPIO alternate functions
  */
-extern void pxa_gpio_mode( int gpio_mode );
+extern int pxa_gpio_mode( int gpio_mode );
+
+/*
+ * Return GPIO level, nonzero means high, zero is low
+ */
+extern int pxa_gpio_get_value(unsigned gpio);
+
+/*
+ * Set output GPIO level
+ */
+extern void pxa_gpio_set_value(unsigned gpio, int value);
 
 /*
  * Routine to enable or disable CKEN