tle8888 dump at init

This commit is contained in:
rusEfi 2020-02-12 08:34:26 -05:00
parent 86b3332cfe
commit 74ead04e84
3 changed files with 4 additions and 1 deletions

View File

@ -650,6 +650,7 @@ int tle8888SpiStartupExchange(struct tle8888_priv *chip) {
tle8888_spi_rw(chip, CMD_VRSCONFIG1(MODE_MANUAL << 2), NULL);
}
tle8888_dump_regs();
return 0;
}

View File

@ -56,7 +56,7 @@ static PinRepository instance;
extern "C" {
extern void tle8888_read_reg(uint16_t reg, uint16_t *val);
}
static void tle8888_dump_regs(void)
void tle8888_dump_regs(void)
{
// since responses are always in the NEXT transmission we will have this one first
tle8888_read_reg(0, NULL);

View File

@ -28,6 +28,8 @@ class PinRepository {
void initPinRepository(void);
EXTERNC bool brain_pin_is_onchip(brain_pin_e brainPin);
EXTERNC bool brain_pin_is_ext(brain_pin_e brainPin);
EXTERNC void tle8888_dump_regs(void);
/**
* Usually high-level code would invoke efiSetPadMode, not this method directly
*/