Commit 6a416b9f authored by Dmitry Petrov's avatar Dmitry Petrov Committed by Thomas Schäfer
Browse files

pitx-imx8m: add TPM reset

Toogle the TPM_PCI_RST# (GPIO3_IO2) line for 70ms.
parent 81257b9d
......@@ -442,6 +442,7 @@ static iomux_v3_cfg_t const gpio_pads[] = {
IMX8MQ_PAD_GPIO1_IO10__GPIO1_IO10 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
#define TPM_RESET IMX_GPIO_NR(3, 2)
#define USBHUB_RESET IMX_GPIO_NR(3, 4)
int misc_init_r(void)
......@@ -480,6 +481,15 @@ int misc_init_r(void)
gpio_request(IMX_GPIO_NR(1, 10), "GBE0_PWDN#");
gpio_direction_output(IMX_GPIO_NR(1,10), 1); /*GBE0_PWDN*/
/*
* reset TPM chip (Infineon SLB9670) as required by datasheet
* (60ms minimum Reset Inactive Time, 70ms implemented)
*/
gpio_request(TPM_RESET, "tpm_reset");
gpio_direction_output(TPM_RESET, 0);
udelay(70000);
gpio_direction_output(TPM_RESET, 1);
/*
* reset USB hub as required by datasheet
* (3ms minimum reset duration, 10ms implemented)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment