Skip to content

Commit 5fa9c5f

Browse files
author
Linus Walleij
committed
Merge tag 'intel-pinctrl-v5.10-3' of gitolite.kernel.org:pub/scm/linux/kernel/git/pinctrl/intel into fixes
intel-pinctrl for v5.10-3 * Fix HOSTSW_OWN offset and unhide SPI group of pins on Jasper Lake * Fix debounce configuration on Baytrail when it's turned off * Fix default bias setting on Merrifield The following is an automated git shortlog grouped by driver: baytrail: - Avoid clearing debounce value when turning it off jasperlake: - Fix HOSTSW_OWN offset - Unhide SPI group of pins merrifield: - Set default bias in case no particular value given
2 parents 09162bc + 5f71477 commit 5fa9c5f

3 files changed

Lines changed: 246 additions & 222 deletions

File tree

drivers/pinctrl/intel/pinctrl-baytrail.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,6 @@ static int byt_pin_config_set(struct pinctrl_dev *pctl_dev,
10491049
break;
10501050
case PIN_CONFIG_INPUT_DEBOUNCE:
10511051
debounce = readl(db_reg);
1052-
debounce &= ~BYT_DEBOUNCE_PULSE_MASK;
10531052

10541053
if (arg)
10551054
conf |= BYT_DEBOUNCE_EN;
@@ -1058,24 +1057,31 @@ static int byt_pin_config_set(struct pinctrl_dev *pctl_dev,
10581057

10591058
switch (arg) {
10601059
case 375:
1060+
debounce &= ~BYT_DEBOUNCE_PULSE_MASK;
10611061
debounce |= BYT_DEBOUNCE_PULSE_375US;
10621062
break;
10631063
case 750:
1064+
debounce &= ~BYT_DEBOUNCE_PULSE_MASK;
10641065
debounce |= BYT_DEBOUNCE_PULSE_750US;
10651066
break;
10661067
case 1500:
1068+
debounce &= ~BYT_DEBOUNCE_PULSE_MASK;
10671069
debounce |= BYT_DEBOUNCE_PULSE_1500US;
10681070
break;
10691071
case 3000:
1072+
debounce &= ~BYT_DEBOUNCE_PULSE_MASK;
10701073
debounce |= BYT_DEBOUNCE_PULSE_3MS;
10711074
break;
10721075
case 6000:
1076+
debounce &= ~BYT_DEBOUNCE_PULSE_MASK;
10731077
debounce |= BYT_DEBOUNCE_PULSE_6MS;
10741078
break;
10751079
case 12000:
1080+
debounce &= ~BYT_DEBOUNCE_PULSE_MASK;
10761081
debounce |= BYT_DEBOUNCE_PULSE_12MS;
10771082
break;
10781083
case 24000:
1084+
debounce &= ~BYT_DEBOUNCE_PULSE_MASK;
10791085
debounce |= BYT_DEBOUNCE_PULSE_24MS;
10801086
break;
10811087
default:

0 commit comments

Comments
 (0)