Gwendal Grignou has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62981 )
Change subject: driver/i2c/sx9360: Add pre-charge resistance setting ......................................................................
driver/i2c/sx9360: Add pre-charge resistance setting
Kernel driver supports ability to set the pre-charge resistance, add entry in the coreboot driver. [https://patchwork.ozlabs.org/project/devicetree-bindings/patch/2022032206250...]
Tested on bugzyy, check register 0x21 is configured properly.
Signed-off-by: Gwendal Grignou gwendal@chromium.org Change-Id: I9ef1ab3688402d1162be2c3c44ebd9ec8862a287 --- M 3rdparty/amd_blobs M 3rdparty/blobs M 3rdparty/intel-microcode M src/drivers/i2c/sx9360/chip.h M src/drivers/i2c/sx9360/sx9360.c 5 files changed, 8 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/62981/1
diff --git a/3rdparty/amd_blobs b/3rdparty/amd_blobs index 9e8f457..539d31a 160000 --- a/3rdparty/amd_blobs +++ b/3rdparty/amd_blobs @@ -1 +1 @@ -Subproject commit 9e8f457edcc359552a5d0113568a2d1670009178 +Subproject commit 539d31ab9ea89084fa5edf7cc9ac3122786d5454 diff --git a/3rdparty/blobs b/3rdparty/blobs index f14575c..fe7040a 160000 --- a/3rdparty/blobs +++ b/3rdparty/blobs @@ -1 +1 @@ -Subproject commit f14575cb9924b051cedfb4c1f62e3640b25f9dbd +Subproject commit fe7040a278642dc3d28e20eb7e7866cb6e2ac2ac diff --git a/3rdparty/intel-microcode b/3rdparty/intel-microcode index 115c3e4..ee319ae 160000 --- a/3rdparty/intel-microcode +++ b/3rdparty/intel-microcode @@ -1 +1 @@ -Subproject commit 115c3e4cdad6a9d84bf06e066162c5c546a9d2c3 +Subproject commit ee319ae7bc59e88b60142f40a9ec1b46656de4db diff --git a/src/drivers/i2c/sx9360/chip.h b/src/drivers/i2c/sx9360/chip.h index 397ea3f..4dcc722 100644 --- a/src/drivers/i2c/sx9360/chip.h +++ b/src/drivers/i2c/sx9360/chip.h @@ -35,6 +35,9 @@
/* Capacitance measure resolution. Driver default: 128. */ uint32_t resolution; + + /* Precharge input resistance. Driver default: 0. */ + uint32_t input_precharge_resistor_kohms; };
#endif /* __DRIVERS_I2C_SX9360_CHIP_H__ */ diff --git a/src/drivers/i2c/sx9360/sx9360.c b/src/drivers/i2c/sx9360/sx9360.c index 9ea4c8b..035bfd5 100644 --- a/src/drivers/i2c/sx9360/sx9360.c +++ b/src/drivers/i2c/sx9360/sx9360.c @@ -63,6 +63,8 @@ config->avg_pos_strength); acpi_dp_add_integer(dsd, "semtech,resolution", config->resolution); + acpi_dp_add_integer(dsd, "semtech,input-precharge-resistor-kohms", + config->input_precharge_resistor_kohms);
acpi_dp_write(dsd);