| From 28650dfe8b56785c8a32cb4dabd5d57a35cc2c62 Mon Sep 17 00:00:00 2001 |
| From: Wolfram Sang <wsa+renesas@sang-engineering.com> |
| Date: Wed, 20 Dec 2017 22:59:22 +0100 |
| Subject: [PATCH 0502/1795] pinctrl: sh-pfc: r8a7795: Add SATA pins, groups, |
| and functions |
| |
| Tested with a Salvator-XS and H3 ES2.0. |
| |
| Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| (cherry picked from commit 297e5b2b7a8398b4b850d6bdb63f3a3544670b9e) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 24 ++++++++++++++++++++++++ |
| 1 file changed, 24 insertions(+) |
| |
| diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c |
| index 7eddd0f2f847..18aeee592fdc 100644 |
| --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c |
| +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c |
| @@ -3227,6 +3227,22 @@ static const unsigned int pwm6_b_mux[] = { |
| PWM6_B_MARK, |
| }; |
| |
| +/* - SATA --------------------------------------------------------------------*/ |
| +static const unsigned int sata0_devslp_a_pins[] = { |
| + /* DEVSLP */ |
| + RCAR_GP_PIN(6, 16), |
| +}; |
| +static const unsigned int sata0_devslp_a_mux[] = { |
| + SATA_DEVSLP_A_MARK, |
| +}; |
| +static const unsigned int sata0_devslp_b_pins[] = { |
| + /* DEVSLP */ |
| + RCAR_GP_PIN(4, 6), |
| +}; |
| +static const unsigned int sata0_devslp_b_mux[] = { |
| + SATA_DEVSLP_B_MARK, |
| +}; |
| + |
| /* - SCIF0 ------------------------------------------------------------------ */ |
| static const unsigned int scif0_data_pins[] = { |
| /* RX, TX */ |
| @@ -4092,6 +4108,8 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { |
| SH_PFC_PIN_GROUP(pwm5_b), |
| SH_PFC_PIN_GROUP(pwm6_a), |
| SH_PFC_PIN_GROUP(pwm6_b), |
| + SH_PFC_PIN_GROUP(sata0_devslp_a), |
| + SH_PFC_PIN_GROUP(sata0_devslp_b), |
| SH_PFC_PIN_GROUP(scif0_data), |
| SH_PFC_PIN_GROUP(scif0_clk), |
| SH_PFC_PIN_GROUP(scif0_ctrl), |
| @@ -4500,6 +4518,11 @@ static const char * const pwm6_groups[] = { |
| "pwm6_b", |
| }; |
| |
| +static const char * const sata0_groups[] = { |
| + "sata0_devslp_a", |
| + "sata0_devslp_b", |
| +}; |
| + |
| static const char * const scif0_groups[] = { |
| "scif0_data", |
| "scif0_clk", |
| @@ -4669,6 +4692,7 @@ static const struct sh_pfc_function pinmux_functions[] = { |
| SH_PFC_FUNCTION(pwm4), |
| SH_PFC_FUNCTION(pwm5), |
| SH_PFC_FUNCTION(pwm6), |
| + SH_PFC_FUNCTION(sata0), |
| SH_PFC_FUNCTION(scif0), |
| SH_PFC_FUNCTION(scif1), |
| SH_PFC_FUNCTION(scif2), |
| -- |
| 2.19.0 |
| |