diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-04-03 04:40:46 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-04-13 15:56:51 -0400 |
commit | a972b8d701814317be2b8bcca4103f37bcbb467c (patch) | |
tree | f4de82746e7225b8c1cf1faf0306b718d5827302 /common/Makefile | |
parent | c3d2a17c1eba2b4c1621ee7550ae4ea7446bfc39 (diff) | |
download | u-boot-a972b8d701814317be2b8bcca4103f37bcbb467c.tar.gz u-boot-a972b8d701814317be2b8bcca4103f37bcbb467c.tar.xz u-boot-a972b8d701814317be2b8bcca4103f37bcbb467c.zip |
gpio: generalize for all generic gpio providers
The Blackfin gpio command isn't terribly Blackfin-specific. So generalize
the few pieces into two new optional helpers:
name_to_gpio() - turn a string name into a GPIO #
gpio_status() - display current pin bindings (think /proc/gpio)
Once these pieces are pulled out, we can relocate the cmd_gpio.c into the
common directory.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile index 26380c6d8a..432a9de42d 100644 --- a/common/Makefile +++ b/common/Makefile @@ -98,6 +98,7 @@ COBJS-$(CONFIG_CMD_FLASH) += cmd_flash.o ifdef CONFIG_FPGA COBJS-$(CONFIG_CMD_FPGA) += cmd_fpga.o endif +COBJS-$(CONFIG_CMD_GPIO) += cmd_gpio.o COBJS-$(CONFIG_CMD_I2C) += cmd_i2c.o COBJS-$(CONFIG_CMD_IDE) += cmd_ide.o COBJS-$(CONFIG_CMD_IMMAP) += cmd_immap.o |