mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
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>
This commit is contained in:
parent
08b519534e
commit
35a493de0d
@ -782,6 +782,7 @@ enum {
|
||||
USB1_PWEN_MARK, AUDIO_CLKOUT_D_MARK, USB1_OVC_MARK,
|
||||
TCLK1_B_MARK,
|
||||
|
||||
I2C0_SCL_MARK, I2C0_SDA_MARK,
|
||||
I2C3_SCL_MARK, I2C3_SDA_MARK,
|
||||
PINMUX_MARK_END,
|
||||
};
|
||||
@ -1722,6 +1723,9 @@ static const u16 pinmux_data[] = {
|
||||
PINMUX_IPSR_DATA(IP16_7, USB1_OVC),
|
||||
PINMUX_IPSR_MODSEL_DATA(IP16_7, TCLK1_B, SEL_TMU1_1),
|
||||
|
||||
PINMUX_DATA(I2C0_SCL_MARK, FN_SEL_IIC0_1),
|
||||
PINMUX_DATA(I2C0_SDA_MARK, FN_SEL_IIC0_1),
|
||||
|
||||
PINMUX_DATA(I2C3_SCL_MARK, FN_SEL_IICDVFS_1),
|
||||
PINMUX_DATA(I2C3_SDA_MARK, FN_SEL_IICDVFS_1),
|
||||
};
|
||||
@ -1735,8 +1739,10 @@ static const struct sh_pfc_pin pinmux_pins[] = {
|
||||
PINMUX_GPIO_GP_ALL(),
|
||||
|
||||
/* Pins not associated with a GPIO port */
|
||||
SH_PFC_PIN_NAMED(ROW_GROUP_A('J'), 15, AJ15),
|
||||
SH_PFC_PIN_NAMED(ROW_GROUP_A('F'), 15, AF15),
|
||||
SH_PFC_PIN_NAMED(ROW_GROUP_A('G'), 15, AG15),
|
||||
SH_PFC_PIN_NAMED(ROW_GROUP_A('H'), 15, AH15),
|
||||
SH_PFC_PIN_NAMED(ROW_GROUP_A('J'), 15, AJ15),
|
||||
};
|
||||
|
||||
/* - AUDIO CLOCK ------------------------------------------------------------ */
|
||||
@ -2054,6 +2060,14 @@ static const unsigned int hscif1_ctrl_b_pins[] = {
|
||||
static const unsigned int hscif1_ctrl_b_mux[] = {
|
||||
HRTS1_N_B_MARK, HCTS1_N_B_MARK,
|
||||
};
|
||||
/* - I2C0 ------------------------------------------------------------------- */
|
||||
static const unsigned int i2c0_pins[] = {
|
||||
/* SCL, SDA */
|
||||
PIN_A_NUMBER('G', 15), PIN_A_NUMBER('F', 15),
|
||||
};
|
||||
static const unsigned int i2c0_mux[] = {
|
||||
I2C0_SCL_MARK, I2C0_SDA_MARK,
|
||||
};
|
||||
/* - I2C1 ------------------------------------------------------------------- */
|
||||
static const unsigned int i2c1_pins[] = {
|
||||
/* SCL, SDA */
|
||||
@ -3757,6 +3771,7 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
|
||||
SH_PFC_PIN_GROUP(hscif1_data_b),
|
||||
SH_PFC_PIN_GROUP(hscif1_clk_b),
|
||||
SH_PFC_PIN_GROUP(hscif1_ctrl_b),
|
||||
SH_PFC_PIN_GROUP(i2c0),
|
||||
SH_PFC_PIN_GROUP(i2c1),
|
||||
SH_PFC_PIN_GROUP(i2c1_b),
|
||||
SH_PFC_PIN_GROUP(i2c1_c),
|
||||
@ -4044,6 +4059,10 @@ static const char * const hscif1_groups[] = {
|
||||
"hscif1_ctrl_b",
|
||||
};
|
||||
|
||||
static const char * const i2c0_groups[] = {
|
||||
"i2c0",
|
||||
};
|
||||
|
||||
static const char * const i2c1_groups[] = {
|
||||
"i2c1",
|
||||
"i2c1_b",
|
||||
@ -4373,6 +4392,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
|
||||
SH_PFC_FUNCTION(eth),
|
||||
SH_PFC_FUNCTION(hscif0),
|
||||
SH_PFC_FUNCTION(hscif1),
|
||||
SH_PFC_FUNCTION(i2c0),
|
||||
SH_PFC_FUNCTION(i2c1),
|
||||
SH_PFC_FUNCTION(i2c2),
|
||||
SH_PFC_FUNCTION(i2c3),
|
||||
|
Loading…
Reference in New Issue
Block a user