]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: generalize for all generic gpio providers
authorMike Frysinger <vapier@gentoo.org>
Sun, 3 Apr 2011 08:40:46 +0000 (04:40 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 13 Apr 2011 19:56:51 +0000 (15:56 -0400)
commita972b8d701814317be2b8bcca4103f37bcbb467c
treef4de82746e7225b8c1cf1faf0306b718d5827302
parentc3d2a17c1eba2b4c1621ee7550ae4ea7446bfc39
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>
arch/blackfin/cpu/Makefile
arch/blackfin/cpu/cmd_gpio.c [deleted file]
arch/blackfin/include/asm/gpio.h
common/Makefile
common/cmd_gpio.c [new file with mode: 0644]