]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: gpio: omap: add support for parsing additional gpio parameters
authorMugunthan V N <mugunthanvnm@ti.com>
Tue, 13 Oct 2015 08:27:16 +0000 (13:57 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:44:02 +0000 (14:44 -0400)
commit1ed0f85fafcbc466081deb7640a62e0a603ba8e0
tree055b2f2a2f5beb9cdb319c709baf810df463774b
parenteae7ae18533550b61a9d459deafaeeb460dcf6b7
drivers: gpio: omap: add support for parsing additional gpio parameters

With DM_GPIO, gpio parameters like ACTIVE_(LOW/HIGH) are to be
parsed in xlate gpio drivers-ops. Since xlate is not implemented
in omap_gpio driver, the driver considers all gpio to be
ACTIVE_HIGH which is the default case and fails to return actual
gpio status for ACTIVE_LOW gpios. So adding .xlate ops to
omap_gpio.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/omap_gpio.c