summaryrefslogtreecommitdiff
path: root/baseboard/zork/variant_dalboz.c
diff options
context:
space:
mode:
Diffstat (limited to 'baseboard/zork/variant_dalboz.c')
-rw-r--r--baseboard/zork/variant_dalboz.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/baseboard/zork/variant_dalboz.c b/baseboard/zork/variant_dalboz.c
index 01a30ab19c..41307d6da4 100644
--- a/baseboard/zork/variant_dalboz.c
+++ b/baseboard/zork/variant_dalboz.c
@@ -14,6 +14,66 @@
#include "ioexpander.h"
#include "usb_mux.h"
+const struct i2c_port_t i2c_ports[] = {
+ {
+ .name = "tcpc0",
+ .port = I2C_PORT_TCPC0,
+ .kbps = 400,
+ .scl = GPIO_EC_I2C_USB_A0_C0_SCL,
+ .sda = GPIO_EC_I2C_USB_A0_C0_SDA,
+ },
+ {
+ .name = "tcpc1",
+ .port = I2C_PORT_TCPC1,
+ .kbps = 400,
+ .scl = GPIO_EC_I2C_USB_A1_C1_SCL,
+ .sda = GPIO_EC_I2C_USB_A1_C1_SDA,
+ },
+ {
+ .name = "charger",
+ .port = I2C_PORT_CHARGER,
+ .kbps = 100,
+ .scl = GPIO_EC_I2C_POWER_SCL,
+ .sda = GPIO_EC_I2C_POWER_SDA,
+ },
+ {
+ .name = "ap_mux",
+ .port = I2C_PORT_USB_AP_MUX,
+ .kbps = 400,
+ .scl = GPIO_EC_I2C_USBC_AP_MUX_SCL,
+ .sda = GPIO_EC_I2C_USBC_AP_MUX_SDA,
+ },
+ {
+ .name = "thermal",
+ .port = I2C_PORT_THERMAL,
+ .kbps = 400,
+ .scl = GPIO_FCH_SIC,
+ .sda = GPIO_FCH_SID,
+ },
+ {
+ .name = "sensor",
+ .port = I2C_PORT_SENSOR,
+ .kbps = 400,
+ .scl = GPIO_EC_I2C_SENSOR_CBI_SCL,
+ .sda = GPIO_EC_I2C_SENSOR_CBI_SDA,
+ },
+ {
+ .name = "ap_audio",
+ .port = I2C_PORT_AP_AUDIO,
+ .kbps = 400,
+ .scl = GPIO_I2C_AUDIO_USB_HUB_SCL,
+ .sda = GPIO_I2C_AUDIO_USB_HUB_SDA,
+ },
+ {
+ .name = "battery",
+ .port = I2C_PORT_BATTERY_V1,
+ .kbps = 100,
+ .scl = GPIO_EC_I2C_BATT_SCL,
+ .sda = GPIO_EC_I2C_BATT_SDA,
+ },
+};
+const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
+
/*****************************************************************************
* IO expander
*/