aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-06 13:04:43 -0500
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-15 08:34:07 -0400
commitf516238737e1412613aee493961f352977666bbd (patch)
tree25d93a6f532e900de09b31e11c9412fc297a7a62 /drivers/pinctrl/sh-pfc/pfc-r8a7779.c
parent081b69bbb2c2df2f00b420f9f612c1c3ee0be592 (diff)
sh-pfc: r8a7779: Add HSPI pin groups and functions
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-r8a7779.c')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a7779.c79
1 files changed, 78 insertions, 1 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
index a01adea444e1..361b16240887 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
@@ -1575,6 +1575,58 @@ static const unsigned int du1_cde_pins[] = {
1575static const unsigned int du1_cde_mux[] = { 1575static const unsigned int du1_cde_mux[] = {
1576 DU1_CDE_MARK 1576 DU1_CDE_MARK
1577}; 1577};
1578/* - HSPI0 ------------------------------------------------------------------ */
1579static const unsigned int hspi0_pins[] = {
1580 /* CLK, CS, RX, TX */
1581 150, 151, 153, 152,
1582};
1583static const unsigned int hspi0_mux[] = {
1584 HSPI_CLK0_MARK, HSPI_CS0_MARK, HSPI_RX0_MARK, HSPI_TX0_MARK,
1585};
1586/* - HSPI1 ------------------------------------------------------------------ */
1587static const unsigned int hspi1_pins[] = {
1588 /* CLK, CS, RX, TX */
1589 63, 58, 64, 62,
1590};
1591static const unsigned int hspi1_mux[] = {
1592 HSPI_CLK1_MARK, HSPI_CS1_MARK, HSPI_RX1_MARK, HSPI_TX1_MARK,
1593};
1594static const unsigned int hspi1_b_pins[] = {
1595 /* CLK, CS, RX, TX */
1596 90, 91, 93, 92,
1597};
1598static const unsigned int hspi1_b_mux[] = {
1599 HSPI_CLK1_B_MARK, HSPI_CS1_B_MARK, HSPI_RX1_B_MARK, HSPI_TX1_B_MARK,
1600};
1601static const unsigned int hspi1_c_pins[] = {
1602 /* CLK, CS, RX, TX */
1603 141, 142, 144, 143,
1604};
1605static const unsigned int hspi1_c_mux[] = {
1606 HSPI_CLK1_C_MARK, HSPI_CS1_C_MARK, HSPI_RX1_C_MARK, HSPI_TX1_C_MARK,
1607};
1608static const unsigned int hspi1_d_pins[] = {
1609 /* CLK, CS, RX, TX */
1610 101, 102, 104, 103,
1611};
1612static const unsigned int hspi1_d_mux[] = {
1613 HSPI_CLK1_D_MARK, HSPI_CS1_D_MARK, HSPI_RX1_D_MARK, HSPI_TX1_D_MARK,
1614};
1615/* - HSPI2 ------------------------------------------------------------------ */
1616static const unsigned int hspi2_pins[] = {
1617 /* CLK, CS, RX, TX */
1618 9, 10, 11, 14,
1619};
1620static const unsigned int hspi2_mux[] = {
1621 HSPI_CLK2_MARK, HSPI_CS2_MARK, HSPI_RX2_MARK, HSPI_TX2_MARK,
1622};
1623static const unsigned int hspi2_b_pins[] = {
1624 /* CLK, CS, RX, TX */
1625 7, 13, 8, 6,
1626};
1627static const unsigned int hspi2_b_mux[] = {
1628 HSPI_CLK2_B_MARK, HSPI_CS2_B_MARK, HSPI_RX2_B_MARK, HSPI_TX2_B_MARK,
1629};
1578/* - MMCIF ------------------------------------------------------------------ */ 1630/* - MMCIF ------------------------------------------------------------------ */
1579static const unsigned int mmc0_data1_pins[] = { 1631static const unsigned int mmc0_data1_pins[] = {
1580 /* D[0] */ 1632 /* D[0] */
@@ -1605,7 +1657,6 @@ static const unsigned int mmc0_ctrl_pins[] = {
1605static const unsigned int mmc0_ctrl_mux[] = { 1657static const unsigned int mmc0_ctrl_mux[] = {
1606 MMC0_CMD_MARK, MMC0_CLK_MARK, 1658 MMC0_CMD_MARK, MMC0_CLK_MARK,
1607}; 1659};
1608
1609static const unsigned int mmc1_data1_pins[] = { 1660static const unsigned int mmc1_data1_pins[] = {
1610 /* D[0] */ 1661 /* D[0] */
1611 72, 1662 72,
@@ -2160,6 +2211,13 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
2160 SH_PFC_PIN_GROUP(du1_sync_1), 2211 SH_PFC_PIN_GROUP(du1_sync_1),
2161 SH_PFC_PIN_GROUP(du1_oddf), 2212 SH_PFC_PIN_GROUP(du1_oddf),
2162 SH_PFC_PIN_GROUP(du1_cde), 2213 SH_PFC_PIN_GROUP(du1_cde),
2214 SH_PFC_PIN_GROUP(hspi0),
2215 SH_PFC_PIN_GROUP(hspi1),
2216 SH_PFC_PIN_GROUP(hspi1_b),
2217 SH_PFC_PIN_GROUP(hspi1_c),
2218 SH_PFC_PIN_GROUP(hspi1_d),
2219 SH_PFC_PIN_GROUP(hspi2),
2220 SH_PFC_PIN_GROUP(hspi2_b),
2163 SH_PFC_PIN_GROUP(mmc0_data1), 2221 SH_PFC_PIN_GROUP(mmc0_data1),
2164 SH_PFC_PIN_GROUP(mmc0_data4), 2222 SH_PFC_PIN_GROUP(mmc0_data4),
2165 SH_PFC_PIN_GROUP(mmc0_data8), 2223 SH_PFC_PIN_GROUP(mmc0_data8),
@@ -2262,6 +2320,22 @@ static const char * const du1_groups[] = {
2262 "du1_cde", 2320 "du1_cde",
2263}; 2321};
2264 2322
2323static const char * const hspi0_groups[] = {
2324 "hspi0",
2325};
2326
2327static const char * const hspi1_groups[] = {
2328 "hspi1",
2329 "hspi1_b",
2330 "hspi1_c",
2331 "hspi1_d",
2332};
2333
2334static const char * const hspi2_groups[] = {
2335 "hspi2",
2336 "hspi2_b",
2337};
2338
2265static const char * const mmc0_groups[] = { 2339static const char * const mmc0_groups[] = {
2266 "mmc0_data1", 2340 "mmc0_data1",
2267 "mmc0_data4", 2341 "mmc0_data4",
@@ -2380,6 +2454,9 @@ static const char * const sdhi3_groups[] = {
2380static const struct sh_pfc_function pinmux_functions[] = { 2454static const struct sh_pfc_function pinmux_functions[] = {
2381 SH_PFC_FUNCTION(du0), 2455 SH_PFC_FUNCTION(du0),
2382 SH_PFC_FUNCTION(du1), 2456 SH_PFC_FUNCTION(du1),
2457 SH_PFC_FUNCTION(hspi0),
2458 SH_PFC_FUNCTION(hspi1),
2459 SH_PFC_FUNCTION(hspi2),
2383 SH_PFC_FUNCTION(mmc0), 2460 SH_PFC_FUNCTION(mmc0),
2384 SH_PFC_FUNCTION(mmc1), 2461 SH_PFC_FUNCTION(mmc1),
2385 SH_PFC_FUNCTION(sdhi0), 2462 SH_PFC_FUNCTION(sdhi0),