diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-04-13 20:24:04 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-04-22 09:09:29 -0400 |
commit | c57a05b0eb0ee0205b34f2694b035afc75fa71e4 (patch) | |
tree | cecc98f18c0159f5bd82b523e32ec134edd185cf | |
parent | b664cd1f020211d8e4480c2937b82fe513a9c757 (diff) |
sh-pfc: r8a7791: Add Audio pin support
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c index 4caddc6b103a..8be969a8ff9a 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c | |||
@@ -1680,6 +1680,53 @@ static const struct sh_pfc_pin pinmux_pins[] = { | |||
1680 | PINMUX_GPIO_GP_ALL(), | 1680 | PINMUX_GPIO_GP_ALL(), |
1681 | }; | 1681 | }; |
1682 | 1682 | ||
1683 | /* - Audio Clock ------------------------------------------------------------ */ | ||
1684 | static const unsigned int audio_clk_a_pins[] = { | ||
1685 | /* CLK */ | ||
1686 | RCAR_GP_PIN(2, 28), | ||
1687 | }; | ||
1688 | |||
1689 | static const unsigned int audio_clk_a_mux[] = { | ||
1690 | AUDIO_CLKA_MARK, | ||
1691 | }; | ||
1692 | |||
1693 | static const unsigned int audio_clk_b_pins[] = { | ||
1694 | /* CLK */ | ||
1695 | RCAR_GP_PIN(2, 29), | ||
1696 | }; | ||
1697 | |||
1698 | static const unsigned int audio_clk_b_mux[] = { | ||
1699 | AUDIO_CLKB_MARK, | ||
1700 | }; | ||
1701 | |||
1702 | static const unsigned int audio_clk_b_b_pins[] = { | ||
1703 | /* CLK */ | ||
1704 | RCAR_GP_PIN(7, 20), | ||
1705 | }; | ||
1706 | |||
1707 | static const unsigned int audio_clk_b_b_mux[] = { | ||
1708 | AUDIO_CLKB_B_MARK, | ||
1709 | }; | ||
1710 | |||
1711 | static const unsigned int audio_clk_c_pins[] = { | ||
1712 | /* CLK */ | ||
1713 | RCAR_GP_PIN(2, 30), | ||
1714 | }; | ||
1715 | |||
1716 | static const unsigned int audio_clk_c_mux[] = { | ||
1717 | AUDIO_CLKC_MARK, | ||
1718 | }; | ||
1719 | |||
1720 | static const unsigned int audio_clkout_pins[] = { | ||
1721 | /* CLK */ | ||
1722 | RCAR_GP_PIN(2, 31), | ||
1723 | }; | ||
1724 | |||
1725 | static const unsigned int audio_clkout_mux[] = { | ||
1726 | AUDIO_CLKOUT_MARK, | ||
1727 | }; | ||
1728 | |||
1729 | |||
1683 | /* - DU --------------------------------------------------------------------- */ | 1730 | /* - DU --------------------------------------------------------------------- */ |
1684 | static const unsigned int du_rgb666_pins[] = { | 1731 | static const unsigned int du_rgb666_pins[] = { |
1685 | /* R[7:2], G[7:2], B[7:2] */ | 1732 | /* R[7:2], G[7:2], B[7:2] */ |
@@ -3817,6 +3864,11 @@ static const unsigned int vin2_clk_mux[] = { | |||
3817 | }; | 3864 | }; |
3818 | 3865 | ||
3819 | static const struct sh_pfc_pin_group pinmux_groups[] = { | 3866 | static const struct sh_pfc_pin_group pinmux_groups[] = { |
3867 | SH_PFC_PIN_GROUP(audio_clk_a), | ||
3868 | SH_PFC_PIN_GROUP(audio_clk_b), | ||
3869 | SH_PFC_PIN_GROUP(audio_clk_b_b), | ||
3870 | SH_PFC_PIN_GROUP(audio_clk_c), | ||
3871 | SH_PFC_PIN_GROUP(audio_clkout), | ||
3820 | SH_PFC_PIN_GROUP(du_rgb666), | 3872 | SH_PFC_PIN_GROUP(du_rgb666), |
3821 | SH_PFC_PIN_GROUP(du_rgb888), | 3873 | SH_PFC_PIN_GROUP(du_rgb888), |
3822 | SH_PFC_PIN_GROUP(du_clk_out_0), | 3874 | SH_PFC_PIN_GROUP(du_clk_out_0), |
@@ -4095,6 +4147,14 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
4095 | SH_PFC_PIN_GROUP(vin2_clk), | 4147 | SH_PFC_PIN_GROUP(vin2_clk), |
4096 | }; | 4148 | }; |
4097 | 4149 | ||
4150 | static const char * const audio_clk_groups[] = { | ||
4151 | "audio_clk_a", | ||
4152 | "audio_clk_b", | ||
4153 | "audio_clk_b_b", | ||
4154 | "audio_clk_c", | ||
4155 | "audio_clkout", | ||
4156 | }; | ||
4157 | |||
4098 | static const char * const du_groups[] = { | 4158 | static const char * const du_groups[] = { |
4099 | "du_rgb666", | 4159 | "du_rgb666", |
4100 | "du_rgb888", | 4160 | "du_rgb888", |
@@ -4482,6 +4542,7 @@ static const char * const vin2_groups[] = { | |||
4482 | }; | 4542 | }; |
4483 | 4543 | ||
4484 | static const struct sh_pfc_function pinmux_functions[] = { | 4544 | static const struct sh_pfc_function pinmux_functions[] = { |
4545 | SH_PFC_FUNCTION(audio_clk), | ||
4485 | SH_PFC_FUNCTION(du), | 4546 | SH_PFC_FUNCTION(du), |
4486 | SH_PFC_FUNCTION(du0), | 4547 | SH_PFC_FUNCTION(du0), |
4487 | SH_PFC_FUNCTION(du1), | 4548 | SH_PFC_FUNCTION(du1), |