Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
imx
u-boot-imx
Commits
6a416b9f
Commit
6a416b9f
authored
Jul 22, 2020
by
Dmitry Petrov
Committed by
Thomas Schäfer
Sep 17, 2020
Browse files
pitx-imx8m: add TPM reset
Toogle the TPM_PCI_RST# (GPIO3_IO2) line for 70ms.
parent
81257b9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
board/kontron/pitx-imx8m/pitx-imx8m.c
View file @
6a416b9f
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment