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

[TOPIC-GPIO] drivers: mmio32: update to use new GPIO API #20028

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

galak
Copy link
Collaborator

@galak galak commented Oct 22, 2019

As the mmio32 is more of a library than a proper driver, just implement
the new port functions and have pin_interrupt_configure marked pretty
much as not supported.

Signed-off-by: Kumar Gala kumar.gala@linaro.org

@galak galak requested review from mnkp and pabigot as code owners October 22, 2019 17:08
@galak galak changed the title drivers: mmio32: update to use new GPIO API [TOPIC-GPIO] drivers: mmio32: update to use new GPIO API Oct 22, 2019
Copy link
Member

@mnkp mnkp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, however there is still some old code in gpio_mmio32_config function using GPIO_DIR_*, GPIO_POL_* flags. We could also remove invert field from struct gpio_mmio32_context in include/drivers/gpio/gpio_mmio32.h. The gpio_mmio32_write, gpio_mmio32_read functions should use invert field from struct gpio_driver_data.

@galak
Copy link
Collaborator Author

galak commented Oct 23, 2019

LGTM, however there is still some old code in gpio_mmio32_config function using GPIO_DIR_*, GPIO_POL_* flags. We could also remove invert field from struct gpio_mmio32_context in include/drivers/gpio/gpio_mmio32.h. The gpio_mmio32_write, gpio_mmio32_read functions should use invert field from struct gpio_driver_data.

made some changes, so hopefully all this is clean up.

@zephyrbot zephyrbot added the area: API Changes to public APIs label Oct 23, 2019
Copy link
Member

@mnkp mnkp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one minor comment.

drivers/gpio/gpio_mmio32.c Outdated Show resolved Hide resolved
drivers/gpio/gpio_mmio32.c Outdated Show resolved Hide resolved
As the mmio32 is more of a library than a proper driver, just implement
the new port functions and have pin_interrupt_configure marked pretty
much as not supported.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
@galak galak merged commit 4129037 into zephyrproject-rtos:topic-gpio Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: API Changes to public APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants