npu2-hw-procedures: Fix zcal in mixed opencapi and nvlink mode
npu2-hw-procedures: Fix zcal in mixed opencapi and nvlink mode

The zcal procedure needs to be run once per obus. We keep track of
which obus is already calibrated in an array indexed by the obus
number. However, the obus number is inferred from the brick index,
which works well for nvlink but not for opencapi.

Create an obus_index() function, which, from a device, returns the
correct obus index, irrespective of the device type.

Signed-off-by: Frederic Barrat <c90240987c583ac0802fbeb88cb1684edc683e18@linux.ibm.com>
Reviewed-by: Andrew Donnellan <efc2d7c347a094a6ec1d918179e819039044c564@au1.ibm.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.ibm.com>

shenki/skiboot,open-power/skiboot,qemu/skiboot,open-power/skiboot,stewart-ibm/skiboot,legoater/skiboot,shenki/skiboot,legoater/skiboot,shenki/skiboot,shenki/skiboot,open-power/skiboot,open-power/skiboot,legoater/skiboot,qemu/skiboot,qemu/skiboot,legoater/skiboot,qemu/skiboot,open-power/skiboot,legoater/skiboot,shenki/skiboot,qemu/skiboot,stewart-ibm/skiboot,stewart-ibm/skiboot