From f8e4eb84e571a19ac983ee3661dee2e95bdc184c Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Thu, 10 Aug 2017 18:42:08 -0700 Subject: 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 Original-Change-Id: Ica4090636c1ff29f0298114e62c9cc6fe167a425 Original-Signed-off-by: Duncan Laurie Original-Reviewed-on: https://chromium-review.googlesource.com/611606 Original-Reviewed-by: Furquan Shaikh Original-Reviewed-by: Hsinyu Chao Reviewed-on: https://review.coreboot.org/22446 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh --- src/mainboard/google/eve/Kconfig | 1 + src/mainboard/google/eve/devicetree.cb | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/mainboard/google/eve') 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 -- cgit v1.2.3