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

Enhancement: Figure out OC-GPIO port init #145

Open
vthakur7f opened this issue Oct 4, 2018 · 0 comments
Open

Enhancement: Figure out OC-GPIO port init #145

vthakur7f opened this issue Oct 4, 2018 · 0 comments

Comments

@vthakur7f
Copy link
Collaborator

Product: (OC-SDR, OC-LTE, OC-LTE, OC-Power, others)

OC-SDR

Component: (PSU, GBC, BBU, FEM, LED, ME)

GBC/FE/SDR

Category: (Hardware, Software/stack, Firmware/bootloader, Documentation)

Firmware/OCWare
Describe the solution you'd like
Port initialization is a huge pain right now - there isn't a clear place to initialize an io expander due to the interface's shared nature. I'm thinking that initialization of the IC can be an automatic step bundled with pin config. Now, we still need certain software resources to be set up before doing this (mainly a mutex), so I propose keeping OcGpio_init, but allowing it to be called during EC init. This function would only allow the code to allocate/init software resources. Then, during pin config, the driver would simply check if the IC has been initialized, and if not, init the driver. Pin configuration should not be performed until we know there's power on the IC anyway.

Is your feature request related to a problem? Please describe.
Port Initialization for IO expanders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant