]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: Enable gpio command to support driver model
authorSimon Glass <sjg@chromium.org>
Wed, 26 Feb 2014 22:59:26 +0000 (15:59 -0700)
committerTom Rini <trini@ti.com>
Tue, 4 Mar 2014 17:15:30 +0000 (12:15 -0500)
commit95a260a98c010321cdc5f2acd1f4272b9c0a19dc
tree9bbcd4bcd2749592e9219e27d053eb9373b5952d
parente2d8a714a7e6047124581b93d1cfe9c7702cedd4
dm: Enable gpio command to support driver model

Now that named GPIO banks are supported, along with a way of obtaining
the status of a GPIO (input or output), we can provide an enhanced
GPIO command for driver model. Where the driver provides its own operation
for obtaining the GPIO state, this is used, otherwise a generic version
is sufficient.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_gpio.c