31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 24 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Alexios Zavras
    Reviewed-by: Steve Winslow
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190528170026.162703968@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

16 Nov, 2018

1 commit

  • Regarding the .request case: The consumer might be interested in taking
    over the configured state from the boot loader. So the initially
    configured state should be retained.

    For the free case the PWM consumer is responsible for disabling the PWM
    before calling pwm_put() and there are three subcases to consider:

    a) The PWM is already off. Then there is no gain in disabling the PWM
    once more.
    b) The PWM is still running and there is a good reason for that. (Not
    sure this is a valid case, I cannot imagine such a good reason.)
    Then it is counterproductive to disable the PWM.
    c) The PWM is still running because the consumer failed to disable the
    PWM. Then the consumer needs fixing and there is little incentive to
    paper over the problem in the backend driver.

    This aligns the lpc18xx-sct driver to the other PWM drivers that also
    don't reconfigure the hardware in .request and .free.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Thierry Reding

    Uwe Kleine-König
     

08 Sep, 2016

1 commit

  • The lpc-18xx driver currently manipulates the pwm_device struct directly
    rather than using the pwm_set_chip_data() function. While the current
    method may save a clock cycle or two, using the explicit function call
    makes it more obvious that data is set to the local chip data pointer.

    Signed-off-by: Olliver Schinagl
    Reviewed-by: Ariel D'Alessandro
    Signed-off-by: Thierry Reding

    oliver@schinagl.nl
     

17 May, 2016

1 commit


24 Mar, 2016

1 commit


09 Sep, 2015

1 commit

  • This commit adds support for NXP LPC18xx PWM/SCT.

    NXP LPC SoCs family, which includes LPC18xx/LPC43xx, provides a State
    Configurable Timer (SCT) which can be configured as a Pulse Width
    Modulator. Other SoCs in that family may share the same hardware.

    The PWM supports a total of 16 channels, but only 15 can be simultaneously
    requested. There's only one period, global to all the channels, thus PWM
    driver will refuse setting different values to it, unless there's only one
    channel requested.

    Signed-off-by: Ariel D'Alessandro
    [thierry.reding@gmail.com: remove excessive padding of fields]
    Signed-off-by: Thierry Reding

    Ariel D'Alessandro