summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-02 03:22:03 -0500
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-01-09 01:04:07 +0100
commit6ed574a661dcf85dea9d093fdcd4c060d51d08d2 (patch)
treea9a3a3edca6e2143fd70d8c42fc8266ec6e44afe
parenta94bed01165b7571ac186d55a45f6d53d45c48ba (diff)
downloadcoreboot-6ed574a661dcf85dea9d093fdcd4c060d51d08d2.tar.xz
cpu/allwinner/a10: Add definitions for in/output GPIO functions
Change-Id: I2b857d3b4c01e39c62e54f753e400e6049f1dbc9 Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/4598 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: David Hendricks <dhendrix@chromium.org>
-rw-r--r--src/cpu/allwinner/a10/gpio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpu/allwinner/a10/gpio.h b/src/cpu/allwinner/a10/gpio.h
index 709f74b641..e4b24ea3fc 100644
--- a/src/cpu/allwinner/a10/gpio.h
+++ b/src/cpu/allwinner/a10/gpio.h
@@ -23,6 +23,10 @@
#define GPI 8
#define GPS 9
+/* GPIO pad functions valid for all pins */
+#define GPIO_PIN_FUNC_INPUT 0
+#define GPIO_PIN_FUNC_OUTPUT 1
+
struct a10_gpio_port {
u32 cfg[4];
u32 dat;