TLE8888: do not allow direct gpio drive for Push Pull outputs (#3748)

Some register settings also needs to be changed. Change of direct
drive input is not enought.
This commit is contained in:
Andrey G 2022-01-07 22:11:21 +03:00 committed by GitHub
parent 77fa9929d0
commit 020727d65b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1117,6 +1117,10 @@ int Tle8888::chip_init_data() {
if ((out < 0) || (cfg->direct_gpio[i].port == NULL))
continue;
/* TODO: implement PP pin driving throught direct gpio */
if ((cfg->stepper) && (out >= 20) && (out <= 23))
continue;
/* calculate mask */
mask = BIT(out);