Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Simon Glass's avatar
    89e64054
    dm: gpio: Enhance gpio command to show only active GPIOs · 89e64054
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>
    89e64054
    History
    dm: gpio: Enhance gpio command to show only active GPIOs
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>