Add beep support for CPU IERR error
The beeper will beep with 1-5-2-2 if there is any IERR event.
Tested:
Host on, trigger the CPU IERR by ITP, The BMC will beep with 1-5-2-2.
Change-Id: Ifd96f523460631a905400db38d811d436a5cb44a
Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
diff --git a/src/host_error_monitor.cpp b/src/host_error_monitor.cpp
index 389e0d1..88ed84a 100644
--- a/src/host_error_monitor.cpp
+++ b/src/host_error_monitor.cpp
@@ -98,6 +98,7 @@
static gpiod::line cpu2MismatchLine;
// beep function for CPU error
+const static constexpr uint8_t beepCPUIERR = 4;
const static constexpr uint8_t beepCPUErr2 = 5;
static void beep(const uint8_t& beepPriority)
@@ -701,6 +702,7 @@
}
std::cerr << "CATERR asserted for " << std::to_string(caterrTimeoutMs)
<< " ms\n";
+ beep(beepCPUIERR);
if (!checkIERRCPUs())
{
cpuIERRLog();