diff options
author | Tyler Wang <tyler.wang@quanta.corp-partner.google.com> | 2021-09-16 12:17:07 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-09-24 14:32:33 +0000 |
commit | 28e2945ab1ea5c4bfc5259442c29a76e17bc330d (patch) | |
tree | 70e5aa119edee39d1356a6d42299543f961e3866 /src | |
parent | e28eeb713dcd1ec4712ba37e8cacb04131ffdb46 (diff) |
mb/google/dedede/var/magolor: Add ssfc codec DA7219 support
Add DA7219 codec support in maglet.
BUG=b:198239769, b:196193562
TEST:emerge coreboot
Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com>
Change-Id: I52d980ed611b3fbe4892cd3e65e3b35931feaba5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57696
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Ren Kuo <ren.kuo@quanta.corp-partner.google.com>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/dedede/Kconfig.name | 1 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/magolor/overridetree.cb | 29 |
2 files changed, 29 insertions, 1 deletions
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name index fdab94a0f6..b7a84eb5c3 100644 --- a/src/mainboard/google/dedede/Kconfig.name +++ b/src/mainboard/google/dedede/Kconfig.name @@ -85,6 +85,7 @@ config BOARD_GOOGLE_MAGOLOR bool "-> Magolor" select BOARD_GOOGLE_BASEBOARD_DEDEDE_CR50 select BASEBOARD_DEDEDE_LAPTOP + select DRIVERS_I2C_DA7219 select DRIVERS_INTEL_MIPI_CAMERA select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR select SOC_INTEL_COMMON_BLOCK_IPU diff --git a/src/mainboard/google/dedede/variants/magolor/overridetree.cb b/src/mainboard/google/dedede/variants/magolor/overridetree.cb index 60e82cb3b1..de82a8a817 100644 --- a/src/mainboard/google/dedede/variants/magolor/overridetree.cb +++ b/src/mainboard/google/dedede/variants/magolor/overridetree.cb @@ -20,6 +20,11 @@ fw_config option TS_WDHT0002 5 option TS_GTCH7503 6 end + field AUDIO_CODEC_SOURCE 49 51 + option AUDIO_CODEC_UNPROVISIONED 0 + option AUDIO_CODEC_DA7219 1 + option AUDIO_CODEC_RT5682 2 + end end chip soc/intel/jasperlake @@ -421,7 +426,29 @@ chip soc/intel/jasperlake register "property_list[0].type" = "ACPI_DP_TYPE_INTEGER" register "property_list[0].name" = ""realtek,jd-src"" register "property_list[0].integer" = "1" - device i2c 1a on end + device i2c 1a on + probe AUDIO_CODEC_SOURCE AUDIO_CODEC_UNPROVISIONED + probe AUDIO_CODEC_SOURCE AUDIO_CODEC_RT5682 + end + end + chip drivers/i2c/da7219 + register "irq_gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_D16)" + register "btn_cfg" = "50" + register "mic_det_thr" = "500" + register "jack_ins_deb" = "20" + register "jack_det_rate" = ""32ms_64ms"" + register "jack_rem_deb" = "1" + register "a_d_btn_thr" = "0xa" + register "d_b_btn_thr" = "0x16" + register "b_c_btn_thr" = "0x21" + register "c_mic_btn_thr" = "0x3e" + register "btn_avg" = "4" + register "adc_1bit_rpt" = "1" + register "micbias_lvl" = "2600" + register "mic_amp_in_sel" = ""diff"" + device i2c 1a on + probe AUDIO_CODEC_SOURCE AUDIO_CODEC_DA7219 + end end chip drivers/i2c/generic register "hid" = ""10EC1015"" |