aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>2014-02-20 14:53:40 -0500
committerLinus Walleij <linus.walleij@linaro.org>2014-03-04 20:15:30 -0500
commit7033168da51e43ebba7870f089d275b4589df0c5 (patch)
tree85b6eef579c79e394bb12d81b5a10a0f45856074 /drivers/pinctrl
parenta9ea2ed45a221edf8fff4b505a2d5e1d4fcf2c78 (diff)
pinctrl: sh-pfc: r8a7790: Add alternative MSIOF pin groups
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a7790.c129
1 files changed, 129 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
index 2814440843df..48093719167a 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c
@@ -2260,6 +2260,42 @@ static const unsigned int msiof0_tx_pins[] = {
2260static const unsigned int msiof0_tx_mux[] = { 2260static const unsigned int msiof0_tx_mux[] = {
2261 MSIOF0_TXD_MARK, 2261 MSIOF0_TXD_MARK,
2262}; 2262};
2263
2264static const unsigned int msiof0_clk_b_pins[] = {
2265 /* SCK */
2266 RCAR_GP_PIN(1, 23),
2267};
2268static const unsigned int msiof0_clk_b_mux[] = {
2269 MSIOF0_SCK_B_MARK,
2270};
2271static const unsigned int msiof0_ss1_b_pins[] = {
2272 /* SS1 */
2273 RCAR_GP_PIN(1, 12),
2274};
2275static const unsigned int msiof0_ss1_b_mux[] = {
2276 MSIOF0_SS1_B_MARK,
2277};
2278static const unsigned int msiof0_ss2_b_pins[] = {
2279 /* SS2 */
2280 RCAR_GP_PIN(1, 10),
2281};
2282static const unsigned int msiof0_ss2_b_mux[] = {
2283 MSIOF0_SS2_B_MARK,
2284};
2285static const unsigned int msiof0_rx_b_pins[] = {
2286 /* RXD */
2287 RCAR_GP_PIN(1, 29),
2288};
2289static const unsigned int msiof0_rx_b_mux[] = {
2290 MSIOF0_RXD_B_MARK,
2291};
2292static const unsigned int msiof0_tx_b_pins[] = {
2293 /* TXD */
2294 RCAR_GP_PIN(1, 28),
2295};
2296static const unsigned int msiof0_tx_b_mux[] = {
2297 MSIOF0_TXD_B_MARK,
2298};
2263/* - MSIOF1 ----------------------------------------------------------------- */ 2299/* - MSIOF1 ----------------------------------------------------------------- */
2264static const unsigned int msiof1_clk_pins[] = { 2300static const unsigned int msiof1_clk_pins[] = {
2265 /* SCK */ 2301 /* SCK */
@@ -2303,6 +2339,42 @@ static const unsigned int msiof1_tx_pins[] = {
2303static const unsigned int msiof1_tx_mux[] = { 2339static const unsigned int msiof1_tx_mux[] = {
2304 MSIOF1_TXD_MARK, 2340 MSIOF1_TXD_MARK,
2305}; 2341};
2342
2343static const unsigned int msiof1_clk_b_pins[] = {
2344 /* SCK */
2345 RCAR_GP_PIN(1, 16),
2346};
2347static const unsigned int msiof1_clk_b_mux[] = {
2348 MSIOF1_SCK_B_MARK,
2349};
2350static const unsigned int msiof1_ss1_b_pins[] = {
2351 /* SS1 */
2352 RCAR_GP_PIN(0, 18),
2353};
2354static const unsigned int msiof1_ss1_b_mux[] = {
2355 MSIOF1_SS1_B_MARK,
2356};
2357static const unsigned int msiof1_ss2_b_pins[] = {
2358 /* SS2 */
2359 RCAR_GP_PIN(0, 19),
2360};
2361static const unsigned int msiof1_ss2_b_mux[] = {
2362 MSIOF1_SS2_B_MARK,
2363};
2364static const unsigned int msiof1_rx_b_pins[] = {
2365 /* RXD */
2366 RCAR_GP_PIN(1, 17),
2367};
2368static const unsigned int msiof1_rx_b_mux[] = {
2369 MSIOF1_RXD_B_MARK,
2370};
2371static const unsigned int msiof1_tx_b_pins[] = {
2372 /* TXD */
2373 RCAR_GP_PIN(0, 20),
2374};
2375static const unsigned int msiof1_tx_b_mux[] = {
2376 MSIOF1_TXD_B_MARK,
2377};
2306/* - MSIOF2 ----------------------------------------------------------------- */ 2378/* - MSIOF2 ----------------------------------------------------------------- */
2307static const unsigned int msiof2_clk_pins[] = { 2379static const unsigned int msiof2_clk_pins[] = {
2308 /* SCK */ 2380 /* SCK */
@@ -2389,6 +2461,35 @@ static const unsigned int msiof3_tx_pins[] = {
2389static const unsigned int msiof3_tx_mux[] = { 2461static const unsigned int msiof3_tx_mux[] = {
2390 MSIOF3_TXD_MARK, 2462 MSIOF3_TXD_MARK,
2391}; 2463};
2464
2465static const unsigned int msiof3_clk_b_pins[] = {
2466 /* SCK */
2467 RCAR_GP_PIN(0, 0),
2468};
2469static const unsigned int msiof3_clk_b_mux[] = {
2470 MSIOF3_SCK_B_MARK,
2471};
2472static const unsigned int msiof3_sync_b_pins[] = {
2473 /* SYNC */
2474 RCAR_GP_PIN(0, 1),
2475};
2476static const unsigned int msiof3_sync_b_mux[] = {
2477 MSIOF3_SYNC_B_MARK,
2478};
2479static const unsigned int msiof3_rx_b_pins[] = {
2480 /* RXD */
2481 RCAR_GP_PIN(0, 2),
2482};
2483static const unsigned int msiof3_rx_b_mux[] = {
2484 MSIOF3_RXD_B_MARK,
2485};
2486static const unsigned int msiof3_tx_b_pins[] = {
2487 /* TXD */
2488 RCAR_GP_PIN(0, 3),
2489};
2490static const unsigned int msiof3_tx_b_mux[] = {
2491 MSIOF3_TXD_B_MARK,
2492};
2392/* - QSPI ------------------------------------------------------------------- */ 2493/* - QSPI ------------------------------------------------------------------- */
2393static const unsigned int qspi_ctrl_pins[] = { 2494static const unsigned int qspi_ctrl_pins[] = {
2394 /* SPCLK, SSL */ 2495 /* SPCLK, SSL */
@@ -3683,12 +3784,22 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
3683 SH_PFC_PIN_GROUP(msiof0_ss2), 3784 SH_PFC_PIN_GROUP(msiof0_ss2),
3684 SH_PFC_PIN_GROUP(msiof0_rx), 3785 SH_PFC_PIN_GROUP(msiof0_rx),
3685 SH_PFC_PIN_GROUP(msiof0_tx), 3786 SH_PFC_PIN_GROUP(msiof0_tx),
3787 SH_PFC_PIN_GROUP(msiof0_clk_b),
3788 SH_PFC_PIN_GROUP(msiof0_ss1_b),
3789 SH_PFC_PIN_GROUP(msiof0_ss2_b),
3790 SH_PFC_PIN_GROUP(msiof0_rx_b),
3791 SH_PFC_PIN_GROUP(msiof0_tx_b),
3686 SH_PFC_PIN_GROUP(msiof1_clk), 3792 SH_PFC_PIN_GROUP(msiof1_clk),
3687 SH_PFC_PIN_GROUP(msiof1_sync), 3793 SH_PFC_PIN_GROUP(msiof1_sync),
3688 SH_PFC_PIN_GROUP(msiof1_ss1), 3794 SH_PFC_PIN_GROUP(msiof1_ss1),
3689 SH_PFC_PIN_GROUP(msiof1_ss2), 3795 SH_PFC_PIN_GROUP(msiof1_ss2),
3690 SH_PFC_PIN_GROUP(msiof1_rx), 3796 SH_PFC_PIN_GROUP(msiof1_rx),
3691 SH_PFC_PIN_GROUP(msiof1_tx), 3797 SH_PFC_PIN_GROUP(msiof1_tx),
3798 SH_PFC_PIN_GROUP(msiof1_clk_b),
3799 SH_PFC_PIN_GROUP(msiof1_ss1_b),
3800 SH_PFC_PIN_GROUP(msiof1_ss2_b),
3801 SH_PFC_PIN_GROUP(msiof1_rx_b),
3802 SH_PFC_PIN_GROUP(msiof1_tx_b),
3692 SH_PFC_PIN_GROUP(msiof2_clk), 3803 SH_PFC_PIN_GROUP(msiof2_clk),
3693 SH_PFC_PIN_GROUP(msiof2_sync), 3804 SH_PFC_PIN_GROUP(msiof2_sync),
3694 SH_PFC_PIN_GROUP(msiof2_ss1), 3805 SH_PFC_PIN_GROUP(msiof2_ss1),
@@ -3701,6 +3812,10 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
3701 SH_PFC_PIN_GROUP(msiof3_ss2), 3812 SH_PFC_PIN_GROUP(msiof3_ss2),
3702 SH_PFC_PIN_GROUP(msiof3_rx), 3813 SH_PFC_PIN_GROUP(msiof3_rx),
3703 SH_PFC_PIN_GROUP(msiof3_tx), 3814 SH_PFC_PIN_GROUP(msiof3_tx),
3815 SH_PFC_PIN_GROUP(msiof3_clk_b),
3816 SH_PFC_PIN_GROUP(msiof3_sync_b),
3817 SH_PFC_PIN_GROUP(msiof3_rx_b),
3818 SH_PFC_PIN_GROUP(msiof3_tx_b),
3704 SH_PFC_PIN_GROUP(qspi_ctrl), 3819 SH_PFC_PIN_GROUP(qspi_ctrl),
3705 SH_PFC_PIN_GROUP(qspi_data2), 3820 SH_PFC_PIN_GROUP(qspi_data2),
3706 SH_PFC_PIN_GROUP(qspi_data4), 3821 SH_PFC_PIN_GROUP(qspi_data4),
@@ -3975,6 +4090,11 @@ static const char * const msiof0_groups[] = {
3975 "msiof0_ss2", 4090 "msiof0_ss2",
3976 "msiof0_rx", 4091 "msiof0_rx",
3977 "msiof0_tx", 4092 "msiof0_tx",
4093 "msiof0_clk_b",
4094 "msiof0_ss1_b",
4095 "msiof0_ss2_b",
4096 "msiof0_rx_b",
4097 "msiof0_tx_b",
3978}; 4098};
3979 4099
3980static const char * const msiof1_groups[] = { 4100static const char * const msiof1_groups[] = {
@@ -3984,6 +4104,11 @@ static const char * const msiof1_groups[] = {
3984 "msiof1_ss2", 4104 "msiof1_ss2",
3985 "msiof1_rx", 4105 "msiof1_rx",
3986 "msiof1_tx", 4106 "msiof1_tx",
4107 "msiof1_clk_b",
4108 "msiof1_ss1_b",
4109 "msiof1_ss2_b",
4110 "msiof1_rx_b",
4111 "msiof1_tx_b",
3987}; 4112};
3988 4113
3989static const char * const msiof2_groups[] = { 4114static const char * const msiof2_groups[] = {
@@ -4002,6 +4127,10 @@ static const char * const msiof3_groups[] = {
4002 "msiof3_ss2", 4127 "msiof3_ss2",
4003 "msiof3_rx", 4128 "msiof3_rx",
4004 "msiof3_tx", 4129 "msiof3_tx",
4130 "msiof3_clk_b",
4131 "msiof3_sync_b",
4132 "msiof3_rx_b",
4133 "msiof3_tx_b",
4005}; 4134};
4006 4135
4007static const char * const qspi_groups[] = { 4136static const char * const qspi_groups[] = {