[Skiboot] [PATCH v6 1/4] hdata: Add 'primary' property to master chip xscom node
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Thu Mar 29 21:40:58 AEDT 2018
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 at linux.vnet.ibm.com>
---
hdata/spira.c | 5 ++++-
hdata/spira.h | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/hdata/spira.c b/hdata/spira.c
index 0724dcc42..75516ddb4 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.
@@ -577,6 +577,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 39e0e3333..22085d9cc 100644
--- a/hdata/spira.h
+++ b/hdata/spira.h
@@ -1116,6 +1116,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;
--
2.14.3
More information about the Skiboot
mailing list