tle8888: disable diagnostic for outputs (#1144)
DS is not clear, may be tle8888 clears OE bit in case of error on output.
This commit is contained in:
parent
74ead04e84
commit
3b61334714
|
@ -98,6 +98,7 @@ typedef enum {
|
||||||
#define FWDStat1 0x38
|
#define FWDStat1 0x38
|
||||||
#define CMD_FWDStat1 CMD_R(FWDStat1)
|
#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_VRSCONFIG0(d) CMD_WR(0x49, d)
|
||||||
#define CMD_VRSCONFIG1(d) CMD_WR(0x4a, d)
|
#define CMD_VRSCONFIG1(d) CMD_WR(0x4a, d)
|
||||||
#define CMD_INCONFIG(n, d) CMD_WR(0x53 + (n & 0x03), 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);
|
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 */
|
/* enable outputs */
|
||||||
tle8888_spi_rw(chip, CMD_OE_SET, NULL);
|
tle8888_spi_rw(chip, CMD_OE_SET, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue