diff options
| author | GuEe-GUI <[email protected]> | 2026-07-28 23:26:12 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2026-07-29 11:11:10 +0800 |
| commit | 36f52133ec2e8f7d5c53358bcbd96f2b0e5ac132 (patch) | |
| tree | 55854df8d1623449d3c149a2947bdd702e655b0e | |
| parent | 1edc46af3e15355d418135b2b93820452ca8258e (diff) | |
[dm][i2c] port to the pinctrl for EP
Signed-off-by: GuEe-GUI <[email protected]>
| -rw-r--r-- | components/drivers/i2c/dev_i2c_bus.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/drivers/i2c/dev_i2c_bus.c b/components/drivers/i2c/dev_i2c_bus.c index 6cad46951c..d9af64654f 100644 --- a/components/drivers/i2c/dev_i2c_bus.c +++ b/components/drivers/i2c/dev_i2c_bus.c @@ -139,6 +139,13 @@ static rt_err_t i2c_probe(rt_device_t dev) return -RT_EINVAL; } +#ifdef RT_USING_PINCTRL + if (rt_pin_ctrl_confs_apply_by_name(dev, RT_NULL)) + { + rt_pin_ctrl_confs_apply(dev, 0); + } +#endif + err = driver->probe(client); return err; |
