dt-bindings: b91-pinctrl: use new DT pinctrl accessors
Update to use the new APIs. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
2b9d477576
commit
36c73da2f5
1 changed files with 8 additions and 8 deletions
|
@ -39,15 +39,15 @@
|
||||||
#define B91_PINMUX_GET_PIN(pinmux) (pinmux & 0xFFFF)
|
#define B91_PINMUX_GET_PIN(pinmux) (pinmux & 0xFFFF)
|
||||||
|
|
||||||
#define B91_PINMUX_DT_INST_GET_ELEM(idx, x, inst) \
|
#define B91_PINMUX_DT_INST_GET_ELEM(idx, x, inst) \
|
||||||
DT_PROP_BY_PHANDLE_IDX(DT_DRV_INST(inst), pinctrl_##x, idx, pinmux),
|
DT_PROP(DT_INST_PINCTRL_BY_IDX(inst, x, idx), pinmux),
|
||||||
|
|
||||||
#define B91_PINMUX_DT_INST_GET_ARRAY(inst, x) \
|
#define B91_PINMUX_DT_INST_GET_ARRAY(inst, x) \
|
||||||
{ COND_CODE_1(DT_INST_NODE_HAS_PROP(inst, pinctrl_##x), \
|
{ COND_CODE_1(DT_INST_PINCTRL_HAS_IDX(inst, x), \
|
||||||
(UTIL_LISTIFY(DT_INST_PROP_LEN(inst, pinctrl_##x), \
|
(UTIL_LISTIFY(DT_INST_NUM_PINCTRLS_BY_IDX(inst, x), \
|
||||||
B91_PINMUX_DT_INST_GET_ELEM, \
|
B91_PINMUX_DT_INST_GET_ELEM, \
|
||||||
x, \
|
x, \
|
||||||
inst)), \
|
inst)), \
|
||||||
()) \
|
()) \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ZEPHYR_B91_PINCTRL_COMMON_H_ */
|
#endif /* ZEPHYR_B91_PINCTRL_COMMON_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue