diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2017-08-29 09:42:18 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-09-04 20:45:35 -0500 |
commit | 9727fe384b8685270d344201f7e051475eea3a0b (patch) | |
tree | ede2fa692df2866cbfc7e2e62a3d5f3e9e18429d /platforms | |
parent | 7b7428fcea0ccc88b9a9e76adf98f5324dfb6014 (diff) | |
download | skiboot-9727fe384b8685270d344201f7e051475eea3a0b.zip skiboot-9727fe384b8685270d344201f7e051475eea3a0b.tar.gz skiboot-9727fe384b8685270d344201f7e051475eea3a0b.tar.bz2 |
DT: Add ibm,firmware-versions node
In P8, hostboot provides mini device tree. It contains /ibm,firmware-versions
node which has various firmware component version details.
In P9, OPAL is building device tree. This patch adds support to parse VERSION
section of PNOR and create "/ibm,firmware-versions" device tree node.
Sample output:
/sys/firmware/devicetree/base/ibm,firmware-versions # lsprop .
occ "6a00709"
skiboot "v5.7-rc1-p344fb62"
buildroot "2017.02.2-7-g23118ce"
capp-ucode "9c73e9f"
petitboot "v1.4.3-p98b6d83"
sbe "02021c6"
open-power "witherspoon-v1.17-128-gf1b53c7-dirty"
....
....
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com>
Reviewed-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/astbmc/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c index 3c59f82..243ad94 100644 --- a/platforms/astbmc/common.c +++ b/platforms/astbmc/common.c @@ -134,6 +134,9 @@ void astbmc_init(void) astbmc_fru_init(); ipmi_sensor_init(); + /* Preload PNOR VERSION section */ + flash_fw_version_preload(); + /* As soon as IPMI is up, inform BMC we are in "S0" */ ipmi_set_power_state(IPMI_PWR_SYS_S0_WORKING, IPMI_PWR_NOCHANGE); @@ -144,6 +147,9 @@ void astbmc_init(void) /* Setup UART console for use by Linux via OPAL API */ set_opal_console(&uart_opal_con); + + /* Add ibm,firmware-versions node */ + flash_dt_add_fw_version(); } int64_t astbmc_ipmi_power_down(uint64_t request) |