Skip to content

ext: mcux: Reorganize imported drivers into soc family subfolders #7163

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

Merged
merged 4 commits into from
Apr 24, 2018
Merged

ext: mcux: Reorganize imported drivers into soc family subfolders #7163

merged 4 commits into from
Apr 24, 2018

Conversation

MaureenHelm
Copy link
Member

Takes the first four commits from #6633 to reorganize the mcux drivers into soc family subfolders and do some minor cleanup of unused files. This was initially done to simplify the process of updating mcux drivers to newer versions, but it also fixed some accidental squashing of drivers due to naming conflicts between imx and kinetis. The kinetis watchdog driver was one of those, and we need it restored for the watchdog api review in #7007.

A template for documenting non-apache licensed components was introduced
after mcux was originally imported. Update the README to follow the
template in doc/contribute/code_component_README.

Signed-off-by: Maureen Helm <[email protected]>
We have been combining imported mcux drivers into a flattened directory
structure to maximize driver reuse, but the introduction of additional
nxp soc families (lpc and imx) to zephyr has introduced driver naming
conflicts. This caused us to rename and modify imported files, such as
fsl_gpio.c/h, to make them unique across all three nxp soc families.
This makes updating the the mcux drivers complicated, especially for the
lpc family.

Reoganize the mcux drivers into soc family subfolders, so we can just
copy all the drivers from an mcux distribution (which is done on an
soc-basis) into the appropriate soc family folder. Undo all of the
naming changes that occurred when lpc and imx drivers were originally
imported. Undo the accidental squashing of the kinetis watchdog and dcdc
drivers that occurred when the imx drivers were introduced.

The drawback to this approach is that we have duplicate files when the
same hw ip modules exist in multiple soc families, however there are
only few cases where this occurs, such as fsl_lpuart and fsl_trng.

Signed-off-by: Maureen Helm <[email protected]>
The lpc54114 soc.c file included clock_config.h unnecessarily.

Signed-off-by: Maureen Helm <[email protected]>
We have never used the mcux clock_config.c/h files, so remove them. We
configure clocks in soc.c instead to allow more options with Kconfigs.

Signed-off-by: Maureen Helm <[email protected]>
@MaureenHelm MaureenHelm added platform: NXP NXP EXT Has change or related to ext/ (obsolete) labels Apr 23, 2018
@MaureenHelm MaureenHelm requested a review from galak April 23, 2018 17:03
@codecov-io
Copy link

Codecov Report

Merging #7163 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7163      +/-   ##
==========================================
- Coverage   58.59%   58.59%   -0.01%     
==========================================
  Files         464      464              
  Lines       47483    47483              
  Branches     8796     8796              
==========================================
- Hits        27822    27821       -1     
- Misses      15823    15824       +1     
  Partials     3838     3838
Impacted Files Coverage Δ
lib/posix/pthread.c 69.34% <0%> (-0.51%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 597517c...d8553ac. Read the comment docs.

@galak galak merged commit 4624f13 into zephyrproject-rtos:master Apr 24, 2018
@MaureenHelm MaureenHelm deleted the mcux-reorg branch April 24, 2018 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EXT Has change or related to ext/ (obsolete) platform: NXP NXP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants