dm: gpio: Add a driver GPIO translation method
authorSimon Glass <sjg@chromium.org>
Tue, 6 Jan 2015 03:05:28 +0000 (20:05 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:50 +0000 (17:09 -0700)
commit0dac4d51f50e9252dbc00075cf65eeba57017926
tree2d31e477c73b0de6a3604092b02e4f5b8ef5a06b
parentae7123f876357a81fc4c393239a378f1058cad5e
dm: gpio: Add a driver GPIO translation method

Only the GPIO driver knows about the full GPIO device tree binding used by
a device. Add a method to allow the driver to provide this information to the
uclass, including the GPIO offset within the device and flags such as the
polarity.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/gpio/gpio-uclass.c
include/asm-generic/gpio.h