1. 25 7月, 2016 1 次提交
    • B
      pwm: Add ChromeOS EC PWM driver · 1f0d3bb0
      Brian Norris 提交于
      Use the new ChromeOS EC EC_CMD_PWM_{GET,SET}_DUTY commands to control
      one or more PWMs attached to the Embedded Controller. Because the EC
      allows us to modify the duty cycle (as a percentage, where U16_MAX is
      100%) but not the period, we assign the period a fixed value of
      EC_PWM_MAX_DUTY and reject all attempts to change it.
      
      This driver supports only device tree at the moment, because that
      provides a very flexible way of describing the relationship between PWMs
      and their consumer devices (e.g., backlight). On a non-DT system, we'll
      probably want to use the non-GENERIC addressing (i.e., we'll need to
      make special device instances that will use EC_PWM_TYPE_KB_LIGHT or
      EC_PWM_TYPE_DISPLAY_LIGHT), as well as the relatively inflexible
      pwm_lookup infrastructure for matching devices. Defer that work for now.
      Signed-off-by: NBrian Norris <briannorris@chromium.org>
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      1f0d3bb0
  2. 11 7月, 2016 3 次提交
  3. 24 3月, 2016 1 次提交
  4. 04 1月, 2016 1 次提交
    • V
      pwm: add HAS_IOMEM dependency to PWM_FSL_FTM · 36d5be4b
      Vegard Nossum 提交于
      Ran into this on UML:
      
      drivers/built-in.o: In function `fsl_pwm_probe':
      linux/drivers/pwm/pwm-fsl-ftm.c:436: undefined reference to `devm_ioremap_resource'
      collect2: error: ld returned 1 exit status
      
      devm_ioremap_resource() is defined only when HAS_IOMEM is selected.
      Signed-off-by: NVegard Nossum <vegard.nossum@oracle.com>
      Cc: Xiubo Li <Li.Xiubo@freescale.com>
      Cc: Alison Wang <b18965@freescale.com>
      Cc: Jingchang Lu <b35083@freescale.com>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Yuan Yao <yao.yuan@freescale.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      36d5be4b
  5. 17 12月, 2015 1 次提交
  6. 16 12月, 2015 1 次提交
  7. 06 11月, 2015 1 次提交
  8. 06 10月, 2015 5 次提交
  9. 09 9月, 2015 1 次提交
    • A
      pwm: NXP LPC18xx PWM/SCT driver · 841e6f90
      Ariel D'Alessandro 提交于
      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: NAriel D'Alessandro <ariel@vanguardiasur.com.ar>
      [thierry.reding@gmail.com: remove excessive padding of fields]
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      841e6f90
  10. 21 7月, 2015 1 次提交
  11. 30 1月, 2015 3 次提交
  12. 17 11月, 2014 3 次提交
  13. 20 10月, 2014 1 次提交
  14. 25 8月, 2014 1 次提交
  15. 23 8月, 2014 1 次提交
  16. 22 8月, 2014 1 次提交
  17. 07 8月, 2014 1 次提交
  18. 11 7月, 2014 1 次提交
  19. 09 7月, 2014 1 次提交
  20. 28 4月, 2014 1 次提交
  21. 01 4月, 2014 1 次提交
  22. 19 3月, 2014 2 次提交
  23. 26 2月, 2014 1 次提交
  24. 21 1月, 2014 1 次提交
    • M
      pwm: Add LP3943 PWM driver · af66b3c0
      Milo Kim 提交于
      This is the other of the LP3943 MFD driver.
      LP3943 can be used as a PWM generator, up to 2 channels.
      
      * Two PWM generators supported
      
      * Supported PWM operations
        request, free, config, enable and disable
      
      * Pin assignment
        A driver data, 'pin_used' is checked when a PWM is requested.
        If the output pin is already assigned, then returns as failure.
        If the pin is available, 'pin_used' is set.
        When the PWM is not used anymore, then it is cleared.
        It is defined as unsigned long type for atomic bit operation APIs,
        but only LSB 16bits are used because LP3943 has 16 outputs.
      Signed-off-by: NMilo Kim <milo.kim@ti.com>
      Acked-by: NThierry Reding <thierry.reding@gmail.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      af66b3c0
  25. 17 12月, 2013 2 次提交
  26. 12 12月, 2013 1 次提交
  27. 17 10月, 2013 1 次提交
  28. 21 6月, 2013 1 次提交