From 6ed574a661dcf85dea9d093fdcd4c060d51d08d2 Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Thu, 2 Jan 2014 03:22:03 -0500 Subject: cpu/allwinner/a10: Add definitions for in/output GPIO functions Change-Id: I2b857d3b4c01e39c62e54f753e400e6049f1dbc9 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/4598 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: David Hendricks --- src/cpu/allwinner/a10/gpio.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3