Skip to contentSkip to conversation

pinctrl: sh-pfc: Fix PINMUX_IPSR_PHYS() to set to GPSR

PATCH In review Keiya Nobuta 2 participants 2 messages Oct 8, 2019 – Oct 14, 2019 Pin control

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: sh-pfc: Fix PINMUX_IPSR_PHYS() to set to GPSR

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

---
 drivers/pinctrl/sh-pfc/sh_pfc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/sh-pfc/sh_pfc.h +2 -2
index 63d2089..12d15b6 100644
@@ -423,12 +423,12 @@ extern const struct sh_pfc_soc_info shx3_pinmux_info;
 /*
  * Describe a pinmux configuration in which a pin is physically multiplexed
  * with other pins.
- *   - ipsr: IPSR field (unused, for documentation purposes only)
+ *   - ipsr: IPSR field
  *   - fn: Function name
  *   - psel: Physical multiplexing selector
  */
 #define PINMUX_IPSR_PHYS(ipsr, fn, psel) \
-	PINMUX_DATA(fn##_MARK, FN_##psel)
+	PINMUX_DATA(fn##_MARK, FN_##psel, FN_##ipsr)
 
 /*
  * Describe a pinmux configuration for a single-function pin with GPIO
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Keiya Nobuta

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

Fixes 50d1ba1764b3e00a ("pinctrl: sh-pfc: Add physical pin

multiplexing helper macros")

i.e. will queue in sh-pfc-for-v5.5.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds