drivers/i2c/nau8825: Add ADCOUT IO drive strength control
Add a property to control the driving of ADCOUT. BUG=b:234789689 TEST= build passed. Signed-off-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Change-Id: Ibbedd5838a795ee645a5458b960062c5530ff3b5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67659 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kangheui Won <khwon@chromium.org>
This commit is contained in:
parent
90a439384b
commit
82a9f865fd
|
@ -96,4 +96,9 @@ struct drivers_i2c_nau8825_config {
|
|||
* R is Button impedance
|
||||
*/
|
||||
uint64_t sar_threshold[NAU8825_MAX_BUTTONS];
|
||||
|
||||
/* Make the drive strength of ADCOUT IO PIN strong if set.
|
||||
* Otherwise, the drive keeps normal strength.
|
||||
*/
|
||||
bool adcout_ds;
|
||||
};
|
||||
|
|
|
@ -69,6 +69,7 @@ static void nau8825_fill_ssdt(const struct device *dev)
|
|||
NAU8825_DP_INT("jack-insert-debounce", config->jack_insert_debounce);
|
||||
NAU8825_DP_INT("jack-eject-deboune", config->jack_eject_debounce);
|
||||
NAU8825_DP_INT("sar-threshold-num", config->sar_threshold_num);
|
||||
NAU8825_DP_INT("adcout-drive-strong", config->adcout_ds ? 1 : 0);
|
||||
acpi_dp_add_integer_array(dp, "nuvoton,sar-threshold",
|
||||
config->sar_threshold, config->sar_threshold_num);
|
||||
acpi_dp_write(dp);
|
||||
|
|
Loading…
Reference in New Issue