]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: imx-lpi2c: add VLLS mode support
authorGao Pan <pandy.gao@nxp.com>
Tue, 17 Jan 2017 10:20:55 +0000 (18:20 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 25 Jan 2017 23:24:23 +0000 (00:24 +0100)
commit90a59120dbd55ded9dfdfd3afe95fe1b8bce0420
treed00317f9c6b34ff514194db72df2bb2c722670b7
parent5d5a4290f6a82c15ddc17f901f8b783d5e7b7389
i2c: imx-lpi2c: add VLLS mode support

When system enters VLLS mode, module power is turned off. As a result,
all registers are reset to HW default value. After exiting VLLS mode,
registers are still in default mode. As a result, the pinctrl settings
are incorrect, which will affect the module function.

The patch recovers the pinctrl setting when exit VLLS mode.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
[wsa: added missing include]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx-lpi2c.c