aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/platform.c6
-rw-r--r--hw/npu2-common.c3
-rw-r--r--include/platform.h1
-rw-r--r--platforms/ibm-fsp/zz.c5
4 files changed, 1 insertions, 14 deletions
diff --git a/core/platform.c b/core/platform.c
index 7985ce5..570a430 100644
--- a/core/platform.c
+++ b/core/platform.c
@@ -184,12 +184,6 @@ const struct platform_ocapi generic_ocapi = {
.i2c_presence_brick3 = (1 << 7), /* top connector */
.i2c_presence_brick4 = 0, /* unused */
.i2c_presence_brick5 = 0, /* unused */
- /*
- * The ZZs we typically use for BML/generic platform tend to
- * have old planars and presence detection is broken there, so
- * force presence.
- */
- .force_presence = true,
.odl_phy_swap = true,
};
diff --git a/hw/npu2-common.c b/hw/npu2-common.c
index 9e392b8..6e6b12f 100644
--- a/hw/npu2-common.c
+++ b/hw/npu2-common.c
@@ -144,8 +144,7 @@ void npu2_i2c_presence_detect(struct npu2 *npu)
assert(platform.ocapi);
for (int i = 0; i < npu->total_devices; i++) {
dev = &npu->devices[i];
- if (platform.ocapi->force_presence ||
- _i2c_presence_detect(dev))
+ if (_i2c_presence_detect(dev))
dev->type = NPU2_DEV_TYPE_OPENCAPI;
else
dev->type = NPU2_DEV_TYPE_UNKNOWN;
diff --git a/include/platform.h b/include/platform.h
index 56f9f3d..de4638f 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -72,7 +72,6 @@ struct platform_ocapi {
uint8_t i2c_presence_brick3; /* I2C pin to read for presence on brick 3 */
uint8_t i2c_presence_brick4; /* I2C pin to read for presence on brick 4 */
uint8_t i2c_presence_brick5; /* I2C pin to read for presence on brick 5 */
- bool force_presence; /* don't use i2c detection */
bool odl_phy_swap; /* Swap ODL1 to use brick 2 rather than
* brick 1 lanes */
};
diff --git a/platforms/ibm-fsp/zz.c b/platforms/ibm-fsp/zz.c
index e544726..040eca1 100644
--- a/platforms/ibm-fsp/zz.c
+++ b/platforms/ibm-fsp/zz.c
@@ -42,11 +42,6 @@ const struct platform_ocapi zz_ocapi = {
.i2c_presence_brick3 = (1 << 7), /* top connector */
.i2c_presence_brick4 = 0, /* unused */
.i2c_presence_brick5 = 0, /* unused */
- /*
- * i2c presence detection is broken on ZZ planar < v4 so we
- * force the presence until all our systems are upgraded
- */
- .force_presence = true,
.odl_phy_swap = true,
};