Skip to content

Commit

Permalink
MIPS: BCM47XX: Check all (32) GPIOs when looking for a pin
Browse files Browse the repository at this point in the history
Broadcom boards support 32 GPIOs and NVRAM may have entires for higher
ones too. Example:
gpio23=wombo_reset

Signed-off-by: Rafa? Mi?ecki <[email protected]>
Acked-by: Hauke Mehrtens <[email protected]>
Cc: [email protected]
Cc: Rafał Miłecki <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/6547/
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
rmilecki authored and ralfbaechle committed Mar 19, 2014
1 parent e4362d1 commit 4fe2169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/bcm47xx/nvram.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ int bcm47xx_nvram_gpio_pin(const char *name)
char nvram_var[10];
char buf[30];

for (i = 0; i < 16; i++) {
for (i = 0; i < 32; i++) {
err = snprintf(nvram_var, sizeof(nvram_var), "gpio%i", i);
if (err <= 0)
continue;
Expand Down

0 comments on commit 4fe2169

Please sign in to comment.