summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/skyrim/variants/skyrim
diff options
context:
space:
mode:
authorJon Murphy <jpmurphy@google.com>2022-02-17 20:21:37 -0700
committerFelix Held <felix-coreboot@felixheld.de>2022-02-28 13:30:13 +0000
commit410b7cb97ebf3c0ad3ea972d556c72a8883e8317 (patch)
tree0b8904531de2044f5d1d9025cc25e4c0cf612729 /src/mainboard/google/skyrim/variants/skyrim
parentf79cc51b3f8e490788598b51523897a68152abc6 (diff)
downloadcoreboot-410b7cb97ebf3c0ad3ea972d556c72a8883e8317.tar.gz
coreboot-410b7cb97ebf3c0ad3ea972d556c72a8883e8317.tar.bz2
coreboot-410b7cb97ebf3c0ad3ea972d556c72a8883e8317.zip
mb/google/skyrim: Add initial I2C configuration
Add I2C peripheral reset configuration required during early init. Enabled I2C generic and HID drivers. BUG=b:214414677 TEST=Build Signed-off-by: Jon Murphy <jpmurphy@google.com> Change-Id: I06e564cf6eca844101d70ff865f3074b45a55d55 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62160 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/skyrim/variants/skyrim')
-rw-r--r--src/mainboard/google/skyrim/variants/skyrim/overridetree.cb27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mainboard/google/skyrim/variants/skyrim/overridetree.cb b/src/mainboard/google/skyrim/variants/skyrim/overridetree.cb
index 4fb8baf086be..599478fb826c 100644
--- a/src/mainboard/google/skyrim/variants/skyrim/overridetree.cb
+++ b/src/mainboard/google/skyrim/variants/skyrim/overridetree.cb
@@ -6,4 +6,31 @@ end
chip soc/amd/sabrina
device domain 0 on
end # domain
+
+ # I2C Config
+ #+-------------------+----------------------------+
+ #| Field | Value |
+ #+-------------------+----------------------------+
+ #| I2C0 | Trackpad |
+ #| I2C1 | Touchscreen |
+ #| I2C2 | Speaker, Codec, P-SAR, USB |
+ #| I2C3 | D2 TPM |
+ #+-------------------+----------------------------+
+ register "i2c[0]" = "{
+ .speed = I2C_SPEED_FAST,
+ }"
+
+ register "i2c[1]" = "{
+ .speed = I2C_SPEED_FAST,
+ }"
+
+ register "i2c[2]" = "{
+ .speed = I2C_SPEED_FAST,
+ }"
+
+ register "i2c[3]" = "{
+ .speed = I2C_SPEED_FAST,
+ .early_init = true,
+ }"
+
end # chip soc/amd/sabrina