mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
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>
This commit is contained in:
parent
301e66a956
commit
cec11d5014
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <linux/ctype.h>
|
||||||
|
|
||||||
#include <asm/blackfin.h>
|
#include <asm/blackfin.h>
|
||||||
#include <asm/gpio.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 */
|
/* grab the [p]<port> portion */
|
||||||
ulong port_base;
|
ulong port_base;
|
||||||
if (*str_pin == 'p') ++str_pin;
|
if (tolower(*str_pin) == 'p') ++str_pin;
|
||||||
switch (*str_pin) {
|
switch (tolower(*str_pin)) {
|
||||||
#ifdef GPIO_PA0
|
#ifdef GPIO_PA0
|
||||||
case 'a': port_base = GPIO_PA0; break;
|
case 'a': port_base = GPIO_PA0; break;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user