diff options
author | Ian Campbell <ijc@hellion.org.uk> | 2014-06-05 19:00:15 +0100 |
---|---|---|
committer | Ian Campbell <ijc@hellion.org.uk> | 2014-07-18 19:42:25 +0100 |
commit | abce2c6220c1f8f4b66e464adc1074e04a8f19eb (patch) | |
tree | d48a9aa6537f70b5699d06f06d996678d4e4bbf5 /include | |
parent | 5c58f8b685fbb201fd93af2a010eecd26c78bb4e (diff) | |
download | u-boot-imx-abce2c6220c1f8f4b66e464adc1074e04a8f19eb.zip u-boot-imx-abce2c6220c1f8f4b66e464adc1074e04a8f19eb.tar.gz u-boot-imx-abce2c6220c1f8f4b66e464adc1074e04a8f19eb.tar.bz2 |
sunxi: add gpio driver
This patch enables CONFIG_CMD_GPIO for the Allwinner (sunxi) platform as well
as providing the common gpio API (gpio_request/free, direction in/out, get/set
etc).
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ma Haijun <mahaijuns@gmail.com>
Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: Henrik Nordström <henrik@henriknordstrom.net>
Cc: Tom Cubie <Mr.hipboi@gmail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/sunxi-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 13e72d5..845b004 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -178,6 +178,10 @@ #define CONFIG_CONS_INDEX 1 /* UART0 */ #endif +/* GPIO */ +#define CONFIG_SUNXI_GPIO +#define CONFIG_CMD_GPIO + /* Ethernet support */ #ifdef CONFIG_SUNXI_EMAC #define CONFIG_MII /* MII PHY management */ |