-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
drivers: mcux: flexio: Added generic MCUX FlexIO driver #53748
Changes from all commits
eeea245
28c4aa8
efc445f
b746ece
f754596
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Copyright (c) 2024, STRIM, ALC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
aescolar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
zephyr_library() | ||
|
||
zephyr_library_sources(mcux_flexio.c) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think that's the way to do this; the header should go in the include directory in the first place if it is intended to be a public header There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That sounds like a better suggestion. We could move the .h file to the include folder. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will do it. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright (c) 2024, STRIM, ALC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config MCUX_FLEXIO | ||
bool | ||
depends on DT_HAS_NXP_FLEXIO_ENABLED | ||
depends on CLOCK_CONTROL | ||
help | ||
Enable the FlexIO controller driver. | ||
This driver is not user-selectable, | ||
and should be enabled by other FlexIO drivers so | ||
that they can use it to share the resources of the FlexIO device. | ||
|
||
if MCUX_FLEXIO | ||
|
||
config MCUX_FLEXIO_INIT_PRIORITY | ||
int "FlexIO controller driver init priority" | ||
default KERNEL_INIT_PRIORITY_DEVICE | ||
help | ||
MCUX FlexIO device driver initialization priority. | ||
|
||
module = MCUX_FLEXIO | ||
module-str = mcux_flexio | ||
source "subsys/logging/Kconfig.template.log_config" | ||
|
||
endif # MCUX_FLEXIO |
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.
Shouldn't the
#endif
here be after the case forIMX_CCM_FLEXIO2_3_CLK
? Also, should we check ifDT_NODE_HAS_STATUS(DT_NODELABEL(flexio1), okay)
for the first case definition here?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.
@danieldegrasse, I agree that there should be a check for
DT_NODE_HAS_STATUS(DT_NODELABEL(flexio1), okay)
, becauseflexio1
is not always enabled. But#endif
, it seems to me better not to change it, as is done in lines214
and221
of the same file.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.
Yeah, you are right- using
&&CONFIG_MCUX_FLEXIO
with each conditional is best here