23 Jan, 2013

1 commit


20 Dec, 2012

1 commit

  • Pull pwm changes from Thierry Reding:
    "A new driver has been added for the SPEAr platform and the
    TWL4030/6030 driver has been replaced by two drivers that control the
    regular PWMs and the PWM driven LEDs provided by the chips.

    The vt8500, tiecap, tiehrpwm, i.MX, LPC32xx and Samsung drivers have
    all been improved and the device tree bindings now support the PWM
    signal polarity."

    Fix up trivial conflicts due to __devinit/exit removal.

    * tag 'for-3.8-rc1' of git://gitorious.org/linux-pwm/linux-pwm: (21 commits)
    pwm: samsung: add missing s3c->pwm_id assignment
    pwm: lpc32xx: Set the chip base for dynamic allocation
    pwm: lpc32xx: Properly disable the clock on device removal
    pwm: lpc32xx: Fix the PWM polarity
    pwm: i.MX: eliminate build warning
    pwm: Export of_pwm_xlate_with_flags()
    pwm: Remove pwm-twl6030 driver
    pwm: New driver to support PWM driven LEDs on TWL4030/6030 series of PMICs
    pwm: New driver to support PWMs on TWL4030/6030 series of PMICs
    pwm: pwm-tiehrpwm: pinctrl support
    pwm: tiehrpwm: Add device-tree binding
    pwm: pwm-tiehrpwm: Adding TBCLK gating support.
    pwm: pwm-tiecap: pinctrl support
    pwm: tiecap: Add device-tree binding
    pwm: Add TI PWM subsystem driver
    pwm: Device tree support for PWM polarity
    pwm: vt8500: Ensure PWM clock is enabled during pwm_config
    pwm: vt8500: Fix build error
    pwm: spear: Staticize spear_pwm_config()
    pwm: Add SPEAr PWM chip driver support
    ...

    Linus Torvalds
     

06 Dec, 2012

1 commit

  • compiling the i.MX pwm driver produces the following warning:
    |drivers/pwm/pwm-imx.c: In function 'imx_pwm_probe':
    |drivers/pwm/pwm-imx.c:281:7: warning: assignment discards qualifiers from pointer target type

    Apply a 'const' attribute to the affected variable declaration.

    Signed-off-by: Lothar Waßmann
    Acked-by: Sascha Hauer
    Signed-off-by: Thierry Reding

    Lothar Waßmann
     

29 Nov, 2012

3 commits


12 Sep, 2012

7 commits

  • The i.MX PWM core has two clocks: The ipg clock and the ipg highfreq
    (peripheral) clock. The ipg clock has to be enabled for this hardware
    to work. The actual PWM output can either be driven by the ipg clock
    or the ipg highfreq. The ipg highfreq has the advantage that it runs
    even when the SoC is in low power modes.
    This patch requests both clocks and enables the ipg clock for accessing
    registers and the peripheral clock to actually turn on the PWM.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Sascha Hauer
    Reviewed-by: Shawn Guo
    Reviewed-by: Benoît Thébaudeau
    Signed-off-by: Thierry Reding

    Philipp Zabel
     
  • The i.MX PWM module has two clocks: The ipg clock and the ipg highfreq
    (peripheral) clock. The ipg clock has to be enabled for this hardware
    to work. The actual PWM output can either be driven by the ipg clock
    or the ipg highfreq. The ipg highfreq has the advantage that it runs
    even when the SoC is in low power modes.
    Use the always running clock also on i.MX25.

    Signed-off-by: Sascha Hauer
    Reviewed-by: Shawn Guo
    Reviewed-by: Benoît Thébaudeau
    Signed-off-by: Thierry Reding

    Sascha Hauer
     
  • At the same time remove platform based support. No user for
    this driver has made it into mainline so far, so all we break
    is out of tree stuff.

    Signed-off-by: Philipp Zabel
    Signed-off-by: Sascha Hauer
    Reviewed-by: Shawn Guo
    Reviewed-by: Benoît Thébaudeau
    Signed-off-by: Thierry Reding

    Philipp Zabel
     
  • Signed-off-by: Sascha Hauer
    Reviewed-by: Shawn Guo
    Reviewed-by: Benoît Thébaudeau
    Signed-off-by: Thierry Reding

    Sascha Hauer
     
  • We used to enable/disable the PWM only by switching the
    clock on or off. Instead, use the dedicated register bits.
    These differ on different SoCs, so introduce a SoC specific
    function for this.

    Signed-off-by: Sascha Hauer
    Reviewed-by: Shawn Guo
    Reviewed-by: Benoît Thébaudeau
    Signed-off-by: Thierry Reding

    Sascha Hauer
     
  • The PWM core makes sure that pwm_enable/disable are called only
    once. Still keep the enabled state since we will need it in
    pwm_config.

    Signed-off-by: Sascha Hauer
    Reviewed-by: Shawn Guo
    Reviewed-by: Benoît Thébaudeau
    Signed-off-by: Thierry Reding

    Sascha Hauer
     
  • To cleanup the code and to make it easier to support different
    SoCs.

    Signed-off-by: Sascha Hauer
    Reviewed-by: Shawn Guo
    Reviewed-by: Benoît Thébaudeau
    Signed-off-by: Thierry Reding

    Sascha Hauer
     

23 Jul, 2012

1 commit


03 Jul, 2012

1 commit