diff options
author | Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com> | 2021-07-21 17:22:32 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-07-30 14:40:42 +0200 |
commit | cdd57325548af9803f0602914de16a8ddcb5bec0 (patch) | |
tree | 2de32a229fd5c8c7af8784babb221c3bb8642fea /drivers/pinctrl/pinctrl-zynq.c | |
parent | ef641c449e8083c4314c125d8e32b37644ddd852 (diff) | |
download | lwn-cdd57325548af9803f0602914de16a8ddcb5bec0.tar.gz lwn-cdd57325548af9803f0602914de16a8ddcb5bec0.zip |
pinctrl: pinctrl-zynq: Add support for 'power-source' parameter
Add support for generic pin parameter 'power-source'.
To maintain the backward compatibility, 'io-standard' parameter is still
supported in the driver.
Signed-off-by: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
Link: https://lore.kernel.org/r/1626868353-96475-4-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-zynq.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-zynq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-zynq.c b/drivers/pinctrl/pinctrl-zynq.c index 5fb924a2eedd..a96af8a76a7a 100644 --- a/drivers/pinctrl/pinctrl-zynq.c +++ b/drivers/pinctrl/pinctrl-zynq.c @@ -1028,6 +1028,7 @@ static int zynq_pinconf_cfg_get(struct pinctrl_dev *pctldev, break; } case PIN_CONFIG_IOSTANDARD: + case PIN_CONFIG_POWER_SOURCE: arg = zynq_pinconf_iostd_get(reg); break; default: @@ -1078,6 +1079,7 @@ static int zynq_pinconf_cfg_set(struct pinctrl_dev *pctldev, break; case PIN_CONFIG_IOSTANDARD: + case PIN_CONFIG_POWER_SOURCE: if (arg <= zynq_iostd_min || arg >= zynq_iostd_max) { dev_warn(pctldev->dev, "unsupported IO standard '%u'\n", |