diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2018-03-01 18:57:13 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-01 20:17:54 -0600 |
commit | b5f1fd30ef56290a6171c79b71bbecb3516e7cf7 (patch) | |
tree | 87c747623ea75d9e7ad3d84a00ab4375a24fa751 /include/npu2.h | |
parent | 3603f474e56693d7fcf9c41aa1cb83c4f127aefb (diff) | |
download | skiboot-b5f1fd30ef56290a6171c79b71bbecb3516e7cf7.zip skiboot-b5f1fd30ef56290a6171c79b71bbecb3516e7cf7.tar.gz skiboot-b5f1fd30ef56290a6171c79b71bbecb3516e7cf7.tar.bz2 |
npu2-opencapi: Configure NPU for OpenCAPI
Scan the device tree for NPUs with OpenCAPI links and configure the NPU per
the initialisation sequence in the NPU OpenCAPI workbook.
Training of individual links and setup of per-AFU/link configuration will
be in a later patch.
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/npu2.h')
-rw-r--r-- | include/npu2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/npu2.h b/include/npu2.h index a8db9ed..c836e6e 100644 --- a/include/npu2.h +++ b/include/npu2.h @@ -139,6 +139,7 @@ struct npu2_dev { struct npu2 { uint32_t index; + struct dt_node *dt_node; uint32_t flags; uint32_t chip_id; uint64_t xscom_base; @@ -147,6 +148,7 @@ struct npu2 { uint64_t mm_base; uint64_t mm_size; uint32_t base_lsi; + uint32_t irq_base; uint32_t total_devices; struct npu2_dev *devices; enum phys_map_type gpu_map_type; |