aboutsummaryrefslogtreecommitdiff
path: root/platforms
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2018-05-07 09:48:23 +0530
committerStewart Smith <stewart@linux.ibm.com>2018-05-09 10:17:43 -0500
commit13878e5b27c5916938374b9e66dd9c8d80f4dbeb (patch)
treef816bf95af436057f545f2db12c1654750d4a2d3 /platforms
parentc5bff438b7db358c223a1f8d3d44c1ef2ed192d0 (diff)
downloadskiboot-13878e5b27c5916938374b9e66dd9c8d80f4dbeb.zip
skiboot-13878e5b27c5916938374b9e66dd9c8d80f4dbeb.tar.gz
skiboot-13878e5b27c5916938374b9e66dd9c8d80f4dbeb.tar.bz2
ipmi: Add BMC firmware version to device tree
BMC Get device ID command gives BMC firmware version details. Lets add this to device tree. User space tools will use this information to display BMC version details. Stewart, I have added bmc information under /ibm,firmware-version node as its firmware version. But may be we should add new node (/bmc/firmware). So that we can keep BMC related information separately. Let me know your thoughts on this. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/astbmc/common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 243ad94..8b24abe 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -137,6 +137,9 @@ void astbmc_init(void)
/* Preload PNOR VERSION section */
flash_fw_version_preload();
+ /* Request BMC information */
+ ipmi_get_bmc_info_request();
+
/* As soon as IPMI is up, inform BMC we are in "S0" */
ipmi_set_power_state(IPMI_PWR_SYS_S0_WORKING, IPMI_PWR_NOCHANGE);
@@ -150,6 +153,9 @@ void astbmc_init(void)
/* Add ibm,firmware-versions node */
flash_dt_add_fw_version();
+
+ /* Add BMC firmware info to device tree */
+ ipmi_dt_add_bmc_info();
}
int64_t astbmc_ipmi_power_down(uint64_t request)