From 2548c7a35ab2ac8d8d73b8b8f5145d64f248ebe1 Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Thu, 18 May 2017 15:35:40 -0500 Subject: Set SBE seeprom boot side The default side for the SBE to boot from is side 0, which is indicated by a 0 in bit 17 of cfam 0x2808. When the boot count goes to 1 (the last before giving up), the start_host logic will switch over to side 1 for the SBE to boot from. Resolves openbmc/openbmc#1467 Change-Id: I61aa22939baa4cde38c8716429b6ca55f7c850bd Signed-off-by: Andrew Geissler --- ext_interface.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ext_interface.hpp (limited to 'ext_interface.hpp') diff --git a/ext_interface.hpp b/ext_interface.hpp new file mode 100644 index 0000000..deb21d8 --- /dev/null +++ b/ext_interface.hpp @@ -0,0 +1,11 @@ +#include + +/** + * @brief Get the current boot count for the host + * + * The boot count indicates how many more times the bmc will try to + * boot the host. + * + * @return Number of boot attempts left + **/ +int getBootCount(); -- cgit v1.2.1