mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-23 20:24:26 +08:00
pinctrl: zynqmp: Add support for output-enable and bias-high-impedance
Add support to handle 'output-enable' and 'bias-high-impedance' configurations. DT property output-enable brings out the pins from tri-state, whereas bias-high-impedance changes the pins state to tri-state. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/1a02cd41d183d397ebce23c497178281c7286692.1655286745.git.michal.simek@amd.com
This commit is contained in:
parent
b611f7faf9
commit
123462e5e5
@ -467,6 +467,10 @@ static int zynqmp_pinconf_set(struct udevice *dev, unsigned int pin,
|
|||||||
pin);
|
pin);
|
||||||
break;
|
break;
|
||||||
case PIN_CONFIG_BIAS_HIGH_IMPEDANCE:
|
case PIN_CONFIG_BIAS_HIGH_IMPEDANCE:
|
||||||
|
param = PM_PINCTRL_CONFIG_TRI_STATE;
|
||||||
|
arg = PM_PINCTRL_TRI_STATE_ENABLE;
|
||||||
|
ret = zynqmp_pm_pinctrl_set_config(pin, param, arg);
|
||||||
|
break;
|
||||||
case PIN_CONFIG_LOW_POWER_MODE:
|
case PIN_CONFIG_LOW_POWER_MODE:
|
||||||
/*
|
/*
|
||||||
* This cases are mentioned in dts but configurable
|
* This cases are mentioned in dts but configurable
|
||||||
@ -475,6 +479,11 @@ static int zynqmp_pinconf_set(struct udevice *dev, unsigned int pin,
|
|||||||
*/
|
*/
|
||||||
ret = 0;
|
ret = 0;
|
||||||
break;
|
break;
|
||||||
|
case PIN_CONFIG_OUTPUT_ENABLE:
|
||||||
|
param = PM_PINCTRL_CONFIG_TRI_STATE;
|
||||||
|
arg = PM_PINCTRL_TRI_STATE_DISABLE;
|
||||||
|
ret = zynqmp_pm_pinctrl_set_config(pin, param, arg);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
dev_warn(dev, "unsupported configuration parameter '%u'\n",
|
dev_warn(dev, "unsupported configuration parameter '%u'\n",
|
||||||
param);
|
param);
|
||||||
|
Loading…
Reference in New Issue
Block a user