aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-07 07:38:51 -0500
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-03-15 08:34:08 -0400
commitfd9e7feb9ae96346724f35fd20eb2009743fb868 (patch)
treee0314b10f4cf3584641abb5402669579668a1cf3 /drivers/pinctrl
parentf27f81f2c04e1cd382a3c3bb072c708a895d83bb (diff)
sh-pfc: r8a7779: Add INTC 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')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a7779.c77
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 3f671439ae6e..5b498ffaef03 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[] = {
1631static const unsigned int hspi2_b_mux[] = { 1631static 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/* - INTC ------------------------------------------------------------------- */
1635static const unsigned int intc_irq0_pins[] = {
1636 /* IRQ */
1637 78,
1638};
1639static const unsigned int intc_irq0_mux[] = {
1640 IRQ0_MARK,
1641};
1642static const unsigned int intc_irq0_b_pins[] = {
1643 /* IRQ */
1644 141,
1645};
1646static const unsigned int intc_irq0_b_mux[] = {
1647 IRQ0_B_MARK,
1648};
1649static const unsigned int intc_irq1_pins[] = {
1650 /* IRQ */
1651 79,
1652};
1653static const unsigned int intc_irq1_mux[] = {
1654 IRQ1_MARK,
1655};
1656static const unsigned int intc_irq1_b_pins[] = {
1657 /* IRQ */
1658 142,
1659};
1660static const unsigned int intc_irq1_b_mux[] = {
1661 IRQ1_B_MARK,
1662};
1663static const unsigned int intc_irq2_pins[] = {
1664 /* IRQ */
1665 88,
1666};
1667static const unsigned int intc_irq2_mux[] = {
1668 IRQ2_MARK,
1669};
1670static const unsigned int intc_irq2_b_pins[] = {
1671 /* IRQ */
1672 143,
1673};
1674static const unsigned int intc_irq2_b_mux[] = {
1675 IRQ2_B_MARK,
1676};
1677static const unsigned int intc_irq3_pins[] = {
1678 /* IRQ */
1679 89,
1680};
1681static const unsigned int intc_irq3_mux[] = {
1682 IRQ3_MARK,
1683};
1684static const unsigned int intc_irq3_b_pins[] = {
1685 /* IRQ */
1686 144,
1687};
1688static const unsigned int intc_irq3_b_mux[] = {
1689 IRQ3_B_MARK,
1690};
1634/* - LSBC ------------------------------------------------------------------- */ 1691/* - LSBC ------------------------------------------------------------------- */
1635static const unsigned int lbsc_cs0_pins[] = { 1692static const unsigned int lbsc_cs0_pins[] = {
1636 /* CS */ 1693 /* CS */
@@ -2303,6 +2360,14 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
2303 SH_PFC_PIN_GROUP(hspi1_d), 2360 SH_PFC_PIN_GROUP(hspi1_d),
2304 SH_PFC_PIN_GROUP(hspi2), 2361 SH_PFC_PIN_GROUP(hspi2),
2305 SH_PFC_PIN_GROUP(hspi2_b), 2362 SH_PFC_PIN_GROUP(hspi2_b),
2363 SH_PFC_PIN_GROUP(intc_irq0),
2364 SH_PFC_PIN_GROUP(intc_irq0_b),
2365 SH_PFC_PIN_GROUP(intc_irq1),
2366 SH_PFC_PIN_GROUP(intc_irq1_b),
2367 SH_PFC_PIN_GROUP(intc_irq2),
2368 SH_PFC_PIN_GROUP(intc_irq2_b),
2369 SH_PFC_PIN_GROUP(intc_irq3),
2370 SH_PFC_PIN_GROUP(intc_irq3_b),
2306 SH_PFC_PIN_GROUP(lbsc_cs0), 2371 SH_PFC_PIN_GROUP(lbsc_cs0),
2307 SH_PFC_PIN_GROUP(lbsc_cs1), 2372 SH_PFC_PIN_GROUP(lbsc_cs1),
2308 SH_PFC_PIN_GROUP(lbsc_ex_cs0), 2373 SH_PFC_PIN_GROUP(lbsc_ex_cs0),
@@ -2432,6 +2497,17 @@ static const char * const hspi2_groups[] = {
2432 "hspi2_b", 2497 "hspi2_b",
2433}; 2498};
2434 2499
2500static const char * const intc_groups[] = {
2501 "intc_irq0",
2502 "intc_irq0_b",
2503 "intc_irq1",
2504 "intc_irq1_b",
2505 "intc_irq2",
2506 "intc_irq2_b",
2507 "intc_irq3",
2508 "intc_irq4_b",
2509};
2510
2435static const char * const lbsc_groups[] = { 2511static const char * const lbsc_groups[] = {
2436 "lbsc_cs0", 2512 "lbsc_cs0",
2437 "lbsc_cs1", 2513 "lbsc_cs1",
@@ -2576,6 +2652,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
2576 SH_PFC_FUNCTION(hspi0), 2652 SH_PFC_FUNCTION(hspi0),
2577 SH_PFC_FUNCTION(hspi1), 2653 SH_PFC_FUNCTION(hspi1),
2578 SH_PFC_FUNCTION(hspi2), 2654 SH_PFC_FUNCTION(hspi2),
2655 SH_PFC_FUNCTION(intc),
2579 SH_PFC_FUNCTION(lbsc), 2656 SH_PFC_FUNCTION(lbsc),
2580 SH_PFC_FUNCTION(mmc0), 2657 SH_PFC_FUNCTION(mmc0),
2581 SH_PFC_FUNCTION(mmc1), 2658 SH_PFC_FUNCTION(mmc1),