mb/google/poppy/variants/nautilus: set I2C speed to 400KHz

Add "speed_config" for each I2C port configuration to set speed to
400KHz.

BRANCH=master
BUG=none
TEST=compiled/verified

Change-Id: Icb48733b87cefc92577547b1eab661a8cbb12be6
Signed-off-by: Chris Wang <chriswang@ami.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/22589
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Chris Wang 2017-11-24 14:00:48 +08:00 committed by Furquan Shaikh
parent 51de1802f3
commit 5220e5fba6
1 changed files with 52 additions and 8 deletions

View File

@ -175,6 +175,15 @@ chip soc/intel/skylake
# Touchscreen # Touchscreen
register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3" register "i2c_voltage[0]" = "I2C_VOLTAGE_3V3"
register "i2c[0]" = "{
.speed = I2C_SPEED_FAST,
.speed_config[0] = {
.speed = I2C_SPEED_FAST,
.scl_lcnt = 180,
.scl_hcnt = 90,
.sda_hold = 36,
},
}"
# H1 # H1
register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3" register "i2c_voltage[1]" = "I2C_VOLTAGE_3V3"
@ -182,20 +191,62 @@ chip soc/intel/skylake
# for TPM communication before memory is up. # for TPM communication before memory is up.
register "i2c[1]" = "{ register "i2c[1]" = "{
.early_init = 1, .early_init = 1,
.speed = I2C_SPEED_FAST,
.speed_config[0] = {
.speed = I2C_SPEED_FAST,
.scl_lcnt = 185,
.scl_hcnt = 90,
.sda_hold = 36,
},
}" }"
# Trackpad # Trackpad
register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8" register "i2c_voltage[2]" = "I2C_VOLTAGE_1V8"
register "i2c[2]" = "{
.speed = I2C_SPEED_FAST,
.speed_config[0] = {
.speed = I2C_SPEED_FAST,
.scl_lcnt = 190,
.scl_hcnt = 100,
.sda_hold = 36,
},
}"
# Pen # Pen
register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8" register "i2c_voltage[3]" = "I2C_VOLTAGE_1V8"
register "i2c[3]" = "{
.speed = I2C_SPEED_FAST,
.speed_config[0] = {
.speed = I2C_SPEED_FAST,
.scl_lcnt = 185,
.scl_hcnt = 90,
.sda_hold = 36,
},
}"
# Camera # Camera
register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8" register "i2c_voltage[4]" = "I2C_VOLTAGE_1V8"
register "i2c[4]" = "{
.speed = I2C_SPEED_FAST,
.speed_config[0] = {
.speed = I2C_SPEED_FAST,
.scl_lcnt = 190,
.scl_hcnt = 100,
.sda_hold = 36,
},
}"
# Audio # Audio
register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8" register "i2c_voltage[5]" = "I2C_VOLTAGE_1V8"
register "i2c[5]" = "{
.speed = I2C_SPEED_FAST,
.speed_config[0] = {
.speed = I2C_SPEED_FAST,
.scl_lcnt = 190,
.scl_hcnt = 100,
.sda_hold = 36,
},
}"
# Must leave UART0 enabled or SD/eMMC will not work as PCI # Must leave UART0 enabled or SD/eMMC will not work as PCI
register "SerialIoDevMode" = "{ register "SerialIoDevMode" = "{
@ -212,13 +263,6 @@ chip soc/intel/skylake
[PchSerialIoIndexUart2] = PchSerialIoSkipInit, [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
}" }"
# Enable I2C5 for audio codec at 400kHz
register "i2c[5]" = "{
.speed = I2C_SPEED_FAST,
.rise_time_ns = 104,
.fall_time_ns = 52,
}"
register "speed_shift_enable" = "1" register "speed_shift_enable" = "1"
# PL2 override 15W for KBL-Y # PL2 override 15W for KBL-Y
register "tdp_pl2_override" = "15" register "tdp_pl2_override" = "15"