diff options
author | Andrew Donnellan <andrew.donnellan@au1.ibm.com> | 2018-03-01 18:57:17 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-01 20:17:54 -0600 |
commit | 5b72a43c59cb049f5e871fb0540e9bbadb226612 (patch) | |
tree | 1c1100f564f4fb6c881dd3c298bf7dcda517fed6 /platforms/ibm-fsp | |
parent | cd8b82a8e83ed04206db0d820277b65cb2cf03bd (diff) | |
download | blackbird-skiboot-5b72a43c59cb049f5e871fb0540e9bbadb226612.tar.gz blackbird-skiboot-5b72a43c59cb049f5e871fb0540e9bbadb226612.zip |
platforms: Add OpenCAPI platform data and device tree nodes
Add OpenCAPI platform data for the zaius and zz platforms, as well as the
generic platform that's used for BML boots. Currently, all three platforms
are identical, but that won't always be the case (e.g. Witherspoon).
Additionally, for Zaius, hardcode link information and the I2C bus that's
required to reset OpenCAPI devices, because this currently can't be
extracted from HDAT. Eventually this will go away once Hostboot adds the
relevant data in HDAT. A later patch will add this for ZZ once we've done
more testing.
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/ibm-fsp')
-rw-r--r-- | platforms/ibm-fsp/zz.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/platforms/ibm-fsp/zz.c b/platforms/ibm-fsp/zz.c index a8150b81..9a849290 100644 --- a/platforms/ibm-fsp/zz.c +++ b/platforms/ibm-fsp/zz.c @@ -27,6 +27,16 @@ #include "ibm-fsp.h" #include "lxvpd.h" +/* We don't yet create NPU device nodes on ZZ, but these values are correct */ +const struct platform_ocapi zz_ocapi = { + .i2c_engine = 1, + .i2c_port = 4, + .i2c_offset = { 0x3, 0x1, 0x1 }, + .i2c_odl0_data = { 0xFD, 0xFD, 0xFF }, + .i2c_odl1_data = { 0xBF, 0xBF, 0xFF }, + .odl_phy_swap = true, +}; + static bool zz_probe(void) { /* FIXME: make this neater when the dust settles */ @@ -71,4 +81,5 @@ DECLARE_PLATFORM(zz) = { .resource_loaded = fsp_resource_loaded, .sensor_read = ibm_fsp_sensor_read, .terminate = ibm_fsp_terminate, + .ocapi = &zz_ocapi, }; |