08 Dec, 2018

4 commits


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
     

21 Oct, 2015

2 commits


04 May, 2015

2 commits

  • Move the axp-gpio code out of the drivers/power/axp*.c code, and into
    a new separate axpi-gpio driver.

    This change drops supports for the gpio3 pin on the axp209, as that requires
    special handling, and no boards are using it.

    Besides cleaning things up by moving the code to a separate driver, as
    a bonus this change also adds support for the (non vusb) gpio pins on the
    axp221 and the gpio pins on the axp152.

    The new axp-gpio driver gets its own Kconfig option, and is only enabled
    on boards which need it. Besides that it only gets enabled in the regular
    u-boot build and not for the SPL as we never need it in the SPL.

    Signed-off-by: Hans de Goede
    Reviewed-by: Simon Glass
    Acked-by: Ian Campbell

    Hans de Goede
     
  • Change the axp_gpio_foo function prototypes to match the gpio uclass op
    prototypes, this is a preparation patch for moving the axp gpio code to
    a separate driver-model gpio driver.

    Note that the ugly calls with a NULL udev pointer in drivers/gpio/sunxi_gpio.c
    this adds are removed in a later patch.

    Signed-off-by: Hans de Goede
    Reviewed-by: Simon Glass
    Acked-by: Ian Campbell

    Hans de Goede
     

15 Apr, 2015

1 commit


14 Jan, 2015

1 commit

  • Some boards use GPIO-s on the pmic, one example of this is the A13-OLinuXino
    board, which uses gpio0 of the axp209 for the lcd-power signal.

    This commit adds support for gpio pins on the AXP209 pmic, the sunxi_gpio.c
    changes are universal, adding gpio support for the other AXP pmics (when
    necessary) should be a matter of adding the necessary axp_gpio_foo functions
    to their resp. drivers, and add "#define AXP_GPIO" to their header file.

    Note this commit only adds support for the non device-model version of the
    gpio code, patches for adding support to the device-model version are very
    welcome.

    The string representation for these gpio-s is AXP0-#, the 0 in the AXP0 prefix
    is there in case we need to support gpio-s on more then 1 pmic in the future.
    At least A80 boards have 2 pmics, and we may end up needing to support gpio-s
    on both.

    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Hans de Goede
     

19 Jul, 2014

1 commit

  • Add support for the x-powers axp209 pmic which is found on most A10, A13 and
    A20 boards.

    And enable AXP209 support for the Cubietruck and Cubieboard boards.

    Signed-off-by: Henrik Nordstrom
    Signed-off-by: Hans de Goede
    Acked-by: Ian Campbell

    Henrik Nordstrom