20 Jul, 2015

1 commit

  • Some PWM drivers are testing the PWMF_ENABLED flag. Create a helper
    function to hide the logic behind enabled test. This will allow us to
    smoothly move from the current approach to an atomic PWM update
    approach.

    Signed-off-by: Boris Brezillon
    Signed-off-by: Thierry Reding

    Boris Brezillon
     

20 Oct, 2014

1 commit


21 May, 2014

1 commit


28 Apr, 2014

1 commit


03 Sep, 2013

2 commits

  • Remove unneeded error handling on the result of a call to
    platform_get_resource when the value is passed to devm_ioremap_resource.

    Move the call to platform_get_resource adjacent to the call to
    devm_ioremap_resource to make the connection between them more clear.

    A simplified version of the semantic patch that makes this change is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @@
    expression pdev,res,n,e,e1;
    expression ret != 0;
    identifier l;
    @@

    - res = platform_get_resource(pdev, IORESOURCE_MEM, n);
    ... when != res
    - if (res == NULL) { ... \(goto l;\|return ret;\) }
    ... when != res
    + res = platform_get_resource(pdev, IORESOURCE_MEM, n);
    e = devm_ioremap_resource(e1, res);
    //

    Signed-off-by: Julia Lawall
    Acked-by: Viresh Kumar
    Signed-off-by: Thierry Reding

    Julia Lawall
     
  • Specify DT bindings for the TPU PWM controller and add OF support to the
    driver.

    Signed-off-by: Laurent Pinchart
    Acked-by: Stephen Warren
    Signed-off-by: Thierry Reding

    Laurent Pinchart
     

26 Jun, 2013

1 commit


25 Jun, 2013

1 commit


21 Jun, 2013

1 commit

  • The Timer Pulse Unit (TPU) is a 4-channels 16-bit timer used to generate
    waveforms. This driver exposes PWM functions through the PWM API for
    other drivers to use.

    The code is loosely based on the leds-renesas-tpu driver by Magnus Damm
    and the TPU PWM driver shipped in the Armadillo EVA 800 kernel sources.

    Signed-off-by: Laurent Pinchart
    Signed-off-by: Axel Lin
    Tested-by: Simon Horman
    Signed-off-by: Thierry Reding

    Laurent Pinchart