summaryrefslogtreecommitdiff
path: root/src/include/device/device.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-02-13 13:22:19 -0800
committerFurquan Shaikh <furquan@google.com>2017-02-16 08:41:52 +0100
commit4e084796886259133d9226c40822e44599a41302 (patch)
treeeaaf473b6c526b31c0ff4a0019b46a5523f4f973 /src/include/device/device.h
parent7606c377f56ab68421aa482b1ded6840d426e197 (diff)
downloadcoreboot-4e084796886259133d9226c40822e44599a41302.tar.xz
device: Add scan_generic_bus support
scan_smbus routine does not perform any smbus specific operation. Thus, rename the routine to scan_generic_bus so that it can be used by other buses like SPI. Add a wrapper scan_smbus to allow other users of smbus scan to continue working as before. BUG=chrome-os-partner:59832 BRANCH=None TEST=Compiles successfully Change-Id: I8ca1a2b7f2906d186ec39e9223ce18b8a1f27196 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/18363 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/include/device/device.h')
-rw-r--r--src/include/device/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index e21384ba0a..284c039fc8 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -241,6 +241,7 @@ void mmconf_resource_init(struct resource *res, resource_t base, int buses);
void mmconf_resource(struct device *dev, unsigned long index);
void scan_smbus(device_t bus);
+void scan_generic_bus(device_t bus);
void scan_static_bus(device_t bus);
void scan_lpc_bus(device_t bus);