aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2017-08-29 09:42:18 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-09-04 20:45:35 -0500
commit9727fe384b8685270d344201f7e051475eea3a0b (patch)
treeede2fa692df2866cbfc7e2e62a3d5f3e9e18429d /include
parent7b7428fcea0ccc88b9a9e76adf98f5324dfb6014 (diff)
downloadskiboot-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 'include')
-rw-r--r--include/platform.h1
-rw-r--r--include/skiboot.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index e6ebb13..f3af390 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -28,6 +28,7 @@ enum resource_id {
RESOURCE_ID_INITRAMFS,
RESOURCE_ID_CAPP,
RESOURCE_ID_IMA_CATALOG,
+ RESOURCE_ID_VERSION,
};
#define RESOURCE_SUBID_NONE 0
#define RESOURCE_SUBID_SUPPORTED 1
diff --git a/include/skiboot.h b/include/skiboot.h
index 4b7d519..0ab9f38 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -243,6 +243,9 @@ extern int flash_subpart_info(void *part_header, uint32_t header_len,
uint32_t part_size, uint32_t *part_actual,
uint32_t subid, uint32_t *offset,
uint32_t *size);
+extern void flash_fw_version_preload(void);
+extern void flash_dt_add_fw_version(void);
+
/* NVRAM support */
extern void nvram_init(void);
extern void nvram_read_complete(bool success);