aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/common/smbus_ops.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-12-05 20:43:00 +0100
committerAngel Pons <th3fanbus@gmail.com>2020-12-11 15:12:47 +0000
commit79b2a150c7a18a61604b0d81f52a7c6ad8522b60 (patch)
tree35fdf0dcfa4e0eaf2605c4f0c62cf2690ebcd409 /src/southbridge/intel/common/smbus_ops.h
parent30ff00650a7129475bf01ce9d258ac27b59c786b (diff)
sb/intel/x/smbus.c: Factor out common code
Since common smbus.c gets built for romstage as well, create a new file to hold this common code. Account for ICH7 not having a memory BAR, too. Change-Id: I4ab46750c6fb7f71cbd55848e79ecc3e44cbbd04 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48364 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/common/smbus_ops.h')
-rw-r--r--src/southbridge/intel/common/smbus_ops.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/southbridge/intel/common/smbus_ops.h b/src/southbridge/intel/common/smbus_ops.h
new file mode 100644
index 0000000000..fbdbb9996d
--- /dev/null
+++ b/src/southbridge/intel/common/smbus_ops.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/device.h>
+#include <device/smbus.h>
+#include <device/smbus_host.h>
+
+extern struct smbus_bus_operations lops_smbus_bus;
+
+void smbus_read_resources(struct device *dev);