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