]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pwm: Add LP3943 PWM driver
authorMilo Kim <milo.kim@ti.com>
Fri, 6 Dec 2013 02:18:43 +0000 (11:18 +0900)
committerLee Jones <lee.jones@linaro.org>
Fri, 6 Dec 2013 16:10:22 +0000 (16:10 +0000)
commitf7ddcba09150072dec2103a88a60cd289a4beb5c
tree38ccf399642561e6ff1aec506beaef5ff0093537
parent0cb8b1632611ef27ef7f725db8aefbcc4cc53e68
pwm: Add LP3943 PWM driver

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: Milo Kim <milo.kim@ti.com>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/pwm/Kconfig
drivers/pwm/Makefile
drivers/pwm/pwm-lp3943.c [new file with mode: 0644]