summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/siemens/mc_apl1/variants/mc_apl4/Kconfig1
-rw-r--r--src/mainboard/siemens/mc_apl1/variants/mc_apl4/devicetree.cb17
-rw-r--r--src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig1
-rw-r--r--src/mainboard/siemens/mc_apl1/variants/mc_apl7/devicetree.cb16
4 files changed, 35 insertions, 0 deletions
diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl4/Kconfig b/src/mainboard/siemens/mc_apl1/variants/mc_apl4/Kconfig
index 6f600c70be..4942624ff1 100644
--- a/src/mainboard/siemens/mc_apl1/variants/mc_apl4/Kconfig
+++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl4/Kconfig
@@ -3,6 +3,7 @@ if BOARD_SIEMENS_MC_APL4
config BOARD_SPECIFIC_OPTIONS
def_bool y
+ select DRIVERS_I2C_GENERIC
select DRIVER_INTEL_I210
select SOC_INTEL_SET_MIN_CLOCK_RATIO
select MAINBOARD_HAS_TPM2
diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl4/devicetree.cb b/src/mainboard/siemens/mc_apl1/variants/mc_apl4/devicetree.cb
index c601106c5e..f997d08433 100644
--- a/src/mainboard/siemens/mc_apl1/variants/mc_apl4/devicetree.cb
+++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl4/devicetree.cb
@@ -38,6 +38,16 @@ chip soc/intel/apollolake
# 0:HS400(Default), 1:HS200, 2:DDR50
register "emmc_host_max_speed" = "1"
+ # I2C7 controller used for PTN
+ register "common_soc_config" = "{
+ .i2c[7] = {
+ .speed = I2C_SPEED_STANDARD,
+ .rise_time_ns = 210,
+ .fall_time_ns = 100,
+ .data_hold_time_ns = 300,
+ }
+ }"
+
device domain 0 on
device pci 00.0 on end # - Host Bridge
device pci 00.1 off end # - DPTF
@@ -94,6 +104,13 @@ chip soc/intel/apollolake
chip drivers/i2c/ptn3460
device i2c 0x60 on end # PTN3460 DP2LVDS Bridge
end
+ # Add dummy I2C device to limit BUS speed to 100 kHz in OS
+ chip drivers/i2c/generic
+ register "hid" = ""PRP0001""
+ register "speed" = "I2C_SPEED_STANDARD"
+ device i2c 0x7f on end
+ end
+
end
device pci 18.0 on end # - UART 0
device pci 18.1 on end # - UART 1
diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig
index 953dcfd484..76abd138c1 100644
--- a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig
+++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/Kconfig
@@ -3,6 +3,7 @@ if BOARD_SIEMENS_MC_APL7
config BOARD_SPECIFIC_OPTIONS
def_bool y
+ select DRIVERS_I2C_GENERIC
select DRIVER_INTEL_I210
select SOC_INTEL_SET_MIN_CLOCK_RATIO
select DRIVERS_I2C_PTN3460
diff --git a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/devicetree.cb b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/devicetree.cb
index c879fef3ed..b3775bd7a6 100644
--- a/src/mainboard/siemens/mc_apl1/variants/mc_apl7/devicetree.cb
+++ b/src/mainboard/siemens/mc_apl1/variants/mc_apl7/devicetree.cb
@@ -38,6 +38,16 @@ chip soc/intel/apollolake
# 0:HS400(Default), 1:HS200, 2:DDR50
register "emmc_host_max_speed" = "1"
+ # I2C7 controller used for PTN
+ register "common_soc_config" = "{
+ .i2c[7] = {
+ .speed = I2C_SPEED_STANDARD,
+ .rise_time_ns = 210,
+ .fall_time_ns = 100,
+ .data_hold_time_ns = 300,
+ }
+ }"
+
device domain 0 on
device pci 00.0 on end # - Host Bridge
device pci 00.1 off end # - DPTF
@@ -92,6 +102,12 @@ chip soc/intel/apollolake
chip drivers/i2c/ptn3460
device i2c 0x60 on end # PTN3460 DP2LVDS Bridge
end
+ # Add dummy I2C device to limit BUS speed to 100 kHz in OS
+ chip drivers/i2c/generic
+ register "hid" = ""PRP0001""
+ register "speed" = "I2C_SPEED_STANDARD"
+ device i2c 0x7f on end
+ end
end
device pci 18.0 on end # - UART 0
device pci 18.1 on end # - UART 1