This commit is contained in:
rusEfi 2020-02-12 08:54:41 -05:00
commit abf0f950e7
1 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,7 @@ typedef enum {
#define FWDStat1 0x38
#define CMD_FWDStat1 CMD_R(FWDStat1)
#define CMD_OUTCONFIG(n, d) CMD_WR(0x40 + (n), d)
//#define CMD_VRSCONFIG0(d) CMD_WR(0x49, d)
#define CMD_VRSCONFIG1(d) CMD_WR(0x4a, d)
#define CMD_INCONFIG(n, d) CMD_WR(0x53 + (n & 0x03), d)
@ -639,6 +640,11 @@ int tle8888SpiStartupExchange(struct tle8888_priv *chip) {
tle8888_spi_rw(chip, CMD_DDCONFIG(i, dd), NULL);
}
/* Debug: disable diagnostic */
for (int i = 0; i <= 5; i++) {
tle8888_spi_rw(chip, CMD_OUTCONFIG(i, 0), NULL);
}
/* enable outputs */
tle8888_spi_rw(chip, CMD_OE_SET, NULL);