diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2018-01-18 12:31:38 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-01-30 20:42:38 -0600 |
commit | 4a12d6deb045688ab56fa3654cc57eb479bc7686 (patch) | |
tree | fae279b8929c09ba11bc575bf5b9d8e9f9ef5398 /hdata | |
parent | a05e341c9af2700c69bd0477132caead28d0bb89 (diff) | |
download | skiboot-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')
-rw-r--r-- | hdata/vpd.c | 5 |
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) |