summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu/cmd_gpio.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-24 15:34:08 -0400
committerMike Frysinger <vapier@gentoo.org>2010-10-02 16:00:40 -0400
commitcec11d50140a843ed4e39feb519467e3fa985cf1 (patch)
treecb54811e7e70b975a90845704cfab084014e2790 /arch/blackfin/cpu/cmd_gpio.c
parent301e66a956db6401f4f008a1667b12d2546b1e7b (diff)
downloadu-boot-imx-cec11d50140a843ed4e39feb519467e3fa985cf1.zip
u-boot-imx-cec11d50140a843ed4e39feb519467e3fa985cf1.tar.gz
u-boot-imx-cec11d50140a843ed4e39feb519467e3fa985cf1.tar.bz2
Blackfin: cmd_gpio: accept upper case pin names
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>
Diffstat (limited to 'arch/blackfin/cpu/cmd_gpio.c')
-rw-r--r--arch/blackfin/cpu/cmd_gpio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/blackfin/cpu/cmd_gpio.c b/arch/blackfin/cpu/cmd_gpio.c
index 3e7ba0a..e96413b 100644
--- a/arch/blackfin/cpu/cmd_gpio.c
+++ b/arch/blackfin/cpu/cmd_gpio.c
@@ -8,6 +8,7 @@
#include <common.h>
#include <command.h>
+#include <linux/ctype.h>
#include <asm/blackfin.h>
#include <asm/gpio.h>
@@ -45,8 +46,8 @@ int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
/* grab the [p]<port> portion */
ulong port_base;
- if (*str_pin == 'p') ++str_pin;
- switch (*str_pin) {
+ if (tolower(*str_pin) == 'p') ++str_pin;
+ switch (tolower(*str_pin)) {
#ifdef GPIO_PA0
case 'a': port_base = GPIO_PA0; break;
#endif