OpenBIC
OpenBIC copied to clipboard
GPIO set questions
Hi @rainlinWW,
We have two questions about gpio settings.
Q1. Open drain pin settings There's a scenario that OPEN DRAIN pin would set to OUTPUT(Initial direction is INPUT ) while setting it to low. Is this a normal behavior?
p.s. Take GPIO_B6 (FM_S3M_CPU0_CD_INIT_ERROR) as example. In table plat_gpio_cfg[], { chip_gpio, 14, ENABLE, DISABLE, GPIO_INPUT, GPIO_LOW, OPEN_DRAIN, GPIO_INT_DISABLE, NULL },
Q2. GPIO initial settings Why does gpio_set() need to do twice in gpio_init()? If we only keep the second one, would anything goes wrong?
Thanks, Mouchen