]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mxc: read output value from GPIO_DR register
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Wed, 29 Apr 2015 15:35:01 +0000 (18:35 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 11 May 2015 09:53:05 +0000 (11:53 +0200)
commit5174f2f1159c64d92d4719cb139cb0dbddcd0ef5
treedb63de03fa9672e820c5ce792605f7e1be23f90b
parentada7d64a12f2a2edcf2147cf7147b2a7715ff84c
gpio: mxc: read output value from GPIO_DR register

All supported iMX GPIO controllers store configured GPIO output value
in GPIO_DR data register, which is represented by GPIO generic reg_set.
Provide a BGPIOF_READ_OUTPUT_REG_SET flag to bgpio_init() to allow
correct getting of previously set output value.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c