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:
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user