pinctrl: sh-pfc: Fix PINMUX_IPSR_PHYS() to set GPSR
authorKeiya Nobuta <nobuta.keiya@fujitsu.com>
Tue, 8 Oct 2019 06:01:12 +0000 (15:01 +0900)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 14 Oct 2019 10:11:12 +0000 (12:11 +0200)
commitd30710b8cce3a581c170d69002e311cc18ed47d3
tree9093bfe99ea04487f1a5a1510595a1cdd1779c0d
parent126c9cb9997dc8bd27f48303c10220feb9aec9ba
pinctrl: sh-pfc: Fix PINMUX_IPSR_PHYS() to set GPSR

This patch allows PINMUX_IPSR_PHYS() to set bits in GPSR.
When assigning function to pin, GPSR should be set to peripheral
function.
For example when using SCL3, GPSR2 bit7 (PWM1_A pin) should be set to
peripheral function.

Signed-off-by: Keiya Nobuta <nobuta.keiya@fujitsu.com>
Link: https://lore.kernel.org/r/20191008060112.29819-1-nobuta.keiya@fujitsu.com
Fixes: 50d1ba1764b3e00a ("pinctrl: sh-pfc: Add physical pin multiplexing helper macros")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/sh_pfc.h