Skip to content

Commit 82d2de5

Browse files
takeshikiharageertu
authored andcommitted
pinctrl: sh-pfc: r8a7795: Add GP-1-28 port pin support
This patch supports GP-1-28 port pin of R8A7795 ES2.0 SoC added in Rev.0.54E of the R-Car Gen3 Hardware User's Manual or later version. Signed-off-by: Takeshi Kihara <[email protected]> Signed-off-by: Yoshihiro Kaneko <[email protected]> [geert: Update forgotten PUEN2 entry] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent af4b609 commit 82d2de5

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

drivers/pinctrl/sh-pfc/pfc-r8a7795.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#define CPU_ALL_PORT(fn, sfx) \
2222
PORT_GP_CFG_16(0, fn, sfx, CFG_FLAGS), \
23-
PORT_GP_CFG_28(1, fn, sfx, CFG_FLAGS), \
23+
PORT_GP_CFG_29(1, fn, sfx, CFG_FLAGS), \
2424
PORT_GP_CFG_15(2, fn, sfx, CFG_FLAGS), \
2525
PORT_GP_CFG_12(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE), \
2626
PORT_GP_CFG_1(3, 12, fn, sfx, CFG_FLAGS), \
@@ -55,6 +55,7 @@
5555
#define GPSR0_0 F_(D0, IP5_15_12)
5656

5757
/* GPSR1 */
58+
#define GPSR1_28 FM(CLKOUT)
5859
#define GPSR1_27 F_(EX_WAIT0_A, IP5_11_8)
5960
#define GPSR1_26 F_(WE1_N, IP5_7_4)
6061
#define GPSR1_25 F_(WE0_N, IP5_3_0)
@@ -368,7 +369,7 @@
368369
GPSR6_31 \
369370
GPSR6_30 \
370371
GPSR6_29 \
371-
GPSR6_28 \
372+
GPSR1_28 GPSR6_28 \
372373
GPSR1_27 GPSR6_27 \
373374
GPSR1_26 GPSR6_26 \
374375
GPSR1_25 GPSR5_25 GPSR6_25 \
@@ -548,7 +549,7 @@ MOD_SEL0_4_3 MOD_SEL1_4 \
548549
FM(AVB_TX_CTL) FM(AVB_TXC) FM(AVB_TD0) FM(AVB_TD1) FM(AVB_TD2) FM(AVB_TD3) \
549550
FM(AVB_RX_CTL) FM(AVB_RXC) FM(AVB_RD0) FM(AVB_RD1) FM(AVB_RD2) FM(AVB_RD3) \
550551
FM(AVB_TXCREFCLK) FM(AVB_MDIO) \
551-
FM(CLKOUT) FM(PRESETOUT) \
552+
FM(PRESETOUT) \
552553
FM(DU_DOTCLKIN0) FM(DU_DOTCLKIN1) FM(DU_DOTCLKIN2) FM(DU_DOTCLKIN3) \
553554
FM(TMS) FM(TDO) FM(ASEBRK) FM(MLB_REF) FM(TDI) FM(TCK) FM(TRST) FM(EXTALR)
554555

@@ -587,6 +588,7 @@ static const u16 pinmux_data[] = {
587588

588589
PINMUX_SINGLE(AVS1),
589590
PINMUX_SINGLE(AVS2),
591+
PINMUX_SINGLE(CLKOUT),
590592
PINMUX_SINGLE(HDMI0_CEC),
591593
PINMUX_SINGLE(HDMI1_CEC),
592594
PINMUX_SINGLE(I2C_SEL_0_1),
@@ -4733,7 +4735,7 @@ static const struct pinmux_cfg_reg pinmux_config_regs[] = {
47334735
0, 0,
47344736
0, 0,
47354737
0, 0,
4736-
0, 0,
4738+
GP_1_28_FN, GPSR1_28,
47374739
GP_1_27_FN, GPSR1_27,
47384740
GP_1_26_FN, GPSR1_26,
47394741
GP_1_25_FN, GPSR1_25,
@@ -5335,7 +5337,7 @@ static const struct pinmux_drive_reg pinmux_drive_regs[] = {
53355337
{ RCAR_GP_PIN(1, 19), 0, 3 }, /* A19 */
53365338
} },
53375339
{ PINMUX_DRIVE_REG("DRVCTRL8", 0xe6060320) {
5338-
{ PIN_NUMBER('F', 1), 28, 3 }, /* CLKOUT */
5340+
{ RCAR_GP_PIN(1, 28), 28, 3 }, /* CLKOUT */
53395341
{ RCAR_GP_PIN(1, 20), 24, 3 }, /* CS0 */
53405342
{ RCAR_GP_PIN(1, 21), 20, 3 }, /* CS1_A26 */
53415343
{ RCAR_GP_PIN(1, 22), 16, 3 }, /* BS */
@@ -5596,7 +5598,7 @@ static const struct pinmux_bias_reg pinmux_bias_regs[] = {
55965598
[31] = RCAR_GP_PIN(1, 19), /* A19 */
55975599
} },
55985600
{ PINMUX_BIAS_REG("PUEN2", 0xe6060408, "PUD2", 0xe6060448) {
5599-
[ 0] = PIN_NUMBER('F', 1), /* CLKOUT */
5601+
[ 0] = RCAR_GP_PIN(1, 28), /* CLKOUT */
56005602
[ 1] = RCAR_GP_PIN(1, 20), /* CS0_N */
56015603
[ 2] = RCAR_GP_PIN(1, 21), /* CS1_N */
56025604
[ 3] = RCAR_GP_PIN(1, 22), /* BS_N */

0 commit comments

Comments
 (0)