diff options
author | Wolfram Sang <wsa@sang-engineering.com> | 2014-03-25 14:56:25 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-04-22 09:38:23 -0400 |
commit | 35a493de0daf4955b6d15d488b3f8754d4637a04 (patch) | |
tree | ec2672bf0e73abd17e37c096296a6823856759ff /drivers/pinctrl/sh-pfc | |
parent | 08b519534e8c9a2bbf26db3e2dbab81e40b91705 (diff) |
pinctrl: pfc: r8a7790: add i2c0 muxing
Add the muxing for the last missing i2c rcar core. Fix the sorting for
SH_PFC_PIN_NAMED while we are here.
Signed-off-by: Wolfram Sang <wsa@sang-engineering.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7790.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c index 48093719167a..51396210cfad 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7790.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7790.c | |||
@@ -782,6 +782,7 @@ enum { | |||
782 | USB1_PWEN_MARK, AUDIO_CLKOUT_D_MARK, USB1_OVC_MARK, | 782 | USB1_PWEN_MARK, AUDIO_CLKOUT_D_MARK, USB1_OVC_MARK, |
783 | TCLK1_B_MARK, | 783 | TCLK1_B_MARK, |
784 | 784 | ||
785 | I2C0_SCL_MARK, I2C0_SDA_MARK, | ||
785 | I2C3_SCL_MARK, I2C3_SDA_MARK, | 786 | I2C3_SCL_MARK, I2C3_SDA_MARK, |
786 | PINMUX_MARK_END, | 787 | PINMUX_MARK_END, |
787 | }; | 788 | }; |
@@ -1722,6 +1723,9 @@ static const u16 pinmux_data[] = { | |||
1722 | PINMUX_IPSR_DATA(IP16_7, USB1_OVC), | 1723 | PINMUX_IPSR_DATA(IP16_7, USB1_OVC), |
1723 | PINMUX_IPSR_MODSEL_DATA(IP16_7, TCLK1_B, SEL_TMU1_1), | 1724 | PINMUX_IPSR_MODSEL_DATA(IP16_7, TCLK1_B, SEL_TMU1_1), |
1724 | 1725 | ||
1726 | PINMUX_DATA(I2C0_SCL_MARK, FN_SEL_IIC0_1), | ||
1727 | PINMUX_DATA(I2C0_SDA_MARK, FN_SEL_IIC0_1), | ||
1728 | |||
1725 | PINMUX_DATA(I2C3_SCL_MARK, FN_SEL_IICDVFS_1), | 1729 | PINMUX_DATA(I2C3_SCL_MARK, FN_SEL_IICDVFS_1), |
1726 | PINMUX_DATA(I2C3_SDA_MARK, FN_SEL_IICDVFS_1), | 1730 | PINMUX_DATA(I2C3_SDA_MARK, FN_SEL_IICDVFS_1), |
1727 | }; | 1731 | }; |
@@ -1735,8 +1739,10 @@ static const struct sh_pfc_pin pinmux_pins[] = { | |||
1735 | PINMUX_GPIO_GP_ALL(), | 1739 | PINMUX_GPIO_GP_ALL(), |
1736 | 1740 | ||
1737 | /* Pins not associated with a GPIO port */ | 1741 | /* Pins not associated with a GPIO port */ |
1738 | SH_PFC_PIN_NAMED(ROW_GROUP_A('J'), 15, AJ15), | 1742 | SH_PFC_PIN_NAMED(ROW_GROUP_A('F'), 15, AF15), |
1743 | SH_PFC_PIN_NAMED(ROW_GROUP_A('G'), 15, AG15), | ||
1739 | SH_PFC_PIN_NAMED(ROW_GROUP_A('H'), 15, AH15), | 1744 | SH_PFC_PIN_NAMED(ROW_GROUP_A('H'), 15, AH15), |
1745 | SH_PFC_PIN_NAMED(ROW_GROUP_A('J'), 15, AJ15), | ||
1740 | }; | 1746 | }; |
1741 | 1747 | ||
1742 | /* - AUDIO CLOCK ------------------------------------------------------------ */ | 1748 | /* - AUDIO CLOCK ------------------------------------------------------------ */ |
@@ -2054,6 +2060,14 @@ static const unsigned int hscif1_ctrl_b_pins[] = { | |||
2054 | static const unsigned int hscif1_ctrl_b_mux[] = { | 2060 | static const unsigned int hscif1_ctrl_b_mux[] = { |
2055 | HRTS1_N_B_MARK, HCTS1_N_B_MARK, | 2061 | HRTS1_N_B_MARK, HCTS1_N_B_MARK, |
2056 | }; | 2062 | }; |
2063 | /* - I2C0 ------------------------------------------------------------------- */ | ||
2064 | static const unsigned int i2c0_pins[] = { | ||
2065 | /* SCL, SDA */ | ||
2066 | PIN_A_NUMBER('G', 15), PIN_A_NUMBER('F', 15), | ||
2067 | }; | ||
2068 | static const unsigned int i2c0_mux[] = { | ||
2069 | I2C0_SCL_MARK, I2C0_SDA_MARK, | ||
2070 | }; | ||
2057 | /* - I2C1 ------------------------------------------------------------------- */ | 2071 | /* - I2C1 ------------------------------------------------------------------- */ |
2058 | static const unsigned int i2c1_pins[] = { | 2072 | static const unsigned int i2c1_pins[] = { |
2059 | /* SCL, SDA */ | 2073 | /* SCL, SDA */ |
@@ -3757,6 +3771,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { | |||
3757 | SH_PFC_PIN_GROUP(hscif1_data_b), | 3771 | SH_PFC_PIN_GROUP(hscif1_data_b), |
3758 | SH_PFC_PIN_GROUP(hscif1_clk_b), | 3772 | SH_PFC_PIN_GROUP(hscif1_clk_b), |
3759 | SH_PFC_PIN_GROUP(hscif1_ctrl_b), | 3773 | SH_PFC_PIN_GROUP(hscif1_ctrl_b), |
3774 | SH_PFC_PIN_GROUP(i2c0), | ||
3760 | SH_PFC_PIN_GROUP(i2c1), | 3775 | SH_PFC_PIN_GROUP(i2c1), |
3761 | SH_PFC_PIN_GROUP(i2c1_b), | 3776 | SH_PFC_PIN_GROUP(i2c1_b), |
3762 | SH_PFC_PIN_GROUP(i2c1_c), | 3777 | SH_PFC_PIN_GROUP(i2c1_c), |
@@ -4044,6 +4059,10 @@ static const char * const hscif1_groups[] = { | |||
4044 | "hscif1_ctrl_b", | 4059 | "hscif1_ctrl_b", |
4045 | }; | 4060 | }; |
4046 | 4061 | ||
4062 | static const char * const i2c0_groups[] = { | ||
4063 | "i2c0", | ||
4064 | }; | ||
4065 | |||
4047 | static const char * const i2c1_groups[] = { | 4066 | static const char * const i2c1_groups[] = { |
4048 | "i2c1", | 4067 | "i2c1", |
4049 | "i2c1_b", | 4068 | "i2c1_b", |
@@ -4373,6 +4392,7 @@ static const struct sh_pfc_function pinmux_functions[] = { | |||
4373 | SH_PFC_FUNCTION(eth), | 4392 | SH_PFC_FUNCTION(eth), |
4374 | SH_PFC_FUNCTION(hscif0), | 4393 | SH_PFC_FUNCTION(hscif0), |
4375 | SH_PFC_FUNCTION(hscif1), | 4394 | SH_PFC_FUNCTION(hscif1), |
4395 | SH_PFC_FUNCTION(i2c0), | ||
4376 | SH_PFC_FUNCTION(i2c1), | 4396 | SH_PFC_FUNCTION(i2c1), |
4377 | SH_PFC_FUNCTION(i2c2), | 4397 | SH_PFC_FUNCTION(i2c2), |
4378 | SH_PFC_FUNCTION(i2c3), | 4398 | SH_PFC_FUNCTION(i2c3), |