aboutsummaryrefslogtreecommitdiff
path: root/hw/ast-bmc
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-10-09 00:32:32 -0700
committerStewart Smith <stewart@linux.ibm.com>2018-10-11 01:26:19 -0500
commitb5edb1692b7f6af1a60758f4f63f52f795b5dba0 (patch)
treedf4f0cee3aad84215ced337c1d56ed2d21efea9a /hw/ast-bmc
parent35c955970af6c90429a558470c779d158ce54ea9 (diff)
downloadskiboot-b5edb1692b7f6af1a60758f4f63f52f795b5dba0.zip
skiboot-b5edb1692b7f6af1a60758f4f63f52f795b5dba0.tar.gz
skiboot-b5edb1692b7f6af1a60758f4f63f52f795b5dba0.tar.bz2
astbmc: Prefer ipmi-hiomap for PNOR access
If the IPMI command is not available, fall back to the mailbox interface. Signed-off-by: Andrew Jeffery <andrew@aj.id.au> [stewart: fix up mbox test] Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/ast-bmc')
-rw-r--r--hw/ast-bmc/ast-io.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/hw/ast-bmc/ast-io.c b/hw/ast-bmc/ast-io.c
index a6ae85a..e8258b4 100644
--- a/hw/ast-bmc/ast-io.c
+++ b/hw/ast-bmc/ast-io.c
@@ -426,12 +426,16 @@ bool ast_io_init(void)
return ast_io_is_rw();
}
-bool ast_lpc_fw_is_mbox(void)
+bool ast_lpc_fw_needs_hiomap(void)
{
- return dt_find_compatible_node(dt_root, NULL, "mbox");
+ struct dt_node *n;
+
+ n = dt_find_compatible_node(dt_root, NULL, "mbox");
+
+ return n != NULL;
}
-bool ast_lpc_fw_is_flash(void)
+bool ast_lpc_fw_maps_flash(void)
{
uint8_t boot_version;
uint8_t boot_flags;