diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2016-09-05 16:17:31 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2016-09-12 04:54:35 -0400 |
commit | c30716894e96ed1e76bf32ae68c5438350700496 (patch) | |
tree | 4bcecb29f3ad5f9bb8a0f99220d00c140b8345d6 | |
parent | 446bd7dd922edd033d28ef9aa8c594c1c2d05289 (diff) |
pinctrl: sh-pfc: r8a7792: Add MSIOF pin groups
Add MSIOF0/1 pin groups to the R8A7792 PFC driver.
Based on the original (and large) patch by Vladimir Barinov
<vladimir.barinov@cogentembedded.com>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7792.c | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7792.c b/drivers/pinctrl/sh-pfc/pfc-r8a7792.c index 0a3e4e03259b..21badb6166b9 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7792.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7792.c | |||
@@ -1034,6 +1034,64 @@ static const unsigned int lbsc_ex_cs5_pins[] = { | |||
1034 | static const unsigned int lbsc_ex_cs5_mux[] = { | 1034 | static const unsigned int lbsc_ex_cs5_mux[] = { |
1035 | EX_CS5_N_MARK, | 1035 | EX_CS5_N_MARK, |
1036 | }; | 1036 | }; |
1037 | /* - MSIOF0 ----------------------------------------------------------------- */ | ||
1038 | static const unsigned int msiof0_clk_pins[] = { | ||
1039 | /* SCK */ | ||
1040 | RCAR_GP_PIN(10, 0), | ||
1041 | }; | ||
1042 | static const unsigned int msiof0_clk_mux[] = { | ||
1043 | MSIOF0_SCK_MARK, | ||
1044 | }; | ||
1045 | static const unsigned int msiof0_sync_pins[] = { | ||
1046 | /* SYNC */ | ||
1047 | RCAR_GP_PIN(10, 1), | ||
1048 | }; | ||
1049 | static const unsigned int msiof0_sync_mux[] = { | ||
1050 | MSIOF0_SYNC_MARK, | ||
1051 | }; | ||
1052 | static const unsigned int msiof0_rx_pins[] = { | ||
1053 | /* RXD */ | ||
1054 | RCAR_GP_PIN(10, 4), | ||
1055 | }; | ||
1056 | static const unsigned int msiof0_rx_mux[] = { | ||
1057 | MSIOF0_RXD_MARK, | ||
1058 | }; | ||
1059 | static const unsigned int msiof0_tx_pins[] = { | ||
1060 | /* TXD */ | ||
1061 | RCAR_GP_PIN(10, 3), | ||
1062 | }; | ||
1063 | static const unsigned int msiof0_tx_mux[] = { | ||
1064 | MSIOF0_TXD_MARK, | ||
1065 | }; | ||
1066 | /* - MSIOF1 ----------------------------------------------------------------- */ | ||
1067 | static const unsigned int msiof1_clk_pins[] = { | ||
1068 | /* SCK */ | ||
1069 | RCAR_GP_PIN(10, 5), | ||
1070 | }; | ||
1071 | static const unsigned int msiof1_clk_mux[] = { | ||
1072 | MSIOF1_SCK_MARK, | ||
1073 | }; | ||
1074 | static const unsigned int msiof1_sync_pins[] = { | ||
1075 | /* SYNC */ | ||
1076 | RCAR_GP_PIN(10, 6), | ||
1077 | }; | ||
1078 | static const unsigned int msiof1_sync_mux[] = { | ||
1079 | MSIOF1_SYNC_MARK, | ||
1080 | }; | ||
1081 | static const unsigned int msiof1_rx_pins[] = { | ||
1082 | /* RXD */ | ||
1083 | RCAR_GP_PIN(10, 9), | ||
1084 | }; | ||
1085 | static const unsigned int msiof1_rx_mux[] = { | ||
1086 | MSIOF1_RXD_MARK, | ||
1087 | }; | ||
1088 | static const unsigned int msiof1_tx_pins[] = { | ||
1089 | /* TXD */ | ||
1090 | RCAR_GP_PIN(10, 8), | ||
1091 | }; | ||
1092 | static const unsigned int msiof1_tx_mux[] = { | ||
1093 | MSIOF1_TXD_MARK, | ||
1094 | }; | ||
1037 | /* - QSPI ------------------------------------------------------------------- */ | 1095 | /* - QSPI ------------------------------------------------------------------- */ |
1038 | static const unsigned int qspi_ctrl_pins[] = { | 1096 | static const unsigned int qspi_ctrl_pins[] = { |
1039 | /* SPCLK, SSL */ | 1097 | /* SPCLK, SSL */ |
@@ -1608,6 +1666,14 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
1608 | SH_PFC_PIN_GROUP(lbsc_ex_cs3), | 1666 | SH_PFC_PIN_GROUP(lbsc_ex_cs3), |
1609 | SH_PFC_PIN_GROUP(lbsc_ex_cs4), | 1667 | SH_PFC_PIN_GROUP(lbsc_ex_cs4), |
1610 | SH_PFC_PIN_GROUP(lbsc_ex_cs5), | 1668 | SH_PFC_PIN_GROUP(lbsc_ex_cs5), |
1669 | SH_PFC_PIN_GROUP(msiof0_clk), | ||
1670 | SH_PFC_PIN_GROUP(msiof0_sync), | ||
1671 | SH_PFC_PIN_GROUP(msiof0_rx), | ||
1672 | SH_PFC_PIN_GROUP(msiof0_tx), | ||
1673 | SH_PFC_PIN_GROUP(msiof1_clk), | ||
1674 | SH_PFC_PIN_GROUP(msiof1_sync), | ||
1675 | SH_PFC_PIN_GROUP(msiof1_rx), | ||
1676 | SH_PFC_PIN_GROUP(msiof1_tx), | ||
1611 | SH_PFC_PIN_GROUP(qspi_ctrl), | 1677 | SH_PFC_PIN_GROUP(qspi_ctrl), |
1612 | SH_PFC_PIN_GROUP(qspi_data2), | 1678 | SH_PFC_PIN_GROUP(qspi_data2), |
1613 | SH_PFC_PIN_GROUP(qspi_data4), | 1679 | SH_PFC_PIN_GROUP(qspi_data4), |
@@ -1734,6 +1800,20 @@ static const char * const lbsc_groups[] = { | |||
1734 | "lbsc_ex_cs5", | 1800 | "lbsc_ex_cs5", |
1735 | }; | 1801 | }; |
1736 | 1802 | ||
1803 | static const char * const msiof0_groups[] = { | ||
1804 | "msiof0_clk", | ||
1805 | "msiof0_sync", | ||
1806 | "msiof0_rx", | ||
1807 | "msiof0_tx", | ||
1808 | }; | ||
1809 | |||
1810 | static const char * const msiof1_groups[] = { | ||
1811 | "msiof1_clk", | ||
1812 | "msiof1_sync", | ||
1813 | "msiof1_rx", | ||
1814 | "msiof1_tx", | ||
1815 | }; | ||
1816 | |||
1737 | static const char * const qspi_groups[] = { | 1817 | static const char * const qspi_groups[] = { |
1738 | "qspi_ctrl", | 1818 | "qspi_ctrl", |
1739 | "qspi_data2", | 1819 | "qspi_data2", |
@@ -1840,6 +1920,8 @@ static const struct sh_pfc_function pinmux_functions[] = { | |||
1840 | SH_PFC_FUNCTION(du1), | 1920 | SH_PFC_FUNCTION(du1), |
1841 | SH_PFC_FUNCTION(intc), | 1921 | SH_PFC_FUNCTION(intc), |
1842 | SH_PFC_FUNCTION(lbsc), | 1922 | SH_PFC_FUNCTION(lbsc), |
1923 | SH_PFC_FUNCTION(msiof0), | ||
1924 | SH_PFC_FUNCTION(msiof1), | ||
1843 | SH_PFC_FUNCTION(qspi), | 1925 | SH_PFC_FUNCTION(qspi), |
1844 | SH_PFC_FUNCTION(scif0), | 1926 | SH_PFC_FUNCTION(scif0), |
1845 | SH_PFC_FUNCTION(scif3), | 1927 | SH_PFC_FUNCTION(scif3), |