From bdab9f787c7d608034bb2b02e68b9812f0450932 Mon Sep 17 00:00:00 2001 From: Yong Zhi Date: Wed, 13 Jan 2016 15:21:00 -0800 Subject: [PATCH] intel/kunimitsu: Add device properties for Nuvoton codec This patch added default values for two SAR properies introduced by updated nau8825 codec driver. Also updated sar-threshold to improve button detection accuracy. Bug=chrome-os-partner:49394 BRANCH=glados TEST=Build for kunimitsu. Tested with 4-button headset Change-Id: I4096c60be54819d0ab2bf4b72a1e403f88d96af0 Signed-off-by: Patrick Georgi Original-Commit-Id: 4b747e9dffed1c51131f0028879d4c22283c8ec5 Original-Change-Id: I3e222ff58c1483e261acf1cea297164966bf8689 Original-Signed-off-by: Yong Zhi Original-Signed-off-by: Sathyanarayana Nujella Original-Reviewed-on: https://chromium-review.googlesource.com/322241 Original-Reviewed-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/13014 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/intel/kunimitsu/acpi/mainboard.asl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainboard/intel/kunimitsu/acpi/mainboard.asl b/src/mainboard/intel/kunimitsu/acpi/mainboard.asl index 80067137af..8692c5870e 100644 --- a/src/mainboard/intel/kunimitsu/acpi/mainboard.asl +++ b/src/mainboard/intel/kunimitsu/acpi/mainboard.asl @@ -208,7 +208,7 @@ Scope (\_SB.PCI0.I2C4) */ Package () { "nuvoton,sar-threshold-num", 4 }, Package () { "nuvoton,sar-threshold", - Package() { 0x0a, 0x14, 0x26, 0x73 } }, + Package() { 0x08, 0x12, 0x26, 0x73 } }, /* * Coeff 0-15 used to adjust threshold level * 0 for low resist range @@ -216,6 +216,8 @@ Scope (\_SB.PCI0.I2C4) Package () { "nuvoton,sar-hysteresis", 0 }, /* SAR tracking gain based on 2.754 micbias-voltage */ Package () { "nuvoton,sar-voltage", 6 }, + Package () { "nuvoton,sar-compare-time", 1 }, + Package () { "nuvoton,sar-sampling-time", 1 }, /* 100ms short key press debounce */ Package () { "nuvoton,short-key-debounce", 3 }, /* 2^(7+2) = 512 ms insert/eject debounce */