mb/google/helios: Add ALC1011 in device tree to enable speaker amps

Following changes are done to enable ALC1011 codec on Helios

1. ACL1011 4 devices to I2C4
2. GPIO H13 is set to GPO as per schematics

Verified SSDT table and i2cdetect from kernel.

Signed-off-by: Naveen Manohar <naveen.m@intel.com>
Change-Id: I0d71e3bd2d4493d059a33023c1afe1b630181d4f
Signed-off-by: Sathya Prakash M R <sathya.prakash.m.r@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33932
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Sathya Prakash M R 2019-06-29 00:08:15 +05:30 committed by Furquan Shaikh
parent cacecefb27
commit 368ade72ea
2 changed files with 29 additions and 1 deletions

View File

@ -88,7 +88,7 @@ static const struct pad_config gpio_table[] = {
/* H5 : I2C2_SCL ==> NC */
PAD_NC(GPP_H5, NONE),
/* H13 : M2_SKT2_CFG1 ==> SPKR_RST_L */
PAD_CFG_GPO(GPP_H13, 0, PLTRST),
PAD_CFG_GPO(GPP_H13, 1, DEEP),
/* H14 : M2_SKT2_CFG2 ==> TOUCHSCREEN_STOP_L */
PAD_CFG_GPO(GPP_H14, 0, PLTRST),
/* H19 : TIMESYNC[0] ==> MEM_STRAP_0 */

View File

@ -124,6 +124,34 @@ chip soc/intel/cannonlake
register "property_list[0].integer" = "1"
device i2c 1a on end
end
chip drivers/i2c/generic
register "hid" = ""10EC1011""
register "desc" = ""RT1011 Tweeter Left Speaker Amp""
register "uid" = "0"
register "name" = ""TL""
device i2c 38 on end
end
chip drivers/i2c/generic
register "hid" = ""10EC1011""
register "desc" = ""RT1011 Tweeter Right Speaker Amp""
register "uid" = "1"
register "name" = ""TR""
device i2c 39 on end
end
chip drivers/i2c/generic
register "hid" = ""10EC1011""
register "desc" = ""RT1011 Woofer Left Speaker Amp""
register "uid" = "2"
register "name" = ""WL""
device i2c 3a on end
end
chip drivers/i2c/generic
register "hid" = ""10EC1011""
register "desc" = ""RT1011 Woofer Right Speaker Amp""
register "uid" = "3"
register "name" = ""WR""
device i2c 3b on end
end
end #I2C #4
end
end