summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu/cmd_gpio.c
AgeCommit message (Collapse)Author
2011-04-13gpio: generalize for all generic gpio providersMike Frysinger
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>
2010-10-02Blackfin: cmd_gpio: accept upper case pin namesMike Frysinger
The intention all along was to accept pin names irrelevant of their case. But I guess I forgot to test/implement support for that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-10-02Blackfin: cmd_gpio: return gpio value to callerMike Frysinger
Make the GPIO command usable in a scripting environment by returning the GPIO value rather than always 0. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-10-02Blackfin: cmd_gpio: document/extend input sub-optionMike Frysinger
The input sub command was missing from the help text, and it didn't show the actual value currently read on the GPIO. This allows people to read the value of input pins. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-07-29Blackfin: gpio: use common usage funcMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-07-05Blackfin: unify custom gpio commandsMike Frysinger
Now that we have a unified gpio layer, the misc partial gpio commands can be unified and made complete (support all possible gpios). Signed-off-by: Mike Frysinger <vapier@gentoo.org>