drivers: pinctrl: silabs: Add support for fixed routes
Add support for fixed GPIO routes that don't have a configurable route register, but still require mode configuration and enabling. Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
parent
1ae97f12d6
commit
64a4c593e1
9 changed files with 80 additions and 4 deletions
|
@ -74,7 +74,10 @@ typedef struct pinctrl_soc_pin {
|
|||
(FIELD_GET(SILABS_PINCTRL_HAVE_EN_MASK, DT_PROP_BY_IDX(node, prop, idx)) \
|
||||
? FIELD_GET(SILABS_PINCTRL_EN_BIT_MASK, DT_PROP_BY_IDX(node, prop, idx)) \
|
||||
: SILABS_PINCTRL_UNUSED), \
|
||||
.route_offset = FIELD_GET(SILABS_PINCTRL_ROUTE_MASK, DT_PROP_BY_IDX(node, prop, idx)), \
|
||||
.route_offset = \
|
||||
(FIELD_GET(SILABS_PINCTRL_HAVE_ROUTE_MASK, DT_PROP_BY_IDX(node, prop, idx)) \
|
||||
? FIELD_GET(SILABS_PINCTRL_ROUTE_MASK, DT_PROP_BY_IDX(node, prop, idx)) \
|
||||
: SILABS_PINCTRL_UNUSED), \
|
||||
.mode = Z_PINCTRL_SILABS_MODE_INIT(node), \
|
||||
.dout = Z_PINCTRL_SILABS_DOUT_INIT(node)},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue