aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
diff options
context:
space:
mode:
authorPhil Edworthy <phil.edworthy@renesas.com>2013-07-17 07:00:48 -0400
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-07-29 09:52:05 -0400
commit528e94773907b86adfd778019a9b7d35a7ab431e (patch)
treed387cfbeb682184178b73d1c6c52dc56b91ba42f /drivers/pinctrl/sh-pfc/pfc-r8a7779.c
parentdeeb6d3f1fce7e2269462eaa7cfe1ea426857d89 (diff)
sh-pfc: r8a7779: Add I2C pin groups
Add all I2C pin groups to R8A7779 PFC driver. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-r8a7779.c')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a7779.c105
1 files changed, 105 insertions, 0 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
index 8e22ca6c1044..777795b8cdc1 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c
@@ -1731,6 +1731,79 @@ static const unsigned int hspi2_b_pins[] = {
1731static const unsigned int hspi2_b_mux[] = { 1731static const unsigned int hspi2_b_mux[] = {
1732 HSPI_CLK2_B_MARK, HSPI_CS2_B_MARK, HSPI_RX2_B_MARK, HSPI_TX2_B_MARK, 1732 HSPI_CLK2_B_MARK, HSPI_CS2_B_MARK, HSPI_RX2_B_MARK, HSPI_TX2_B_MARK,
1733}; 1733};
1734/* - I2C1 ------------------------------------------------------------------ */
1735static const unsigned int i2c1_pins[] = {
1736 /* SCL, SDA, */
1737 RCAR_GP_PIN(0, 27), RCAR_GP_PIN(0, 28),
1738};
1739static const unsigned int i2c1_mux[] = {
1740 SCL1_MARK, SDA1_MARK,
1741};
1742static const unsigned int i2c1_b_pins[] = {
1743 /* SCL, SDA, */
1744 RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 11),
1745};
1746static const unsigned int i2c1_b_mux[] = {
1747 SCL1_B_MARK, SDA1_B_MARK,
1748};
1749static const unsigned int i2c1_c_pins[] = {
1750 /* SCL, SDA, */
1751 RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
1752};
1753static const unsigned int i2c1_c_mux[] = {
1754 SCL1_C_MARK, SDA1_C_MARK,
1755};
1756static const unsigned int i2c1_d_pins[] = {
1757 /* SCL, SDA, */
1758 RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 27),
1759};
1760static const unsigned int i2c1_d_mux[] = {
1761 SCL1_D_MARK, SDA1_D_MARK,
1762};
1763/* - I2C2 ------------------------------------------------------------------ */
1764static const unsigned int i2c2_pins[] = {
1765 /* SCL, SDA, */
1766 RCAR_GP_PIN(0, 25), RCAR_GP_PIN(0, 26),
1767};
1768static const unsigned int i2c2_mux[] = {
1769 SCL2_MARK, SDA2_MARK,
1770};
1771static const unsigned int i2c2_b_pins[] = {
1772 /* SCL, SDA, */
1773 RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
1774};
1775static const unsigned int i2c2_b_mux[] = {
1776 SCL2_B_MARK, SDA2_B_MARK,
1777};
1778static const unsigned int i2c2_c_pins[] = {
1779 /* SCL, SDA */
1780 RCAR_GP_PIN(0, 31), RCAR_GP_PIN(0, 30),
1781};
1782static const unsigned int i2c2_c_mux[] = {
1783 SCL2_C_MARK, SDA2_C_MARK,
1784};
1785static const unsigned int i2c2_d_pins[] = {
1786 /* SCL, SDA */
1787 RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 25),
1788};
1789static const unsigned int i2c2_d_mux[] = {
1790 SCL2_D_MARK, SDA2_D_MARK,
1791};
1792/* - I2C3 ------------------------------------------------------------------ */
1793static const unsigned int i2c3_pins[] = {
1794 /* SCL, SDA, */
1795 RCAR_GP_PIN(3, 0), RCAR_GP_PIN(2, 30),
1796};
1797static const unsigned int i2c3_mux[] = {
1798 SCL3_MARK, SDA3_MARK,
1799};
1800static const unsigned int i2c3_b_pins[] = {
1801 /* SCL, SDA, */
1802 RCAR_GP_PIN(0, 29), RCAR_GP_PIN(0, 30),
1803};
1804static const unsigned int i2c3_b_mux[] = {
1805 SCL3_B_MARK, SDA3_B_MARK,
1806};
1734/* - INTC ------------------------------------------------------------------- */ 1807/* - INTC ------------------------------------------------------------------- */
1735static const unsigned int intc_irq0_pins[] = { 1808static const unsigned int intc_irq0_pins[] = {
1736 /* IRQ */ 1809 /* IRQ */
@@ -2600,6 +2673,16 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
2600 SH_PFC_PIN_GROUP(hspi1_d), 2673 SH_PFC_PIN_GROUP(hspi1_d),
2601 SH_PFC_PIN_GROUP(hspi2), 2674 SH_PFC_PIN_GROUP(hspi2),
2602 SH_PFC_PIN_GROUP(hspi2_b), 2675 SH_PFC_PIN_GROUP(hspi2_b),
2676 SH_PFC_PIN_GROUP(i2c1),
2677 SH_PFC_PIN_GROUP(i2c1_b),
2678 SH_PFC_PIN_GROUP(i2c1_c),
2679 SH_PFC_PIN_GROUP(i2c1_d),
2680 SH_PFC_PIN_GROUP(i2c2),
2681 SH_PFC_PIN_GROUP(i2c2_b),
2682 SH_PFC_PIN_GROUP(i2c2_c),
2683 SH_PFC_PIN_GROUP(i2c2_d),
2684 SH_PFC_PIN_GROUP(i2c3),
2685 SH_PFC_PIN_GROUP(i2c3_b),
2603 SH_PFC_PIN_GROUP(intc_irq0), 2686 SH_PFC_PIN_GROUP(intc_irq0),
2604 SH_PFC_PIN_GROUP(intc_irq0_b), 2687 SH_PFC_PIN_GROUP(intc_irq0_b),
2605 SH_PFC_PIN_GROUP(intc_irq1), 2688 SH_PFC_PIN_GROUP(intc_irq1),
@@ -2760,6 +2843,25 @@ static const char * const hspi2_groups[] = {
2760 "hspi2_b", 2843 "hspi2_b",
2761}; 2844};
2762 2845
2846static const char * const i2c1_groups[] = {
2847 "i2c1",
2848 "i2c1_b",
2849 "i2c1_c",
2850 "i2c1_d",
2851};
2852
2853static const char * const i2c2_groups[] = {
2854 "i2c2",
2855 "i2c2_b",
2856 "i2c2_c",
2857 "i2c2_d",
2858};
2859
2860static const char * const i2c3_groups[] = {
2861 "i2c3",
2862 "i2c3_b",
2863};
2864
2763static const char * const intc_groups[] = { 2865static const char * const intc_groups[] = {
2764 "intc_irq0", 2866 "intc_irq0",
2765 "intc_irq0_b", 2867 "intc_irq0_b",
@@ -2943,6 +3045,9 @@ static const struct sh_pfc_function pinmux_functions[] = {
2943 SH_PFC_FUNCTION(hspi0), 3045 SH_PFC_FUNCTION(hspi0),
2944 SH_PFC_FUNCTION(hspi1), 3046 SH_PFC_FUNCTION(hspi1),
2945 SH_PFC_FUNCTION(hspi2), 3047 SH_PFC_FUNCTION(hspi2),
3048 SH_PFC_FUNCTION(i2c1),
3049 SH_PFC_FUNCTION(i2c2),
3050 SH_PFC_FUNCTION(i2c3),
2946 SH_PFC_FUNCTION(intc), 3051 SH_PFC_FUNCTION(intc),
2947 SH_PFC_FUNCTION(lbsc), 3052 SH_PFC_FUNCTION(lbsc),
2948 SH_PFC_FUNCTION(mmc0), 3053 SH_PFC_FUNCTION(mmc0),