From 5764cbbf91cf80c21f7e6b819526ebd074049551 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Thu, 29 Jun 2017 17:29:07 -0700 Subject: soc/intel/quark: Add I2C debugging Add I2C debugging support: * Add I2C_DEBUG Kconfig value to enable debugging * Display I2C segments before the transfer * Display errors that occur during the transfer * Display the number of bytes transferred for successful transfers TEST=Build and run on Galileo Gen2 Change-Id: Ia17be8b4213b13fd6c6a367d081414d0f21fbb0f Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/20422 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Sumeet R Pawnikar --- src/soc/intel/quark/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/soc/intel/quark/Kconfig') diff --git a/src/soc/intel/quark/Kconfig b/src/soc/intel/quark/Kconfig index bbb1927824..d1950a378a 100644 --- a/src/soc/intel/quark/Kconfig +++ b/src/soc/intel/quark/Kconfig @@ -316,4 +316,14 @@ config STORAGE_LOG default n depends on STORAGE_TEST +##### +# I2C debug support +##### + +config I2C_DEBUG + bool "Enable I2C debugging" + default n + help + Display the I2C segments and controller errors + endif # SOC_INTEL_QUARK -- cgit v1.2.3