summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/starlabs')
-rw-r--r--src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb9
-rw-r--r--src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c6
2 files changed, 6 insertions, 9 deletions
diff --git a/src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb b/src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb
index fc21f18d74..c1af6475b4 100644
--- a/src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb
+++ b/src/mainboard/starlabs/starlite_adl/variants/mk_v/devicetree.cb
@@ -1,13 +1,4 @@
chip soc/intel/alderlake
- register "common_soc_config" = "{
- .i2c[0] = {
- .speed = I2C_SPEED_FAST,
- },
- .i2c[2] = {
- .speed = I2C_SPEED_FAST,
- },
- }"
-
# FSP UPDs
register "cnvi_bt_audio_offload" = "true"
register "cnvi_bt_core" = "true"
diff --git a/src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c b/src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c
index 7184cdbc4c..331bc7f25b 100644
--- a/src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c
+++ b/src/mainboard/starlabs/starlite_adl/variants/mk_v/devtree.c
@@ -63,4 +63,10 @@ void devtree_update(void)
/* Enable/Disable Accelerometer based on CMOS settings */
if (get_uint_option("accelerometer", 1) == 0)
accelerometer_dev->enabled = 0;
+
+ /* Set I2C devices speed to fast based on CMOS settings */
+ if (get_uint_option("i2c_speed_fast", 0) == 1) {
+ common_config->i2c[0].speed = I2C_SPEED_FAST;
+ common_config->i2c[2].speed = I2C_SPEED_FAST;
+ }
}