diff options
author | Reza Arbab <arbab@linux.ibm.com> | 2019-10-22 16:22:22 -0500 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-11-04 10:52:47 +1100 |
commit | 03e7420e05921d60244ffc6b223bedcd3fb3ca05 (patch) | |
tree | 446c7c27f1c85bfe4a61d64c92f06fa399d45e5b | |
parent | 91b4be52303e02960d72f60dba6fa110932c5ffd (diff) | |
download | skiboot-03e7420e05921d60244ffc6b223bedcd3fb3ca05.zip skiboot-03e7420e05921d60244ffc6b223bedcd3fb3ca05.tar.gz skiboot-03e7420e05921d60244ffc6b223bedcd3fb3ca05.tar.bz2 |
npu3: Add ibm, ioda2-npu3-phb to compatible property
Though they are currently identical to the OS, it may become necessary
to distinguish npu3 phbs from npu2 ones at some point. Add a unique
string to the compatible property.
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
-rw-r--r-- | hw/npu3-nvlink.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hw/npu3-nvlink.c b/hw/npu3-nvlink.c index 6969b89..0a185a1 100644 --- a/hw/npu3-nvlink.c +++ b/hw/npu3-nvlink.c @@ -1464,10 +1464,15 @@ static void npu3_dt_add_props(struct npu3 *npu) dt_add_property_cells(dn, "clock-frequency", 0x200, 0); dt_add_property_strings(dn, "device_type", "pciex"); - /* To the OS, npu2 and npu3 are both ibm,ioda2-npu2-phb */ + + /* + * To the OS, npu2 and npu3 are both ibm,ioda2-npu2-phb. The added + * ibm,ioda3-npu3-phb allows for possible quirks. + */ dt_add_property_strings(dn, "compatible", "ibm,power9-npu-pciex", - "ibm,ioda2-npu2-phb"); + "ibm,ioda2-npu2-phb", + "ibm,ioda2-npu3-phb"); dt_add_property_cells(dn, "ibm,phb-index", dt_prop_get_u32(npu->dt_node, "ibm,phb-index")); |