mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
tpm2: Don't assume active low reset value
The reset function sets the pin to 0 then 1 but if the pin is marked ACTIVE_LOW in the DT it gets inverted and leaves the TPM in reset. Let the gpio driver take care of the reset polarity. Signed-off-by: Kayla Theil <kayla.theil@mixed-mode.de>
This commit is contained in:
parent
7a3f15e718
commit
d8206ff198
@ -596,9 +596,9 @@ static int tpm_tis_spi_probe(struct udevice *dev)
|
|||||||
log(LOGC_NONE, LOGL_NOTICE, "%s: missing reset GPIO\n",
|
log(LOGC_NONE, LOGL_NOTICE, "%s: missing reset GPIO\n",
|
||||||
__func__);
|
__func__);
|
||||||
} else {
|
} else {
|
||||||
dm_gpio_set_value(&reset_gpio, 0);
|
|
||||||
mdelay(1);
|
|
||||||
dm_gpio_set_value(&reset_gpio, 1);
|
dm_gpio_set_value(&reset_gpio, 1);
|
||||||
|
mdelay(1);
|
||||||
|
dm_gpio_set_value(&reset_gpio, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user