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

feature request: pin mode configuration "open-drain"/"push-pull" #1

Open
DEvil0000 opened this issue Jun 11, 2015 · 0 comments
Open

Comments

@DEvil0000
Copy link
Contributor

it is possible to configure the GPIO pins of the chip to use push-pull instead of open-drain.
open-drain is the default configuration but in my eyes push-pull is more usefull.

I don't know if there is a fancy linux interface for such so i will not deliver a pull request or patch.
For my usecase it was fine to just hardcode all GPIO pins to push-pull but it would be nice if someone can improve this and add it to this driver.

#define SIO_LD_GPIO_MODE        0x0F    /* GPIO mode control device */

superio_select(sio->addr, SIO_LD_GPIO_MODE);
superio_outb(sio->addr, 0xE0, 0x0);
superio_outb(sio->addr, 0xE1, 0x0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant