Skip to content

Power supply masks for failure mask when power supplies don't turn on

Peter Wittich edited this page Oct 28, 2021 · 1 revision

Mask refers to index into this array

https://github.com/apollo-lhc/cm_mcu/blob/85b6cfb1f92d1ddcc1e72b8199fe7312c593dc8f/common/power_ctl.c#L60

As of 10/28/2021 it is this Rev1:

struct gpio_pin_t oks[] = {
    { F1_VCCINT_PG_A, 1},
    { F1_VCCINT_PG_B, 1},
    { F2_VCCINT_PG_A, 1},
    { F2_VCCINT_PG_B, 1},
    { VCC_1V8_PG,    2},
    { VCC_3V3_PG,    2},
    { F2_MGTY1_AVCC_OK, 4},
    { F2_MGTY2_AVCC_OK, 4},
    { F1_MGTY_AVCC_OK,  4},
    { F1_MGTH_AVCC_OK,  4},
    { F1_MGTY_AVTT_OK,  5},
    { F1_MGTH_AVTT_OK,  5},
    { F2_MGTY1_AVTT_OK, 5},
    { F2_MGTY2_AVTT_OK, 5}
};

Rev 2

struct gpio_pin_t oks[N_PS_OKS] = {
    { PG_F1_INT_A, 1},
    { PG_F1_INT_B, 1},
    { PG_F2_INT_A, 1},
    { PG_F2_INT_B, 1},
    { PG_1V8,    2},
    { PG_3V3,    2},
    { PG_F1_VCCAUX, 3},
    { PG_F2_VCCAUX, 3},
    { PG_F1_AVCC,  4},
    { PG_F2_AVCC,  4},
    { PG_F1_AVTT,  5},
    { PG_F2_AVTT,  5},
};