summaryrefslogtreecommitdiffstats
path: root/hdata
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2018-04-23 12:13:58 +0530
committerStewart Smith <stewart@linux.ibm.com>2018-04-30 19:04:41 -0500
commitd654f6c93bd6b2ea2db4cea68252073e6cd0fae6 (patch)
tree368df7a1ac1d9d794231ce350421970e8b67dfae /hdata
parentc90fb6cd796e0ca8c2fcffef8d1f8a8e6245b8ae (diff)
downloadblackbird-skiboot-d654f6c93bd6b2ea2db4cea68252073e6cd0fae6.tar.gz
blackbird-skiboot-d654f6c93bd6b2ea2db4cea68252073e6cd0fae6.zip
hdata: Add 'primary' property to master chip xscom node
Needed for SBE communication as some of the SBE MBOX commands has to be sent to SBE on master chip only. Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/spira.c5
-rw-r--r--hdata/spira.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/hdata/spira.c b/hdata/spira.c
index 5f98a834..20879eea 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -1,4 +1,4 @@
-/* Copyright 2013-2017 IBM Corp.
+/* Copyright 2013-2018 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -578,6 +578,9 @@ static bool add_xscom_sppcrd(uint64_t xscom_base)
parse_i2c_devs(hdif, SPPCRD_IDATA_HOST_I2C, np);
add_vas_node(np, i);
add_ecid_data(hdif, np);
+
+ if (be32_to_cpu(cinfo->verif_exist_flags) & CHIP_VERIFY_MASTER_PROC)
+ dt_add_property(np, "primary", NULL, 0);
}
/*
diff --git a/hdata/spira.h b/hdata/spira.h
index d4731946..ef2aec25 100644
--- a/hdata/spira.h
+++ b/hdata/spira.h
@@ -1122,6 +1122,7 @@ struct sppcrd_chip_info {
#define CHIP_VERIFY_USABLE_FAILURES 1
#define CHIP_VERIFY_NOT_INSTALLED 2
#define CHIP_VERIFY_UNUSABLE 3
+#define CHIP_VERIFY_MASTER_PROC PPC_BIT32(4)
__be32 nx_state;
__be32 pore_state;
__be32 xscom_id;
OpenPOWER on IntegriCloud