summaryrefslogtreecommitdiff
path: root/common/mkbp_event.c
diff options
context:
space:
mode:
authorEnrico Granata <egranata@chromium.org>2018-10-02 16:39:56 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-10-04 17:09:11 -0700
commitce110598773fca8ef888e3a40f3e433da78e75a7 (patch)
tree1646a42f5ceec7ccb9a991779c774e3a518b02ab /common/mkbp_event.c
parent27fcbd8d998e21b5bcb4250b4a1ea72c27f15944 (diff)
downloadchrome-ec-ce110598773fca8ef888e3a40f3e433da78e75a7.tar.gz
FIXUP: mkbp: add support for board-specific host notification
This patch improves naming and documentation for the functionality introduced in crrev.com/c/1247000 TEST=build BRANCH=none BUG=b:112366846, b:112112483, b:112111610 Change-Id: Iedd2fc5492a5d35fa9c2475fe248c5aa41e83bb0 Signed-off-by: Enrico Granata <egranata@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1258562 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'common/mkbp_event.c')
-rw-r--r--common/mkbp_event.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/mkbp_event.c b/common/mkbp_event.c
index 08e88f287e..9d643d6f46 100644
--- a/common/mkbp_event.c
+++ b/common/mkbp_event.c
@@ -34,24 +34,24 @@ static int event_is_set(uint8_t event_type)
}
#ifndef CONFIG_MKBP_USE_HOST_EVENT
-void send_mkbp_event_gpio(int active)
+void mkbp_set_host_active_via_gpio(int active)
{
gpio_set_level(GPIO_EC_INT_L, !active);
}
#endif
-void send_mkbp_event_host(int active)
+void mkbp_set_host_active_via_event(int active)
{
if (active)
host_set_single_event(EC_HOST_EVENT_MKBP);
}
-__attribute__((weak)) void send_mkbp_event(int active)
+__attribute__((weak)) void mkbp_set_host_active(int active)
{
#ifdef CONFIG_MKBP_USE_HOST_EVENT
- send_mkbp_event_host(active);
+ mkbp_set_host_active_via_event(active);
#else
- send_mkbp_event_gpio(active);
+ mkbp_set_host_active_via_gpio(active);
#endif
}
@@ -67,7 +67,7 @@ static void set_host_interrupt(int active)
if (old_active == 0 && active == 1)
mkbp_last_event_time = __hw_clock_source_read();
- send_mkbp_event(active);
+ mkbp_set_host_active(active);
old_active = active;
interrupt_enable();