Skip to content

Commit c42c46f

Browse files
Ecce_Liscorpiochang
authored andcommitted
Special Issue[I2S short]: gpio 185 and 186 with the same function selected.
Change-Id: I53156063cb465dd92067a338bc61fa3c0f812561 Reviewed-on: https://tp-biosrd-v02/gerrit/81552 Reviewed-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com> Tested-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com>
1 parent 78085cc commit c42c46f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/pinctrl/pinctrl-rockchip.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,26 @@ static int rockchip_set_mux(struct rockchip_pin_bank *bank, int pin, int mux)
10781078
return ret;
10791079
}
10801080
}
1081+
#ifdef CONFIG_I2S_SHORT
1082+
if(bank->bank_num == 6 && (pin == 1 || pin == 2))
1083+
{
1084+
mask = 0xf;
1085+
bit = 1 * 2;
1086+
data = (mask << (bit + 16));
1087+
rmask = data | (data >> 16);
1088+
data |= (((mux << 2) | mux) & mask) << bit;
1089+
}
1090+
else
1091+
{
1092+
data = (mask << (bit + 16));
1093+
rmask = data | (data >> 16);
1094+
data |= (mux & mask) << bit;
1095+
}
1096+
#else
10811097
data = (mask << (bit + 16));
10821098
rmask = data | (data >> 16);
10831099
data |= (mux & mask) << bit;
1100+
#endif
10841101
ret = regmap_update_bits(regmap, reg, rmask, data);
10851102

10861103
return ret;

0 commit comments

Comments
 (0)