07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

28 Apr, 2018

1 commit


19 Feb, 2018

1 commit

  • At present dtc produces these warnings when compiling sandbox:

    arch/sandbox/dts/test.dtb: Warning (gpios_property):
    Could not get phandle node for /base-gpios:num-gpios(cell 0)
    arch/sandbox/dts/test.dtb: Warning (gpios_property):
    Missing property '#gpio-cells' in node /reset-ctl or bad phandle
    (referred from /extra-gpios:num-gpios[0])

    Both are due to it assuming that the 'num-gpios' property holds a phandle
    pointing to a GPIO node.

    To avoid these warnings, rename the sandbox property so that it does not
    include the string 'gpios'.

    Signed-off-by: Simon Glass

    Simon Glass
     

01 Jun, 2017

2 commits


08 Feb, 2017

1 commit

  • At present devices use a simple integer offset to record the device tree
    node associated with the device. In preparation for supporting a live
    device tree, which uses a node pointer instead, refactor existing code to
    access this field through an inline function.

    Signed-off-by: Simon Glass

    Simon Glass
     

04 Jun, 2016

1 commit


17 Apr, 2015

1 commit


30 Jan, 2015

1 commit

  • At present U-Boot sort-of supports the standard way of reading GPIOs from
    device tree nodes, but the support is incomplete, a bit clunky and only
    works for GPIO bindings where #gpio-cells is 2.

    Add new functions to request GPIOs, taking full account of the device
    tree binding. These permit requesting a GPIO with a simple call like:

    gpio_request_by_name(dev, "cd-gpios", 0, &desc, GPIOD_IS_IN);

    This will request the GPIO, looking at the device's node which might be
    this, for example:

    cd-gpios = ;

    The GPIO will be set to input mode in this case and polarity will be
    honoured by the GPIO calls.

    It is also possible to request and free a list of GPIOs.

    Signed-off-by: Simon Glass

    Simon Glass
     

24 Oct, 2014

3 commits


21 Jun, 2014

1 commit


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
     

05 Mar, 2014

1 commit


24 Jul, 2013

1 commit


12 Mar, 2012

1 commit