linux/drivers/pinctrl/sh-pfc
Takeshi Kihara 3e3eebeaca pinctrl: sh-pfc: r8a77990: Fix MOD_SEL bit numbering
MOD_SEL register bit numbering was different from R-Car E3 SoC and
R-Car H3/M3-[WN] SoCs.

MOD_SEL 1-bit      H3/M3-[WN]  E3
===============    ==========  =====
Set Value = H'0    b'0         b'0
Set Value = H'1    b'1         b'1

MOD_SEL 2-bits     H3/M3-[WN]  E3
===============    ==========  =====
Set Value = H'0    b'00        b'00
Set Value = H'1    b'01        b'10
Set Value = H'2    b'10        b'01
Set Value = H'3    b'11        b'11

MOD_SEL 3-bits     H3/M3-[WN]  E3
===============    ==========  =====
Set Value = H'0    b'000       b'000
Set Value = H'1    b'001       b'100
Set Value = H'2    b'010       b'010
Set Value = H'3    b'011       b'110
Set Value = H'4    b'100       b'001
Set Value = H'5    b'101       b'101
Set Value = H'6    b'110       b'011
Set Value = H'7    b'111       b'111

This patch replaces the #define name and value of MOD_SEL.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Fixes: 6d4036a1e3 ("pinctrl: sh-pfc: Initial R8A77990 PFC support")
[shimoda: Split a patch per SoC and revise the commit log]
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
[geert: Use macros to do the actual reordering]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
2019-01-21 13:24:52 +01:00
..
core.c pinctrl: sh-pfc: Print actual field width for variable-width fields 2018-12-18 11:25:56 +01:00
core.h pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
gpio.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
Kconfig pinctrl: sh-pfc: r8a77990: Add R8A774C0 PFC support 2018-09-19 17:29:00 +02:00
Makefile pinctrl: sh-pfc: r8a77990: Add R8A774C0 PFC support 2018-09-19 17:29:00 +02:00
pfc-emev2.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-r8a73a4.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-r8a7740.c pinctrl: sh-pfc: r8a7740: Add missing LCD0 marks to lcd0_data24_1 group 2018-12-18 11:25:56 +01:00
pfc-r8a7778.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-r8a7779.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-r8a7790.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-r8a7791.c pinctrl: sh-pfc: r8a7791: Remove bogus marks from vin1_b_data18 group 2018-12-18 11:25:56 +01:00
pfc-r8a7792.c pinctrl: sh-pfc: r8a7792: Fix VIN versioned groups 2018-11-13 10:52:22 +01:00
pfc-r8a7794.c pinctrl: sh-pfc: r8a7794: Remove bogus IPSR9 field 2018-12-18 11:25:56 +01:00
pfc-r8a7795-es1.c pinctrl: sh-pfc: r8a7795-es1: Add I2C{0,3,5} pins, groups and functions 2018-11-19 11:56:35 +01:00
pfc-r8a7795.c pinctrl: sh-pfc: r8a7795: Add I2C{0,3,5} pins, groups and functions 2018-11-19 11:56:35 +01:00
pfc-r8a7796.c pinctrl: sh-pfc: r8a7796: Add I2C{0,3,5} pins, groups and functions 2018-11-19 11:56:35 +01:00
pfc-r8a77470.c pinctrl: sh-pfc: r8a77470: Add SDHI support 2018-11-06 09:20:26 +01:00
pfc-r8a77965.c pinctrl: sh-pfc: r8a77965: Add CAN FD pins, groups and functions 2018-11-19 11:56:35 +01:00
pfc-r8a77970.c pinctrl: sh-pfc: r8a77970: Add missing MOD_SEL0 field 2018-12-18 11:25:56 +01:00
pfc-r8a77980.c pinctrl: sh-pfc: r8a77980: Add missing MOD_SEL0 field 2018-12-18 11:25:56 +01:00
pfc-r8a77990.c pinctrl: sh-pfc: r8a77990: Fix MOD_SEL bit numbering 2019-01-21 13:24:52 +01:00
pfc-r8a77995.c pinctrl: sh-pfc: r8a77995: Remove bogus SEL_PWM[0-3]_3 configurations 2018-12-18 11:25:56 +01:00
pfc-sh73a0.c pinctrl: sh-pfc: sh73a0: Add missing TO pin to tpu4_to3 group 2018-12-18 11:25:56 +01:00
pfc-sh7203.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-sh7264.c pinctrl: sh-pfc: sh7264: Fix PFCR3 and PFCR0 register configuration 2018-12-18 11:25:56 +01:00
pfc-sh7269.c pinctrl: sh-pfc: sh7269: Add missing PCIOR0 field 2018-12-18 11:25:56 +01:00
pfc-sh7720.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-sh7722.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pfc-sh7723.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-sh7724.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-sh7734.c pinctrl: sh-pfc: sh7734: Fix shifted values in IPSR10 2018-12-18 11:25:56 +01:00
pfc-sh7757.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-sh7785.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-sh7786.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pfc-shx3.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
pinctrl.c pinctrl: sh-pfc: Convert to SPDX identifiers 2018-09-11 12:25:32 +02:00
sh_pfc.h pinctrl: sh-pfc: Make pinmux_cfg_reg.var_field_width[] variable-length 2018-12-18 11:25:56 +01:00