01 Sep, 2014

2 commits

  • 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: Simon Glass

    Simon Glass
     
  • 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

    Simon Glass
     

27 May, 2014

1 commit

  • 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: Heiko Schocher
    Cc: Simon Glass
    Cc: Marek Vasut

    Heiko Schocher
     

18 Apr, 2014

1 commit

  • 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: Ian Campbell
    Cc: Marek Vasut
    Cc: Wolfgang Denk
    Cc: Sonic Zhang

    Ian Campbell
     

05 Mar, 2014

1 commit

  • 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

    Simon Glass
     

07 Mar, 2012

1 commit


14 Apr, 2011

2 commits