Skip to content

Commit 68251fc

Browse files
Wolfram Sangdinguyen702
authored andcommitted
pinctrl: sh-pfc: r8a7795: Add SATA pins, groups, and functions
Tested with a Salvator-XS and H3 ES2.0. Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> (cherry picked from commit 297e5b2) Signed-off-by: Simon Horman <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 23ef37d commit 68251fc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3227,6 +3227,22 @@ static const unsigned int pwm6_b_mux[] = {
32273227
PWM6_B_MARK,
32283228
};
32293229

3230+
/* - SATA --------------------------------------------------------------------*/
3231+
static const unsigned int sata0_devslp_a_pins[] = {
3232+
/* DEVSLP */
3233+
RCAR_GP_PIN(6, 16),
3234+
};
3235+
static const unsigned int sata0_devslp_a_mux[] = {
3236+
SATA_DEVSLP_A_MARK,
3237+
};
3238+
static const unsigned int sata0_devslp_b_pins[] = {
3239+
/* DEVSLP */
3240+
RCAR_GP_PIN(4, 6),
3241+
};
3242+
static const unsigned int sata0_devslp_b_mux[] = {
3243+
SATA_DEVSLP_B_MARK,
3244+
};
3245+
32303246
/* - SCIF0 ------------------------------------------------------------------ */
32313247
static const unsigned int scif0_data_pins[] = {
32323248
/* RX, TX */
@@ -4092,6 +4108,8 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
40924108
SH_PFC_PIN_GROUP(pwm5_b),
40934109
SH_PFC_PIN_GROUP(pwm6_a),
40944110
SH_PFC_PIN_GROUP(pwm6_b),
4111+
SH_PFC_PIN_GROUP(sata0_devslp_a),
4112+
SH_PFC_PIN_GROUP(sata0_devslp_b),
40954113
SH_PFC_PIN_GROUP(scif0_data),
40964114
SH_PFC_PIN_GROUP(scif0_clk),
40974115
SH_PFC_PIN_GROUP(scif0_ctrl),
@@ -4500,6 +4518,11 @@ static const char * const pwm6_groups[] = {
45004518
"pwm6_b",
45014519
};
45024520

4521+
static const char * const sata0_groups[] = {
4522+
"sata0_devslp_a",
4523+
"sata0_devslp_b",
4524+
};
4525+
45034526
static const char * const scif0_groups[] = {
45044527
"scif0_data",
45054528
"scif0_clk",
@@ -4669,6 +4692,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
46694692
SH_PFC_FUNCTION(pwm4),
46704693
SH_PFC_FUNCTION(pwm5),
46714694
SH_PFC_FUNCTION(pwm6),
4695+
SH_PFC_FUNCTION(sata0),
46724696
SH_PFC_FUNCTION(scif0),
46734697
SH_PFC_FUNCTION(scif1),
46744698
SH_PFC_FUNCTION(scif2),

0 commit comments

Comments
 (0)