summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-06-08 16:10:24 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-20 14:18:22 +1000
commit5b4a8c1d91380f58257f6dcd5665704b787f479d (patch)
tree272c7c3773f5fbb0ebc105086cbeea89acf5d7c3 /include
parentf6c4a51a8244467c978d51e8128eca0347c9135d (diff)
downloadblackbird-skiboot-5b4a8c1d91380f58257f6dcd5665704b787f479d.tar.gz
blackbird-skiboot-5b4a8c1d91380f58257f6dcd5665704b787f479d.zip
hw/npu2-hw-procedures.c: Add nvram option to override zcal calculations
In some rare cases the zcal state machine may fail and flag an error. According to hardware designers it is sometimes ok to ignore this failure and use nominal values for the calculations. In this case we add a nvram variable (nv_zcal_override) which will cause skiboot to ignore the failure and use the nominal value specified in nvram. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/npu2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/npu2.h b/include/npu2.h
index 6476c729..c7daeb66 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -147,5 +147,5 @@ void npu2_write_mask(struct npu2 *p, uint64_t reg, uint64_t val, uint64_t mask);
int64_t npu2_dev_procedure(void *dev, struct pci_cfg_reg_filter *pcrf,
uint32_t offset, uint32_t len, uint32_t *data,
bool write);
-
+extern int nv_zcal_nominal;
#endif /* __NPU2_H */
OpenPOWER on IntegriCloud