]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: gpio: Enhance gpio command to show only active GPIOs
authorSimon Glass <sjg@chromium.org>
Mon, 11 Aug 2014 15:23:52 +0000 (09:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 1 Sep 2014 05:21:06 +0000 (23:21 -0600)
commit89e6405425c7b52fd1330c61b6f5526612b87516
tree13186d56fec8da659f25289204b6d71923b495df
parenta1263632bb05f0a21620bad0661235fcbbe79dca
dm: gpio: Enhance gpio command to show only active GPIOs

The GPIO list is very long in many cases and most of them are not used.
By default, show only the GPIOs that are in use, and provide a flag to show
all of them. This makes the 'gpio status' command much more pleasant.

In order to do this, driver model now exposes a method for obtaining the
'function' of a GPIO, which describes whether it is an input or output, for
example. Implementation of this method is optional.

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