summaryrefslogtreecommitdiff
path: root/src/console/post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/post.c')
-rw-r--r--src/console/post.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/console/post.c b/src/console/post.c
index 74886834ce..35cc0e85e1 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -114,6 +114,22 @@ void post_log_extra(u32 value)
spin_unlock(&cmos_post_lock);
}
+
+void post_log_path(struct device *dev)
+{
+ if (dev) {
+ /* Encode path into lower 3 bytes */
+ u32 path = dev_path_encode(dev);
+ /* Upper byte contains the log type */
+ path |= CMOS_POST_EXTRA_DEV_PATH << 24;
+ post_log_extra(path);
+ }
+}
+
+void post_log_clear(void)
+{
+ post_log_extra(0);
+}
#endif /* CONFIG_CMOS_POST_EXTRA */
#endif /* !__PRE_RAM__ */