Browse Source

MLK-14474-1 pinctrl-imx: Fix wrong mask when SHARE_MUX_CONF_REG is set

when using SHARE_MUX_CONF_REG, wrong mask is used for writing config value.
which causes mux value is cleared.

Signed-off-by: Ye Li <ye.li@nxp.com>
imx_v2017.03_4.9.11_1.0.0_ga
Ye Li 4 years ago
parent
commit
d2ae50010c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      drivers/pinctrl/nxp/pinctrl-imx.c

+ 1
- 1
drivers/pinctrl/nxp/pinctrl-imx.c View File

@ -156,7 +156,7 @@ static int imx_pinctrl_set_state(struct udevice *dev, struct udevice *config)
if (!(config_val & IMX_NO_PAD_CTL)) {
if (info->flags & SHARE_MUX_CONF_REG) {
clrsetbits_le32(info->base + conf_reg,
info->mux_mask, config_val);
(~info->mux_mask), config_val);
} else {
writel(config_val, info->base + conf_reg);
}


Loading…
Cancel
Save