-
Notifications
You must be signed in to change notification settings - Fork 8k
drivers: dma: mspm0: DMA driver support #91502
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
base: main
Are you sure you want to change the base?
Conversation
|
drivers/dma/dma_mspm0.c
Outdated
|
||
struct dma_mspm0_channel_data { | ||
uint8_t direction; | ||
bool busy; |
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.
move these 2 at the end for better alignment
1109426
to
1778ccb
Compare
|
1778ccb
to
c412d28
Compare
@teburd @vaishnavachath @tbursztyka Ping for review |
drivers/dma/dma_ti_mspm0.c
Outdated
break; | ||
default: | ||
return -EINVAL; | ||
} |
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.
Some funky formatting here needs to be fixed.
I recommend trying to use clang-format on the file to make it easier now and in the future to make changes. Disabling formatting for certain macros and such is just fine. If it doesn't work it doesn't work, but worth a go.
drivers/dma/dma_ti_mspm0.c
Outdated
return -EINVAL; | ||
} | ||
|
||
dma_cfg.destWidth = temp; |
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.
Some formatting issues here
Add DMA driver binding for Texas Instruments MSPM0 Family Series Signed-off-by: Karthikeyan Krishnasamy <[email protected]>
Add DMA driver support for Texas Instruments MSPM0 Family Series. Signed-off-by: Karthikeyan Krishnasamy <[email protected]>
Add DMA controller support for Texas Instruments MSPM0 Family of SoCs. Signed-off-by: Karthikeyan Krishnasamy <[email protected]>
c412d28
to
6bdf294
Compare
|
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.
should be added to a test case to ensure it builds and remains building
dma_cfg.triggerType = DL_DMA_TRIGGER_TYPE_EXTERNAL; | ||
dma_cfg.trigger = config->dma_slot; | ||
|
||
DL_DMA_clearInterruptStatus(DMA, channel + DMA_TI_MSPM0_BASE_CHANNEL_NUM); |
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.
It's unclear here if there are any shared registers, but if any register is shared the register update needs to be done inside a spin lock (critical section)
Add DMA driver support for Texas Instruments MSPM0 Family Series