]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
pinctrl: ingenic: Fix JZ4760 support
authorPaul Cercueil <paul@crapouillou.net>
Fri, 11 Dec 2020 23:28:09 +0000 (23:28 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Jan 2021 14:34:16 +0000 (15:34 +0100)
commit9a85c09a3f507b925d75cb0c7c8f364467038052
treeda588e045591f5e3460d797ed0fcba10f1fc58b4
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
pinctrl: ingenic: Fix JZ4760 support

- JZ4760 and JZ4760B have a similar register layout as the JZ4740, and
  don't use the new register layout, which was introduced with the
  JZ4770 SoC and not the JZ4760 or JZ4760B SoCs.

- The JZ4740 code path only expected two function modes to be
  configurable for each pin, and wouldn't work with more than two. Fix
  it for the JZ4760, which has four configurable function modes.

Fixes: 0257595a5cf4 ("pinctrl: Ingenic: Add pinctrl driver for JZ4760 and JZ4760B.")
Cc: <stable@vger.kernel.org> # 5.3
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20201211232810.261565-1-paul@crapouillou.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ingenic.c