summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMario Scheithauer <mario.scheithauer@siemens.com>2017-10-23 16:34:28 +0200
committerWerner Zeh <werner.zeh@siemens.com>2017-11-03 07:12:08 +0000
commitee2dae2f17952cbd87148a9a33b847cdbe0af4dc (patch)
treef39a7160b081fa053aa520058ca505085605bec8 /src
parentdda58a2a3c68707f0113606f2b014581ca363c41 (diff)
downloadcoreboot-ee2dae2f17952cbd87148a9a33b847cdbe0af4dc.tar.xz
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 <mario.scheithauer@siemens.com> Reviewed-on: https://review.coreboot.org/22140 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/siemens/mc_apl1/devicetree.cb5
1 files changed, 5 insertions, 0 deletions
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