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 <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
X512 2022-12-20 10:35:31 -06:00 committed by Alex von Gluck IV
parent 6d2d2a327e
commit 7003a4cb1d

View File

@ -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;
}