diff mbox

sh-pfc: r8a7790: add MLB+ pin group

Message ID 4254413.Ay0OtsgpoE@wasted.cogentembedded.com (mailing list archive)
State Accepted
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Sergei Shtylyov Jan. 10, 2015, 6:20 p.m. UTC
Add MLB+ 3-pin mode pin group to R8A7790 PFC driver.

Based on original patch by Andrey Gusakov <andrey.gusakov@cogentembedded.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
The patch is against the 'devel' branch of Linus W.'s 'linux-pinctrl.git' repo.

 drivers/pinctrl/sh-pfc/pfc-r8a7790.c |   13 +++++++++++++
 1 file changed, 13 insertions(+)


--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Geert Uytterhoeven Jan. 12, 2015, 9:42 a.m. UTC | #1
On Sat, Jan 10, 2015 at 7:20 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Add MLB+ 3-pin mode pin group to R8A7790 PFC driver.
>
> Based on original patch by Andrey Gusakov <andrey.gusakov@cogentembedded.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Thanks, looks OK to me

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

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
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Laurent Pinchart Jan. 13, 2015, 12:03 p.m. UTC | #2
Hi Sergei,

Thank you for the patch.

On Saturday 10 January 2015 21:20:47 Sergei Shtylyov wrote:
> Add MLB+ 3-pin mode pin group to R8A7790 PFC driver.
> 
> Based on original patch by Andrey Gusakov
> <andrey.gusakov@cogentembedded.com>.
> 
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
> The patch is against the 'devel' branch of Linus W.'s 'linux-pinctrl.git'
> repo.
> 
>  drivers/pinctrl/sh-pfc/pfc-r8a7790.c |   13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> Index: linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
> ===================================================================
> --- linux-pinctrl.orig/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
> +++ linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
> @@ -2241,6 +2241,13 @@ static const unsigned int intc_irq3_pins
>  static const unsigned int intc_irq3_mux[] = {
>  	IRQ3_MARK,
>  };
> +/* - MLB+
> ------------------------------------------------------------------- */
> +static const unsigned int mlb_3pin_pins[] = {
> +	RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 2),
> +};
> +static const unsigned int mlb_3pin_mux[] = {
> +	MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK,
> +};
>  /* - MMCIF0
> ----------------------------------------------------------------- */ static
> const unsigned int mmc0_data1_pins[] = {
>  	/* D[0] */
> @@ -3873,6 +3880,7 @@ static const struct sh_pfc_pin_group pin
>  	SH_PFC_PIN_GROUP(intc_irq1),
>  	SH_PFC_PIN_GROUP(intc_irq2),
>  	SH_PFC_PIN_GROUP(intc_irq3),
> +	SH_PFC_PIN_GROUP(mlb_3pin),
>  	SH_PFC_PIN_GROUP(mmc0_data1),
>  	SH_PFC_PIN_GROUP(mmc0_data4),
>  	SH_PFC_PIN_GROUP(mmc0_data8),
> @@ -4198,6 +4206,10 @@ static const char * const intc_groups[]
>  	"intc_irq3",
>  };
> 
> +static const char * const mlb_groups[] = {
> +	"mlb_3pin",
> +};
> +
>  static const char * const mmc0_groups[] = {
>  	"mmc0_data1",
>  	"mmc0_data4",
> @@ -4511,6 +4523,7 @@ static const struct sh_pfc_function pinm
>  	SH_PFC_FUNCTION(iic2),
>  	SH_PFC_FUNCTION(iic3),
>  	SH_PFC_FUNCTION(intc),
> +	SH_PFC_FUNCTION(mlb),
>  	SH_PFC_FUNCTION(mmc0),
>  	SH_PFC_FUNCTION(mmc1),
>  	SH_PFC_FUNCTION(msiof0),
Linus Walleij Jan. 15, 2015, 4:37 p.m. UTC | #3
On Sat, Jan 10, 2015 at 7:20 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:

> Add MLB+ 3-pin mode pin group to R8A7790 PFC driver.
>
> Based on original patch by Andrey Gusakov <andrey.gusakov@cogentembedded.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Patch applied with ACKs.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
===================================================================
--- linux-pinctrl.orig/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
+++ linux-pinctrl/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
@@ -2241,6 +2241,13 @@  static const unsigned int intc_irq3_pins
 static const unsigned int intc_irq3_mux[] = {
 	IRQ3_MARK,
 };
+/* - MLB+ ------------------------------------------------------------------- */
+static const unsigned int mlb_3pin_pins[] = {
+	RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 2),
+};
+static const unsigned int mlb_3pin_mux[] = {
+	MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK,
+};
 /* - MMCIF0 ----------------------------------------------------------------- */
 static const unsigned int mmc0_data1_pins[] = {
 	/* D[0] */
@@ -3873,6 +3880,7 @@  static const struct sh_pfc_pin_group pin
 	SH_PFC_PIN_GROUP(intc_irq1),
 	SH_PFC_PIN_GROUP(intc_irq2),
 	SH_PFC_PIN_GROUP(intc_irq3),
+	SH_PFC_PIN_GROUP(mlb_3pin),
 	SH_PFC_PIN_GROUP(mmc0_data1),
 	SH_PFC_PIN_GROUP(mmc0_data4),
 	SH_PFC_PIN_GROUP(mmc0_data8),
@@ -4198,6 +4206,10 @@  static const char * const intc_groups[]
 	"intc_irq3",
 };
 
+static const char * const mlb_groups[] = {
+	"mlb_3pin",
+};
+
 static const char * const mmc0_groups[] = {
 	"mmc0_data1",
 	"mmc0_data4",
@@ -4511,6 +4523,7 @@  static const struct sh_pfc_function pinm
 	SH_PFC_FUNCTION(iic2),
 	SH_PFC_FUNCTION(iic3),
 	SH_PFC_FUNCTION(intc),
+	SH_PFC_FUNCTION(mlb),
 	SH_PFC_FUNCTION(mmc0),
 	SH_PFC_FUNCTION(mmc1),
 	SH_PFC_FUNCTION(msiof0),