diff options
| author | GuEe-GUI <[email protected]> | 2025-12-09 17:03:52 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-12-10 16:53:09 +0800 |
| commit | 6c0753cb8f40c24aac0538f3e77a05896532f30f (patch) | |
| tree | 14251ef36771fbc061844574e2c99f43cc1d6fd1 /components/drivers/include | |
| parent | 44c1cf8d1e4c336a77a66683c5927d20a1cc4d90 (diff) | |
[dm][pinctrl] new interface for 'pin_gpio_request'
Some GPIO should apply GPIO mode by pinctrl, add `pin_ctrl_gpio_request`
for GPIO driver to apply it auto.
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/dev_pin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/dev_pin.h b/components/drivers/include/drivers/dev_pin.h index 7c12879ba7..2039870983 100644 --- a/components/drivers/include/drivers/dev_pin.h +++ b/components/drivers/include/drivers/dev_pin.h @@ -224,6 +224,7 @@ struct rt_pin_ops #endif #ifdef RT_USING_PINCTRL rt_err_t (*pin_ctrl_confs_apply)(struct rt_device *device, void *fw_conf_np); + rt_err_t (*pin_ctrl_gpio_request)(struct rt_device *device, rt_base_t gpio, rt_uint32_t flags); #endif /* RT_USING_PINCTRL */ }; |
