soc: atmel_sam0: Introduce DMA CTLR macro
Add a macro similar to ATMEL_SAM0_DT_INST_DMA_NAME but instead provides the devicetree node back via DT_INST_DMAS_CTLR_BY_NAME Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
79ea590bef
commit
5c904c9f5b
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@
|
||||||
COND_CODE_1(DT_INST_NODE_HAS_PROP(n, dmas), \
|
COND_CODE_1(DT_INST_NODE_HAS_PROP(n, dmas), \
|
||||||
(DT_INST_DMAS_LABEL_BY_NAME(n, name)), \
|
(DT_INST_DMAS_LABEL_BY_NAME(n, name)), \
|
||||||
(NULL))
|
(NULL))
|
||||||
|
#define ATMEL_SAM0_DT_INST_DMA_CTLR(n, name) \
|
||||||
|
COND_CODE_1(DT_INST_NODE_HAS_PROP(n, dmas), \
|
||||||
|
(DT_INST_DMAS_CTLR_BY_NAME(n, name)), \
|
||||||
|
(DT_INVALID_NODE))
|
||||||
|
|
||||||
|
|
||||||
/* Use to check if a sercom 'n' is enabled for a given 'compat' */
|
/* Use to check if a sercom 'n' is enabled for a given 'compat' */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue