Skip to content

Commit

Permalink
pinctrl: ingenic: Fixup PIN_CONFIG_OUTPUT config
Browse files Browse the repository at this point in the history
JZ4760 support was added in parallel of the previous patch so this one
slipped through. The first SoC to use the new register is the JZ4760 and
not the JZ4770, fix it here.

Fixes: 7009d04 ("pinctrl: ingenic: Handle PIN_CONFIG_OUTPUT config")
Signed-off-by: Paul Cercueil <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[Folded into OF dependency]
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
pcercuei authored and linusw committed Dec 16, 2019
1 parent d5a3621 commit 9e65527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pinctrl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ config PINCTRL_TB10X

config PINCTRL_EQUILIBRIUM
tristate "Generic pinctrl and GPIO driver for Intel Lightning Mountain SoC"
depends on OF
depends on OF && HAS_IOMEM
select PINMUX
select PINCONF
select GPIOLIB
Expand Down
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinctrl-ingenic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ static void ingenic_set_bias(struct ingenic_pinctrl *jzpc,
static void ingenic_set_output_level(struct ingenic_pinctrl *jzpc,
unsigned int pin, bool high)
{
if (jzpc->version >= ID_JZ4770)
if (jzpc->version >= ID_JZ4760)
ingenic_config_pin(jzpc, pin, JZ4760_GPIO_PAT0, high);
else
ingenic_config_pin(jzpc, pin, JZ4740_GPIO_DATA, high);
Expand Down

0 comments on commit 9e65527

Please sign in to comment.