From ee2dae2f17952cbd87148a9a33b847cdbe0af4dc Mon Sep 17 00:00:00 2001 From: Mario Scheithauer Date: Mon, 23 Oct 2017 16:34:28 +0200 Subject: [PATCH] siemens/mc_apl1: Enable I2C0 with 100kHz The default setting for I2Cx is 400kHz. On this mainboard there is a device on I2C0 which requires a lower clock rate to work correctly. For this reason we set the frequency to 100kHz. Change-Id: I637a58a0c89ead55ca1176d6aecdfaba5897d64f Signed-off-by: Mario Scheithauer Reviewed-on: https://review.coreboot.org/22140 Tested-by: build bot (Jenkins) Reviewed-by: Werner Zeh Reviewed-by: Paul Menzel --- src/mainboard/siemens/mc_apl1/devicetree.cb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mainboard/siemens/mc_apl1/devicetree.cb b/src/mainboard/siemens/mc_apl1/devicetree.cb index 04b3ae5286..e2b6ceec7f 100644 --- a/src/mainboard/siemens/mc_apl1/devicetree.cb +++ b/src/mainboard/siemens/mc_apl1/devicetree.cb @@ -43,6 +43,11 @@ chip soc/intel/apollolake # [6:0] steps of delay for HS200, each 125ps. register "emmc_rx_cmd_data_cntl2" = "0x10008" + # Enable I2C0 for proximity sensor at 100kHz + register "i2c[0]" = "{ + .speed = I2C_SPEED_STANDARD + }" + device domain 0 on device pci 00.0 on end # - Host Bridge device pci 00.1 off end # - DPTF