diff options
author | Caleb Connolly <kc@postmarketos.org> | 2022-03-28 02:50:02 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2022-04-22 22:55:41 +0200 |
commit | 8ce5ef64546850294b021497046588a7abcebe96 (patch) | |
tree | c0107aa7d42b487facc1093c23f2d4a8888a9059 /drivers/pinctrl/pinctrl-rockchip.h | |
parent | pinctrl: ocelot: add clock monitor option for LAN966x (diff) | |
download | linux-8ce5ef64546850294b021497046588a7abcebe96.tar.xz linux-8ce5ef64546850294b021497046588a7abcebe96.zip |
pinctrl/rockchip: support deferring other gpio params
Add support for deferring other params like PIN_CONFIG_INPUT_ENABLE.
This will be used to add support for PIN_CONFIG_INPUT_ENABLE to the
driver.
Fixes: e7165b1dff06 ("pinctrl/rockchip: add a queue for deferred pin output settings on probe")
Fixes: 59dd178e1d7c ("gpio/rockchip: fetch deferred output settings on probe")
Signed-off-by: Caleb Connolly <kc@postmarketos.org>
Link: https://lore.kernel.org/r/20220328005005.72492-2-kc@postmarketos.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-rockchip.h')
-rw-r--r-- | drivers/pinctrl/pinctrl-rockchip.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl-rockchip.h b/drivers/pinctrl/pinctrl-rockchip.h index 91f10279d084..98a01a616da6 100644 --- a/drivers/pinctrl/pinctrl-rockchip.h +++ b/drivers/pinctrl/pinctrl-rockchip.h @@ -171,7 +171,7 @@ struct rockchip_pin_bank { u32 toggle_edge_mode; u32 recalced_mask; u32 route_mask; - struct list_head deferred_output; + struct list_head deferred_pins; struct mutex deferred_lock; }; @@ -247,9 +247,12 @@ struct rockchip_pin_config { unsigned int nconfigs; }; -struct rockchip_pin_output_deferred { +enum pin_config_param; + +struct rockchip_pin_deferred { struct list_head head; unsigned int pin; + enum pin_config_param param; u32 arg; }; |