aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/i2c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common/block/i2c')
-rw-r--r--src/soc/intel/common/block/i2c/Kconfig8
-rw-r--r--src/soc/intel/common/block/i2c/lpss_i2c.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/i2c/Kconfig b/src/soc/intel/common/block/i2c/Kconfig
index 7718f05c58..0e68dac6eb 100644
--- a/src/soc/intel/common/block/i2c/Kconfig
+++ b/src/soc/intel/common/block/i2c/Kconfig
@@ -2,3 +2,11 @@ config SOC_INTEL_COMMON_BLOCK_I2C
bool
help
Intel Processor Common I2C support
+
+config SOC_INTEL_COMMON_BLOCK_I2C_DEBUG
+ bool "Enable debug output for LPSS I2C transactions"
+ default n
+ depends on SOC_INTEL_COMMON_BLOCK_I2C
+ help
+ Enable debug output for I2C transactions. This can be useful
+ when debugging I2C drivers.
diff --git a/src/soc/intel/common/block/i2c/lpss_i2c.c b/src/soc/intel/common/block/i2c/lpss_i2c.c
index 34e04ecf1b..9ae7831524 100644
--- a/src/soc/intel/common/block/i2c/lpss_i2c.c
+++ b/src/soc/intel/common/block/i2c/lpss_i2c.c
@@ -323,7 +323,7 @@ int lpss_i2c_transfer(unsigned int bus,
/* Process each segment */
while (count--) {
- if (CONFIG_SOC_INTEL_COMMON_LPSS_I2C_DEBUG)
+ if (CONFIG_SOC_INTEL_COMMON_BLOCK_I2C_DEBUG)
printk(BIOS_DEBUG, "i2c %u:%02x %s %d bytes : ",
bus, segments->slave,
(segments->flags & I2C_M_RD) ? "R" : "W",
@@ -349,7 +349,7 @@ int lpss_i2c_transfer(unsigned int bus,
}
}
- if (CONFIG_SOC_INTEL_COMMON_LPSS_I2C_DEBUG) {
+ if (CONFIG_SOC_INTEL_COMMON_BLOCK_I2C_DEBUG) {
int j;
for (j = 0; j < segments->len; j++)
printk(BIOS_DEBUG, "%02x ", segments->buf[j]);