linux/drivers/acpi/pmic
Hans de Goede 58eefe2f3f ACPI / PMIC: xpower: Do pinswitch magic when reading GPADC
Testing has shown that the TS-pin's bias-current needs to be disabled
when reading the GPIO0 pin in GPADC mode.

It seems that there is only 1 bias current source and to be able to use it
for the GPIO0 pin in GPADC mode it must be temporarily turned off for the
TS pin, but the datasheet does not mention this.

This commit adds the necessary writes to turn the TS pin BIAS current
off before and back on after reading the GPADC. This fixes the GPADC
always returning a reading of 0.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2017-07-24 22:43:17 +02:00
..
intel_pmic_bxtwc.c ACPI / PMIC: remove modular references from non-modular code 2016-07-16 03:03:14 +02:00
intel_pmic_chtwc.c ACPI / PMIC: Add opregion driver for Intel CHT Whiskey Cove PMIC 2017-04-20 12:43:41 +02:00
intel_pmic_crc.c ACPI / PMIC: modify the pen function signature to take bit field 2016-06-24 15:25:37 +02:00
intel_pmic_xpower.c ACPI / PMIC: xpower: Do pinswitch magic when reading GPADC 2017-07-24 22:43:17 +02:00
intel_pmic.c ACPI / PMIC: remove modular references from non-modular code 2016-07-16 03:03:14 +02:00
intel_pmic.h ACPI / PMIC: modify the pen function signature to take bit field 2016-06-24 15:25:37 +02:00