Skip to content

Commit

Permalink
hdata: Add 'primary' property to master chip xscom node
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasant Hegde authored and stewartsmith committed May 1, 2018
1 parent c90fb6c commit d654f6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hdata/spira.c
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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);
}

/*
Expand Down
1 change: 1 addition & 0 deletions hdata/spira.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d654f6c

Please sign in to comment.