-
Notifications
You must be signed in to change notification settings - Fork 8.2k
[TOPIC-GPIO]: drivers: gpio_cmsdk_ahb: update to use new GPIO API #19382
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
Conversation
|
All checks passed. checkpatch (informational only, not a failure)Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
mnkp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, however there is some old interrupt configuration code left over. In the cmsdk_ahb_gpio_config function we need to remove the whole if (flags & GPIO_INT) { statement.
mnkp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is still some old interrupt configuration code left over in the cmsdk_ahb_gpio_config function. Lines 124 to 149.
Update driver code and board files to use new GPIO configuration flags such as GPIO_ACTIVE_LOW. Also add implementation of new port_* driver API as well as gpio_pin_interrupt_configure function. We treat GPIO_INT_MODE_LEVEL as not supported as the hardware doesn't seem to handle level interrupts as one would expect. Looking into this further to determine if its a HW bug or some misconfiguration in the software. We don't support dynamic setting of PULL_UP/PULL_DOWN config as this is handled by pinctrl for the current boards we support the CMSDK AHB driver on. Tested on musca-a board. Signed-off-by: Kumar Gala <[email protected]>
removed. |
Update driver code and board files to use new GPIO configuration flags
such as GPIO_ACTIVE_LOW. Also add implementation of new port_* driver
API as well as gpio_pin_interrupt_configure function.
We treat GPIO_INT_MODE_LEVEL as not supported as the hardware doesn't
seem to handle level interrupts as one would expect. Looking into this
further to determine if its a HW bug or some misconfiguration in the
software.
Tested on musca-a board.
Signed-off-by: Kumar Gala [email protected]