diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2017-10-13 16:59:59 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-11-09 16:55:21 -0600 |
commit | eb858339cae8240367c82e6c2cc139519dbddb26 (patch) | |
tree | a60222e7987da5108b4010b1b4167c586a316aea | |
parent | 5c221866c88f269a82620b8ad244b68f86e05df0 (diff) | |
download | skiboot-eb858339cae8240367c82e6c2cc139519dbddb26.zip skiboot-eb858339cae8240367c82e6c2cc139519dbddb26.tar.gz skiboot-eb858339cae8240367c82e6c2cc139519dbddb26.tar.bz2 |
hdata: Rename 'fsp-ipl-side' as 'sp-ipl-side'
.. as OPAL is building device tree for both FSP and BMC system.
Also I don't see anyone using this property today. Hence renaming
should be fine.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hdata/spira.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index adaa604..11d3ade 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -1046,9 +1046,15 @@ static void add_iplparams_ipl_params(const void *iplp, struct dt_node *node) dt_add_property_strings(node, "cec-ipl-side", (p->ipl_side & IPLPARAMS_CEC_FW_IPL_SIDE_TEMP) ? "temp" : "perm"); - dt_add_property_strings(node, "fsp-ipl-side", - (p->ipl_side & IPLPARAMS_FSP_FW_IPL_SIDE_TEMP) ? - "temp" : "perm"); + if (proc_gen >= proc_gen_p9) { + dt_add_property_strings(node, "sp-ipl-side", + (p->ipl_side & IPLPARAMS_FSP_FW_IPL_SIDE_TEMP) ? + "temp" : "perm"); + } else { + dt_add_property_strings(node, "fsp-ipl-side", + (p->ipl_side & IPLPARAMS_FSP_FW_IPL_SIDE_TEMP) ? + "temp" : "perm"); + } dt_add_property_cells(node, "os-ipl-mode", p->os_ipl_mode); dt_add_property_strings(node, "cec-major-type", p->cec_ipl_maj_type ? "hot" : "cold"); |