summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2019-06-13 15:21:20 +0800
committerFurquan Shaikh <furquan@google.com>2019-06-18 21:15:23 +0000
commitb90739d73d7664067b48edcd7d800f05cd374aa2 (patch)
tree9d0b3347736b48746c3191c979b3d070eed62c30 /src/drivers
parentce0c5334a012230faf08fc3b901bb12010eb0208 (diff)
downloadcoreboot-b90739d73d7664067b48edcd7d800f05cd374aa2.tar.xz
drivers/i2c/sx9310: Print I2C SAR device info
Print I2C SAR device info so that it is available in cbmem logs. BUG=none BRANCH=none TEST=Boot up and check cbmem -c can find the SAR I2C info Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: Ia143932bb660ed2c2cea76310f11ede2b727adf4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/33432 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/i2c/sx9310/sx9310.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/i2c/sx9310/sx9310.c b/src/drivers/i2c/sx9310/sx9310.c
index aafd7c7cc8..8157874d07 100644
--- a/src/drivers/i2c/sx9310/sx9310.c
+++ b/src/drivers/i2c/sx9310/sx9310.c
@@ -15,6 +15,7 @@
#include <arch/acpi_device.h>
#include <arch/acpigen.h>
+#include <console/console.h>
#include <device/i2c_simple.h>
#include <device/device.h>
#include <device/path.h>
@@ -74,6 +75,9 @@ static void i2c_sx9310_fill_ssdt(struct device *dev)
acpigen_pop_len(); /* Device */
acpigen_pop_len(); /* Scope */
+
+ printk(BIOS_INFO, "%s: %s at %s\n", acpi_device_path(dev),
+ config->desc ? : dev->chip_ops->name, dev_path(dev));
}
#undef REGISTER