i2c/ocores: add fdt compat for HiFive Unmatched

Change-Id: I325a33d224e4711c71e324ac2afeae2dffc8aaeb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5952
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
X512
2023-01-09 14:54:02 +00:00
committed by Alex von Gluck IV
parent 6d2d2a327e
commit 7003a4cb1d
@@ -92,8 +92,11 @@ OcoresI2c::SupportsDevice(device_node* parent)
if (status < B_OK)
return -1.0f;
if (strcmp(compatible, "opencores,i2c-ocores") != 0)
if (strcmp(compatible, "opencores,i2c-ocores") != 0
&& strcmp(compatible, "sifive,fu740-c000-i2c") != 0
&& strcmp(compatible, "sifive,i2c0") != 0) {
return 0.0f;
}
return 1.0f;
}