summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2017-08-10 18:42:08 -0700
committerDuncan Laurie <dlaurie@chromium.org>2017-11-14 21:21:29 +0000
commitf8e4eb84e571a19ac983ee3661dee2e95bdc184c (patch)
treee76726c2a707a1384f5b70e055f7e92e22868324 /src
parent477942e2536ccadf77d4acfb6b91bb82e6771ad4 (diff)
downloadcoreboot-f8e4eb84e571a19ac983ee3661dee2e95bdc184c.tar.xz
mb/google/eve: Use rt5663 driver and set properties
Use the rt5663 driver and provide values for the offsets which are needed for providing manual values to compensate the DC offset for L and R channels between headphone and headset. BUG=b:62712227 TEST=build and boot on eve and ensure rt5663 is functional. Change-Id: I88113616e4b7c79cff840168b7c54ae754dfa75f Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Original-Change-Id: Ica4090636c1ff29f0298114e62c9cc6fe167a425 Original-Signed-off-by: Duncan Laurie <dlaurie@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/611606 Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Original-Reviewed-by: Hsinyu Chao <hychao@chromium.org> Reviewed-on: https://review.coreboot.org/22446 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/eve/Kconfig1
-rw-r--r--src/mainboard/google/eve/devicetree.cb9
2 files changed, 6 insertions, 4 deletions
diff --git a/src/mainboard/google/eve/Kconfig b/src/mainboard/google/eve/Kconfig
index f576fa7932..54b8868166 100644
--- a/src/mainboard/google/eve/Kconfig
+++ b/src/mainboard/google/eve/Kconfig
@@ -8,6 +8,7 @@ config BOARD_SPECIFIC_OPTIONS
select DRIVERS_I2C_HID
select DRIVERS_PS2_KEYBOARD
select DRIVERS_I2C_MAX98927
+ select DRIVERS_I2C_RT5663
select DRIVERS_SPI_ACPI
select EC_GOOGLE_CHROMEEC
select EC_GOOGLE_CHROMEEC_BOARDID
diff --git a/src/mainboard/google/eve/devicetree.cb b/src/mainboard/google/eve/devicetree.cb
index f0c2b69175..069c2b0b69 100644
--- a/src/mainboard/google/eve/devicetree.cb
+++ b/src/mainboard/google/eve/devicetree.cb
@@ -289,11 +289,12 @@ chip soc/intel/skylake
register "name" = ""MAXL""
device i2c 3a on end
end
- chip drivers/i2c/generic
- register "hid" = ""10EC5663""
- register "name" = ""RT53""
- register "desc" = ""Realtek RT5663""
+ chip drivers/i2c/rt5663
register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D9)"
+ register "dc_offset_l_manual" = "0xffd160"
+ register "dc_offset_r_manual" = "0xffd1c0"
+ register "dc_offset_l_manual_mic" = "0xff8a10"
+ register "dc_offset_r_manual_mic" = "0xff8ab0"
device i2c 13 on end
end
chip drivers/i2c/generic