diff options
author | Reza Arbab <arbab@linux.ibm.com> | 2018-07-13 16:02:42 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-07-17 01:13:17 -0500 |
commit | c2493fd0ce30dd4204cf4cec2e9c4496201a0cf1 (patch) | |
tree | c4b1d45862dc9424e96365b2c2b882d07eadae3a /hw/npu2.c | |
parent | 1d8793c64b596cfdcc3cf6035a3b4cbe3c341ae9 (diff) | |
download | skiboot-c2493fd0ce30dd4204cf4cec2e9c4496201a0cf1.zip skiboot-c2493fd0ce30dd4204cf4cec2e9c4496201a0cf1.tar.gz skiboot-c2493fd0ce30dd4204cf4cec2e9c4496201a0cf1.tar.bz2 |
npu2/hw-procedures: Don't open code NPU2_NTL_MISC_CFG2_BRICK_ENABLE
Name this bit properly. There's a lot more cleanup like this to be done,
but I'm catching this one now as part of some related changes.
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/npu2.c')
-rw-r--r-- | hw/npu2.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1404,12 +1404,13 @@ static void npu2_probe_phb(struct dt_node *dn) xscom_write_mask(gcid, 0x50112f1, PPC_BIT(41), PPC_BIT(41)); xscom_write_mask(gcid, 0x50114f1, PPC_BIT(41), PPC_BIT(41)); - xscom_write_mask(gcid, 0x5011110, PPC_BIT(0), PPC_BIT(0)); - xscom_write_mask(gcid, 0x5011130, PPC_BIT(0), PPC_BIT(0)); - xscom_write_mask(gcid, 0x5011310, PPC_BIT(0), PPC_BIT(0)); - xscom_write_mask(gcid, 0x5011330, PPC_BIT(0), PPC_BIT(0)); - xscom_write_mask(gcid, 0x5011510, PPC_BIT(0), PPC_BIT(0)); - xscom_write_mask(gcid, 0x5011530, PPC_BIT(0), PPC_BIT(0)); + val = NPU2_NTL_MISC_CFG2_BRICK_ENABLE; + xscom_write_mask(gcid, 0x5011110, val, val); + xscom_write_mask(gcid, 0x5011130, val, val); + xscom_write_mask(gcid, 0x5011310, val, val); + xscom_write_mask(gcid, 0x5011330, val, val); + xscom_write_mask(gcid, 0x5011510, val, val); + xscom_write_mask(gcid, 0x5011530, val, val); /* * Enable relaxed ordering for peer-to-peer reads |