summaryrefslogtreecommitdiff
path: root/arch/mips/mach-bmips
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2018-10-18 16:16:46 +0200
committerTom Rini <trini@konsulko.com>2018-11-16 13:34:36 -0500
commit3764b2bdce9f0d84fc0e1b8740fa9e751b8394b3 (patch)
treedb9f8fc53904cb483ac38e91ba06856107baf58f /arch/mips/mach-bmips
parente5e06b65ad6563701a069f342ce35a5576f12fd5 (diff)
gpio: pca953x: Clear the polarity invert register at init
The pca953x_gpio driver uses default value of polarity inversion register. For some devices like PCA9557 and MAX7310, their polarity inversion register default value is 0xf0. So for high 4 ports, when reading their values, the values are inverted as the actual level. This patch clears the polarity inversion register to 0 at init, so that the port read and write values are aligned. Signed-off-by: Ye Li <ye.li@nxp.com> Acked-by: Fugang Duan <fugang.duan@nxp.com> Acked-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'arch/mips/mach-bmips')
0 files changed, 0 insertions, 0 deletions