diff options
author | Reza Arbab <arbab@linux.ibm.com> | 2018-08-01 15:01:15 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-08-06 03:00:59 -0500 |
commit | 77f26507f1ea17f535522e93667ffd4a7cd06dbb (patch) | |
tree | fa73d14ac7c238580df7cafe908e8bb95daa8209 /hw/phb4.c | |
parent | 167fcb20aa9752e19c4f381cdec7baa63e675a38 (diff) | |
download | talos-skiboot-77f26507f1ea17f535522e93667ffd4a7cd06dbb.tar.gz talos-skiboot-77f26507f1ea17f535522e93667ffd4a7cd06dbb.zip |
phb4: Track PEC index in dt and phb4 struct
Knowing the PEC index is going to be important when we enable relaxed
ordering, so store this value for later use.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
[arbab@linux.ibm.com: Rebase/refactor original changes]
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Reviewed-By: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/phb4.c')
-rw-r--r-- | hw/phb4.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5315,6 +5315,7 @@ static void phb4_create(struct dt_node *np) /* Populate base stuff */ p->index = dt_prop_get_u32(np, "ibm,phb-index"); p->chip_id = chip_id; + p->pec = dt_prop_get_u32(np, "ibm,phb-pec-index"); chip = get_chip(p->chip_id); p->regs = (void *)dt_get_address(np, 0, NULL); p->int_mmio = (void *)dt_get_address(np, 1, NULL); @@ -5623,6 +5624,7 @@ static void phb4_probe_stack(struct dt_node *stk_node, uint32_t pec_index, nest_base, nest_stack, pci_base, pci_stack, etu_base); dt_add_property(np, "ibm,mmio-windows", mmio_win, 8 * mmio_win_sz); dt_add_property_cells(np, "ibm,phb-index", phb_num); + dt_add_property_cells(np, "ibm,phb-pec-index", pec_index); dt_add_property_cells(np, "ibm,phb-stack", stk_node->phandle); dt_add_property_cells(np, "ibm,phb-stack-index", stk_index); dt_add_property_cells(np, "ibm,chip-id", gcid); |