aboutsummaryrefslogtreecommitdiff
path: root/hdata/vpd.c
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2018-01-18 12:31:38 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-01-30 20:42:38 -0600
commit4a12d6deb045688ab56fa3654cc57eb479bc7686 (patch)
treefae279b8929c09ba11bc575bf5b9d8e9f9ef5398 /hdata/vpd.c
parenta05e341c9af2700c69bd0477132caead28d0bb89 (diff)
downloadskiboot-4a12d6deb045688ab56fa3654cc57eb479bc7686.zip
skiboot-4a12d6deb045688ab56fa3654cc57eb479bc7686.tar.gz
skiboot-4a12d6deb045688ab56fa3654cc57eb479bc7686.tar.bz2
hdata/vpd: Add vendor property
ibm,vpd blob contains VN field. Use that to populate vendor property for various FRU's. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/vpd.c')
-rw-r--r--hdata/vpd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hdata/vpd.c b/hdata/vpd.c
index 06a3b18..038569a 100644
--- a/hdata/vpd.c
+++ b/hdata/vpd.c
@@ -304,6 +304,11 @@ static void vpd_vini_parse(struct dt_node *node,
if (kw)
dt_add_property_nstr(node, "part-number", kw, sz);
+ /* Vendor Name */
+ kw = vpd_find(fruvpd, fruvpd_sz, "VINI", "VN", &sz);
+ if (kw)
+ dt_add_property_nstr(node, "vendor", kw, sz);
+
/* CCIN Extension */
kw = vpd_find(fruvpd, fruvpd_sz, "VINI", "CE", &sz);
if (kw)