Skip to content

Commit

Permalink
pinctrl: starfive: jh7110: Support clear ioconfig register bit 0
Browse files Browse the repository at this point in the history
Support clear ioconfig register bit 0.

Signed-off-by: Hal Feng <[email protected]>
  • Loading branch information
hal-feng authored and MichaIng committed May 11, 2024
1 parent 01b7e5e commit 5c348dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pinctrl/starfive/pinctrl-starfive-jh7110.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,8 @@ static int starfive_jh7110_pinconf_set(struct pinctrl_dev *pctldev,
value = readl_relaxed(pctl->padctl_base +
pin_reg->io_conf_reg);
value = value|(configs[i] & 0xFF);
if (!(configs[i] & JH7110_PADCFG_IE))
value &= ~JH7110_PADCFG_IE;
writel_relaxed(value, pctl->padctl_base +
pin_reg->io_conf_reg);
}
Expand Down

0 comments on commit 5c348dd

Please sign in to comment.