aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/sh_pfc.c
diff options
context:
space:
mode:
authorTom Rini2023-04-07 15:55:50 -0400
committerTom Rini2023-04-07 15:55:50 -0400
commit965f74b5b3602fe681421bda5676c7300ee3975e (patch)
treeb8b001d60dbeea07ad4fdda6950aa73a3114d2e9 /drivers/gpio/sh_pfc.c
parent19d0c64f89ee5a0d5d3077e5d7ec7dafd74a0d45 (diff)
parent36b63c92c3ffb5a8673f58e2111f3ee3273e6952 (diff)
Merge branch 'master_sh/gen4/initial' of https://source.denx.de/u-boot/custodians/u-boot-sh
- Initial R-Car Generation 4 support
Diffstat (limited to 'drivers/gpio/sh_pfc.c')
-rw-r--r--drivers/gpio/sh_pfc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c
index 92522b63bbe..2495d6c1c15 100644
--- a/drivers/gpio/sh_pfc.c
+++ b/drivers/gpio/sh_pfc.c
@@ -569,7 +569,7 @@ static int sh_gpio_get_value(struct pinmux_info *gpioc, unsigned gpio)
if (!gpioc || get_data_reg(gpioc, gpio, &dr, &bit) != 0)
return -1;
- if (IS_ENABLED(CONFIG_RCAR_GEN3) &&
+ if (IS_ENABLED(CONFIG_RCAR_64) &&
((gpioc->gpios[gpio].flags & PINMUX_FLAG_TYPE) == PINMUX_TYPE_INPUT))
offset += 4;