Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO set questions #177

Open
MouchenHung-QUANTA opened this issue Feb 17, 2022 · 0 comments
Open

GPIO set questions #177

MouchenHung-QUANTA opened this issue Feb 17, 2022 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@MouchenHung-QUANTA
Copy link
Contributor

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

@MouchenHung-QUANTA MouchenHung-QUANTA added the question Further information is requested label Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants