summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-10-10 03:57:17 -0400
committerGeert Uytterhoeven <geert+renesas@glider.be>2017-10-11 05:34:03 -0400
commit6e7b1ee885793ecfa8e1194f92e23856b6c07c41 (patch)
treef50c6aa4a7d18cd05ae3fa45734b1adee325a444 /drivers/pinctrl
parent94888a4dc39a15ae3a09e1ec4cca0f18cf03a218 (diff)
pinctrl: sh-pfc: r8a77995: Add Audio clock pin support
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a77995.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
index 3f67b8d4f050..fa000a91f881 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a77995.c
@@ -936,6 +936,36 @@ static const struct sh_pfc_pin pinmux_pins[] = {
936 PINMUX_GPIO_GP_ALL(), 936 PINMUX_GPIO_GP_ALL(),
937}; 937};
938 938
939/* - AUDIO CLOCK ------------------------------------------------------------- */
940static const unsigned int audio_clk_a_pins[] = {
941 /* CLK A */
942 RCAR_GP_PIN(4, 1),
943};
944static const unsigned int audio_clk_a_mux[] = {
945 AUDIO_CLKA_MARK,
946};
947static const unsigned int audio_clk_b_pins[] = {
948 /* CLK B */
949 RCAR_GP_PIN(2, 27),
950};
951static const unsigned int audio_clk_b_mux[] = {
952 AUDIO_CLKB_MARK,
953};
954static const unsigned int audio_clkout_pins[] = {
955 /* CLKOUT */
956 RCAR_GP_PIN(4, 5),
957};
958static const unsigned int audio_clkout_mux[] = {
959 AUDIO_CLKOUT_MARK,
960};
961static const unsigned int audio_clkout1_pins[] = {
962 /* CLKOUT1 */
963 RCAR_GP_PIN(4, 22),
964};
965static const unsigned int audio_clkout1_mux[] = {
966 AUDIO_CLKOUT1_MARK,
967};
968
939/* - EtherAVB --------------------------------------------------------------- */ 969/* - EtherAVB --------------------------------------------------------------- */
940static const unsigned int avb0_link_pins[] = { 970static const unsigned int avb0_link_pins[] = {
941 /* AVB0_LINK */ 971 /* AVB0_LINK */
@@ -1417,6 +1447,10 @@ static const unsigned int usb0_mux[] = {
1417}; 1447};
1418 1448
1419static const struct sh_pfc_pin_group pinmux_groups[] = { 1449static const struct sh_pfc_pin_group pinmux_groups[] = {
1450 SH_PFC_PIN_GROUP(audio_clk_a),
1451 SH_PFC_PIN_GROUP(audio_clk_b),
1452 SH_PFC_PIN_GROUP(audio_clkout),
1453 SH_PFC_PIN_GROUP(audio_clkout1),
1420 SH_PFC_PIN_GROUP(avb0_link), 1454 SH_PFC_PIN_GROUP(avb0_link),
1421 SH_PFC_PIN_GROUP(avb0_magic), 1455 SH_PFC_PIN_GROUP(avb0_magic),
1422 SH_PFC_PIN_GROUP(avb0_phy_int), 1456 SH_PFC_PIN_GROUP(avb0_phy_int),
@@ -1478,6 +1512,13 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
1478 SH_PFC_PIN_GROUP(usb0), 1512 SH_PFC_PIN_GROUP(usb0),
1479}; 1513};
1480 1514
1515static const char * const audio_clk_groups[] = {
1516 "audio_clk_a",
1517 "audio_clk_b",
1518 "audio_clkout",
1519 "audio_clkout1",
1520};
1521
1481static const char * const avb0_groups[] = { 1522static const char * const avb0_groups[] = {
1482 "avb0_link", 1523 "avb0_link",
1483 "avb0_magic", 1524 "avb0_magic",
@@ -1591,6 +1632,7 @@ static const char * const usb0_groups[] = {
1591}; 1632};
1592 1633
1593static const struct sh_pfc_function pinmux_functions[] = { 1634static const struct sh_pfc_function pinmux_functions[] = {
1635 SH_PFC_FUNCTION(audio_clk),
1594 SH_PFC_FUNCTION(avb0), 1636 SH_PFC_FUNCTION(avb0),
1595 SH_PFC_FUNCTION(i2c0), 1637 SH_PFC_FUNCTION(i2c0),
1596 SH_PFC_FUNCTION(i2c1), 1638 SH_PFC_FUNCTION(i2c1),