diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-07 07:38:51 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-15 08:34:08 -0400 |
commit | f27f81f2c04e1cd382a3c3bb072c708a895d83bb (patch) | |
tree | 5fde7bca8db0b22de1dd9db7d67e70499f05c368 /drivers/pinctrl | |
parent | 97d40c4224172451f666febdd865c24b1c3c3fe5 (diff) |
sh-pfc: r8a7779: Add LBSC pin groups and functions
Only the CS pins and functions are currently handled.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7779.c | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c index 6043d2c8dd8d..3f671439ae6e 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c | |||
@@ -1631,6 +1631,63 @@ static const unsigned int hspi2_b_pins[] = { | |||
1631 | static const unsigned int hspi2_b_mux[] = { | 1631 | static const unsigned int hspi2_b_mux[] = { |
1632 | HSPI_CLK2_B_MARK, HSPI_CS2_B_MARK, HSPI_RX2_B_MARK, HSPI_TX2_B_MARK, | 1632 | HSPI_CLK2_B_MARK, HSPI_CS2_B_MARK, HSPI_RX2_B_MARK, HSPI_TX2_B_MARK, |
1633 | }; | 1633 | }; |
1634 | /* - LSBC ------------------------------------------------------------------- */ | ||
1635 | static const unsigned int lbsc_cs0_pins[] = { | ||
1636 | /* CS */ | ||
1637 | 13, | ||
1638 | }; | ||
1639 | static const unsigned int lbsc_cs0_mux[] = { | ||
1640 | CS0_MARK, | ||
1641 | }; | ||
1642 | static const unsigned int lbsc_cs1_pins[] = { | ||
1643 | /* CS */ | ||
1644 | 14, | ||
1645 | }; | ||
1646 | static const unsigned int lbsc_cs1_mux[] = { | ||
1647 | CS1_A26_MARK, | ||
1648 | }; | ||
1649 | static const unsigned int lbsc_ex_cs0_pins[] = { | ||
1650 | /* CS */ | ||
1651 | 15, | ||
1652 | }; | ||
1653 | static const unsigned int lbsc_ex_cs0_mux[] = { | ||
1654 | EX_CS0_MARK, | ||
1655 | }; | ||
1656 | static const unsigned int lbsc_ex_cs1_pins[] = { | ||
1657 | /* CS */ | ||
1658 | 16, | ||
1659 | }; | ||
1660 | static const unsigned int lbsc_ex_cs1_mux[] = { | ||
1661 | EX_CS1_MARK, | ||
1662 | }; | ||
1663 | static const unsigned int lbsc_ex_cs2_pins[] = { | ||
1664 | /* CS */ | ||
1665 | 17, | ||
1666 | }; | ||
1667 | static const unsigned int lbsc_ex_cs2_mux[] = { | ||
1668 | EX_CS2_MARK, | ||
1669 | }; | ||
1670 | static const unsigned int lbsc_ex_cs3_pins[] = { | ||
1671 | /* CS */ | ||
1672 | 18, | ||
1673 | }; | ||
1674 | static const unsigned int lbsc_ex_cs3_mux[] = { | ||
1675 | EX_CS3_MARK, | ||
1676 | }; | ||
1677 | static const unsigned int lbsc_ex_cs4_pins[] = { | ||
1678 | /* CS */ | ||
1679 | 19, | ||
1680 | }; | ||
1681 | static const unsigned int lbsc_ex_cs4_mux[] = { | ||
1682 | EX_CS4_MARK, | ||
1683 | }; | ||
1684 | static const unsigned int lbsc_ex_cs5_pins[] = { | ||
1685 | /* CS */ | ||
1686 | 20, | ||
1687 | }; | ||
1688 | static const unsigned int lbsc_ex_cs5_mux[] = { | ||
1689 | EX_CS5_MARK, | ||
1690 | }; | ||
1634 | /* - MMCIF ------------------------------------------------------------------ */ | 1691 | /* - MMCIF ------------------------------------------------------------------ */ |
1635 | static const unsigned int mmc0_data1_pins[] = { | 1692 | static const unsigned int mmc0_data1_pins[] = { |
1636 | /* D[0] */ | 1693 | /* D[0] */ |
@@ -2246,6 +2303,14 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
2246 | SH_PFC_PIN_GROUP(hspi1_d), | 2303 | SH_PFC_PIN_GROUP(hspi1_d), |
2247 | SH_PFC_PIN_GROUP(hspi2), | 2304 | SH_PFC_PIN_GROUP(hspi2), |
2248 | SH_PFC_PIN_GROUP(hspi2_b), | 2305 | SH_PFC_PIN_GROUP(hspi2_b), |
2306 | SH_PFC_PIN_GROUP(lbsc_cs0), | ||
2307 | SH_PFC_PIN_GROUP(lbsc_cs1), | ||
2308 | SH_PFC_PIN_GROUP(lbsc_ex_cs0), | ||
2309 | SH_PFC_PIN_GROUP(lbsc_ex_cs1), | ||
2310 | SH_PFC_PIN_GROUP(lbsc_ex_cs2), | ||
2311 | SH_PFC_PIN_GROUP(lbsc_ex_cs3), | ||
2312 | SH_PFC_PIN_GROUP(lbsc_ex_cs4), | ||
2313 | SH_PFC_PIN_GROUP(lbsc_ex_cs5), | ||
2249 | SH_PFC_PIN_GROUP(mmc0_data1), | 2314 | SH_PFC_PIN_GROUP(mmc0_data1), |
2250 | SH_PFC_PIN_GROUP(mmc0_data4), | 2315 | SH_PFC_PIN_GROUP(mmc0_data4), |
2251 | SH_PFC_PIN_GROUP(mmc0_data8), | 2316 | SH_PFC_PIN_GROUP(mmc0_data8), |
@@ -2367,6 +2432,17 @@ static const char * const hspi2_groups[] = { | |||
2367 | "hspi2_b", | 2432 | "hspi2_b", |
2368 | }; | 2433 | }; |
2369 | 2434 | ||
2435 | static const char * const lbsc_groups[] = { | ||
2436 | "lbsc_cs0", | ||
2437 | "lbsc_cs1", | ||
2438 | "lbsc_ex_cs0", | ||
2439 | "lbsc_ex_cs1", | ||
2440 | "lbsc_ex_cs2", | ||
2441 | "lbsc_ex_cs3", | ||
2442 | "lbsc_ex_cs4", | ||
2443 | "lbsc_ex_cs5", | ||
2444 | }; | ||
2445 | |||
2370 | static const char * const mmc0_groups[] = { | 2446 | static const char * const mmc0_groups[] = { |
2371 | "mmc0_data1", | 2447 | "mmc0_data1", |
2372 | "mmc0_data4", | 2448 | "mmc0_data4", |
@@ -2500,6 +2576,7 @@ static const struct sh_pfc_function pinmux_functions[] = { | |||
2500 | SH_PFC_FUNCTION(hspi0), | 2576 | SH_PFC_FUNCTION(hspi0), |
2501 | SH_PFC_FUNCTION(hspi1), | 2577 | SH_PFC_FUNCTION(hspi1), |
2502 | SH_PFC_FUNCTION(hspi2), | 2578 | SH_PFC_FUNCTION(hspi2), |
2579 | SH_PFC_FUNCTION(lbsc), | ||
2503 | SH_PFC_FUNCTION(mmc0), | 2580 | SH_PFC_FUNCTION(mmc0), |
2504 | SH_PFC_FUNCTION(mmc1), | 2581 | SH_PFC_FUNCTION(mmc1), |
2505 | SH_PFC_FUNCTION(sdhi0), | 2582 | SH_PFC_FUNCTION(sdhi0), |