summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/pc80/rtc/post.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/drivers/pc80/rtc/post.c b/src/drivers/pc80/rtc/post.c
index e14367424e..5bee5be812 100644
--- a/src/drivers/pc80/rtc/post.c
+++ b/src/drivers/pc80/rtc/post.c
@@ -86,8 +86,11 @@ void cmos_post_code(u8 value)
spin_unlock(&cmos_post_lock);
}
-static void __unused cmos_post_extra(u32 value)
+void cmos_post_extra(u32 value)
{
+ if (!CONFIG(CMOS_POST_EXTRA))
+ return;
+
spin_lock(&cmos_post_lock);
switch (cmos_read(CMOS_POST_BANK_OFFSET)) {
@@ -102,20 +105,11 @@ static void __unused cmos_post_extra(u32 value)
spin_unlock(&cmos_post_lock);
}
-#if CONFIG(CMOS_POST_EXTRA)
-void post_log_path(const 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;
- cmos_post_extra(path);
- }
-}
-
-void post_log_clear(void)
+void cmos_post_path(const struct device *dev)
{
- cmos_post_extra(0);
+ /* 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;
+ cmos_post_extra(path);
}
-#endif /* CONFIG_CMOS_POST_EXTRA */