You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: