DT: Add "IBM" version property under ibm, firmware-versions node

Message ID 20171206165941.28865-1-hegdevasant@linux.vnet.ibm.com
State New
Headers show
Series
  • DT: Add "IBM" version property under ibm, firmware-versions node
Related show

Commit Message

Vasant Hegde Dec. 6, 2017, 4:59 p.m.
Looks like latest firmware (at least IBM build) has IBM release string
in VERSION section of PNOR. Lets add that to device tree.

Sample output:
--------------
/proc/device-tree/ibm,firmware-versions# lsprop
occ              "dbb4d7e"
skiboot          "v5.9"
buildroot        "2017.08-8-g5e23247"
IBM              "witherspoon-ibm-OP9_v1.19_1.73"
.....


Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
 core/flash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/core/flash.c b/core/flash.c
index 2744496..ee7097c 100644
--- a/core/flash.c
+++ b/core/flash.c
@@ -162,7 +162,7 @@  static void __flash_dt_add_fw_version(struct dt_node *fw_version, char* data)
 	const char * version_str[] = {"open-power", "buildroot", "skiboot",
 				      "hostboot-binaries", "hostboot", "linux",
 				      "petitboot", "occ", "capp-ucode", "sbe",
-				      "machine-xml"};
+				      "machine-xml", "IBM"};
 
 	/*
 	 * PNOR version strings are not easily consumable. Split them into