Skip to content
Snippets Groups Projects
  1. Jan 25, 2016
  2. Jan 22, 2016
  3. Oct 25, 2014
  4. Oct 24, 2014
  5. Sep 01, 2014
    • Simon Glass's avatar
      dm: gpio: Allow gpio command to adjust GPIOs that are busy · 9165e842
      Simon Glass authored
      
      The gpio command mostly relies on gpio_request() and gpio_free() being
      nops, in that you can request a GPIO twice. With driver model this is
      now implemented correctly, so it fails.
      
      Change the command to deal with a failure to claim the GPIO.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      9165e842
    • Simon Glass's avatar
      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
  6. May 27, 2014
    • Heiko Schocher's avatar
      dm: rename device struct to udevice · 54c5d08a
      Heiko Schocher authored
      
      using UBI and DM together leads in compiler error, as
      both define a "struct device", so rename "struct device"
      in include/dm/device.h to "struct udevice", as we use
      linux code (MTD/UBI/UBIFS some USB code,...) and cannot
      change the linux "struct device"
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Marek Vasut <marex@denx.de>
      54c5d08a
  7. Apr 18, 2014
    • Ian Campbell's avatar
      blackfin: make name_to_gpio be a weak symbol · fd11bea2
      Ian Campbell authored
      
      This required moving it into a C file from the header.
      
      The only user of a non-default name_to_gpio is blackfin, therefore build tested
      with the blackfin bct-brettl2 build, which is one I picked at random. Also
      tested with a build for the ARM tec board which uses the default/fallback
      implementation. Inspection with objdump shows that both have done the right
      thing.
      
      This change was requested by Marek during review of the sunxi patch series.
      
      Signed-off-by: default avatarIan Campbell <ijc@hellion.org.uk>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Sonic Zhang <sonic.adi@gmail.com>
      fd11bea2
  8. Mar 04, 2014
    • Simon Glass's avatar
      dm: Enable gpio command to support driver model · 95a260a9
      Simon Glass authored
      
      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: default avatarSimon Glass <sjg@chromium.org>
      95a260a9
  9. Mar 06, 2012
  10. Apr 13, 2011
Loading