diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2017-06-24 14:17:09 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-06-26 14:28:58 +1000 |
commit | 077fdef306529c7d266f13dbfd56c25da211df96 (patch) | |
tree | b7e8a8cb313d04c29cdbee8ded8932ec861b9c5d /core/vpd.c | |
parent | ead3cafd000b003ddda4c27989e30d239a91d8be (diff) | |
download | skiboot-077fdef306529c7d266f13dbfd56c25da211df96.zip skiboot-077fdef306529c7d266f13dbfd56c25da211df96.tar.gz skiboot-077fdef306529c7d266f13dbfd56c25da211df96.tar.bz2 |
phb3/4: Move IO VPD preload out to a common place
The code is duplicated between phb3 and phb4 for no reason
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
# Conflicts:
# core/init.c
# hw/phb3.c
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/vpd.c')
-rw-r--r-- | core/vpd.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -272,3 +272,14 @@ void vpd_preload(struct dt_node *hub_node) vpd_lid = vpd_lid_preload(lxr); } + +void preload_io_vpd(void) +{ + const struct dt_property *prop; + + prop = dt_find_property(dt_root, "ibm,io-vpd"); + if (!prop) { + /* LX VPD Lid not already loaded */ + vpd_preload(dt_root); + } +} |