diff options
-rw-r--r-- | libstb/drivers/tpm_i2c_nuvoton.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libstb/drivers/tpm_i2c_nuvoton.c b/libstb/drivers/tpm_i2c_nuvoton.c index 90e27a9..d18add9 100644 --- a/libstb/drivers/tpm_i2c_nuvoton.c +++ b/libstb/drivers/tpm_i2c_nuvoton.c @@ -581,6 +581,16 @@ void tpm_i2c_nuvoton_probe(void) assert(bus->check_quirk == NULL); bus->check_quirk = nuvoton_tpm_quirk; bus->check_quirk_data = tpm_device; + + /* + * Tweak for linux. It doesn't have a driver compatible + * with "nuvoton,npct650" + */ + if (!dt_node_is_compatible(node, "nuvoton,npct601")) { + dt_check_del_prop(node, "compatible"); + dt_add_property_strings(node, "compatible", + "nuvoton,npct650", "nuvoton,npct601"); + } } return; disable: |